|
ESBMC
Efficient SMT-based Context-Bounded Model Checker
|
Represents a constant Python value for compile-time evaluation. More...
#include <python_consteval.h>
Public Types | |
| enum | Kind { NONE , BOOL , INT , FLOAT , STRING , TUPLE , LIST } |
Public Member Functions | |
| bool | is_truthy () const |
Static Public Member Functions | |
| static PyConstValue | make_none () |
| static PyConstValue | make_bool (bool v) |
| static PyConstValue | make_int (long long v) |
| static PyConstValue | make_float (double v) |
| static PyConstValue | make_string (const std::string &s) |
| static PyConstValue | make_tuple (const std::vector< PyConstValue > &values) |
| static PyConstValue | make_list (const std::vector< PyConstValue > &values) |
Public Attributes | |
| Kind | kind = NONE |
| bool | bool_val = false |
| long long | int_val = 0 |
| double | float_val = 0.0 |
| std::string | string_val |
| std::vector< PyConstValue > | tuple_val |
Represents a constant Python value for compile-time evaluation.
| bool PyConstValue::is_truthy | ( | ) | const |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| double PyConstValue::float_val = 0.0 |
| long long PyConstValue::int_val = 0 |
| std::string PyConstValue::string_val |
| std::vector<PyConstValue> PyConstValue::tuple_val |