mirror of
https://github.com/Z3Prover/z3
synced 2025-05-05 23:05:46 +00:00
Add character access functions #5764
This commit is contained in:
parent
2b934b601d
commit
21feefeac5
3 changed files with 73 additions and 6 deletions
|
@ -55,7 +55,6 @@ extern "C" {
|
|||
Z3_CATCH_RETURN(nullptr);
|
||||
}
|
||||
|
||||
|
||||
Z3_ast Z3_API Z3_mk_lstring(Z3_context c, unsigned sz, Z3_string str) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_mk_lstring(c, sz, str);
|
||||
|
@ -80,6 +79,16 @@ extern "C" {
|
|||
Z3_CATCH_RETURN(nullptr);
|
||||
}
|
||||
|
||||
Z3_ast Z3_API Z3_mk_char(Z3_context c, unsigned ch) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_mk_char(c, ch);
|
||||
RESET_ERROR_CODE();
|
||||
app* a = mk_c(c)->sutil().str.mk_char(ch);
|
||||
mk_c(c)->save_ast_trail(a);
|
||||
RETURN_Z3(of_ast(a));
|
||||
Z3_CATCH_RETURN(nullptr);
|
||||
}
|
||||
|
||||
Z3_sort Z3_API Z3_mk_string_sort(Z3_context c) {
|
||||
Z3_TRY;
|
||||
LOG_Z3_mk_string_sort(c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue