Z3
Public Member Functions
func_interp Class Reference
+ Inheritance diagram for func_interp:

Public Member Functions

 func_interp (context &c, Z3_func_interp e)
 
 func_interp (func_interp const &s)
 
 ~func_interp ()
 
 operator Z3_func_interp () const
 
func_interpoperator= (func_interp const &s)
 
expr else_value () const
 
unsigned num_entries () const
 
func_entry entry (unsigned i) const
 
void add_entry (expr_vector const &args, expr &value)
 
void set_else (expr &value)
 
- Public Member Functions inherited from object
 object (context &c)
 
contextctx () const
 
Z3_error_code check_error () const
 

Additional Inherited Members

- Protected Attributes inherited from object
contextm_ctx
 

Detailed Description

Definition at line 2512 of file z3++.h.

Constructor & Destructor Documentation

◆ func_interp() [1/2]

func_interp ( context c,
Z3_func_interp  e 
)
inline

Definition at line 2519 of file z3++.h.

2519 :object(c) { init(e); }

◆ func_interp() [2/2]

func_interp ( func_interp const &  s)
inline

Definition at line 2520 of file z3++.h.

2520 :object(s) { init(s.m_interp); }

◆ ~func_interp()

~func_interp ( )
inline

Definition at line 2521 of file z3++.h.

2521 { Z3_func_interp_dec_ref(ctx(), m_interp); }

Member Function Documentation

◆ add_entry()

void add_entry ( expr_vector const &  args,
expr value 
)
inline

Definition at line 2533 of file z3++.h.

2533  {
2534  Z3_func_interp_add_entry(ctx(), m_interp, args, value);
2535  check_error();
2536  }

◆ else_value()

expr else_value ( ) const
inline

Definition at line 2530 of file z3++.h.

2530 { Z3_ast r = Z3_func_interp_get_else(ctx(), m_interp); check_error(); return expr(ctx(), r); }

◆ entry()

func_entry entry ( unsigned  i) const
inline

Definition at line 2532 of file z3++.h.

2532 { Z3_func_entry e = Z3_func_interp_get_entry(ctx(), m_interp, i); check_error(); return func_entry(ctx(), e); }

◆ num_entries()

unsigned num_entries ( ) const
inline

Definition at line 2531 of file z3++.h.

2531 { unsigned r = Z3_func_interp_get_num_entries(ctx(), m_interp); check_error(); return r; }

◆ operator Z3_func_interp()

operator Z3_func_interp ( ) const
inline

Definition at line 2522 of file z3++.h.

2522 { return m_interp; }

◆ operator=()

func_interp& operator= ( func_interp const &  s)
inline

Definition at line 2523 of file z3++.h.

2523  {
2524  Z3_func_interp_inc_ref(s.ctx(), s.m_interp);
2525  Z3_func_interp_dec_ref(ctx(), m_interp);
2526  object::operator=(s);
2527  m_interp = s.m_interp;
2528  return *this;
2529  }

◆ set_else()

void set_else ( expr value)
inline

Definition at line 2537 of file z3++.h.

2537  {
2538  Z3_func_interp_set_else(ctx(), m_interp, value);
2539  check_error();
2540  }
Z3_func_interp_dec_ref
void Z3_API Z3_func_interp_dec_ref(Z3_context c, Z3_func_interp f)
Decrement the reference counter of the given Z3_func_interp object.
Z3_func_interp_get_else
Z3_ast Z3_API Z3_func_interp_get_else(Z3_context c, Z3_func_interp f)
Return the 'else' value of the given function interpretation.
Z3_func_interp_add_entry
void Z3_API Z3_func_interp_add_entry(Z3_context c, Z3_func_interp fi, Z3_ast_vector args, Z3_ast value)
add a function entry to a function interpretation.
z3::object::object
object(context &c)
Definition: z3++.h:450
Z3_func_interp_get_num_entries
unsigned Z3_API Z3_func_interp_get_num_entries(Z3_context c, Z3_func_interp f)
Return the number of entries in the given function interpretation.
Microsoft.Z3.Z3_func_entry
System.IntPtr Z3_func_entry
Definition: NativeFuncInterp.cs:33
Z3_func_interp_set_else
void Z3_API Z3_func_interp_set_else(Z3_context c, Z3_func_interp f, Z3_ast else_value)
Return the 'else' value of the given function interpretation.
Microsoft.Z3.Z3_ast
System.IntPtr Z3_ast
Definition: NativeContext.cs:28
z3::object::check_error
Z3_error_code check_error() const
Definition: z3++.h:452
Z3_func_interp_get_entry
Z3_func_entry Z3_API Z3_func_interp_get_entry(Z3_context c, Z3_func_interp f, unsigned i)
Return a "point" of the given function interpretation. It represents the value of f in a particular p...
Z3_func_interp_inc_ref
void Z3_API Z3_func_interp_inc_ref(Z3_context c, Z3_func_interp f)
Increment the reference counter of the given Z3_func_interp object.
z3::object::ctx
context & ctx() const
Definition: z3++.h:451