{"action":"closed","issue":{"url":"https://api.github.com/repos/trailofbits/echidna/issues/46","repository_url":"https://api.github.com/repos/trailofbits/echidna","labels_url":"https://api.github.com/repos/trailofbits/echidna/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/trailofbits/echidna/issues/46/comments","events_url":"https://api.github.com/repos/trailofbits/echidna/issues/46/events","html_url":"https://github.com/trailofbits/echidna/issues/46","id":322380942,"number":46,"title":"Inconsistent test results in a simple contract","user":{"login":"ggrieco-tob","id":31542053,"avatar_url":"https://avatars2.githubusercontent.com/u/31542053?v=4","gravatar_id":"","url":"https://api.github.com/users/ggrieco-tob","html_url":"https://github.com/ggrieco-tob","followers_url":"https://api.github.com/users/ggrieco-tob/followers","following_url":"https://api.github.com/users/ggrieco-tob/following{/other_user}","gists_url":"https://api.github.com/users/ggrieco-tob/gists{/gist_id}","starred_url":"https://api.github.com/users/ggrieco-tob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggrieco-tob/subscriptions","organizations_url":"https://api.github.com/users/ggrieco-tob/orgs","repos_url":"https://api.github.com/users/ggrieco-tob/repos","events_url":"https://api.github.com/users/ggrieco-tob/events{/privacy}","received_events_url":"https://api.github.com/users/ggrieco-tob/received_events","type":"User","site_admin":false},"labels":[{"id":677712968,"url":"https://api.github.com/repos/trailofbits/echidna/labels/bug","name":"bug","color":"ee0701","default":true},{"id":677712971,"url":"https://api.github.com/repos/trailofbits/echidna/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-11T17:50:57Z","updated_at":"2018-05-25T17:44:46Z","closed_at":"2018-05-25T17:44:46Z","author_association":"CONTRIBUTOR","body":"In this simple contract:\r\n\r\n```solidity\r\ncontract TEST {\r\n  function f(bytes1 x) returns (bool) {\r\n        return true;\r\n  }\r\n\r\n  function echidna_true() returns (bool) {\r\n    return true;\r\n  }\r\n}\r\n```\r\nthe echidna_true test cannot fail. However the last revision of Echidna reports a failed test when **it runs more than one epoch**. For instance:\r\n\r\n```bash\r\n$ echidna-test test.sol --epochs 10\r\n━━━ test.sol ━━━\r\n  ✓ \"echidna_true\" passed 1000 tests.\r\n  ✓ 1 succeeded.\r\n━━━ test.sol ━━━\r\n  ✗ \"echidna_true\" failed after 14 tests and 1 shrink.\r\n  \r\n      │ Call sequence: f(\"\");\r\n  \r\n  ✗ 1 failed.\r\n━━━ test.sol ━━━\r\n  ⚐ \"echidna_true\" gave up after 100 discards, passed 762 tests.\r\n  ⚐ 1 gave up.\r\n━━━ test.sol ━━━\r\n  ✗ \"echidna_true\" failed after 20 tests and 2 shrinks.\r\n  \r\n      │ Call sequence: f(\"\");\r\n  \r\n  ✗ 1 failed.\r\n  ...\r\n```"}}
{"actor":{"display_login":"blperez01"}}