| 2014 | } |
| 2015 | |
| 2016 | expr expr::BV2float(const expr &type) const { |
| 2017 | C(type); |
| 2018 | if (auto app = isAppOf(Z3_OP_FPA_TO_IEEE_BV)) { |
| 2019 | expr arg = Z3_get_app_arg(ctx(), app, 0); |
| 2020 | if (arg.sort() == type.sort()) |
| 2021 | return arg; |
| 2022 | } |
| 2023 | |
| 2024 | return simplify_const(Z3_mk_fpa_to_fp_bv(ctx(), ast(), type.sort()), *this); |
| 2025 | } |
| 2026 | |
| 2027 | expr expr::float2Float(const expr &type, const expr &rm) const { |
| 2028 | C(type, rm); |
no test coverage detected