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
404 B
22 lines
404 B
11 months ago
|
contract B{
|
||
|
uint x=0;
|
||
|
function incr() public returns(uint){
|
||
|
require(x==0);
|
||
|
x += 1;
|
||
|
}
|
||
|
function incr2() public payable returns(uint){
|
||
|
require(x==1);
|
||
|
x += 1;
|
||
|
|
||
|
}
|
||
|
function continous_incr() public payable returns(uint){
|
||
|
require(x>=2);
|
||
|
x += 1;
|
||
|
}
|
||
|
|
||
|
function destroy() public returns(uint){
|
||
|
selfdestruct(msg.sender);
|
||
|
}
|
||
|
}
|
||
|
|