-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d01f56
commit a64eba4
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Provide a python binding to launch symsan-instrumented binary, receive events, parse constraints, and solve constraints. | ||
|
||
``` | ||
static PyMethodDef SymSanMethods[] = { | ||
{"init", SymSanInit, METH_VARARGS, "initialize symsan target"}, | ||
{"config", (PyCFunction)SymSanConfig, METH_VARARGS | METH_KEYWORDS, "config symsan"}, | ||
{"run", (PyCFunction)SymSanRun, METH_VARARGS | METH_KEYWORDS, "run symsan target, optional stdin=file"}, | ||
{"read_event", SymSanReadEvent, METH_VARARGS, "read a symsan event"}, | ||
{"terminate", (PyCFunction)SymSanTerminate, METH_NOARGS, "terminate current symsan instance"}, | ||
{"destroy", (PyCFunction)SymSanDestroy, METH_NOARGS, "destroy symsan target"}, | ||
{"reset_input", InitParser, METH_VARARGS, "reset the symbolic expression parser with a new input"}, | ||
{"parse_cond", ParseCond, METH_VARARGS, "parse trace_cond event into solving tasks"}, | ||
{"parse_gep", ParseGEP, METH_VARARGS, "parse trace_gep event into solving tasks"}, | ||
{"add_constraint", AddConstraint, METH_VARARGS, "add a constraint"}, | ||
{"record_memcmp", RecordMemcmp, METH_VARARGS, "record a memcmp event"}, | ||
{"solve_task", SolveTask, METH_VARARGS, "solve a task"}, | ||
{NULL, NULL, 0, NULL} /* Sentinel */ | ||
}; | ||
``` | ||
|
||
Currently only z3 solver is supported, will merge jigsaw and i2s later. |