messages
listlengths 3
3
|
---|
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the account balance of another account with address `_owner`.\n\n``` js\nfunction balanceOf(address _owner) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition tokenBalance == _balances[userAddress_]\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the account balance of another account with address `_owner`.\n\n``` js\nfunction balanceOf(address _owner) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[tokenOwner123] == currentBalance\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the account balance of another account with address `_owner`.\n\n``` js\nfunction balanceOf(address _owner) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition x == _balances[targetAddress]\nfunction balanceOf(address targetAddress) public view returns (uint256 x);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the account balance of another account with address `_owner`.\n\n``` js\nfunction balanceOf(address _owner) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_user] == ownedTokens\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the account balance of another account with address `_owner`.\n\n``` js\nfunction balanceOf(address _owner) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_owner] == balance\nfunction balanceOf(address _owner) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the account balance of another account with address `_owner`.\n\n``` js\nfunction balanceOf(address _owner) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition balance == _balances[addr_]\nfunction balanceOf(address addr_) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nGets the balance of the `_user` account in terms of total tokens owned.\n\n``` js\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition tokenBalance == _balances[userAddress_]\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nGets the balance of the `_user` account in terms of total tokens owned.\n\n``` js\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[tokenOwner123] == currentBalance\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nGets the balance of the `_user` account in terms of total tokens owned.\n\n``` js\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition x == _balances[targetAddress]\nfunction balanceOf(address targetAddress) public view returns (uint256 x);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nGets the balance of the `_user` account in terms of total tokens owned.\n\n``` js\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_user] == ownedTokens\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nGets the balance of the `_user` account in terms of total tokens owned.\n\n``` js\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_owner] == balance\nfunction balanceOf(address _owner) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nGets the balance of the `_user` account in terms of total tokens owned.\n\n``` js\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition balance == _balances[addr_]\nfunction balanceOf(address addr_) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the token balance for targetAddress. Useful for getting the total amount held by a specific account.\n\n``` js\nfunction balanceOf(address targetAddress) public view returns (uint256 x)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition tokenBalance == _balances[userAddress_]\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the token balance for targetAddress. Useful for getting the total amount held by a specific account.\n\n``` js\nfunction balanceOf(address targetAddress) public view returns (uint256 x)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[tokenOwner123] == currentBalance\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the token balance for targetAddress. Useful for getting the total amount held by a specific account.\n\n``` js\nfunction balanceOf(address targetAddress) public view returns (uint256 x)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition x == _balances[targetAddress]\nfunction balanceOf(address targetAddress) public view returns (uint256 x);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the token balance for targetAddress. Useful for getting the total amount held by a specific account.\n\n``` js\nfunction balanceOf(address targetAddress) public view returns (uint256 x)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_user] == ownedTokens\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the token balance for targetAddress. Useful for getting the total amount held by a specific account.\n\n``` js\nfunction balanceOf(address targetAddress) public view returns (uint256 x)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_owner] == balance\nfunction balanceOf(address _owner) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nReturns the token balance for targetAddress. Useful for getting the total amount held by a specific account.\n\n``` js\nfunction balanceOf(address targetAddress) public view returns (uint256 x)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition balance == _balances[addr_]\nfunction balanceOf(address addr_) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nProvides the balance of tokens currently held by `tokenOwner123`.\n\n``` js\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition tokenBalance == _balances[userAddress_]\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nProvides the balance of tokens currently held by `tokenOwner123`.\n\n``` js\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[tokenOwner123] == currentBalance\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nProvides the balance of tokens currently held by `tokenOwner123`.\n\n``` js\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition x == _balances[targetAddress]\nfunction balanceOf(address targetAddress) public view returns (uint256 x);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nProvides the balance of tokens currently held by `tokenOwner123`.\n\n``` js\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_user] == ownedTokens\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nProvides the balance of tokens currently held by `tokenOwner123`.\n\n``` js\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_owner] == balance\nfunction balanceOf(address _owner) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nProvides the balance of tokens currently held by `tokenOwner123`.\n\n``` js\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition balance == _balances[addr_]\nfunction balanceOf(address addr_) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\n- This function outputs the token balance for any address provided, such as `addr_`.\n- It is read-only and doesn't alter the state.\n\n``` js\nfunction balanceOf(address addr_) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition tokenBalance == _balances[userAddress_]\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\n- This function outputs the token balance for any address provided, such as `addr_`.\n- It is read-only and doesn't alter the state.\n\n``` js\nfunction balanceOf(address addr_) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[tokenOwner123] == currentBalance\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\n- This function outputs the token balance for any address provided, such as `addr_`.\n- It is read-only and doesn't alter the state.\n\n``` js\nfunction balanceOf(address addr_) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition x == _balances[targetAddress]\nfunction balanceOf(address targetAddress) public view returns (uint256 x);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\n- This function outputs the token balance for any address provided, such as `addr_`.\n- It is read-only and doesn't alter the state.\n\n``` js\nfunction balanceOf(address addr_) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_user] == ownedTokens\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\n- This function outputs the token balance for any address provided, such as `addr_`.\n- It is read-only and doesn't alter the state.\n\n``` js\nfunction balanceOf(address addr_) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_owner] == balance\nfunction balanceOf(address _owner) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\n- This function outputs the token balance for any address provided, such as `addr_`.\n- It is read-only and doesn't alter the state.\n\n``` js\nfunction balanceOf(address addr_) public view returns (uint256 balance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition balance == _balances[addr_]\nfunction balanceOf(address addr_) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nQueries the number of tokens owned by the address `userAddress_`.\nUse this function to check the holdings of any account.\n\n``` js\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition tokenBalance == _balances[userAddress_]\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nQueries the number of tokens owned by the address `userAddress_`.\nUse this function to check the holdings of any account.\n\n``` js\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[tokenOwner123] == currentBalance\nfunction balanceOf(address tokenOwner123) public view returns (uint256 currentBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nQueries the number of tokens owned by the address `userAddress_`.\nUse this function to check the holdings of any account.\n\n``` js\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition x == _balances[targetAddress]\nfunction balanceOf(address targetAddress) public view returns (uint256 x);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nQueries the number of tokens owned by the address `userAddress_`.\nUse this function to check the holdings of any account.\n\n``` js\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_user] == ownedTokens\nfunction balanceOf(address _user) public view returns (uint256 ownedTokens)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nQueries the number of tokens owned by the address `userAddress_`.\nUse this function to check the holdings of any account.\n\n``` js\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _balances[_owner] == balance\nfunction balanceOf(address _owner) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### balanceOf\n\nQueries the number of tokens owned by the address `userAddress_`.\nUse this function to check the holdings of any account.\n\n``` js\nfunction balanceOf(address userAddress_) public view returns (uint256 tokenBalance)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition balance == _balances[addr_]\nfunction balanceOf(address addr_) public view returns (uint256 balance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_value` amount of tokens from address `_from` to address `_to`, and MUST fire the `Transfer` event.\n\nThe `transferFrom` method is used for a withdraw workflow, allowing contracts to transfer tokens on your behalf.\nThis can be used for example to allow a contract to transfer tokens on your behalf and/or to charge fees in sub-currencies.\nThe function SHOULD `throw` unless the `_from` account has deliberately authorized the sender of the message via some mechanism.\n\n*Note* Transfers of 0 values MUST be treated as normal transfers and fire the `Transfer` event.\n\n``` js\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[h] == __verifier_old_uint(_balances[h]) || ( __verifier_old_uint(_balances[h] == _balances[h] ) - t && h != r ) && h == r)\n/// @notice postcondition ( _balances[r] == __verifier_old_uint(_balances[r]) + t && h != r ) || (_balances[r] == __verifier_old_uint(_balances[r]) && h == r)\n/// @notice postcondition __verifier_old_uint(_allowed[h][msg.sender]) - t == _allowed[h][msg.sender]\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_value` amount of tokens from address `_from` to address `_to`, and MUST fire the `Transfer` event.\n\nThe `transferFrom` method is used for a withdraw workflow, allowing contracts to transfer tokens on your behalf.\nThis can be used for example to allow a contract to transfer tokens on your behalf and/or to charge fees in sub-currencies.\nThe function SHOULD `throw` unless the `_from` account has deliberately authorized the sender of the message via some mechanism.\n\n*Note* Transfers of 0 values MUST be treated as normal transfers and fire the `Transfer` event.\n\n``` js\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[account] == __verifier_old_uint(_balances[account]) || ( __verifier_old_uint(_balances[account] == _balances[account] ) - numTokens && account != _destinationAddress ) && account == _destinationAddress)\n/// @notice postcondition ( _balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) + numTokens && account != _destinationAddress ) || (_balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) && account == _destinationAddress)\n/// @notice postcondition __verifier_old_uint(_allowed[account][msg.sender]) - numTokens == _allowed[account][msg.sender]\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_value` amount of tokens from address `_from` to address `_to`, and MUST fire the `Transfer` event.\n\nThe `transferFrom` method is used for a withdraw workflow, allowing contracts to transfer tokens on your behalf.\nThis can be used for example to allow a contract to transfer tokens on your behalf and/or to charge fees in sub-currencies.\nThe function SHOULD `throw` unless the `_from` account has deliberately authorized the sender of the message via some mechanism.\n\n*Note* Transfers of 0 values MUST be treated as normal transfers and fire the `Transfer` event.\n\n``` js\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_sender] == __verifier_old_uint(_balances[_sender]) || ( __verifier_old_uint(_balances[_sender] == _balances[_sender] ) - _value && _sender != _recipient ) && _sender == _recipient)\n/// @notice postcondition ( _balances[_recipient] == __verifier_old_uint(_balances[_recipient]) + _value && _sender != _recipient ) || (_balances[_recipient] == __verifier_old_uint(_balances[_recipient]) && _sender == _recipient)\n/// @notice postcondition __verifier_old_uint(_allowed[_sender][msg.sender]) - _value == _allowed[_sender][msg.sender]\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_value` amount of tokens from address `_from` to address `_to`, and MUST fire the `Transfer` event.\n\nThe `transferFrom` method is used for a withdraw workflow, allowing contracts to transfer tokens on your behalf.\nThis can be used for example to allow a contract to transfer tokens on your behalf and/or to charge fees in sub-currencies.\nThe function SHOULD `throw` unless the `_from` account has deliberately authorized the sender of the message via some mechanism.\n\n*Note* Transfers of 0 values MUST be treated as normal transfers and fire the `Transfer` event.\n\n``` js\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition ( _balances[_from] == __verifier_old_uint(_balances[_from]) - _value && _from != _to ) || (_balances[_from] == __verifier_old_uint(_balances[_from]) && _from == _to)\n/// @notice postcondition ( _balances[_to] == __verifier_old_uint(_balances[_to]) + _value && _from != _to ) || (_balances[_to] == __verifier_old_uint(_balances[_to]) && _from == _to)\n/// @notice postcondition _allowed[_from][msg.sender] == __verifier_old_uint(_allowed[_from][msg.sender]) - _value\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_value` amount of tokens from address `_from` to address `_to`, and MUST fire the `Transfer` event.\n\nThe `transferFrom` method is used for a withdraw workflow, allowing contracts to transfer tokens on your behalf.\nThis can be used for example to allow a contract to transfer tokens on your behalf and/or to charge fees in sub-currencies.\nThe function SHOULD `throw` unless the `_from` account has deliberately authorized the sender of the message via some mechanism.\n\n*Note* Transfers of 0 values MUST be treated as normal transfers and fire the `Transfer` event.\n\n``` js\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_spender] == __verifier_old_uint(_balances[_spender]) || ( __verifier_old_uint(_balances[_spender] == _balances[_spender] ) - _valueAmount && _spender != _beneficiary ) && _spender == _beneficiary)\n/// @notice postcondition ( _balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) + _valueAmount && _spender != _beneficiary ) || (_balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) && _spender == _beneficiary)\n/// @notice postcondition __verifier_old_uint(_allowed[_spender][msg.sender]) - _valueAmount == _allowed[_spender][msg.sender]\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves `_value` tokens from `_sender` to `_recipient`\n- Emits the `Transfer` event.\n- It transfer tokens on behalf of another address.\n- Relates to `allowance`\n\n``` js\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[h] == __verifier_old_uint(_balances[h]) || ( __verifier_old_uint(_balances[h] == _balances[h] ) - t && h != r ) && h == r)\n/// @notice postcondition ( _balances[r] == __verifier_old_uint(_balances[r]) + t && h != r ) || (_balances[r] == __verifier_old_uint(_balances[r]) && h == r)\n/// @notice postcondition __verifier_old_uint(_allowed[h][msg.sender]) - t == _allowed[h][msg.sender]\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves `_value` tokens from `_sender` to `_recipient`\n- Emits the `Transfer` event.\n- It transfer tokens on behalf of another address.\n- Relates to `allowance`\n\n``` js\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[account] == __verifier_old_uint(_balances[account]) || ( __verifier_old_uint(_balances[account] == _balances[account] ) - numTokens && account != _destinationAddress ) && account == _destinationAddress)\n/// @notice postcondition ( _balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) + numTokens && account != _destinationAddress ) || (_balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) && account == _destinationAddress)\n/// @notice postcondition __verifier_old_uint(_allowed[account][msg.sender]) - numTokens == _allowed[account][msg.sender]\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves `_value` tokens from `_sender` to `_recipient`\n- Emits the `Transfer` event.\n- It transfer tokens on behalf of another address.\n- Relates to `allowance`\n\n``` js\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_sender] == __verifier_old_uint(_balances[_sender]) || ( __verifier_old_uint(_balances[_sender] == _balances[_sender] ) - _value && _sender != _recipient ) && _sender == _recipient)\n/// @notice postcondition ( _balances[_recipient] == __verifier_old_uint(_balances[_recipient]) + _value && _sender != _recipient ) || (_balances[_recipient] == __verifier_old_uint(_balances[_recipient]) && _sender == _recipient)\n/// @notice postcondition __verifier_old_uint(_allowed[_sender][msg.sender]) - _value == _allowed[_sender][msg.sender]\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves `_value` tokens from `_sender` to `_recipient`\n- Emits the `Transfer` event.\n- It transfer tokens on behalf of another address.\n- Relates to `allowance`\n\n``` js\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition ( _balances[_from] == __verifier_old_uint(_balances[_from]) - _value && _from != _to ) || (_balances[_from] == __verifier_old_uint(_balances[_from]) && _from == _to)\n/// @notice postcondition ( _balances[_to] == __verifier_old_uint(_balances[_to]) + _value && _from != _to ) || (_balances[_to] == __verifier_old_uint(_balances[_to]) && _from == _to)\n/// @notice postcondition _allowed[_from][msg.sender] == __verifier_old_uint(_allowed[_from][msg.sender]) - _value\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves `_value` tokens from `_sender` to `_recipient`\n- Emits the `Transfer` event.\n- It transfer tokens on behalf of another address.\n- Relates to `allowance`\n\n``` js\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_spender] == __verifier_old_uint(_balances[_spender]) || ( __verifier_old_uint(_balances[_spender] == _balances[_spender] ) - _valueAmount && _spender != _beneficiary ) && _spender == _beneficiary)\n/// @notice postcondition ( _balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) + _valueAmount && _spender != _beneficiary ) || (_balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) && _spender == _beneficiary)\n/// @notice postcondition __verifier_old_uint(_allowed[_spender][msg.sender]) - _valueAmount == _allowed[_spender][msg.sender]\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves numTokens from account to _destinationAddress.\n- If the account has not granted permission to the caller, the transaction should revert.\n\n\n``` js\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[h] == __verifier_old_uint(_balances[h]) || ( __verifier_old_uint(_balances[h] == _balances[h] ) - t && h != r ) && h == r)\n/// @notice postcondition ( _balances[r] == __verifier_old_uint(_balances[r]) + t && h != r ) || (_balances[r] == __verifier_old_uint(_balances[r]) && h == r)\n/// @notice postcondition __verifier_old_uint(_allowed[h][msg.sender]) - t == _allowed[h][msg.sender]\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves numTokens from account to _destinationAddress.\n- If the account has not granted permission to the caller, the transaction should revert.\n\n\n``` js\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[account] == __verifier_old_uint(_balances[account]) || ( __verifier_old_uint(_balances[account] == _balances[account] ) - numTokens && account != _destinationAddress ) && account == _destinationAddress)\n/// @notice postcondition ( _balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) + numTokens && account != _destinationAddress ) || (_balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) && account == _destinationAddress)\n/// @notice postcondition __verifier_old_uint(_allowed[account][msg.sender]) - numTokens == _allowed[account][msg.sender]\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves numTokens from account to _destinationAddress.\n- If the account has not granted permission to the caller, the transaction should revert.\n\n\n``` js\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_sender] == __verifier_old_uint(_balances[_sender]) || ( __verifier_old_uint(_balances[_sender] == _balances[_sender] ) - _value && _sender != _recipient ) && _sender == _recipient)\n/// @notice postcondition ( _balances[_recipient] == __verifier_old_uint(_balances[_recipient]) + _value && _sender != _recipient ) || (_balances[_recipient] == __verifier_old_uint(_balances[_recipient]) && _sender == _recipient)\n/// @notice postcondition __verifier_old_uint(_allowed[_sender][msg.sender]) - _value == _allowed[_sender][msg.sender]\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves numTokens from account to _destinationAddress.\n- If the account has not granted permission to the caller, the transaction should revert.\n\n\n``` js\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition ( _balances[_from] == __verifier_old_uint(_balances[_from]) - _value && _from != _to ) || (_balances[_from] == __verifier_old_uint(_balances[_from]) && _from == _to)\n/// @notice postcondition ( _balances[_to] == __verifier_old_uint(_balances[_to]) + _value && _from != _to ) || (_balances[_to] == __verifier_old_uint(_balances[_to]) && _from == _to)\n/// @notice postcondition _allowed[_from][msg.sender] == __verifier_old_uint(_allowed[_from][msg.sender]) - _value\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\n- Moves numTokens from account to _destinationAddress.\n- If the account has not granted permission to the caller, the transaction should revert.\n\n\n``` js\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_spender] == __verifier_old_uint(_balances[_spender]) || ( __verifier_old_uint(_balances[_spender] == _balances[_spender] ) - _valueAmount && _spender != _beneficiary ) && _spender == _beneficiary)\n/// @notice postcondition ( _balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) + _valueAmount && _spender != _beneficiary ) || (_balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) && _spender == _beneficiary)\n/// @notice postcondition __verifier_old_uint(_allowed[_spender][msg.sender]) - _valueAmount == _allowed[_spender][msg.sender]\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_valueAmount` from the `_spender` address to `_beneficiary`, typically for payments or withdrawals. This function should emit a `Transfer` event, even if the transferred value is zero.\n\n``` js\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[h] == __verifier_old_uint(_balances[h]) || ( __verifier_old_uint(_balances[h] == _balances[h] ) - t && h != r ) && h == r)\n/// @notice postcondition ( _balances[r] == __verifier_old_uint(_balances[r]) + t && h != r ) || (_balances[r] == __verifier_old_uint(_balances[r]) && h == r)\n/// @notice postcondition __verifier_old_uint(_allowed[h][msg.sender]) - t == _allowed[h][msg.sender]\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_valueAmount` from the `_spender` address to `_beneficiary`, typically for payments or withdrawals. This function should emit a `Transfer` event, even if the transferred value is zero.\n\n``` js\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[account] == __verifier_old_uint(_balances[account]) || ( __verifier_old_uint(_balances[account] == _balances[account] ) - numTokens && account != _destinationAddress ) && account == _destinationAddress)\n/// @notice postcondition ( _balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) + numTokens && account != _destinationAddress ) || (_balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) && account == _destinationAddress)\n/// @notice postcondition __verifier_old_uint(_allowed[account][msg.sender]) - numTokens == _allowed[account][msg.sender]\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_valueAmount` from the `_spender` address to `_beneficiary`, typically for payments or withdrawals. This function should emit a `Transfer` event, even if the transferred value is zero.\n\n``` js\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_sender] == __verifier_old_uint(_balances[_sender]) || ( __verifier_old_uint(_balances[_sender] == _balances[_sender] ) - _value && _sender != _recipient ) && _sender == _recipient)\n/// @notice postcondition ( _balances[_recipient] == __verifier_old_uint(_balances[_recipient]) + _value && _sender != _recipient ) || (_balances[_recipient] == __verifier_old_uint(_balances[_recipient]) && _sender == _recipient)\n/// @notice postcondition __verifier_old_uint(_allowed[_sender][msg.sender]) - _value == _allowed[_sender][msg.sender]\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_valueAmount` from the `_spender` address to `_beneficiary`, typically for payments or withdrawals. This function should emit a `Transfer` event, even if the transferred value is zero.\n\n``` js\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition ( _balances[_from] == __verifier_old_uint(_balances[_from]) - _value && _from != _to ) || (_balances[_from] == __verifier_old_uint(_balances[_from]) && _from == _to)\n/// @notice postcondition ( _balances[_to] == __verifier_old_uint(_balances[_to]) + _value && _from != _to ) || (_balances[_to] == __verifier_old_uint(_balances[_to]) && _from == _to)\n/// @notice postcondition _allowed[_from][msg.sender] == __verifier_old_uint(_allowed[_from][msg.sender]) - _value\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nTransfers `_valueAmount` from the `_spender` address to `_beneficiary`, typically for payments or withdrawals. This function should emit a `Transfer` event, even if the transferred value is zero.\n\n``` js\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_spender] == __verifier_old_uint(_balances[_spender]) || ( __verifier_old_uint(_balances[_spender] == _balances[_spender] ) - _valueAmount && _spender != _beneficiary ) && _spender == _beneficiary)\n/// @notice postcondition ( _balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) + _valueAmount && _spender != _beneficiary ) || (_balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) && _spender == _beneficiary)\n/// @notice postcondition __verifier_old_uint(_allowed[_spender][msg.sender]) - _valueAmount == _allowed[_spender][msg.sender]\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nEnables a contract to move `t` from `h` to `r`, ensuring that a `Transfer` event is emitted. This is useful for scenarios where a contract is authorized to manage user funds.\n\n\n``` js\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[h] == __verifier_old_uint(_balances[h]) || ( __verifier_old_uint(_balances[h] == _balances[h] ) - t && h != r ) && h == r)\n/// @notice postcondition ( _balances[r] == __verifier_old_uint(_balances[r]) + t && h != r ) || (_balances[r] == __verifier_old_uint(_balances[r]) && h == r)\n/// @notice postcondition __verifier_old_uint(_allowed[h][msg.sender]) - t == _allowed[h][msg.sender]\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nEnables a contract to move `t` from `h` to `r`, ensuring that a `Transfer` event is emitted. This is useful for scenarios where a contract is authorized to manage user funds.\n\n\n``` js\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[account] == __verifier_old_uint(_balances[account]) || ( __verifier_old_uint(_balances[account] == _balances[account] ) - numTokens && account != _destinationAddress ) && account == _destinationAddress)\n/// @notice postcondition ( _balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) + numTokens && account != _destinationAddress ) || (_balances[_destinationAddress] == __verifier_old_uint(_balances[_destinationAddress]) && account == _destinationAddress)\n/// @notice postcondition __verifier_old_uint(_allowed[account][msg.sender]) - numTokens == _allowed[account][msg.sender]\nfunction transferFrom(address account, address _destinationAddress, uint256 numTokens) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nEnables a contract to move `t` from `h` to `r`, ensuring that a `Transfer` event is emitted. This is useful for scenarios where a contract is authorized to manage user funds.\n\n\n``` js\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_sender] == __verifier_old_uint(_balances[_sender]) || ( __verifier_old_uint(_balances[_sender] == _balances[_sender] ) - _value && _sender != _recipient ) && _sender == _recipient)\n/// @notice postcondition ( _balances[_recipient] == __verifier_old_uint(_balances[_recipient]) + _value && _sender != _recipient ) || (_balances[_recipient] == __verifier_old_uint(_balances[_recipient]) && _sender == _recipient)\n/// @notice postcondition __verifier_old_uint(_allowed[_sender][msg.sender]) - _value == _allowed[_sender][msg.sender]\nfunction transferFrom(address _sender, address _recipient, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nEnables a contract to move `t` from `h` to `r`, ensuring that a `Transfer` event is emitted. This is useful for scenarios where a contract is authorized to manage user funds.\n\n\n``` js\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition ( _balances[_from] == __verifier_old_uint(_balances[_from]) - _value && _from != _to ) || (_balances[_from] == __verifier_old_uint(_balances[_from]) && _from == _to)\n/// @notice postcondition ( _balances[_to] == __verifier_old_uint(_balances[_to]) + _value && _from != _to ) || (_balances[_to] == __verifier_old_uint(_balances[_to]) && _from == _to)\n/// @notice postcondition _allowed[_from][msg.sender] == __verifier_old_uint(_allowed[_from][msg.sender]) - _value\nfunction transferFrom(address _from, address _to, uint256 _value) public returns (bool success);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### transferFrom\n\nEnables a contract to move `t` from `h` to `r`, ensuring that a `Transfer` event is emitted. This is useful for scenarios where a contract is authorized to manage user funds.\n\n\n``` js\nfunction transferFrom(address h, address r, uint256 t) public returns (bool success)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition (_balances[_spender] == __verifier_old_uint(_balances[_spender]) || ( __verifier_old_uint(_balances[_spender] == _balances[_spender] ) - _valueAmount && _spender != _beneficiary ) && _spender == _beneficiary)\n/// @notice postcondition ( _balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) + _valueAmount && _spender != _beneficiary ) || (_balances[_beneficiary] == __verifier_old_uint(_balances[_beneficiary]) && _spender == _beneficiary)\n/// @notice postcondition __verifier_old_uint(_allowed[_spender][msg.sender]) - _valueAmount == _allowed[_spender][msg.sender]\nfunction transferFrom(address _spender, address _beneficiary, uint256 _valueAmount) public returns (bool s)"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition amountLeft == _allowed[_user][_agent]\nfunction allowance(address _user, address _agent) public view returns (uint256 amountLeft);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_account][_spender] == leftToWithdraw\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_owner][_spender] == remainingFunds\nfunction allowance(address _owner, address _spender) public view returns (uint256 remainingFunds);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_accountHolder][_operator] == withdrawableAmount\nfunction allowance(address _accountHolder, address _operator) public view returns (uint256 withdrawableAmount);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition fundsAvailable == _allowed[_holder][_authorizedUser]\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_controller][_beneficiary] == allowedBalance\nfunction allowance(address _controller, address _beneficiary) public view returns (uint256 allowedBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_holder][_spender] == remaining\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_sender][_receiver] == approvedAmount\nfunction allowance(address _sender, address _receiver) public view returns (uint256 approvedAmount);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_owner][_spender] == remaining\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nReturns the amount which `_spender` is still allowed to withdraw from `_owner`.\n\n``` js\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition remainingBalance == _allowed[_owner][_approvedAddress]\nfunction allowance(address _owner, address _approvedAddress) public view returns (uint256 remainingBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition amountLeft == _allowed[_user][_agent]\nfunction allowance(address _user, address _agent) public view returns (uint256 amountLeft);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_account][_spender] == leftToWithdraw\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_owner][_spender] == remainingFunds\nfunction allowance(address _owner, address _spender) public view returns (uint256 remainingFunds);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_accountHolder][_operator] == withdrawableAmount\nfunction allowance(address _accountHolder, address _operator) public view returns (uint256 withdrawableAmount);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition fundsAvailable == _allowed[_holder][_authorizedUser]\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_controller][_beneficiary] == allowedBalance\nfunction allowance(address _controller, address _beneficiary) public view returns (uint256 allowedBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_holder][_spender] == remaining\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_sender][_receiver] == approvedAmount\nfunction allowance(address _sender, address _receiver) public view returns (uint256 approvedAmount);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_owner][_spender] == remaining\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nRetrieves the current allowance of `_spender` to use from the `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition remainingBalance == _allowed[_owner][_approvedAddress]\nfunction allowance(address _owner, address _approvedAddress) public view returns (uint256 remainingBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition amountLeft == _allowed[_user][_agent]\nfunction allowance(address _user, address _agent) public view returns (uint256 amountLeft);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_account][_spender] == leftToWithdraw\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_owner][_spender] == remainingFunds\nfunction allowance(address _owner, address _spender) public view returns (uint256 remainingFunds);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_accountHolder][_operator] == withdrawableAmount\nfunction allowance(address _accountHolder, address _operator) public view returns (uint256 withdrawableAmount);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition fundsAvailable == _allowed[_holder][_authorizedUser]\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_controller][_beneficiary] == allowedBalance\nfunction allowance(address _controller, address _beneficiary) public view returns (uint256 allowedBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_holder][_spender] == remaining\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_sender][_receiver] == approvedAmount\nfunction allowance(address _sender, address _receiver) public view returns (uint256 approvedAmount);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_owner][_spender] == remaining\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nDisplays how much `_authorizedUser` is permitted to use from `_holder`'s balance.\n\n``` js\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition remainingBalance == _allowed[_owner][_approvedAddress]\nfunction allowance(address _owner, address _approvedAddress) public view returns (uint256 remainingBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition amountLeft == _allowed[_user][_agent]\nfunction allowance(address _user, address _agent) public view returns (uint256 amountLeft);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_account][_spender] == leftToWithdraw\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_owner][_spender] == remainingFunds\nfunction allowance(address _owner, address _spender) public view returns (uint256 remainingFunds);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_accountHolder][_operator] == withdrawableAmount\nfunction allowance(address _accountHolder, address _operator) public view returns (uint256 withdrawableAmount);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition fundsAvailable == _allowed[_holder][_authorizedUser]\nfunction allowance(address _holder, address _authorizedUser) public view returns (uint256 fundsAvailable);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_controller][_beneficiary] == allowedBalance\nfunction allowance(address _controller, address _beneficiary) public view returns (uint256 allowedBalance);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_holder][_spender] == remaining\nfunction allowance(address _holder, address _spender) public view returns (uint256 remaining);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_sender][_receiver] == approvedAmount\nfunction allowance(address _sender, address _receiver) public view returns (uint256 approvedAmount);"
}
] |
[
{
"role": "system",
"content": "You are a coding assistant specialized in generating formal postconditions for ERC interface with solc-verify postconditions annotations."
},
{
"role": "user",
"content": "#### allowance\n\nGet the amount that `_spender` can still spend in the behalf of `_account`.\n\n``` js\nfunction allowance(address _account, address _spender) public view returns (uint256 leftToWithdraw)\n```"
},
{
"role": "assistant",
"content": "/// @notice postcondition _allowed[_owner][_spender] == remaining\nfunction allowance(address _owner, address _spender) public view returns (uint256 remaining);"
}
] |
Subsets and Splits