solidity/test/libsolidity/smtCheckerTests/operators/div_zero.sol
2022-04-01 23:41:18 -05:00

9 lines
219 B
Solidity

contract C {
uint z = 0;
uint x = 2 / z;
}
// ====
// SMTEngine: all
// ----
// Warning 4281: (36-41='2 / z'): CHC: Division by zero happens here.\nCounterexample:\nz = 0, x = 0\n\nTransaction trace:\nC.constructor()