Logic to CNF converter and SAT checker written for the 2nd year Computer Science Reasoning module.
All expressions should be given in the following form:
The unary operators are as follows (precedence decreasing downwards). NB: unary operators have higher precedence than any binary operators.
- : Negation
The accepted binary operators are as follows (precedence decreasing downwards)
& : Conjunction
| : Disjunction
-> : Implication
<-> : Equality
bash satcheck.sh cnf <expression>
bash satcheck.sh res <expression>
bash satcheck.sh dpll <expression>
bash satcheck.sh cmp <expression>
All output will be in the output.txt file.