The function as-cnf first removes any implication, distributes (not wff) applying De Morgan's laws, removes double negations and finally distributes ORs over ANDs.
This C++ code is designed to analyze and process logical (propositional) formulas, with the ultimate goal of generating a truth table and constructing the Conjunctive Normal Form (CNF) and Disjunctive ...
Abstract: In this paper, we introduce an automated conversion-verification methodology to convert a Directed Formula (DF) into a Conjunctive Normal Form (CNF) formula that can be fed to a SAT solver.