uncommenting hook for oneUserVotesInCast

This commit is contained in:
Michael M
2021-11-18 16:42:32 +02:00
parent 9f2a672240
commit 0cbb98b92c

View File

@ -25,10 +25,10 @@ ghost hasVoteGhost(uint256) returns uint256 {
init_state axiom forall uint256 pId. hasVoteGhost(pId) == 0;
}
//hook Sstore _proposalVotes[KEY uint256 pId].hasVoted[KEY address user] bool current_voting_State (bool old_voting_state) STORAGE{
// havoc hasVoteGhost assuming forall uint256 p. ((p == pId && current_voting_State && !old_voting_state) ? (hasVoteGhost@new(p) == hasVoteGhost@old(p) + 1) :
// (hasVoteGhost@new(p) == hasVoteGhost@old(p)));
//}
hook Sstore _proposalVotes[KEY uint256 pId].hasVoted[KEY address user] bool current_voting_State (bool old_voting_state) STORAGE{
havoc hasVoteGhost assuming forall uint256 p. ((p == pId && current_voting_State && !old_voting_state) ? (hasVoteGhost@new(p) == hasVoteGhost@old(p) + 1) :
(hasVoteGhost@new(p) == hasVoteGhost@old(p)));
}
ghost sum_all_votes_power() returns uint256 {
init_state axiom sum_all_votes_power() == 0;