# Which answer is correct? # a. All of the below # b. None of the below # c. All of the above # d. One of the above # e. None of the above # f. None of the above from z3 import * a = Bool('a') b = Bool('b') c = Bool('c') d = Bool('d') e = Bool('e') f = Bool('f') ans_a = a == And(b,c,d,e,f) ans_b = b == And(Not(c), Not(d), Not(e), Not(f)) ans_c = c == And(a,b) ans_d = d == Or(And(a,Not(b),Not(c)), And(Not(a),b,Not(c)), And(Not(a),Not(b),c)) ans_e = e == And(Not(a),Not(b),Not(c),Not(d)) ans_f = f == And(Not(a),Not(b),Not(c),Not(d), Not(e)) constraints = [ans_a, ans_b, ans_c, ans_d, ans_e, ans_f] s = Solver() s.add(constraints)