Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Mc_maintype error = | Bad_user_input| Bad_insn of Bap.Std.mem * int * int| Create_mem of Core_kernel.Error.t| No_input| Invalid_base of string| Trailing_data of int| Inconsistency of Bap_core_theory.KB.conflict| Unknown_format of string * string * string list| No_formats_expected of string| Disassembler_failed of Core_kernel.Error.t| Loader_failed of Core_kernel.Error.t| Target_must_be_unknown| Encoding_must_be_unknown| Triple_must_not_be_set| Arch_must_not_be_set| Backend_must_not_be_set| Cpu_must_not_be_set| Bits_must_not_be_set| Order_must_not_be_setval all_of_output : output listtype target = | Target of {name : Bap_core_theory.Theory.Target.t;encoding : Bap_core_theory.Theory.Language.t;}| Triple of {name : string;backend : string option;cpu : string option;order : Bap.Std.endian;bits : int;}val fail : error -> ('a, Bap_main.Extension.Error.t) Core_kernel._resultmodule Spec : sig ... endmodule Dis = Bap.Std.Disasm_expert.Basicval bad_insn :
Bap.Std.Addr.t ->
('a, 'b, 'c, 'd) Dis.state ->
int ->
('e, Bap_main.Extension.Error.t) Core_kernel._resultval to_binary :
?map:(Core_kernel.String.t -> Core_kernel.String.t) ->
Core_kernel.String.t ->
(string, Bap_main.Extension.Error.t) Core_kernel.Result.tto_binary ?escape s make a binary string from ascii representation, (e.g., "\x01\x02..."). Apply optional escape function for each byte
val read_input :
Base.string list ->
(string, Bap_main.Extension.Error.t) Core_kernel._resultval endian : target -> Bap.Std.endianval create_memory :
target ->
Base.string ->
Bap.Std.addr ->
(Bap.Std.Memory.t, Bap_main.Extension.Error.t) Core_kernel._resultval print_kinds :
'a list ->
('b, Bap.Std.Disasm_expert.Basic.kinds) Dis.Insn.t ->
unitval print_insn_size : 'a list -> Bap.Std.Memory.t -> unitval print_insn_addr : 'a list -> Bap.Std.Memory.t -> unitval print_insn_memory : 'a list -> Bap.Std.Memory.t -> unitval print_insn : string list -> Bap.Std.Insn.t -> unitval print_bil : string list -> Bap.Std.Insn.t -> unitval print_bir : string list -> Bap.Std.insn -> unitval print_sema : string list -> 'a Bap_knowledge.Knowledge.value -> unitval is_enabled : Core_kernel.String.t list -> boolval formats : (output, 'a list) Core_kernel.List.Assoc.t -> output -> 'a listval print :
target ->
Bap.Std.Memory.t ->
Bap.Std.Disasm_expert.Basic.full_insn ->
([> `addr
| `bil
| `bir
| `insn
| `kinds
| `knowledge
| `memory
| `sema
| `size ] ->
string list) ->
(unit, Bap_main.Extension.Error.t) Base.Result.tval bits : target -> intval parse_base :
target ->
string ->
(Bap.Std.Word.t, Bap_main.Extension.Error.t) Core_kernel.Result.tval create_disassembler :
target ->
((Dis.empty, Dis.empty) Dis.t, Bap_main.Extension.Error.t)
Core_kernel.Result.tval validate_module :
[< `bil | `bir | `insn ] ->
Core_kernel.String.t list ->
(unit, error) Core_kernel.Result.tval validate_formats :
([< `addr
| `bil
| `bir
| `insn
| `invalid
| `kinds
| `knowledge
| `memory
| `sema
| `size ]
* Core_kernel.String.t list)
list ->
(unit, Bap_main.Extension.Error.t) Core_kernel.Result.tval run :
?only_one:bool ->
?stop_on_error:bool ->
('a, 'b) Dis.t ->
target ->
Bap.Std.Memory.t ->
([> `addr
| `bil
| `bir
| `insn
| `invalid
| `kinds
| `knowledge
| `memory
| `sema
| `size ] ->
Core_kernel.String.t list) ->
(int, Bap_main.Extension.Error.t) Core_kernel._resultval check_invariants :
(bool * (unit, 'a) Core_kernel.Result.t list) list ->
(unit, 'a) Core_kernel.Result.tval check :
('a -> bool) ->
'a ->
error ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval target_must_be_unknown :
Bap_core_theory.Theory.Target.t ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval encoding_must_be_unknown :
Bap_core_theory.Theory.Language.t ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval triple_must_not_be_set :
'a option ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval arch_must_not_be_set :
'a option ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval backend_must_not_be_set :
'a option ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval cpu_must_not_be_set :
'a option ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval bits_must_not_be_set :
'a option ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval order_must_not_be_set :
'a option ->
(unit, Bap_main.Extension.Error.t) Core_kernel._resultval compute_target :
(Bap_core_theory.Theory.Unit.t -> unit Bap_knowledge.Knowledge.t) ->
targetval target_of_arch : string -> int option -> Bap.Std.endian option -> targetval make_triple :
?bits:int ->
?order:Bap.Std.endian ->
?backend:string ->
?cpu:string ->
string ->
targetval make_target :
Bap_core_theory.Theory.Target.t ->
Bap_core_theory.Theory.Language.t ->
targetval parse_arch :
string option ->
Bap_core_theory.Theory.Target.t ->
Bap_core_theory.Theory.Language.t ->
string option ->
string option ->
string option ->
int option ->
Bap.Std.endian option ->
(target, Bap_main.Extension.Error.t) Base.Result.tval string_of_failure : error -> string