Built-in function for String.format. More...
#include <iterator>#include <string>#include "format_specifier.h"#include "string_format_builtin_function.h"#include "string_refinement_util.h"#include <util/bitvector_expr.h>#include <util/message.h>#include <util/range.h>#include <util/simplify_expr.h>Go to the source code of this file.
string. s and add axioms ensuring the output corresponds to the output of String.format. s and add axioms ensuring the output corresponds to the output of String.format. integer. Built-in function for String.format.
Definition in file string_format_builtin_function.cpp.
Parse s and add axioms ensuring the output corresponds to the output of String.format.
Definition at line 297 of file string_format_builtin_function.cpp.
Parse s and add axioms ensuring the output corresponds to the output of String.format.
Assumes the argument is a string representing one of: string expr, int, float, char, boolean, hashcode, date_time. The correct type will be retrieved by calling get_arg with an id depending on the format specifier.
Definition at line 118 of file string_format_builtin_function.cpp.
Definition at line 399 of file string_format_builtin_function.cpp.
Return the string to replace the format specifier, as a vector of characters.
Definition at line 431 of file string_format_builtin_function.cpp.
Definition at line 423 of file string_format_builtin_function.cpp.
Deserialize an argument for format from string.
id should be one of: string_expr, int, char, boolean, float. The primitive values are expected to all be encoded using 4 characters. The characters of string must be of type unsignedbv_typet(16) .
Definition at line 243 of file string_format_builtin_function.cpp.
Expression which is true when the string is equal to the literal "null".
Definition at line 94 of file string_format_builtin_function.cpp.
Return an expression representing the length of the format specifier Does not assume that arg is constant.
Definition at line 684 of file string_format_builtin_function.cpp.
Compute the length of the decimal representation of an integer.
exprt representing the length of integer Definition at line 651 of file string_format_builtin_function.cpp.
Return an new expression representing the length of the representation of integer.
If max_length is less than the length of integer, the returned expression will represent max_length.
max_length is less than the length of integer, the returned expression will represent max_length. Choosing a value greater than the actual max possible length is harmless but will result in useless constraints. exprt representing the length of integer Definition at line 623 of file string_format_builtin_function.cpp.