** check whether list has any jump that do not produce a value ** (or produce an inverted value) */
| 137 | ** (or produce an inverted value) |
| 138 | */ |
| 139 | static int need_value(FuncState *fs, int list) { |
| 140 | for (; list != NO_JUMP; list = getjump(fs, list)) { |
| 141 | Instruction i = *getjumpcontrol(fs, list); |
| 142 | if (GET_OPCODE(i) != OP_TESTSET) return 1; |
| 143 | } |
| 144 | return 0; /* not found */ |
| 145 | } |
| 146 | |
| 147 | |
| 148 | static int patchtestreg(FuncState *fs, int node, int reg) { |
no test coverage detected