solidity/test/libsolidity/smtCheckerTests/operators/div_zero.sol

9 lines
211 B
Solidity
Raw Normal View History

2020-08-11 19:17:02 +00:00
contract C {
uint z = 0;
uint x = 2 / z;
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2020-08-11 19:17:02 +00:00
// ----
2021-03-31 15:11:54 +00:00
// Warning 4281: (36-41): CHC: Division by zero happens here.\nCounterexample:\nz = 0, x = 0\n\nTransaction trace:\nC.constructor()