Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to borda #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

peritoflores
Copy link

@peritoflores peritoflores commented Sep 28, 2023

Hi this is my solution
I created the following function to let anyone switch the winner of the election.
function switchWinner(address newWinner) external { require (points(newWinner)>=points(_winner)); _winner = newWinner; }
Runs are...
Missing rule passes in the original
https://prover.certora.com/output/789757/b30ccb57518948f2ad38235950696af3/?anonymousKey=6d492176f7ea351cc4837225c06f23326c3f7af6

Missing rule catches the bug in buggy file.

https://prover.certora.com/output/789757/a81e37c6576b47648ffabb9f063c6eae/?anonymousKey=787bf75ee50047629edb73590e0e70417f152e4d

Original Rule passes the buggy file

https://prover.certora.com/output/789757/28a5f6f2c41c4783a7ff23a4715160e5/?anonymousKey=4227fc8328299e06e0658e930fa2329e27db1604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants