My contract successfully compiles on truffle, and the code doesn't exhibit any problems during unit testing. Below are the faulty command and code:
COMMAND LINE:
$ VeriSol /home/user/work/verisol/ManicatoTokenVeriSol.sol ManicatoToken
Command line args = {/home/user/work/verisol/ManicatoTokenVeriSol.sol, ManicatoToken}
SpecFilesDir = /home/user/work/verisol
... running Solc on /home/user/work/verisol/ManicatoTokenVeriSol.sol
... running SolToBoogie to translate Solidity to Boogie
Warning: A mapping with complex value type allowances of valuetype mapping (address => uint256)
VeriSol translation error: File /home/user/work/verisol/ManicatoTokenVeriSol.sol, Line 475, Contract ManicatoToken, Function transfer:: Expecting a call of the form e.send/e.transfer/e.call, but found transfer(msg.sender, _to, _value)....
My contract successfully compiles on truffle, and the code doesn't exhibit any problems during unit testing. Below are the faulty command and code:
COMMAND LINE:
$ VeriSol /home/user/work/verisol/ManicatoTokenVeriSol.sol ManicatoToken Command line args = {/home/user/work/verisol/ManicatoTokenVeriSol.sol, ManicatoToken} SpecFilesDir = /home/user/work/verisol ... running Solc on /home/user/work/verisol/ManicatoTokenVeriSol.sol ... running SolToBoogie to translate Solidity to Boogie Warning: A mapping with complex value type allowances of valuetype mapping (address => uint256) VeriSol translation error: File /home/user/work/verisol/ManicatoTokenVeriSol.sol, Line 475, Contract ManicatoToken, Function transfer:: Expecting a call of the form e.send/e.transfer/e.call, but found transfer(msg.sender, _to, _value)....
CODE (buggy line in bold):
...
function transfer(address _from, address _to, uint256 _value) internal returns (bool success){
...