You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The % operation is not obvious in the history of languages, e.g.:
In Python % is Mod
In Java % is Rem
The concern is that if %Int operation is implemented in K using the % in an underlying language - IELE might return different results for mod operation on different backends. Imo, there need to be strict guarantees on the mod operation contract, describing how exactly mod should work, backend-agnostic.
The text was updated successfully, but these errors were encountered:
Hello! Not to be nitpicking, but
mod
expression actually performsrem
operation :)(https://i.imgur.com/6KC2rQk.png)
Mod
andRem
are not the sameAt the moment
mod
performs "remainder" operation, not "modulo". This might cause problems.Concern
Mod
rule implemented using the internal%Int
operation:(https://github.com/runtimeverification/iele-semantics/blob/master/iele.md#expressions)
The
%
operation is not obvious in the history of languages, e.g.:%
isMod
%
isRem
The concern is that if
%Int
operation is implemented in K using the%
in an underlying language - IELE might return different results formod
operation on different backends. Imo, there need to be strict guarantees on themod
operation contract, describing how exactlymod
should work, backend-agnostic.The text was updated successfully, but these errors were encountered: