diff options
author | Andres Noetzli <noetzli@stanford.edu> | 2017-05-15 09:50:45 -0700 |
---|---|---|
committer | Andres Noetzli <noetzli@stanford.edu> | 2017-05-15 09:50:45 -0700 |
commit | fdef54aaa36793cb9314dea3830879e051db2aa8 (patch) | |
tree | e891a13b92dd42ad578b90340e61637f3651ace4 /src | |
parent | 84af3731aa40e2e6f9281827af87350a2cb44ea1 (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')
-rw-r--r-- | src/theory/sets/theory_sets_rewriter.cpp | 1 |
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) { |