ESBMC
Efficient SMT-based Context-Bounded Model Checker
Loading...
Searching...
No Matches
complex_handler_utils.h
Go to the documentation of this file.
1#ifndef PYTHON_FRONTEND_COMPLEX_HANDLER_UTILS_H
2#define PYTHON_FRONTEND_COMPLEX_HANDLER_UTILS_H
3
4#include <string>
5#include <util/irep/expr.h>
6
8
9namespace complex_utils
10{
22 const std::string &raw,
23 double &real_out,
24 double &imag_out);
25
30exprt raise_math_real_type_error_expr(python_converter &converter);
31
37exprt raise_math_int_type_error_expr(python_converter &converter);
38
39} // namespace complex_utils
40
41#endif
Main converter for transforming Python AST into ESBMC's intermediate representation.
Definition python_converter.h:76
@ raw
No normalisation. Baseline for the measurement.
Definition fingerprint.h:18
Definition complex_handler_utils.cpp:10
exprt raise_math_int_type_error_expr(python_converter &converter)
Generates a TypeError expression for functions that require an integer but received a complex: "'comp...
Definition complex_handler_utils.cpp:116
exprt raise_math_real_type_error_expr(python_converter &converter)
Generates a TypeError expression for math functions that reject complex arguments: "must be real numb...
Definition complex_handler_utils.cpp:110
bool parse_complex_string(const std::string &raw, double &real_out, double &imag_out)
Parses a Python complex literal string into (real, imag) components.
Definition complex_handler_utils.cpp:35