package bap-std

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

Install

Dune Dependency

Authors

Maintainers

Sources

v2.1.0.tar.gz
sha256=631fc58628418e4856709a0cfc923a65e00c9494fbd28d444c633d11194831de
md5=3db9deac8d429b9b8a8ec9aec54987b1

doc/bap/Bap/Std/class-expi/index.html

Class Std.expi

Expression interpreter

  • deprecated

    Use the Primus Framework

constraint 'a = Expi.context

Interaction with environment

method empty : Bil.storage

creates an empty storage. If you want to provide your own implementation of storage, then it is definitely the right place.

method lookup : var -> 'a Expi.r

a variable is looked up in a context

method update : var -> Bil.result -> 'a Expi.u

a variable is bind to a value.

method load : Bil.storage -> addr -> 'a Expi.r

a byte is loaded from a given address

method store : Bil.storage -> addr -> word -> 'a Expi.r

a byte is stored to a a given address

Error conditions

method type_error : type_error -> 'a Expi.r

a given typing error has occurred

method division_by_zero : unit -> 'a Expi.r

we can't do this!

method undefined_addr : addr -> 'a Expi.r

called when storage doesn't contain the addr

method undefined_var : var -> 'a Expi.r

called when context doesn't know the variable

OCaml

Innovation. Community. Security.

On This Page
  1. Error conditions