Skip to content

Linked List insertion #5073

Answered by MikaelMayer
CodeNinja89 asked this question in Q&A
Feb 9, 2024 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Whenever verification times out, the following annotation on the method will be your friend:

    method {:vcs_split_on_every_assert} {:rlimit 200} enqueue(d: int, pos: nat)

This will isolate every assertion and assign an arbitrary resource limit to each of them, so that you will quickly see in the gutter which assertions are timing out exactly, and work on them

After doing that, it looks like the assertion it can't prove is the following:

assert curr == footprint[i] && curr.valid();

One thing you can do to iterate faster is to use the {:only} attribute like this

    assert {:only} curr == footprint[i] && curr.valid();

so now, everything else will be assumed.
You can now copy-paste this…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@CodeNinja89
Comment options

@MikaelMayer
Comment options

Answer selected by CodeNinja89
@CodeNinja89
Comment options

@CodeNinja89
Comment options

@MikaelMayer
Comment options

@CodeNinja89
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants