MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / BV2float

Method BV2float

smt/expr.cpp:2016–2025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2014}
2015
2016expr 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
2027expr expr::float2Float(const expr &type, const expr &rm) const {
2028 C(type, rm);

Callers 2

getFloatMethod · 0.80
toSMTMethod · 0.80

Calls 2

simplify_constFunction · 0.85
sortMethod · 0.80

Tested by

no test coverage detected