A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://z3prover.github.io/api/html/class_microsoft_1_1_z3_1_1_fixedpoint.html below:

Z3: Fixedpoint Class Reference

Object for managing fixedpoints More...

void  Assert (params BoolExpr[] constraints)   Assert a constraint (or multiple) into the fixedpoint solver. More...
  void  Add (params BoolExpr[] constraints)   Alias for Assert. More...
  void  RegisterRelation (FuncDecl f)   Register predicate as recursive relation. More...
  void  AddRule (BoolExpr rule, Symbol name=null)   Add rule into the fixedpoint solver. More...
  void  AddFact (FuncDecl pred, params uint[] args)   Add table fact to the fixedpoint solver. More...
  Status  Query (BoolExpr query)   Query the fixedpoint solver. A query is a conjunction of constraints. The constraints may include the recursively defined relations. The query is satisfiable if there is an instance of the query variables and a derivation for it. The query is unsatisfiable if there are no derivations satisfying the query variables. More...
  Status  Query (params FuncDecl[] relations)   Query the fixedpoint solver. A query is an array of relations. The query is satisfiable if there is an instance of some relation that is non-empty. The query is unsatisfiable if there are no derivations satisfying any of the relations. More...
  void  UpdateRule (BoolExpr rule, Symbol name)   Update named rule into in the fixedpoint solver. More...
  Expr  GetAnswer ()   Retrieve satisfying instance or instances of solver, or definitions for the recursive predicates that show unsatisfiability. More...
  string  GetReasonUnknown ()   Retrieve explanation why fixedpoint engine returned status Unknown. More...
  uint  GetNumLevels (FuncDecl predicate)   Retrieve the number of levels explored for a given predicate. More...
  Expr  GetCoverDelta (int level, FuncDecl predicate)   Retrieve the cover of a predicate. More...
  void  AddCover (int level, FuncDecl predicate, Expr property)   Add property about the predicate. The property is added at level. More...
  override string  ToString ()   Retrieve internal string representation of fixedpoint object. More...
  void  SetPredicateRepresentation (FuncDecl f, Symbol[] kinds)   Instrument the Datalog engine on which table representation to use for recursive predicate. More...
  string  ToString (params BoolExpr[] queries)   Convert benchmark given as set of axioms, rules and queries to a string. More...
  BoolExpr[]  ParseFile (string file)   Parse an SMT-LIB2 file with fixedpoint rules. Add the rules to the current fixedpoint context. Return the set of queries in the file. More...
  BoolExpr[]  ParseString (string s)   Similar to ParseFile. Instead it takes as argument a string. More...
  void  Dispose ()   Disposes of the underlying native Z3 object. More...
 

Object for managing fixedpoints

Definition at line 29 of file Fixedpoint.cs.

◆ Add() void Add ( params BoolExpr[]  constraints ) inline

Alias for Assert.

Definition at line 83 of file Fixedpoint.cs.

void Assert(params BoolExpr[] constraints)

Assert a constraint (or multiple) into the fixedpoint solver.

◆ AddCover() void AddCover ( int  level, FuncDecl  predicate, Expr  property  ) inline

Add property about the predicate. The property is added at level.

Definition at line 215 of file Fixedpoint.cs.

217

Native.Z3_fixedpoint_add_cover(

Context

.nCtx, NativeObject, level, predicate.NativeObject, property.NativeObject);

Context Context

Access Context object

◆ AddFact() void AddFact ( FuncDecl  pred, params uint[]  args  ) inline

Add table fact to the fixedpoint solver.

Definition at line 113 of file Fixedpoint.cs.

115

Debug.Assert(pred !=

null

);

116

Debug.Assert(args !=

null

);

118  Context

.CheckContextMatch(pred);

119

Native.Z3_fixedpoint_add_fact(

Context

.nCtx, NativeObject, pred.NativeObject, (uint)args.Length, args);

◆ AddRule()

Add rule into the fixedpoint solver.

Definition at line 102 of file Fixedpoint.cs.

104

Debug.Assert(rule !=

null

);

106  Context

.CheckContextMatch(rule);

107

Native.Z3_fixedpoint_add_rule(

Context

.nCtx, NativeObject, rule.NativeObject, AST.GetNativeObject(name));

◆ Assert() void Assert ( params BoolExpr[]  constraints ) inline

Assert a constraint (or multiple) into the fixedpoint solver.

Definition at line 68 of file Fixedpoint.cs.

70

Debug.Assert(constraints !=

null

);

71

Debug.Assert(constraints.All(c => c !=

null

));

73  Context

.CheckContextMatch<BoolExpr>(constraints);

74  foreach

(BoolExpr a

in

constraints)

76

Native.Z3_fixedpoint_assert(

Context

.nCtx, NativeObject, a.NativeObject);

Referenced by Fixedpoint.Add().

◆ GetAnswer()

Retrieve satisfying instance or instances of solver, or definitions for the recursive predicates that show unsatisfiability.

Definition at line 179 of file Fixedpoint.cs.

181

IntPtr ans = Native.Z3_fixedpoint_get_answer(

Context

.nCtx, NativeObject);

182  return

(ans == IntPtr.Zero) ? null : Expr.Create(

Context

, ans);

◆ GetCoverDelta()

Retrieve the cover of a predicate.

Definition at line 205 of file Fixedpoint.cs.

207

IntPtr res = Native.Z3_fixedpoint_get_cover_delta(

Context

.nCtx, NativeObject, level, predicate.NativeObject);

208  return

(res == IntPtr.Zero) ? null : Expr.Create(

Context

, res);

◆ GetNumLevels() uint GetNumLevels ( FuncDecl  predicate ) inline

