Hi,
I read a research paper for verification and validation of solidity code. It uses F* (F-star). However, it has to convert the solidity code into F-star. I cant find the converter. Can some body please guide me how to manually test the code? Code is given below:
A quick response is really appreciated.
Zulfi.
I read a research paper for verification and validation of solidity code. It uses F* (F-star). However, it has to convert the solidity code into F-star. I cant find the converter. Can some body please guide me how to manually test the code? Code is given below:
Code:
contract MyBank {
mapping (address)==>uint) balances;
function Deposit() {
balances[msg.sender] += msg.value;
}|
function Withdraw(uint amount) {
if(balances[msg.sender] >=amount) {
msg.sender.send(amount);
balances[msg.sender] -= amount;
}
}
function Balance() constant returns(uint) {
return balances[msg.sender];
}
Zulfi.