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

How to detect deadlock in mypyvy? #29

Open
gipsyh opened this issue Aug 17, 2024 · 1 comment
Open

How to detect deadlock in mypyvy? #29

gipsyh opened this issue Aug 17, 2024 · 1 comment

Comments

@gipsyh
Copy link

gipsyh commented Aug 17, 2024

Dear developers of mypyvy,

I would like to inquire about how to detect deadlocks in mypyvy, which refers to situations where no actions can be executed.

Thank you.

@wilcoxjay
Copy link
Owner

As far as I know, nobody has done that in mypyvy yet.

The closest thing I can think of that is similar to what you are asking is the sat trace feature. We use it to ensure that actions can be executed in certain situations, which is a way of preventing accidental vacuity, where a typo causes an action to never be enabled.

Full deadlock detection is more complex than this, but perhaps it would give you a good start. You can see an example of using sat trace at the bottom of the lockserv example.

If sat trace is insufficient for your needs, then let's continue the discussion. Perhaps it wouldn't be too hard to add something to mypyvy to support what you want.

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

No branches or pull requests

2 participants