Go to the source code of this file.
|
static simplify_exprt::resultt | simplify_string_endswith (const function_application_exprt &expr, const namespacet &ns) |
| Simplify String.endsWith function when arguments are constant.
|
|
static simplify_exprt::resultt | simplify_string_contains (const function_application_exprt &expr, const namespacet &ns) |
| Simplify String.contains function when arguments are constant.
|
|
static simplify_exprt::resultt | simplify_string_is_empty (const function_application_exprt &expr, const namespacet &ns) |
| Simplify String.isEmpty function when arguments are constant.
|
|
static simplify_exprt::resultt | simplify_string_compare_to (const function_application_exprt &expr, const namespacet &ns) |
| Simplify String.compareTo function when arguments are constant.
|
|
static simplify_exprt::resultt | simplify_string_index_of (const function_application_exprt &expr, const namespacet &ns, const bool search_from_end) |
| Simplify String.indexOf function when arguments are constant.
|
|
static simplify_exprt::resultt | simplify_string_char_at (const function_application_exprt &expr, const namespacet &ns) |
| Simplify String.charAt function when arguments are constant.
|
|
static bool | lower_case_string_expression (array_exprt &string_data) |
| Take the passed-in constant string array and lower-case every character.
|
|
static simplify_exprt::resultt | simplify_string_equals_ignore_case (const function_application_exprt &expr, const namespacet &ns) |
| Simplify String.equalsIgnorecase function when arguments are constant.
|
|
static simplify_exprt::resultt | simplify_string_startswith (const function_application_exprt &expr, const namespacet &ns) |
| Simplify String.startsWith function when arguments are constant.
|
|
bool | simplify (exprt &expr, const namespacet &ns) |
|
exprt | simplify_expr (exprt src, const namespacet &ns) |
|
◆ lower_case_string_expression()
Take the passed-in constant string array and lower-case every character.
Definition at line 561 of file simplify_expr.cpp.
◆ simplify()
- Returns
- returns true if expression unchanged; returns false if changed
Definition at line 3246 of file simplify_expr.cpp.
◆ simplify_expr()
◆ simplify_string_char_at()
Simplify String.charAt function when arguments are constant.
- Parameters
-
expr | the expression to simplify |
ns | namespace |
- Returns
- : the modified expression or an unchanged expression
Definition at line 521 of file simplify_expr.cpp.
◆ simplify_string_compare_to()
◆ simplify_string_contains()
Simplify String.contains function when arguments are constant.
Definition at line 257 of file simplify_expr.cpp.
◆ simplify_string_endswith()
Simplify String.endsWith function when arguments are constant.
- Parameters
-
expr | the expression to simplify |
ns | namespace |
- Returns
- the modified expression or an unchanged expression
Definition at line 229 of file simplify_expr.cpp.
◆ simplify_string_equals_ignore_case()
Simplify String.equalsIgnorecase function when arguments are constant.
- Parameters
-
expr | the expression to simplify |
ns | namespace |
- Returns
- : the modified expression or an unchanged expression
Definition at line 589 of file simplify_expr.cpp.
◆ simplify_string_index_of()
Simplify String.indexOf function when arguments are constant.
- Parameters
-
expr | the expression to simplify |
ns | namespace |
search_from_end | return the last instead of the first index |
- Returns
- : the modified expression or an unchanged expression
Definition at line 376 of file simplify_expr.cpp.
◆ simplify_string_is_empty()
Simplify String.isEmpty function when arguments are constant.
- Parameters
-
expr | the expression to simplify |
ns | namespace |
- Returns
- the modified expression or an unchanged expression
Definition at line 302 of file simplify_expr.cpp.
◆ simplify_string_startswith()
Simplify String.startsWith function when arguments are constant.
- Parameters
-
expr | the expression to simplify |
ns | namespace |
- Returns
- : the modified expression or an unchanged expression
Definition at line 634 of file simplify_expr.cpp.