Giter VIP home page Giter VIP logo

tutorials-code's Introduction

tutorials-code's People

Contributors

shoham-certora avatar derek-certora avatar urikirsh avatar nd-certora avatar

Stargazers

 avatar  avatar  avatar highskore avatar Sergey avatar Shebin John avatar Guillaume Claret avatar  avatar amusingaxl avatar Jani Anttonen avatar daniell avatar Kiran Kumar avatar  avatar Meek Msaki avatar 0x0918 avatar natzuu avatar

Watchers

 avatar  avatar

tutorials-code's Issues

Bug Coverage

Solution for the prover challenge

Hi!
I submitted a PR #4 with a solution to the challenge. Ran so fast that misplaced where should I put the prover reports and put them in the PR. Pasting them also here:

A run of the new BordaMissingRule.spec on the original Borda.sol that is verified is here

A run of Borda.spec on BordaNewBug.sol showing the existing spec misses the bug is here

Reports of all previously acknowledged bounty specs on BordaNewBug.sol, these specs will be found in the bounty_specs folder: none

A run of BordaMissingRule.spec on BordaNewBug.sol showing your rule catches the bug is here

It was really fun, learned a bunch on CVL grammar and invariant thinking. Thanks a lot :)

Constructor doesn't change state

pr: #22

A run of the new BordaMissingRule.spec on the original Borda.sol that is verified is here

A run of Borda.spec on BordaNewBug.sol showing the existing spec misses the bug is here

Reports of all previously acknowledged bounty specs on BordaNewBug.sol: included in the above verification, see votedFunctionIsVotedMapping, preferLastVotedHigh and onlyVotingCanChangeTheWinner.

A run of BordaMissingRule.spec on BordaNewBug.sol showing your rule catches the bug is here

Thanks!

Winner manipulation spec

Hi, displaying info below:

pr: #12

A run of the new BordaMissingRule.spec on the original Borda.sol that is verified is here

A run of Borda.spec on BordaNewBug.sol showing the existing spec misses the bug is here

Reports of all previously acknowledged bounty specs on BordaNewBug.sol, these specs will be found in the bounty_specs folder: included in the previous verification, see votedFunctionIsVotedMapping

A run of BordaMissingRule.spec on BordaNewBug.sol showing your rule catches the bug is here

Thanks for the challenge again!

Forbid view function reverts

Hi, displaying info below:

pr: #16

A run of the new BordaMissingRule.spec on the original Borda.sol that is verified is here

A run of Borda.spec on BordaNewBug.sol showing the existing spec misses the bug is here

Reports of all previously acknowledged bounty specs on BordaNewBug.sol: included in the above verification, see votedFunctionIsVotedMapping, preferLastVotedHigh and onlyVotingCanChangeTheWinner.

A run of BordaMissingRule.spec on BordaNewBug.sol showing your rule catches the bug is here

Thanks for the challenge yet again!

Constructor ghost corruption

pr: #20

A run of the new BordaMissingRule.spec on the original Borda.sol that is verified is here

A run of Borda.spec on BordaNewBug.sol showing the existing spec misses the bug is here

Reports of all previously acknowledged bounty specs on BordaNewBug.sol: included in the above verification, see votedFunctionIsVotedMapping, preferLastVotedHigh, onlyVotingCanChangeTheWinner and viewNeverRevert.

A run of BordaMissingRule.spec on BordaNewBug.sol showing your rule catches the bug is here

Really hope this one is interesting. Definitely check out the description in the pr!

Missing spec

Missing specs ensures that we can have more than one voter
Buggy contract enforce only one voter, the cheater that can vote for himself
Existing oneCanVote did not catch this bug

Missing spec : #18

A run of the new BordaMissingRule.spec on the original Borda.sol that is verified
https://prover.certora.com/output/88083/ee33b030b2f346968a6e75a7ebd389bc/?anonymousKey=832264b21688ea4c31b2c6bcd26e20011b251bb4

A run of Borda.spec on BordaNewBug.sol showing the existing spec misses the bug
https://prover.certora.com/output/88083/1d302e93e9ea43ba8fe8366f86984e71/?anonymousKey=ce8882019f6167ff1ff0243fcd6708ca9654e889

A run of BordaMissingRule.spec on BordaNewBug.sol showing your rule catches the bug
https://prover.certora.com/output/88083/6ee308b0f0c14987aaf5c215e10874e2/?anonymousKey=0f97fbf396b84bd42090d0ad47b2144c341c1d80

Missing Spec for BordaNewBug

Missing Spec Challenge

pointsOfWinner not sync with points of winner

A run of the new BordaMissingRule.spec on the original Borda.sol that is verified
https://prover.certora.com/output/738862/2cc3abb2da82413ca269ee65d7b29d0a?anonymousKey=c0979cf572194bb4629657192c849ba54d61c6fc
I am not sure about this one,maybe it's Certora's bug?Because there's no place to set pointsOfWinner

A run of Borda.spec on BordaNewBug.sol showing the existing spec misses the bug
https://prover.certora.com/output/738862/82ed220f31a2486c9db0822b8f142a9b?anonymousKey=f7312a8b2f71bb5d4b3ea84c54d1ca13887082eb

A run of BordaMissingRule.spec on BordaNewBug.sol showing your rule catches the bug
https://prover.certora.com/output/738862/398479f4d55846dfb15357b979df22ca?anonymousKey=8af8a5216248987b9d413ffcff06463941faee87

pr is this #24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.