Z3 satisfiability model for CSC410