fix issues in visit_If

This commit is contained in:
Yan Da
2022-04-10 16:28:45 +08:00
parent fcbbb3c10e
commit 4eb062f313
2 changed files with 12 additions and 7 deletions

View File

@@ -26,12 +26,13 @@ def nested_cf(X, lb, ub, Z):
if lb < ub:
for z in range(0, Z):
a += 2.0
# a += 2.0
else:
# a *= 2.0
while a < 1.2:
a *= 2.0
for _ in range(0, Z, 2):
a *= -3.3
a -= 1.0
mod, _ = nested_cf.compile_to_ttir(3, 4, 5, 6, grid=(1,))
assert mod.verify(), mod.str()
mod.dump()