summaryrefslogtreecommitdiff
path: root/src/prop/cnf_stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/prop/cnf_stream.cpp')
-rw-r--r--src/prop/cnf_stream.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/prop/cnf_stream.cpp b/src/prop/cnf_stream.cpp
index 44768009e..611689c2b 100644
--- a/src/prop/cnf_stream.cpp
+++ b/src/prop/cnf_stream.cpp
@@ -113,15 +113,12 @@ SatLiteral TseitinCnfStream::handleAtom(TNode node) {
bool theoryLiteral = node.getKind() != kind::VARIABLE;
SatLiteral lit = newLiteral(node, theoryLiteral);
- switch(node.getKind()) {
- case TRUE:
- assertClause(lit);
- break;
- case FALSE:
- assertClause(~lit);
- break;
- default:
- break;
+ if(node.getKind() == kind::CONST_BOOLEAN) {
+ if(node.getConst<bool>()) {
+ assertClause(lit);
+ } else {
+ assertClause(~lit);
+ }
}
return lit;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback