Skip to content

Commit c9bb226

Browse files
Bug #73: Added one tiny branch in _to_sympy() so an AST with value '&' becomes an uninterpreted function application (we don't try to prove bitwise relations symbolically)
1 parent 5c1f9f2 commit c9bb226

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/sindi/comparator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ def _to_sympy_expr(self, ast):
161161
return base[index]
162162

163163
args = [self._to_sympy_expr(child) for child in ast.children]
164-
164+
165+
if ast.value == '&' and len(args) == 2:
166+
return sp.Function('BITAND')(*args)
165167

166168
# Normalize ==/!= with boolean literals to X / !X
167169
if ast.value in ('==', '!=') and len(args) == 2:

0 commit comments

Comments
 (0)