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

Split positions of all user-defined predicates into input and outputs #45

Open
skeuchel opened this issue Nov 14, 2023 · 0 comments
Open

Comments

@skeuchel
Copy link
Member

The heap predicates have a field that indicates which predicates are precise, and for those it splits up the arguments into inputs and outpus.

Module Type HeapPredicateKit (Import B : Base).
(** Heap Predicates *)
(* Predicate names. *)
Parameter Inline 𝑯 : Set.
(* Predicate field types. *)
Parameter Inline 𝑯_Ty : 𝑯 -> Ctx Ty.
(* Duplicable? *)
#[export] Declare Instance 𝑯_is_dup : IsDuplicable 𝑯.
#[export] Declare Instance 𝑯_eq_dec : EqDec 𝑯.
Parameter 𝑯_precise : forall p : 𝑯, option (Precise 𝑯_Ty p).
End HeapPredicateKit.

I wonder why we went with that definition instead of defining inputs and outputs positions for all predicates uniformly. I think this would improve the code.

@skeuchel skeuchel changed the title Split all positions of user-defined predicates into input and outputs Split positions of all user-defined predicates into input and outputs Nov 14, 2023
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

No branches or pull requests

1 participant