To print a formula as in Conjunctive Normal Form. >>> str(Formula([Clause(["A1", "A2'", "A3"]), Clause(["A5'", "A2'", "A1"])])) "{{A1 , A2' , A3} , {A5' , A2' , A1}}"
(self)
| 111 | self.clauses = list(clauses) |
| 112 | |
| 113 | def __str__(self) -> str: |
| 114 | """ |
| 115 | To print a formula as in Conjunctive Normal Form. |
| 116 | |
| 117 | >>> str(Formula([Clause(["A1", "A2'", "A3"]), Clause(["A5'", "A2'", "A1"])])) |
| 118 | "{{A1 , A2' , A3} , {A5' , A2' , A1}}" |
| 119 | """ |
| 120 | return "{" + " , ".join(str(clause) for clause in self.clauses) + "}" |
| 121 | |
| 122 | |
| 123 | def generate_clause() -> Clause: |
nothing calls this directly
no outgoing calls
no test coverage detected