GithubHelp home page GithubHelp logo

Comments (5)

blperez01 avatar blperez01 commented on May 17, 2024

Weird aspect of this bug, the following function fails:

  function echidna_true() returns (bool) {
    xs.push(new A());
    b.f();
    return true;
  }

But switching the order of the push and call to f() works

  function echidna_true() returns (bool) {
    b.f();
    xs.push(new A());
    return true;
  }

(this is all assuming the add function is commented out)

from echidna.

ggrieco-tob avatar ggrieco-tob commented on May 17, 2024

A simplified version of this example:

contract B {
  int x;
  function f() returns (int) {
    return x;
  }
}

contract TEST {

  B b = new B();

  function g() public {
    return;
  }

  function echidna_true() returns (bool) {
    var x = b.f();
    return true;
  }
}

from echidna.

ggrieco-tob avatar ggrieco-tob commented on May 17, 2024

Using the last release of hevm (available in branch updated-hevm) solves this issue!

from echidna.

ggrieco-tob avatar ggrieco-tob commented on May 17, 2024

@andremarianiello created PR #141 to migrate to hevm-0.21 using stack. It should solve this issue.

from echidna.

ggrieco-tob avatar ggrieco-tob commented on May 17, 2024

Not longer failing in master, since we are using hevm-0.21.

from echidna.

Related Issues (20)

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.