(self)
| 614 | self.assertLessEqual(len(guard_nos_int_count), 1) |
| 615 | |
| 616 | def test_int_impure_region(self): |
| 617 | def testfunc(loops): |
| 618 | num = 0 |
| 619 | while num < loops: |
| 620 | x = num + num |
| 621 | y = 1 |
| 622 | x // 2 |
| 623 | a = x + y |
| 624 | num += 1 |
| 625 | return a |
| 626 | |
| 627 | res, ex = self._run_with_optimizer(testfunc, TIER2_THRESHOLD) |
| 628 | self.assertIsNotNone(ex) |
| 629 | binop_count = [opname for opname in iter_opnames(ex) if opname == "_BINARY_OP_ADD_INT"] |
| 630 | self.assertGreaterEqual(len(binop_count), 3) |
| 631 | |
| 632 | def test_call_py_exact_args(self): |
| 633 | def testfunc(n): |
nothing calls this directly
no test coverage detected