Skip to content

Commit

Permalink
[TC] error predicate call solver
Browse files Browse the repository at this point in the history
  • Loading branch information
FissoreD committed Jul 10, 2024
1 parent 1ea3935 commit 1a9bf3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/tc/tests/test.v
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ Module HO_scope_check1.

Elpi Query TC.Solver lp:{{
sigma X Q\ % To avoid printing in console
build-query-from-goal {{c1 (fun x => f x lp:X)}} _ Q _,
tc.build-query-from-goal {{c1 (fun x => f x lp:X)}} _ Q _,
(pi A L T\
tc.link.scope-check (uvar _ L) (fun _ _ (x\ app [{{g}}|_] as T)) :- !,
tc.link.eta.scope-check (uvar _ L) (fun _ _ (x\ app [{{g}}|_] as T)) :- !,
std.assert! (not (prune A L, A = T)) "[TC] Should fail by Scope Check",
fail) =>
not Q.
Expand Down Expand Up @@ -411,7 +411,7 @@ Module Llam_4.

Fail Elpi Query TC.Solver lp:{{
sigma X Q\ % To avoid printing in console
build-query-from-goal {{c1 (fun x => f x lp:X)}} _ Q _,
tc.build-query-from-goal {{c1 (fun x => f x lp:X)}} _ Q _,
not Q.
}}.
End Llam_4.
Expand Down
1 change: 1 addition & 0 deletions apps/tc/theories/db.v
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Elpi Db tc.db lp:{{

% [class ClassGR PredName SearchMode Modes], for each class GR, it contains
% the name of its predicate and its SearchMode
:index (5)
pred class o:gref, o:string, o:search-mode, o:list string.

% pred on which we graft instances in the database
Expand Down

0 comments on commit 1a9bf3c

Please sign in to comment.