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

Support chained synthesis #12

Open
ilyasergey opened this issue May 8, 2019 · 0 comments
Open

Support chained synthesis #12

ilyasergey opened this issue May 8, 2019 · 0 comments
Assignees
Labels
good first issue synthesizer Core functionality of the synthesizer

Comments

@ilyasergey
Copy link
Member

At the moment, synthesis can take "hints" about auxiliary functions, which can be used for synthesing the main one. For instance, this is a specification for tree flattening that takes an auxiliary function:

{ lseg(x1, s1) ** lseg(x2, s2) ** ret :-> x2 }
void lseg_append (loc x1, loc ret)
{ s =i s1 ++ s2 ; lseg(y, s) ** ret :-> y }

{ z :-> x ** tree(x, s) }
void flatten(loc z)
{ z :-> y ** lseg(y, s) }

Even though lseg_append can be synthesized by suslik as a standalone function, it doesn't happen here.

This issue it about extending synthesizer to support "chained" synthesis with auxiliary functions. In this example, it would first synthesize lseg_append and then, using it flatten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue synthesizer Core functionality of the synthesizer
Projects
None yet
Development

No branches or pull requests

2 participants