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

petri nets? #18

Open
ngsankha opened this issue Feb 4, 2020 · 2 comments
Open

petri nets? #18

ngsankha opened this issue Feb 4, 2020 · 2 comments

Comments

@ngsankha
Copy link
Owner

ngsankha commented Feb 4, 2020

Can we use petri nets for better computation of paths through types? Side effects help when there are assertions that test that side effect. But there is no way to reach a side effect path if there is no assertion for it. Petri nets could be helpful.

Example:

# type: () -> B
def my_method
  a = A.new()
  a.set_some_state(:foo)
  B.lookup(a)
end
@ngsankha
Copy link
Owner Author

ngsankha commented Feb 4, 2020

Petri net ideas are outlined here: Component-based synthesis for complex APIs

Read this paper multiple times, need to think if this approach would fit with how our synthesis works.

@ngsankha
Copy link
Owner Author

ngsankha commented Feb 4, 2020

Or maybe just do #14

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

1 participant