Description: A library to write abstract interpreters in OCaml.
Menu Expand (external link) Document Search Copy Copied Home Tutorials Quick start While tutorial Types tutorial Publications PLDI'25 OOPSLA'24 SAS'24 PLDI'24 POPL'23 VMCAI'22 RTAS'21 API binsec_codex codex cudd frama_c_codex patricia-tree Jobs and Contact Repository Codex is an OCaml library to help writing sound static analyses by abstract interpretations, such as BINSEC/Codex (for analysis of machine code using the BINSEC platform) or Frama-C/Codex (for analysis of C code using the Frama-C platform).
To illustrate what Codex can do, here is the output of Codex for the abs function:
You can hover on parts of the code above to see the possible values of each expression. Observe that initially, the value of x is unknown (is in the interval [--..--] meaning all the possible values), but its value is refined after the x<0 test in each branch. Codex performs a sound analysis, meaning that the values attached to each program variable is a superset of the real values in the program. In other words, when we display that x is in the interval [0..0x7FFFFFFF] , then we guarantee that x cannot be