@@ -104,6 +104,7 @@ namespace tc {
104104 precompile-aux _ (global _ as C) A C A :- !.
105105 precompile-aux _ (pglobal _ _ as C) A C A :- !.
106106 precompile-aux _ (sort _ as C) A C A :- !.
107+ precompile-aux _ (primitive _ as C) A C A :- !.
107108
108109 % Detect maybe-eta term
109110 % TODO: should I precompile also the type of the fun and put it in the output term
@@ -141,7 +142,6 @@ namespace tc {
141142 % precompile-aux IsP Ty A Ty1 A1, pi x\ is-name x => precompile-aux IsP (F x) A1 (F1 x) A2.
142143 % precompile-aux IsP (match T Rty B) A (match T1 Rty1 B1) A3 :- !,
143144 % precompile-aux IsP T A T1 A1, precompile-aux IsP Rty A1 Rty1 A2, std.fold-map B A2 (precompile-aux IsP) B1 A3.
144- % precompile-aux _ (primitive _ as C) A C A :- !.
145145 % precompile-aux IsP (uvar M L as X) A W A1 :- var X, !, std.fold-map L A (precompile-aux IsP) L1 A1, coq.mk-app-uvar M L1 W.
146146 % % when used in CHR rules
147147 % precompile-aux IsP (uvar X L) A (uvar X L1) A1 :- std.fold-map L A (precompile-aux IsP) L1 A1.
@@ -225,6 +225,7 @@ namespace tc {
225225 precompile-aux (global _ as C) A C A :- !.
226226 precompile-aux (pglobal _ _ as C) A C A :- !.
227227 precompile-aux (sort _ as C) A C A :- !.
228+ precompile-aux (primitive _ as C) A C A :- !.
228229
229230 % Detect maybe-eta term
230231 precompile-aux (fun Name Ty B as T) N (tc.maybe-eta-tm (fun Name Ty' B') Scope) M :-
0 commit comments