Skip to content

Fix #1268 #1269 #1270 #1272 #1273 #1274 #1277

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

Merged
merged 2 commits into from
May 31, 2022

Conversation

mario-bucev
Copy link
Collaborator

No description provided.

@vkuncak
Copy link
Collaborator

vkuncak commented May 30, 2022

Looks impressive! Great to see so many test cases incorporated as well!

@vkuncak vkuncak requested a review from samarion May 30, 2022 18:57
Copy link
Member

@samarion samarion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

Comment on lines 916 to 927
def appearsInAssignment(vd: Variable, e: Expr): Boolean = {
class Traverser(var seen: Boolean = false) extends ConcreteOOSelfTreeTraverser {
override def traverse(e: Expr): Unit = e match {
case Assignment(`vd`, _) => seen = true
case _ => super.traverse(e)
}
}

val traverser = new Traverser
traverser.traverse(e)
traverser.seen
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use exprOps.exists ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good call :)

@vkuncak vkuncak merged commit c0530cd into epfl-lara:main May 31, 2022
@mario-bucev mario-bucev deleted the imperative-fixes branch June 1, 2022 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment