()
| 53 | return a * b |
| 54 | |
| 55 | def helper(): |
| 56 | # 2 calls |
| 57 | # 300 ticks total: 20 ticks local, 260 ticks in subfunctions |
| 58 | global TICKS |
| 59 | TICKS += 1 |
| 60 | helper1() # 30 |
| 61 | TICKS += 2 |
| 62 | helper1() # 30 |
| 63 | TICKS += 6 |
| 64 | helper2() # 50 |
| 65 | TICKS += 3 |
| 66 | helper2() # 50 |
| 67 | TICKS += 2 |
| 68 | helper2() # 50 |
| 69 | TICKS += 5 |
| 70 | helper2_indirect() # 70 |
| 71 | TICKS += 1 |
| 72 | |
| 73 | def helper1(): |
| 74 | # 4 calls |
searching dependent graphs…