solidity/test/libsolidity/smtCheckerTests/operators/div_zero.sol
2021-04-08 21:03:39 +02:00

9 lines
211 B
Solidity

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