Skip to content

Commit

Permalink
chore: reify_in_empty to debug exection order
Browse files Browse the repository at this point in the history
Signed-off-by: Kakadu <[email protected]>
  • Loading branch information
Kakadu committed May 27, 2023
1 parent 0a326ed commit b1a4cb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/Core.ml
Original file line number Diff line number Diff line change
Expand Up @@ -785,3 +785,8 @@ module Tabling =
g := currier g_tabled;
!g
end


let reify_in_empty reifier x =
let st = State.empty () in
reifier (State.env st) x
3 changes: 3 additions & 0 deletions src/core/Core.mli
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,6 @@ module PrunesControl : sig
val is_exceeded: unit -> bool
val skipped_prunes : unit -> int
end

(** Runs reifier on empty state. Useful to debug execution order *)
val reify_in_empty: ('a, 'b) Reifier.t -> 'a -> 'b

0 comments on commit b1a4cb7

Please sign in to comment.