Git Product home page Git Product logo

Comments (7)

dagit avatar dagit commented on September 23, 2024

After some more debugging (using asserts in the concrete syntax, and no function call to inline) we still see the issue, but commenting out the inner most if-statement the model checker can find a proof.

from ivory.

gridaphobe avatar gridaphobe commented on September 23, 2024

It's been a while since I looked at the model checker, but this line

sets_ (\s -> s { symCond = b })

looks suspicious to me.

It should probably be sets_ (\s -> s { symCond = b' &&. b }) to track nested if-statements, which is exactly the scenario here.

from ivory.

dagit avatar dagit commented on September 23, 2024

Thanks, you're probably right but I just tried it and I'm still getting unsafe. We'll dig deeper tomorrow.

Thanks!

from ivory.

elliottt avatar elliottt commented on September 23, 2024

Ah, @leepike and I had talked about the nested if stuff, but we must have never made the change that @gridaphobe mentioned above.

from ivory.

gridaphobe avatar gridaphobe commented on September 23, 2024

Actually, that's probably a separate bug. Digging in a bit more I noticed a few things

  1. These two assertions correspond to the two branches of the inner if-statement, but the 2nd refers to the variable set by the first. That's totally bogus!
ASSERT ((deref2 + 25) < deref4) => (mc_2var0 = (mc_1var0 WITH .mp := deref2 + 25)) ;     % [ No location available ];
ASSERT (NOT ((deref2 + 25) < deref4)) => (mc_3var0 = (mc_2var0 WITH .mp := deref4)) ;    % [ No location available ];

If you rewrite the 2nd line to

ASSERT (NOT ((deref2 + 25) < deref4)) => (mc_3var0 = (mc_1var0 WITH .mp := deref4)) ;    % [ No location available ];

the query is valid.

  1. My copy of cvc 1.4 choked on mc_1var0 WITH .mp := deref2 + 25, it seemed to want extra parentheses around deref2 + 25.

from ivory.

gridaphobe avatar gridaphobe commented on September 23, 2024

So this is a bug in the translation to cvc4. We need to restore the latest references when we return from inBranch.

from ivory.

leepike avatar leepike commented on September 23, 2024

Closing this, as we're rewriting the model checker (@eddywestbook).

from ivory.

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.