22 #ifndef STARK_TOOLS_SCRIPT_H 23 #define STARK_TOOLS_SCRIPT_H 25 #include "common/str.h" 27 #include "engines/stark/resources/script.h" 39 class DefinitionRegistry;
40 struct ControlStructure;
51 void printCommands()
const;
52 void printBlocks()
const;
53 void printDecompiled();
60 void linkCommandBranches();
69 void analyseControlFlow();
70 void detectInfiniteLoop();
82 bool verifyCommandInAST(
CFGCommand *cfgCommand);
83 bool verifyCommandSuccessorInAST(
CFGCommand *cfgCommand,
CFGCommand *cfgSuccessor,
ASTNode *astSuccessor,
const char *successorType);
103 #endif // STARK_TOOLS_SCRIPT_H