Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed May 2, 2021
1 parent 0810720 commit 51a4db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ast/euf/euf_etable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace euf {
void * etable::mk_table_for(unsigned arity, func_decl * d) {
void * r;
SASSERT(d->get_arity() >= 1);
SASSERT(arity >= d->get_arity());
SASSERT(arity >= d->get_arity() || d->is_associative());
switch (arity) {
case 1:
r = TAG(void*, alloc(unary_table), UNARY);
Expand Down
2 changes: 1 addition & 1 deletion src/math/lp/lp_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace lp_api {
lp::constraint_index get_constraint(bool b) const { return m_constraints[b]; }

inf_rational get_value(bool is_true) const {
if (is_true == !get_lit().sign())
if (is_true != get_lit().sign())
return inf_rational(m_value); // v >= value or v <= value
if (m_is_int) {
SASSERT(m_value.is_int());
Expand Down

0 comments on commit 51a4db8

Please sign in to comment.