-
Notifications
You must be signed in to change notification settings - Fork 12
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
Remove Asrt.Star (fix #159) #316
base: master
Are you sure you want to change the base?
Conversation
I think if you fix this problem, it will also fix #301 |
@@ -1,15 +1,19 @@ | |||
(** {b GIL logic assertions}. *) | |||
type t = TypeDef__.assertion = | |||
type simple = TypeDef__.assertion_simple = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call this type atom
?
Ah yes interesting you seem to have stumbled upon similar things... When I have more time (🫠) I'll look; what's odd is that the version that works doesn't sort the assertions, so I'm not certain how sorting then (Types>Pure>CorePred>Wand) causes the issue; will update And yes sure I'll rename it to Additional note: running Gillian-JS with this causes a stack overflow so something somewhere isn't tail-recursive anymore... |
Remove
Asrt.Star
; what used to beAsrt.t
is nowAsrt.simple
(atomic assertions), andAsrt.t
is nowsimple list
, avoiding the need for recursive functions when traversing assertions, and making the distinction much clearer and simpler.Rename
Asrt.GA
->Asrt.CorePred
Currently works but AWS with Gillian-C fails, because the ordering of assertions is pre/post-conditions is different so something weird happens, I need to investigate a bit but opening the PR as draft in case anyone wants to peek :p