Retrieve the number of levels explored for a given predicate.

Definition at line 197 of file Fixedpoint.cs.

199  return

Native.Z3_fixedpoint_get_num_levels(

Context

.nCtx, NativeObject, predicate.NativeObject);

◆ GetReasonUnknown() string GetReasonUnknown ( ) inline

Retrieve explanation why fixedpoint engine returned status Unknown.

Definition at line 188 of file Fixedpoint.cs.

191  return

Native.Z3_fixedpoint_get_reason_unknown(

Context

.nCtx, NativeObject);

◆ ParseFile()

Parse an SMT-LIB2 file with fixedpoint rules. Add the rules to the current fixedpoint context. Return the set of queries in the file.

Definition at line 293 of file Fixedpoint.cs.

295  using

ASTVector av =

new

ASTVector(

Context

, Native.Z3_fixedpoint_from_file(

Context

.nCtx, NativeObject, file));

296  return

av.ToBoolExprArray();

◆ ParseString()

Similar to ParseFile. Instead it takes as argument a string.

Definition at line 302 of file Fixedpoint.cs.

304  using

ASTVector av =

new

ASTVector(

Context

, Native.Z3_fixedpoint_from_string(

Context

.nCtx, NativeObject, s));

305  return

av.ToBoolExprArray();

◆ Query() [1/2]

Query the fixedpoint solver. A query is a conjunction of constraints. The constraints may include the recursively defined relations. The query is satisfiable if there is an instance of the query variables and a derivation for it. The query is unsatisfiable if there are no derivations satisfying the query variables.

Definition at line 128 of file Fixedpoint.cs.

130

Debug.Assert(query !=

null

);

132  Context

.CheckContextMatch(query);

138  default

:

return Status

.UNKNOWN;

Z3_lbool

Lifted Boolean type: false, undefined, true.

◆ Query() [2/2]

Query the fixedpoint solver. A query is an array of relations. The query is satisfiable if there is an instance of some relation that is non-empty. The query is unsatisfiable if there are no derivations satisfying any of the relations.

Definition at line 148 of file Fixedpoint.cs.

150

Debug.Assert(relations !=

null

);

151

Debug.Assert(relations.All(rel => rel !=

null

));

153  Context

.CheckContextMatch<FuncDecl>(relations);

155

AST.ArrayLength(relations), AST.ArrayToNative(relations));

160  default

:

return Status

.UNKNOWN;

◆ RegisterRelation()

Register predicate as recursive relation.

Definition at line 91 of file Fixedpoint.cs.

93

Debug.Assert(f !=

null

);

96

Native.Z3_fixedpoint_register_relation(

Context

.nCtx, NativeObject, f.NativeObject);

◆ SetPredicateRepresentation()

Instrument the Datalog engine on which table representation to use for recursive predicate.

Definition at line 231 of file Fixedpoint.cs.

233

Debug.Assert(f !=

null

);

235

Native.Z3_fixedpoint_set_predicate_representation(

Context

.nCtx, NativeObject,

236

f.NativeObject, AST.ArrayLength(kinds), Symbol.ArrayToNative(kinds));

◆ ToString() [1/2] override string ToString ( ) inline

Retrieve internal string representation of fixedpoint object.

Definition at line 223 of file Fixedpoint.cs.

225  return

Native.Z3_fixedpoint_to_string(

Context

.nCtx, NativeObject, 0,

null

);

◆ ToString() [2/2] string ToString ( params BoolExpr[]  queries ) inline

Convert benchmark given as set of axioms, rules and queries to a string.

Definition at line 243 of file Fixedpoint.cs.

246  return

Native.Z3_fixedpoint_to_string(

Context

.nCtx, NativeObject,

247

AST.ArrayLength(queries), AST.ArrayToNative(queries));

◆ UpdateRule()

Update named rule into in the fixedpoint solver.

Definition at line 167 of file Fixedpoint.cs.

169

Debug.Assert(rule !=

null

);

171  Context

.CheckContextMatch(rule);

172

Native.Z3_fixedpoint_update_rule(

Context

.nCtx, NativeObject, rule.NativeObject, AST.GetNativeObject(name));

◆ Assertions

Retrieve set of assertions added to fixedpoint context.

Definition at line 266 of file Fixedpoint.cs.

271  using

ASTVector av =

new

ASTVector(

Context

, Native.Z3_fixedpoint_get_assertions(

Context

.nCtx, NativeObject));

272  return

av.ToBoolExprArray();

◆ Help

A string that describes all available fixedpoint solver parameters.

Definition at line 35 of file Fixedpoint.cs.

39  return

Native.Z3_fixedpoint_get_help(

Context

.nCtx, NativeObject);

◆ ParameterDescriptions

Retrieves parameter descriptions for Fixedpoint solver.

Definition at line 59 of file Fixedpoint.cs.

61  get

{

return new

ParamDescrs(

Context

, Native.Z3_fixedpoint_get_param_descrs(

Context

.nCtx, NativeObject)); }

◆ Parameters

Sets the fixedpoint solver parameters.

Definition at line 46 of file Fixedpoint.cs.

50

Debug.Assert(value !=

null

);

51  Context

.CheckContextMatch(value);

52

Native.Z3_fixedpoint_set_params(

Context

.nCtx, NativeObject, value.NativeObject);

◆ Rules

Retrieve set of rules added to fixedpoint context.

Definition at line 253 of file Fixedpoint.cs.

258  using

ASTVector av =

new

ASTVector(

Context

, Native.Z3_fixedpoint_get_rules(

Context

.nCtx, NativeObject));

259  return

av.ToBoolExprArray();

◆ Statistics

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4