You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the return value is unnamed, the left side of the equality sign in the counterexample appears empty.
contractC {
function f(uint256value) publicpayablereturns(bool) {
value = value / value;
}
}
Compiled with solc --model-checker-engine all a.sol:
Warning: CHC: Division by zero happens here.
Counterexample:
value = 0
= false // The left side of the equality sign here is empty.
Transaction trace:
C.constructor()
C.f(0){ msg.value: 19 }
--> out.sol:3:13:
|
3 | value = value / value;
| ^^^^^^^^^^^^^
Environment
Compiler version: 0.8.26
The text was updated successfully, but these errors were encountered:
Description
When the return value is unnamed, the left side of the equality sign in the counterexample appears empty.
Compiled with
solc --model-checker-engine all a.sol
:Environment
The text was updated successfully, but these errors were encountered: