You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a cool idea, but the spec doesn't pass for me for the original Borda contract (in case above a sanity check failed, those happen weirdly too often with advanced sanity checks…)
You're right, my bad, I ended up pushing a version of the spec where I was testing a bidirectional assertion. Can you try it again with one direction ?
EDIT :
Alternatively, you can also make the bidirectional assertion work by excluding the scenario where one of the voted addresses is the current winner :
Activity
Czar102 commentedon Sep 27, 2023
That's a cool idea, but the spec doesn't pass for me for the original
Bordacontract (in case above a sanity check failed, those happen weirdly too often with advanced sanity checks…)imsrybr0 commentedon Sep 27, 2023
You're right, my bad, I ended up pushing a version of the spec where I was testing a bidirectional assertion. Can you try it again with one direction ?
EDIT :
Alternatively, you can also make the bidirectional assertion work by excluding the scenario where one of the voted addresses is the current winner :
BordaMissingRule.speconBordaNewBug.sol: https://prover.certora.com/output/33434/66897f307df7434dbcdbfeb03b7449d7/?anonymousKey=2251d7073b13a48c5b2c0a0a15a761e6fbb13e77BordaMissingRule.specon the originalBorda.sol: https://prover.certora.com/output/33434/5dab7bac84e84517b3a8a11da7d0060b/?anonymousKey=c0fc2b49c30730275a24f1b0ccfba0b6d83677f3Czar102 commentedon Sep 28, 2023
Because this didn't work for me, I made #12 instead. Would you agree that it's more general?
imsrybr0 commentedon Sep 28, 2023
Both of the rules above work (you can check the runs for more details). Can you share links to runs where it didn't work for you?
As for your rule set, I tried it and it seems to catch the bug introduced by my mutation as well 👍
nd-certora commentedon Sep 28, 2023
Nice work, this is missing spec #2.