summaryrefslogtreecommitdiff
path: root/src/theory/sets
diff options
context:
space:
mode:
authorAndres Noetzli <noetzli@stanford.edu>2017-05-15 09:50:45 -0700
committerAndres Noetzli <noetzli@stanford.edu>2017-05-15 09:50:45 -0700
commitfdef54aaa36793cb9314dea3830879e051db2aa8 (patch)
treee891a13b92dd42ad578b90340e61637f3651ace4 /src/theory/sets
parent84af3731aa40e2e6f9281827af87350a2cb44ea1 (diff)
Fix minor bug in sets rewriter
As reported by Coverity, one of the switches in the sets rewriter had a missing break. This could lead to an assertion failure when rewriting the cardinality of a transpose as in the test case included in this commit.
Diffstat (limited to 'src/theory/sets')
-rw-r--r--src/theory/sets/theory_sets_rewriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/theory/sets/theory_sets_rewriter.cpp b/src/theory/sets/theory_sets_rewriter.cpp
index 3590fc62d..e42a3347d 100644
--- a/src/theory/sets/theory_sets_rewriter.cpp
+++ b/src/theory/sets/theory_sets_rewriter.cpp
@@ -328,6 +328,7 @@ RewriteResponse TheorySetsRewriter::postRewrite(TNode node) {
NodeManager::currentNM()->mkNode( kind::CARD, NodeManager::currentNM()->mkNode( kind::INTERSECTION, node[0][0], node[0][1] ) ) );
return RewriteResponse(REWRITE_DONE, ret );
}
+ break;
}
case kind::TRANSPOSE: {
if(node[0].getKind() == kind::TRANSPOSE) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback