flux: Flux (ultimately z3) hangs on trivial constraint.

@ranjitjhala, here’s the constraint from exception_entry that hangs in z3.

l.smt2.txt

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (13 by maintainers)

Most upvoted comments

@ranjitjhala @nilehmann - I think we can close this? This is now checking in what I’d say is a reasonable amount of time.

I also manually patched flux to run fixpoint --solver=cvc5 on my machine. It checks the trivial constraint in 1 second 😃 Screenshot 2024-12-17 at 10 26 03 AM

@ranjitjhala, I patched up liquid fixpoint so that I could run it like so fixpoint --solver=cvc5. I created a pr for that here.

I’ll work on adding a flag for cvc5

So the only one we’re really blocked on is the one where fixpoint hangs? (For the others maybe the fastest thing for now is to add a flag specifying extra fixpoint flags — eg SMT solver — to use when checking the function?)

  • Ranjit.

On Tue, Dec 17, 2024 at 10:12 AM Ranjit Jhala @.***> wrote:

Wow. Ok maybe we should post it as is to the z3 people 😃

  • Ranjit.

On Tue, Dec 17, 2024 at 10:08 AM Vivien Rindisbacher < @.***> wrote:

Ya - it smashes the whole smt2 file in less than a second…

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/flux-rs/flux/issues/949*issuecomment-2549224869__;Iw!!Mih3wA!EC8TiHJNVC75KImFAcp6SWqxk_ncRKFsTjpGiWkowmdMro0-byb5tVMUkEDa76G6gAHaRCOwy8ERE7gwSEd7tmEs$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAMS4OA4MBY6X6YF3VZDGKD2GBSBVAVCNFSM6AAAAABTXKKNZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBZGIZDIOBWHE__;!!Mih3wA!EC8TiHJNVC75KImFAcp6SWqxk_ncRKFsTjpGiWkowmdMro0-byb5tVMUkEDa76G6gAHaRCOwy8ERE7gwSEHH0Tqw$ . You are receiving this because you were mentioned.Message ID: @.***>

Btw bit of a Hail Mary but can you try running fixpoint with CVC as the backend to see if that does any better?

  • Ranjit.

On Tue, Dec 17, 2024 at 9:19 AM Vivien Rindisbacher < @.***> wrote:

Ok i’ll edit the issue with their description.

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/flux-rs/flux/issues/949*issuecomment-2549089712__;Iw!!Mih3wA!AZX8NMqbqEO0PpTIe_YQKq1mi1Ms9X5PiEpY8u2yD6LNgPVEqTtX90hfPyGCflZ201gto3ej2UQu1oxOUTmUUS3J$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAMS4OHFPNIAXCW2AFNENR32GBMI5AVCNFSM6AAAAABTXKKNZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBZGA4DSNZRGI__;!!Mih3wA!AZX8NMqbqEO0PpTIe_YQKq1mi1Ms9X5PiEpY8u2yD6LNgPVEqTtX90hfPyGCflZ201gto3ej2UQu1oxOUTwsYHaK$ . You are receiving this because you were mentioned.Message ID: @.***>

Lets just keep them here to track them for now?

My understanding from z3’s docs is that define-fun-rec works similar to that trick by incrementally doing more unfolding

https://microsoft.github.io/z3guide/docs/logic/Recursive Functions/

I know this is standard smtlib, but I don’t know how other solvers handle it.

Ultimately, it’s a matter of who is in better position to do the unfolding.