Z3
Public Member Functions
cast_ast< expr > Class Reference

Public Member Functions

expr operator() (context &c, Z3_ast a)
 

Detailed Description

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

Member Function Documentation

◆ operator()()

expr operator() ( context c,
Z3_ast  a 
)
inline

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

1955  {
1956  assert(Z3_get_ast_kind(c, a) == Z3_NUMERAL_AST ||
1957  Z3_get_ast_kind(c, a) == Z3_APP_AST ||
1959  Z3_get_ast_kind(c, a) == Z3_VAR_AST);
1960  return expr(c, a);
1961  }
Z3_get_ast_kind
Z3_ast_kind Z3_API Z3_get_ast_kind(Z3_context c, Z3_ast a)
Return the kind of the given AST.
Z3_APP_AST
@ Z3_APP_AST
Definition: z3_api.h:180
Z3_VAR_AST
@ Z3_VAR_AST
Definition: z3_api.h:181
Z3_NUMERAL_AST
@ Z3_NUMERAL_AST
Definition: z3_api.h:179
Z3_QUANTIFIER_AST
@ Z3_QUANTIFIER_AST
Definition: z3_api.h:182