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

ImmBefore/After encoded in regular expression #62

Open
d1jang opened this issue Nov 7, 2012 · 1 comment
Open

ImmBefore/After encoded in regular expression #62

d1jang opened this issue Nov 7, 2012 · 1 comment

Comments

@d1jang
Copy link

d1jang commented Nov 7, 2012

AlwaysResponds =
ImmAfter {
"KRecv chan msg :: nil"
}{
"KSend chan msg :: nil"
};

AlwaysRespondsRegex =
Match {
([^recv M]|([send M][recv M]))*
};

OnlyResponds =
ImmBefore {
"KRecv chan msg :: nil"
}{
"KSend chan msg :: nil"
};

OnlyRespondsRegex =
Match {
([^send M]|([send M][recv M]))*
};

@ztatlock
Copy link
Contributor

ztatlock commented Nov 8, 2012

This only works for atomic actions.

It won't work on arbitrary trace snippets.

Because we don't have negation!

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