|
|
@ -340,20 +340,20 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
bool IsFullyDecompiled() const {
|
|
|
|
bool IsFullyDecompiled() const {
|
|
|
|
if (full_decompile) {
|
|
|
|
if (full_decompile) {
|
|
|
|
return gotos.size() == 0;
|
|
|
|
return gotos.empty();
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
for (ASTNode goto_node : gotos) {
|
|
|
|
|
|
|
|
auto label_index = goto_node->GetGotoLabel();
|
|
|
|
for (ASTNode goto_node : gotos) {
|
|
|
|
if (!label_index) {
|
|
|
|
auto label_index = goto_node->GetGotoLabel();
|
|
|
|
return false;
|
|
|
|
if (!label_index) {
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
ASTNode glabel = labels[*label_index];
|
|
|
|
}
|
|
|
|
if (IsBackwardsJump(goto_node, glabel)) {
|
|
|
|
ASTNode glabel = labels[*label_index];
|
|
|
|
return false;
|
|
|
|
if (IsBackwardsJump(goto_node, glabel)) {
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ASTNode GetProgram() const {
|
|
|
|
ASTNode GetProgram() const {
|
|
|
|