* Move algorithm into ManticoreEVM * Rm buggy unused line * Initial eth testing setup * Check for overflow in mul also * clarifying comment * Install solc for travis * Add sudo * x * Rm travis_retry, since we rarely actually use it, and it's not available in this script for some reason * Check for specific findings * Fix test * Clean up transaction firing logic * Use less strict check, better for floating point
13 lines
275 B
Solidity
13 lines
275 B
Solidity
contract IntOverflowUnderflow {
|
|
function intoverflow_add(uint input) {
|
|
uint local = input + 1;
|
|
}
|
|
|
|
function intoverflow_mul(uint input) {
|
|
uint local = input * 2;
|
|
}
|
|
|
|
function intunderflow(uint input) {
|
|
uint local = input - 1;
|
|
}
|
|
} |