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

Add OM for pthread_rwlock_rdlock #1516

Merged
merged 3 commits into from Nov 22, 2023
Merged

Conversation

Anthonysdu
Copy link
Collaborator

The regression testcase is a reduced version from the incorrect false of read_write_lock-1-pthread in SVCOMP.

From the pthread document:

The calling thread acquires the write lock if no other thread (reader or writer) holds the read-write lock rwlock.
The calling thread acquires the read lock if a writer does not hold the lock and there are no writers blocked on the lock.

Copy link
Contributor

@lucasccordeiro lucasccordeiro left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this PR, @Anthonysdu.

Can I also ask you to add a regression test that gives "VERIFICATION FAILED"?

Copy link
Member

@mikhailramalho mikhailramalho left a comment

Choose a reason for hiding this comment

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

Lgtm

Copy link
Contributor

@lucasccordeiro lucasccordeiro left a comment

Choose a reason for hiding this comment

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

Many thanks, @Anthonysdu.

Copy link
Member

@fbrausse fbrausse left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@fbrausse fbrausse mentioned this pull request Nov 22, 2023
47 tasks
@lucasccordeiro lucasccordeiro merged commit d9bae82 into esbmc:master Nov 22, 2023
8 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants