solidity/test/libsolidity/smtCheckerTests/operators/div_zero.sol
2020-12-09 19:55:18 +01:00

9 lines
216 B
Solidity

pragma experimental SMTChecker;
contract C {
uint z = 0;
uint x = 2 / z;
}
// ----
// Warning 4281: (69-74): CHC: Division by zero happens here.\nCounterexample:\nz = 0, x = 0\n\nTransaction trace:\nconstructor()