Skip to content

Commit

Permalink
fix #4910
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Dec 20, 2020
1 parent 8cb1dd2 commit 8e0a2c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ast/rewriter/pb2bv_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ struct pb2bv_rewriter::imp {
if (g.is_one())
return;
}
if (g.is_zero())
return;
switch (is_le) {
case l_undef:
if (!k.is_int())
Expand All @@ -123,7 +125,7 @@ struct pb2bv_rewriter::imp {
return;
k /= g;
break;
case l_true:
case l_true:
k /= g;
k = floor(k);
break;
Expand Down

0 comments on commit 8e0a2c9

Please sign in to comment.