| 742 | } |
| 743 | |
| 744 | std::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 | |
| 766 | WriteBoolean_CLEAR_HANDLER1: |
| 767 | |
| 768 | return result; |
| 769 | } |
| 770 | |
| 771 | std::string OutputBoolean(GluaDecompileContextP ctx, Function* F, int* thenaddr, int* endif, int test) { |
| 772 | std::string result; |
no test coverage detected