package bap-std

  1. Overview
  2. Docs
The Binary Analysis Platform Standard Library

Install

Dune Dependency

Authors

Maintainers

Sources

v2.4.0.tar.gz
sha256=63ada71fa4f602bd679174dc6bf780d54aeded40ad4ec20d256df15886e3d2d5
md5=b8b1aff8c6846f2213eafc54de07b304

doc/bap/Bap/Std/Stmt/class-mapper/index.html

Class Stmt.mapper

AST transformation. mapper allows one to map AST, performing some limited amount of transformations on it. Mapper provides extra flexibility by mapping stmt to stmt list, thus allowing to remove statements from the output (by mapping to empty list) or to map one statement to several. This is particularly useful when you map if or while statements.

inherit Exp.mapper
inherit state
method run : t list -> t list

Default entry point. But again, you can use any method as an entry

method map_stmt : t -> t list
method map_move : var -> exp -> t list
method map_jmp : exp -> t list
method map_while : cond:exp -> t list -> t list
method map_if : cond:exp -> yes:t list -> no:t list -> t list
method map_cpuexn : int -> t list
method map_special : string -> t list
OCaml

Innovation. Community. Security.