Closed
Description
To deal with integer arithmetic overflow we do the following:
- add checked integer arithmetic intrinsics named
checked_add
,checked_mul
, etc. - have a compiler switch that uses these everywhere.
- write a
@check_overflow
macro that transforms an expression to turn*
intochecked_mul
and+
intochecked_add
, etc., but only in the expression — called functions are on their own.
Metadata
Metadata
Assignees
Labels
No labels