forked from microsoft/mcBV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProblem.fs
34 lines (30 loc) · 854 Bytes
/
Problem.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module Problem
open System.Collections.Generic
open Microsoft.Z3
type Problem = class
val mutable goal : Goal
val mutable vars : HashSet<Expr>
val mutable nums : HashSet<Expr>
val mutable maxVar : int
val mutable maxNum : int
val mutable var2expr : Expr[]
val mutable var2sort : int[]
val mutable expr2var : Dictionary<Expr, int>
val mutable num2id : Dictionary<Expr, int>
val mutable id2num : Expr[]
new (g, vs, ns, v2e, v2s, e2v, n2i, i2n, mv, mn, dg) =
{
goal = g;
vars = vs;
nums = ns;
maxVar = mv;
maxNum = mn;
var2expr = v2e;
var2sort = v2s;
expr2var = e2v;
num2id = n2i;
id2num = i2n;
}
override this.ToString() =
this.goal.ToString()
end