Skip to content

Commit 2211b03

Browse files
committed
add a comment on mod_exprt
1 parent 1027f98 commit 2211b03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/std_expr.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,10 @@ inline div_exprt &to_div_expr(exprt &expr)
10441044
}
10451045

10461046

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

0 commit comments

Comments
 (0)