(self)
| 1052 | """From z3py guide: If(cond, then, else).""" |
| 1053 | |
| 1054 | def test_ite_construction(self): |
| 1055 | x = Int("x") |
| 1056 | expr = If(x > 0, x, -x) |
| 1057 | assert isinstance(expr._ast, IteNode) |
| 1058 | |
| 1059 | def test_ite_type_preservation(self): |
| 1060 | """If returns same sort as branches.""" |