3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

make a few helpers static

This commit is contained in:
Nuno Lopes 2019-06-30 15:22:40 +01:00
parent e5dffeace4
commit 60c504f4ef

View file

@ -22,27 +22,19 @@ Notes:
#include "api/api_context.h"
#include "ast/fpa_decl_plugin.h"
bool is_fp_sort(Z3_context c, Z3_sort s) {
static bool is_fp_sort(Z3_context c, Z3_sort s) {
return mk_c(c)->fpautil().is_float(to_sort(s));
}
bool is_fp(Z3_context c, Z3_ast a) {
static bool is_fp(Z3_context c, Z3_ast a) {
return mk_c(c)->fpautil().is_float(to_expr(a));
}
bool is_rm_sort(Z3_context c, Z3_sort s) {
return mk_c(c)->fpautil().is_rm(to_sort(s));
}
bool is_rm(Z3_context c, Z3_ast a) {
static bool is_rm(Z3_context c, Z3_ast a) {
return mk_c(c)->fpautil().is_rm(to_expr(a));
}
bool is_bv_sort(Z3_context c, Z3_sort s) {
return mk_c(c)->bvutil().is_bv_sort(to_sort(s));
}
bool is_bv(Z3_context c, Z3_ast a) {
static bool is_bv(Z3_context c, Z3_ast a) {
return mk_c(c)->bvutil().is_bv(to_expr(a));
}