Skip to content

Commit 1a9bf3c

Browse files
committed
[TC] error predicate call solver
1 parent 1ea3935 commit 1a9bf3c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/tc/tests/test.v

+3-3
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ Module HO_scope_check1.
292292

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

412412
Fail Elpi Query TC.Solver lp:{{
413413
sigma X Q\ % To avoid printing in console
414-
build-query-from-goal {{c1 (fun x => f x lp:X)}} _ Q _,
414+
tc.build-query-from-goal {{c1 (fun x => f x lp:X)}} _ Q _,
415415
not Q.
416416
}}.
417417
End Llam_4.

apps/tc/theories/db.v

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Elpi Db tc.db lp:{{
7878

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

8384
% pred on which we graft instances in the database

0 commit comments

Comments
 (0)