MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / WriteBoolean

Function WriteBoolean

src/Chain/libraries/glua/glua_decompile.cpp:744–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744std::string WriteBoolean(LogicExp* exp, int* thenaddr, int* endif, int test) {
745 std::string result;
746 std::stringstream str;
747
748 if (exp) {
749 PrintLogicExp(str, *thenaddr, exp, 0, test);
750 if (test && endif && *endif == 0) {
751 //SET_ERROR(F, "Unhandled construct in 'WriteBoolean'");
752 // result = (char*)calloc(30, sizeof(char));
753 // sprintf(result, "__UNHANDLEDCONTRUCT_1__");
754 result = "__UNHANDLEDCONTRUCT_1__";
755 goto WriteBoolean_CLEAR_HANDLER1;
756 }
757 }
758 else {
759 // result = (char*)calloc(30, sizeof(char));
760 // sprintf(result, "__UNHANDLEDCONTRUCT_2__");
761 result = "__UNHANDLEDCONTRUCT_2__";
762 goto WriteBoolean_CLEAR_HANDLER1;
763 }
764 result = str.str();
765
766WriteBoolean_CLEAR_HANDLER1:
767
768 return result;
769}
770
771std::string OutputBoolean(GluaDecompileContextP ctx, Function* F, int* thenaddr, int* endif, int test) {
772 std::string result;

Callers 2

OutputBooleanFunction · 0.85
ProcessCodeFunction · 0.85

Calls 2

PrintLogicExpFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected