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

Measure inference #721

Merged
merged 67 commits into from Jan 29, 2020
Merged

Measure inference #721

merged 67 commits into from Jan 29, 2020

Conversation

romac
Copy link
Member

@romac romac commented Jan 7, 2020

This PR is based on @rjraya's semester project where he modified the termination checker to infer measures for functions it deems terminating.

The bulk of the work done here was to clean some parts up, fix some bugs in the type-checker and measure inference pipeline, add some missing inference rules, and, last but not least, update the various test suites to accommodate those changes.

@romac romac force-pushed the measure-inference branch 3 times, most recently from 59d96c3 to a45d193 Compare January 17, 2020 12:50
@romac romac force-pushed the measure-inference branch 9 times, most recently from fb1e616 to 24bf5f7 Compare January 27, 2020 12:31
Term variables which were bound to a value were
incorrectly treated as truth values instead of
let equalities, which meant that those variables
were not turned into lets, but rather equalities which
could be disproven by the solver.

For example:

val a = 1
val b = 2
a == b

would yield

    (a == 1 && b == 2) ==> (a == b)

instead of

    val a = 1
    val b = 2
    ==>
    a == b

And thus in the first case, the solver was at liberty of
picking a = 1 and b = 1, which would make the VC valid.
@romac romac force-pushed the measure-inference branch 2 times, most recently from b19a659 to 69510cb Compare January 29, 2020 13:00
@romac romac merged commit f3deced into epfl-lara:master Jan 29, 2020
@romac romac deleted the measure-inference branch January 29, 2020 15:50
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

Successfully merging this pull request may close these issues.

None yet

1 participant