Skip to content

Commit 7dcbc6a

Browse files
rlepigrelukaszcz
authored andcommitted
1 parent 252aa5e commit 7dcbc6a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/lib/hhutils.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ let map_fold_constr f acc evd t =
271271
(ac, (nas, c'))
272272
in
273273
match kind evd t with
274-
| Rel _ | Meta _ | Var _ | Sort _ | Const _ | Ind _ | Construct _ | Int _ | Float _ ->
274+
| Rel _ | Meta _ | Var _ | Sort _ | Const _ | Ind _ | Construct _ | Int _ | Float _ | String _ ->
275275
f m acc t
276276
| Cast (ty1,ck,ty2) ->
277277
let (acc1, ty1') = hlp m acc ty1 in
@@ -341,7 +341,7 @@ let fold_constr f acc evd t =
341341
in
342342
let fold_ctx k ac (nas, c) = hlp (k + Array.length nas) ac c in
343343
match kind evd t with
344-
| Rel _ | Meta _ | Var _ | Sort _ | Const _ | Ind _ | Construct _ | Int _ | Float _ ->
344+
| Rel _ | Meta _ | Var _ | Sort _ | Const _ | Ind _ | Construct _ | Int _ | Float _ | String _ ->
345345
f m acc t
346346
| Cast (ty1,ck,ty2) ->
347347
let acc1 = hlp m acc ty1 in
@@ -408,7 +408,7 @@ let fold_constr_shallow f acc evd t =
408408
in
409409
let fold_ctx ac (_, c) = hlp ac c in
410410
match kind evd t with
411-
| Rel _ | Meta _ | Var _ | Sort _ | Const _ | Ind _ | Construct _ | Int _ | Float _ ->
411+
| Rel _ | Meta _ | Var _ | Sort _ | Const _ | Ind _ | Construct _ | Int _ | Float _ | String _ ->
412412
f acc t
413413
| Cast (ty1,ck,ty2) ->
414414
let acc1 = hlp acc ty1 in
@@ -475,7 +475,7 @@ let map_fold_constr_ker f acc t =
475475
(ac, (nas, c'))
476476
in
477477
match kind t with
478-
| Rel _ | Meta _ | Var _ | Sort _ | Const _ | Ind _ | Construct _ | Int _ | Float _ ->
478+
| Rel _ | Meta _ | Var _ | Sort _ | Const _ | Ind _ | Construct _ | Int _ | Float _ | String _ ->
479479
f m acc t
480480
| Cast (ty1,ck,ty2) ->
481481
let (acc1, ty1') = hlp m acc ty1 in

src/plugin/hammer_main.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ let rec hhterm_of (t : Constr.t) : Hh_term.hhterm =
113113
mk_id (Uint63.to_string n)]
114114
| Float n -> tuple [mk_id "$Float";
115115
mk_id (Float64.to_string n)]
116+
| String _ -> raise (HammerError "Primitive strings not supported.")
116117
| Array _ -> raise (HammerError "Primitive arrays not supported.")
117118

118119
and hhterm_of_constrarray a =

0 commit comments

Comments
 (0)