You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert (symbolic_result== ['((((x1 and False) or (x2 and False)) and True) or (((x1 and False) or (x2 and False)) and True) or (((x1 and False) or (x2 and True)) and True) or (((x1 and True) or (x2 and True)) and True))', '((((x1 and False) or (x2 and False)) and False) or (((x1 and False) or (x2 and False)) and True) or (((x1 and False) or (x2 and True)) and False) or (((x1 and True) or (x2 and True)) and False))',
170
-
'((((x1 and False) or (x2 and False)) and False) or (((x1 and False) or (x2 and False)) and False) or (((x1 and False) or (x2 and True)) and True) or (((x1 and True) or (x2 and True)) and True))', '((((x1 and False) or (x2 and False)) and False) or (((x1 and False) or (x2 and False)) and True) or (((x1 and False) or (x2 and True)) and True) or (((x1 and True) or (x2 and True)) and True))'])
assertnumpy.array_equal(symbolic_output, ['((((False or (((False or (x1 != 0) and False) or (x2 != 0) and False) != 0) and True) or (((False or (x1 != 0) and False) or (x2 != 0) and False) != 0) and True) or (((False or (x1 != 0) and False) or (x2 != 0) and True) != 0) and True) or (((False or (x1 != 0) and True) or (x2 != 0) and True) != 0) and True)',
200
+
'((((False or (((False or (x1 != 0) and False) or (x2 != 0) and False) != 0) and False) or (((False or (x1 != 0) and False) or (x2 != 0) and False) != 0) and True) or (((False or (x1 != 0) and False) or (x2 != 0) and True) != 0) and False) or (((False or (x1 != 0) and True) or (x2 != 0) and True) != 0) and False)',
201
+
'((((False or (((False or (x1 != 0) and False) or (x2 != 0) and False) != 0) and False) or (((False or (x1 != 0) and False) or (x2 != 0) and False) != 0) and False) or (((False or (x1 != 0) and False) or (x2 != 0) and True) != 0) and True) or (((False or (x1 != 0) and True) or (x2 != 0) and True) != 0) and True)',
202
+
'((((False or (((False or (x1 != 0) and False) or (x2 != 0) and False) != 0) and False) or (((False or (x1 != 0) and False) or (x2 != 0) and False) != 0) and True) or (((False or (x1 != 0) and False) or (x2 != 0) and True) != 0) and True) or (((False or (x1 != 0) and True) or (x2 != 0) and True) != 0) and True)'])
203
+
204
+
# Compute symbolic result with symbolic inputs and symbolic weights
assertnumpy.array_equal(symbolic_output, ['((((False or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (False != 0)) != 0) and (True != 0)) or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (False != 0)) != 0) and (True != 0)) or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (True != 0)) != 0) and (True != 0)) or (((False or (x1 != 0) and (True != 0)) or (x2 != 0) and (True != 0)) != 0) and (True != 0))',
208
+
'((((False or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (False != 0)) != 0) and (False != 0)) or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (False != 0)) != 0) and (True != 0)) or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (True != 0)) != 0) and (False != 0)) or (((False or (x1 != 0) and (True != 0)) or (x2 != 0) and (True != 0)) != 0) and (False != 0))',
209
+
'((((False or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (False != 0)) != 0) and (False != 0)) or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (False != 0)) != 0) and (False != 0)) or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (True != 0)) != 0) and (True != 0)) or (((False or (x1 != 0) and (True != 0)) or (x2 != 0) and (True != 0)) != 0) and (True != 0))',
210
+
'((((False or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (False != 0)) != 0) and (False != 0)) or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (False != 0)) != 0) and (True != 0)) or (((False or (x1 != 0) and (False != 0)) or (x2 != 0) and (True != 0)) != 0) and (True != 0)) or (((False or (x1 != 0) and (True != 0)) or (x2 != 0) and (True != 0)) != 0) and (True != 0))'])
0 commit comments