MCPcopy Create free account
hub / github.com/R-Fuzz/symsan / AddConstraint

Function AddConstraint

python/symsan-py.cpp:462–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462static PyObject* AddConstraint(PyObject *self, PyObject *args) {
463 if (__z3_parser == nullptr) {
464 PyErr_SetString(PyExc_RuntimeError, "parser not initialized");
465 return NULL;
466 }
467
468 dfsan_label label = 0;
469 uint64_t val = 0;
470
471 if (!PyArg_ParseTuple(args, "IL", &label, &val)) {
472 return NULL;
473 }
474
475 if (__z3_parser->add_constraints(label, val) != 0) {
476 PyErr_SetString(PyExc_RuntimeError, "failed to add constraint");
477 return NULL;
478 }
479
480 Py_RETURN_NONE;
481}
482
483static PyObject* RecordMemcmp(PyObject *self, PyObject *args) {
484 if (__z3_parser == nullptr) {

Callers

nothing calls this directly

Calls 1

add_constraintsMethod · 0.45

Tested by

no test coverage detected