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

Interval fuzzing no longer works well #460

Closed
agroce opened this issue May 13, 2020 · 3 comments
Closed

Interval fuzzing no longer works well #460

agroce opened this issue May 13, 2020 · 3 comments

Comments

@agroce
Copy link
Contributor

agroce commented May 13, 2020

Given this contract:

pragma solidity ^0.4.0;

contract BlindAuction {
    uint public biddingEnd;

    bool bugged = false;

    modifier onlyBefore(uint _time) { if (now >= _time) throw; _; }

    function BlindAuction(
    ) {
	uint _biddingTime = 30000;
        biddingEnd = now + _biddingTime;
    }

    function bid()
        onlyBefore(biddingEnd)
    {
	bugged = true;
    }

    function echidna_bugged() public returns (bool) {
	return !bugged;
    }
}

echidna 1.4.0.0 release reliably finds a failing test, while latest master (probably after this: https://github.com/crytic/echidna/pull/455/files) does not.

@ggrieco-tob
Copy link
Member

ggrieco-tob commented Jun 24, 2020

I think I know why this fails.

@ggrieco-tob
Copy link
Member

It should be fixed in #469. Please test it.

@ggrieco-tob
Copy link
Member

This should be fixed.

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

No branches or pull requests

2 participants