def test_invalid_true(self): self.assertFalse(causality_analyzer.check_valid(z3.And(False)))
def test_valid_true(self): self.assertTrue(causality_analyzer.check_valid(z3.And(True)))
def test_valid_demorgan(self): a = z3.Bool('a') b = z3.Bool('b') self.assertTrue( causality_analyzer.check_valid( z3.And(a, b) == z3.Not(z3.Or(z3.Not(a), z3.Not(b)))))
def test_invalid_true(self): self.assertFalse(causality_analyzer.check_valid( z3.And(False) ))
def test_valid_true(self): self.assertTrue(causality_analyzer.check_valid( z3.And(True) ))
def test_valid_demorgan(self): a = z3.Bool('a') b = z3.Bool('b') self.assertTrue(causality_analyzer.check_valid( z3.And(a, b) == z3.Not(z3.Or(z3.Not(a), z3.Not(b))) ))