Skip to content

Commit 93004a9

Browse files
fix #4225
1 parent bbaedbc commit 93004a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/nlsat/nlsat_solver.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,10 +947,13 @@ namespace nlsat {
947947
}
948948

949949
void mk_clause(unsigned num_lits, literal const * lits, assumption a) {
950-
SASSERT(num_lits > 0);
951950
_assumption_set as = nullptr;
952951
if (a != nullptr)
953952
as = m_asm.mk_leaf(a);
953+
if (num_lits == 0) {
954+
num_lits = 1;
955+
lits = &false_literal;
956+
}
954957
mk_clause(num_lits, lits, false, as);
955958
}
956959

0 commit comments

Comments
 (0)