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

[Concurrency] Guard and Interleavings fix #2185

Merged
merged 8 commits into from
Dec 8, 2024
Merged

[Concurrency] Guard and Interleavings fix #2185

merged 8 commits into from
Dec 8, 2024

Conversation

Anthonysdu
Copy link
Collaborator

This PR https://github.com/esbmc/esbmc/actions/runs/12218538927
The result score is the same as master:
--context-bound 3 --no-por

Statistics:            725 Files
  correct:             425
    correct true:      131
    correct false:     294
  incorrect:            10
    incorrect true:      6
    incorrect false:     4
  unknown:             290
  Score:               300 (max: 1099)

But verification time is improved slightly:

image

Master:
Correct true: 6650s
Correct false: 4890s

This PR:
Correct true: 6610s
Correct false: 4340s

@@ -1,4 +1,4 @@
CORE
KNOWNBUG
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug from partial order reduction,
will fix this in mpor pr.

if (
last_active_thread != active_thread &&
is_cur_state_guard_false(threads_state[active_thread].guard.as_expr()))
interleaving_unviable = true;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is too early to set interleaving_unviable because the active_thread guard will be updated later in merge_gotos(), Instead set the value after merge_gotos()

@lucasccordeiro lucasccordeiro merged commit 1436b53 into master Dec 8, 2024
9 checks passed
@lucasccordeiro lucasccordeiro deleted the guard branch December 8, 2024 08:41
@lucasccordeiro
Copy link
Contributor

Thanks for submitting this PR, @Anthonysdu.

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

Successfully merging this pull request may close these issues.

2 participants