File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2806,6 +2806,12 @@ module Std : sig
2806
2806
*)
2807
2807
val check : bil -> (unit ,error) Result .t
2808
2808
2809
+ (* * [sort t] translates the type [t] into a Core Theory sort.
2810
+
2811
+ @since 2.6.0
2812
+ *)
2813
+ val sort : t -> unit Theory.Value .sort
2814
+
2809
2815
(* * BIL type errors.
2810
2816
2811
2817
Not all syntactically correct expressions make sense. A
Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ module Type = struct
150
150
let check xs = match check xs with
151
151
| None -> Ok ()
152
152
| Some err -> Error err
153
+
154
+ let sort = Bap_var. sort_of_typ
153
155
end
154
156
155
157
(*
Original file line number Diff line number Diff line change 1
1
(* * BIL high level functions. *)
2
2
open Core_kernel [@@warning " -D" ]
3
+ open Bap_core_theory
3
4
open Bap_common
4
5
open Bap_bil
5
6
open Bap_visitor
@@ -36,6 +37,7 @@ module Type : sig
36
37
val check : stmt list -> (unit ,Bap_type_error .t ) Result .t
37
38
val infer : exp -> (typ , Bap_type_error .t ) Result .t
38
39
val infer_exn : exp -> typ
40
+ val sort : typ -> unit Theory.Value .sort
39
41
end
40
42
41
43
module Eff : sig
You can’t perform that action at this time.
0 commit comments