()
| 93 | |
| 94 | |
| 95 | def test_ret_const(): |
| 96 | a = tirx.const(0) |
| 97 | b = tirx.ret(a) |
| 98 | b = tirx.Evaluate(b) |
| 99 | func = tirx.PrimFunc([], b) |
| 100 | func = build_tir_func(func) |
| 101 | out = func() |
| 102 | assert out == 0 |
| 103 | |
| 104 | |
| 105 | def test_control_flow_jump(): |
no test coverage detected
searching dependent graphs…