File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ let map_fold_constr f acc evd t =
271
271
(ac, (nas, c'))
272
272
in
273
273
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 _ ->
275
275
f m acc t
276
276
| Cast (ty1 ,ck ,ty2 ) ->
277
277
let (acc1, ty1') = hlp m acc ty1 in
@@ -341,7 +341,7 @@ let fold_constr f acc evd t =
341
341
in
342
342
let fold_ctx k ac (nas , c ) = hlp (k + Array. length nas) ac c in
343
343
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 _ ->
345
345
f m acc t
346
346
| Cast (ty1 ,ck ,ty2 ) ->
347
347
let acc1 = hlp m acc ty1 in
@@ -408,7 +408,7 @@ let fold_constr_shallow f acc evd t =
408
408
in
409
409
let fold_ctx ac (_ , c ) = hlp ac c in
410
410
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 _ ->
412
412
f acc t
413
413
| Cast (ty1 ,ck ,ty2 ) ->
414
414
let acc1 = hlp acc ty1 in
@@ -475,7 +475,7 @@ let map_fold_constr_ker f acc t =
475
475
(ac, (nas, c'))
476
476
in
477
477
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 _ ->
479
479
f m acc t
480
480
| Cast (ty1 ,ck ,ty2 ) ->
481
481
let (acc1, ty1') = hlp m acc ty1 in
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ let rec hhterm_of (t : Constr.t) : Hh_term.hhterm =
113
113
mk_id (Uint63. to_string n)]
114
114
| Float n -> tuple [mk_id " $Float" ;
115
115
mk_id (Float64. to_string n)]
116
+ | String _ -> raise (HammerError " Primitive strings not supported." )
116
117
| Array _ -> raise (HammerError " Primitive arrays not supported." )
117
118
118
119
and hhterm_of_constrarray a =
You can’t perform that action at this time.
0 commit comments