Skip to content

Commit 163dfb3

Browse files
author
Daniel Kroening
committed
fix division by zero comment
1 parent f185cfd commit 163dfb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/solvers/flattening/bv_utils.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,8 +1393,9 @@ void bv_utilst::unsigned_divider(
13931393

13941394
// Division by zero test.
13951395
// Note that we produce a non-deterministic result in
1396-
// case of division by zero. SMT-LIB now says that the
1397-
// result shall be zero.
1396+
// case of division by zero. SMT-LIB now says the following:
1397+
// bvudiv returns a vector of all 1s if the second operand is 0
1398+
// bvurem returns its first operand if the second operand is 0
13981399

13991400
literalt is_not_zero=prop.lor(op1);
14001401

0 commit comments

Comments
 (0)