|
| bool | is_imported_numpy_module_alias (const nlohmann::json &ast, const std::string &name) |
| static bool | convert_scalar_rhs (const typet &lhs_type, exprt &rhs) |
| static bool | names_builtin (const std::string &spelling, const char *lower, const char *upper, const nlohmann::json &ast) |
| | True when spelling names the built-in lower / upper and no user-defined class of that name shadows it.
|
| static bool | is_scalar_pointee (const typet &ptr) |
| static bool | names_classes (const nlohmann::json &value, const nlohmann::json &ast, std::vector< std::string > &classes) |
| static const nlohmann::json * | assigned_name (const nlohmann::json &node) |
| static size_t | class_assignments (const nlohmann::json &node, const std::string &name, const nlohmann::json &ast, std::vector< std::string > &classes) |
| static bool | json_contains_slice_node (const nlohmann::json &node) |
| static bool | json_literal_contains_boolean (const nlohmann::json &node) |
| static bool | is_shape_attribute_value (const nlohmann::json &subscript_value) |
| static bool | is_method_call_node_shape (const nlohmann::json &call_node) |
| static const nlohmann::json & | first_assign_target (const nlohmann::json &ast_node) |
| static exprt | build_numpy_descriptor_array_value (const std::vector< std::size_t > &shape, const std::vector< exprt > &elems, const typet &elem_type, type_handler &type_handler) |
| static bool | expr_only_references_safe_names (const nlohmann::json &node, const std::function< bool(const std::string &)> &name_is_safe) |
| static nlohmann::json | resolve_func_node_with_params (const nlohmann::json &call_node, const nlohmann::json &ast_body) |
| static bool | is_parameter_name (const nlohmann::json &node, const nlohmann::json ¶ms) |
| static bool | is_parameter_arithmetic (const nlohmann::json &node, const nlohmann::json ¶ms) |
| static bool | is_module_level_import_alias (const nlohmann::json &ast_body, const std::string &alias) |
| static void | constant_view_layout (const std::vector< std::size_t > &view_shape, std::size_t length, const std::vector< long long > &view_strides, long long stride, std::vector< long long > &shape, std::vector< long long > &strides) |
| static std::optional< std::string > | nested_subscript_root_name (const nlohmann::json &node) |
| static std::size_t | fixed_array_depth (const typet &type, const namespacet &ns) |
| static std::string | ast_node_name (const nlohmann::json &node, const std::string &fallback="") |
| | The bare name an AST node denotes: id for a Name, attr for an Attribute – a qualified module.Class, which is what a base inherited from an operational model looks like.
|
| static void | copy_homogeneous_elem_types (element_type_registry ®istry, const std::string &src, const std::string &dest) |
| | Replace dest's recorded element types with src's, but only when every one of src's entries has the same type.
|
| static bool | is_name (const nlohmann::json &node, const std::string &name) |
| static bool | any_child (const nlohmann::json &node, const std::string &name, bool(*pred)(const nlohmann::json &, const std::string &)) |
| static bool | is_plain_rebind (const nlohmann::json &node, const std::string &name) |
| | name = v, name: T = v or name op= v: the forms whose target resolves through redirect_nonlocal.
|
| static bool | binds_by_field (const nlohmann::json &node, const std::string &name) |
| | Whether node binds name through a string field: a def, class, except handler, import alias or match capture.
|
| static bool | binds_name_otherwise (const nlohmann::json &node, const std::string &name) |
| | Whether node binds name other than by a plain rebind.
|
| static bool | mentions_name (const nlohmann::json &node, const std::string &name) |
| static bool | used_uncalled (const nlohmann::json &node, const std::string &func) |
| | Whether node uses func other than by calling it, so that it may run after the frame owning its nonlocal names has returned.
|
| static bool | is_read_in_other_scope (const nlohmann::json &node, const std::string &name, const std::string ¤t, bool nested) |
| static bool | is_read_in_other_scope_of_children (const nlohmann::json &node, const std::string &name, const std::string ¤t, bool nested) |
| static std::string | assign_target_name (const nlohmann::json &ast_node) |
| | The name a single-target Assign/AnnAssign binds, as assigned_name spells it, or "".
|
| static bool | may_tag_binop (const nlohmann::json &value, const dynamic_type_handler &handler) |
| static bool | ctor_arms_are_spellable (const nlohmann::json &ifexp, const std::string &then_class, const std::string &else_class) |
| static bool | is_name_or_attribute (const std::string &kind) |
| static void | fit_numpy_string_store (const exprt &lhs, exprt &rhs) |
| static const nlohmann::json * | copied_node (const nlohmann::json &value, const nlohmann::json &ast) |
| static const typet & | common_array_type (const typet &a, const typet &b) |
| typet | resolve_ternary_type (const typet &then_type, const typet &else_type, const typet &default_type) |
| static std::optional< bool > | constant_string_is_empty (const exprt &str) |
| static exprt | coerce_ternary_branch (const exprt &branch, const typet &result_type, string_handler &strings) |
| static std::string | unsupported_statement_message (const nlohmann::json &element) |
| static typet | numpy_typed_shape (const type_handler &types, const nlohmann::json &arr, const typet &element) |
| static exprt | as_numpy_element (const exprt &value, const typet &element) |