(self)
| 211 | ) |
| 212 | |
| 213 | def test_branch_no_else(self) -> None: |
| 214 | next_block = BasicBlock(9) |
| 215 | b = Branch(self.b, BasicBlock(8), next_block, Branch.BOOL) |
| 216 | self.assert_emit(b, """if (cpy_r_b) goto CPyL8;""", next_block=next_block) |
| 217 | next_block = BasicBlock(9) |
| 218 | b = Branch(self.b, BasicBlock(8), next_block, Branch.BOOL) |
| 219 | b.negated = True |
| 220 | self.assert_emit(b, """if (!cpy_r_b) goto CPyL8;""", next_block=next_block) |
| 221 | |
| 222 | def test_branch_no_else_negated(self) -> None: |
| 223 | next_block = BasicBlock(1) |
nothing calls this directly
no test coverage detected