summaryrefslogtreecommitdiff
path: root/test/regress/regress0/push-pop
diff options
context:
space:
mode:
authorAndres Nötzli <andres.noetzli@gmail.com>2017-06-22 23:56:45 -0700
committerGitHub <noreply@github.com>2017-06-22 23:56:45 -0700
commitea8e9af7e428930898ba42d9a80ad725dee43cc7 (patch)
tree17a011f5219038cfd80021df9ac18b94910eb641 /test/regress/regress0/push-pop
parent3fe6b54ff58533adf84220bb77dbcac31ad5e157 (diff)
Fix assertion failure due to missing clause id (#180)
This commit fixes bug 821. As written in the description of the bug, the issue is that `id` is not being set on one of the paths in addClause(), specifically in the case where all but one literal are assigned false and the remaining literal is assigned true. In that case, we are not actually adding anything and set the `id` to `ClauseIdUndef`.
Diffstat (limited to 'test/regress/regress0/push-pop')
-rw-r--r--test/regress/regress0/push-pop/Makefile.am3
-rw-r--r--test/regress/regress0/push-pop/bug821.smt28
2 files changed, 10 insertions, 1 deletions
diff --git a/test/regress/regress0/push-pop/Makefile.am b/test/regress/regress0/push-pop/Makefile.am
index 197f81d63..0f2508144 100644
--- a/test/regress/regress0/push-pop/Makefile.am
+++ b/test/regress/regress0/push-pop/Makefile.am
@@ -49,7 +49,8 @@ BUG_TESTS = \
bug765.smt2 \
bug691.smt2 \
bug694-Unapply1.scala-0.smt2 \
- simple_unsat_cores.smt2
+ simple_unsat_cores.smt2 \
+ bug821.smt2
TESTS = $(SMT_TESTS) $(SMT2_TESTS) $(CVC_TESTS) $(BUG_TESTS)
diff --git a/test/regress/regress0/push-pop/bug821.smt2 b/test/regress/regress0/push-pop/bug821.smt2
new file mode 100644
index 000000000..b5371972a
--- /dev/null
+++ b/test/regress/regress0/push-pop/bug821.smt2
@@ -0,0 +1,8 @@
+; COMMAND-LINE: --incremental
+; EXPECT: sat
+(set-logic UF)
+(push 1)
+(declare-fun _substvar_4_ () Bool)
+(assert _substvar_4_)
+(assert _substvar_4_)
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback