diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-07-11 23:39:40 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-07-11 23:39:40 -0300 |
| commit | 726f3dfb116ec9265041e642000612831633fe3c (patch) | |
| tree | cac0e9e4e967e2f78163d1429213b69ff959e60b /lib/vm.ml | |
| parent | 5d967951eb0b08c36ee59f70d7f4cca37b0ca72b (diff) | |
| download | SOL-726f3dfb116ec9265041e642000612831633fe3c.tar.gz SOL-726f3dfb116ec9265041e642000612831633fe3c.zip | |
mutual recursion admitted under lexicographic measures
Diffstat (limited to '')
| -rw-r--r-- | lib/vm.ml | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -155,13 +155,13 @@ module Make (W : World.WORLD) = struct facts) | Some (World.Rules rules) -> let witness_ground rule = - match rule.World.witness with - | None -> true - | Some label -> ( + List.for_all + (fun label -> match Label.Map.find_opt label bindings with | Some pattern -> Pattern.is_ground (Pattern.Subst.resolve subst pattern) | None -> false) + rule.World.witness in if List.for_all witness_ground rules then Run |
