mirror of https://github.com/ConsenSys/mythril
blockchainethereumsmart-contractssoliditysecurityprogram-analysissecurity-analysissymbolic-execution
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
278 B
22 lines
278 B
3 years ago
|
pragma solidity ^0.8.0;
|
||
|
|
||
|
|
||
|
contract Exceptions {
|
||
|
|
||
|
uint val;
|
||
|
|
||
|
function change_val() public {
|
||
|
val = 1;
|
||
|
}
|
||
|
function assert1() public pure {
|
||
|
uint256 i = 1;
|
||
|
assert(i == 0);
|
||
|
}
|
||
|
|
||
|
function fail() public view {
|
||
|
assert(val==2);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|