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

Remove Asrt.Star (fix #159) #316

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

N1ark
Copy link
Contributor

@N1ark N1ark commented Oct 10, 2024

Remove Asrt.Star; what used to be Asrt.t is now Asrt.simple (atomic assertions), and Asrt.t is now simple 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

@giltho
Copy link
Contributor

giltho commented Oct 10, 2024

I think if you fix this problem, it will also fix #301
This PR also re-orders the fields and it breaks something

@@ -1,15 +1,19 @@
(** {b GIL logic assertions}. *)
type t = TypeDef__.assertion =
type simple = TypeDef__.assertion_simple =
Copy link
Contributor

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?

@N1ark
Copy link
Contributor Author

N1ark commented Oct 11, 2024

I think if you fix this problem, it will also fix #301 This PR also re-orders the fields and it breaks something

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 atom it's nicer

Additional note: running Gillian-JS with this causes a stack overflow so something somewhere isn't tail-recursive anymore...

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.

2 participants