Skip to content

Commit

Permalink
fix rewriting of power
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Nov 9, 2020
1 parent 7d205f1 commit f78980c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/rewriter/arith_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ br_status arith_rewriter::mk_power_core(expr * arg1, expr * arg2, expr_ref & res

TRACE("arith", tout << mk_pp(arg1, m()) << " " << mk_pp(arg2, m()) << "\n";);
if (is_num_x && x.is_one()) {
result = m_util.mk_numeral(rational(0), false);
result = m_util.mk_numeral(x, false);
return BR_DONE;
}

Expand Down

0 comments on commit f78980c

Please # to comment.