Skip to content

Commit

Permalink
fixing stupidity in yices translation (add, mul)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dejan Jovanovic committed Apr 15, 2016
1 parent d995eed commit 9738ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smt/yices2/yices2_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ term_t yices2_internal::mk_yices2_term(expr::term_op op, size_t n, term_t* child
case expr::TERM_BV_ADD: {
assert(n >= 2);
result = yices_bvadd(children[0], children[1]);
for (size_t i = 3; i < n; ++ i) {
for (size_t i = 2; i < n; ++ i) {
result = yices_bvadd(result, children[i]);
}
break;
Expand All @@ -184,7 +184,7 @@ term_t yices2_internal::mk_yices2_term(expr::term_op op, size_t n, term_t* child
case expr::TERM_BV_MUL: {
assert(n >= 2);
result = yices_bvmul(children[0], children[1]);
for (size_t i = 3; i < n; ++ i) {
for (size_t i = 2; i < n; ++ i) {
result = yices_bvmul(result, children[i]);
}
break;
Expand Down

0 comments on commit 9738ede

Please sign in to comment.