Skip to content

Conversation

@ttuegel
Copy link
Contributor

@ttuegel ttuegel commented Sep 14, 2020

This is part 1 of my clean-up after #2080. It collects most of the things related to reachability logic under the Kore.Reachability tree, in an effort to establish a Bounded Context.


Reviewer checklist
  • Test coverage: stack test --coverage
  • Public API documentation: stack haddock

@ttuegel ttuegel force-pushed the refactor--reachability branch from 97cc67b to 58911fd Compare September 14, 2020 20:05
@ttuegel ttuegel marked this pull request as ready for review September 14, 2020 20:50
Copy link
Contributor

@ana-pantilie ana-pantilie left a comment

Choose a reason for hiding this comment

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

This looks really good, and I'm happy that the claim and axiom types naming inconsistencies are now fixed. I think I want to do some clean-up, so I will approve after I get that done. Other than that, I have a few minor comments.


{- | Sum type to distinguish rewrite axioms (used for stepping)
from function axioms (used for functional simplification).
--}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this comment be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In fact, I think this type can go away entirely, so this pull request will be held up a little longer while I try to do that. Actually, removing the type isn't so hard, but there are some tests which should be salvaged.

Copy link
Contributor

@ana-pantilie ana-pantilie left a comment

Choose a reason for hiding this comment

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

I added my clean-up commits. Feel free to revert them if you think there's something wrong about them.

  • There used to be two test modules for verifying one path and all path claims, and another module for their sum type. This used to make sense because the verifying functions were polymorphic and we could test the functions with the specific claim type directly. Sometime in the past, these functions were changed to take the sum type. I removed the two modules, and added any tests which were missing to Prove.hs. I also enabled a couple of tests for claims with disjunctions on the RHS.

  • I moved a test module from Test.Kore.Strategies to Test.Kore.Reachability so that the directory hierarchy is similar to the one in project.

@ttuegel ttuegel force-pushed the refactor--reachability branch from 694399c to 3b33fd0 Compare September 17, 2020 16:27
@rv-jenkins rv-jenkins merged commit 3fb0874 into runtimeverification:master Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants