3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

bv2char and char2bv with Clemens

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-09-13 16:09:03 +02:00
parent 34f878fb97
commit f13ccf8969
7 changed files with 93 additions and 10 deletions

View file

@ -86,16 +86,13 @@ zstring::zstring(char const* s) {
}
string_encoding zstring::get_encoding() {
if (gparams::get_value("encoding") == "unicode") {
if (gparams::get_value("encoding") == "unicode")
return unicode;
if (gparams::get_value("encoding") == "bmp")
return bmp;
if (gparams::get_value("encoding") == "ascii")
return ascii;
return unicode;
}
if (gparams::get_value("encoding") == "bmp") {
return bmp;
}
if (gparams::get_value("encoding") == "ascii") {
return ascii;
}
return unicode;
}
bool zstring::well_formed() const {