Skip to content

Commit 2cf5418

Browse files
committed
add a comment on mod_exprt
1 parent 1027f98 commit 2cf5418

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/util/std_expr.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,10 @@ inline div_exprt &to_div_expr(exprt &expr)
10431043
return ret;
10441044
}
10451045

1046-
1047-
/// \brief Modulo
1046+
/// \brief Modulo defined as lhs-(rhs * truncate(lhs/rhs)).
1047+
/// The sign follows the lhs or dividend. This matches C99 and
1048+
/// SMT-LIB's bvsrem but differs from the Euclidian definition
1049+
/// and from SMT-LIB's bvsmod.
10481050
class mod_exprt:public binary_exprt
10491051
{
10501052
public:

0 commit comments

Comments
 (0)