[Eva] Emits alarms on a%b when a/b overflows.
According to the C standard, section 6.5.5 §6: "If the quotient a/b is representable, the expression (a/b)*b + a%b shall equal a; otherwise, the behavior of both a/b and a%b is undefined."
Showing
- src/plugins/eva/ast/eva_ast_builder.ml 1 addition, 0 deletionssrc/plugins/eva/ast/eva_ast_builder.ml
- src/plugins/eva/ast/eva_ast_builder.mli 1 addition, 0 deletionssrc/plugins/eva/ast/eva_ast_builder.mli
- src/plugins/eva/engine/evaluation.ml 20 additions, 4 deletionssrc/plugins/eva/engine/evaluation.ml
- tests/value/modulo.i 3 additions, 1 deletiontests/value/modulo.i
- tests/value/oracle/addition.res.oracle 7 additions, 2 deletionstests/value/oracle/addition.res.oracle
- tests/value/oracle/modulo.res.oracle 27 additions, 19 deletionstests/value/oracle/modulo.res.oracle
- tests/value/oracle_equality/addition.res.oracle 8 additions, 7 deletionstests/value/oracle_equality/addition.res.oracle
Loading
Please register or sign in to comment