@@ -18,7 +18,6 @@ type proofNodeDbg = {
18
18
19
19
type proofTreeDbg = {
20
20
newVars : array <string >,
21
- disj : array <string >,
22
21
exprToStr : expr => string ,
23
22
}
24
23
@@ -45,9 +44,9 @@ and proofTree = {
45
44
hypsByExpr : Belt_HashMap .t <expr ,hypothesis ,ExprHash .identity >,
46
45
hypsByLabel : Belt_HashMapString .t <hypothesis >,
47
46
ctxMaxVar :int ,
47
+ ctxDisj : disjMutable ,
48
48
mutable maxVar :int ,
49
49
newVars : Belt_HashSet .t <expr ,ExprHash .identity >,
50
- disj : disjMutable ,
51
50
parenCnt :parenCnt ,
52
51
mutable nextNodeId : int ,
53
52
nodes : Belt_HashMap .t <expr ,proofNode ,ExprHash .identity >,
@@ -106,7 +105,7 @@ let pnGetDbg = node => node.pnDbg
106
105
let emptyFrmArr = []
107
106
let ptGetFrms = (tree ,typ ) => tree .frms -> Belt_HashMapInt .get (typ )-> Belt .Option .getWithDefault (emptyFrmArr )
108
107
let ptGetParenCnt = tree => tree .parenCnt
109
- let ptIsDisj = (tree :proofTree , n , m ) => tree .disj -> disjContains (n ,m )
108
+ let ptIsDisjInCtx = (tree :proofTree , n , m ) => tree .ctxDisj -> disjContains (n ,m )
110
109
let ptIsNewVarDef = (tree :proofTree , expr ) => tree .newVars -> Belt_HashSet .has (expr )
111
110
let ptGetHypByExpr = ( tree :proofTree , expr :expr ):option <hypothesis > => tree .hypsByExpr -> Belt_HashMap .get (expr )
112
111
let ptGetHypByLabel = ( tree :proofTree , label :string ):option <hypothesis > =>
@@ -116,13 +115,13 @@ let ptGetCtxMaxVar = tree => tree.ctxMaxVar
116
115
let ptGetRootStmts = tree => tree .rootStmts
117
116
let ptGetDbg = (tree :proofTree ) => tree .ptDbg
118
117
let ptGetCopyOfNewVars = tree => tree .newVars -> Belt_HashSet .toArray
119
- let ptGetDisj = tree => tree .disj
118
+ let ptGetCtxDisj = tree => tree .ctxDisj
120
119
121
120
let ptMake = (
122
121
~frms : frms ,
123
122
~hyps : Belt_MapString .t <hypothesis >,
124
123
~ctxMaxVar : int ,
125
- ~disj : disjMutable ,
124
+ ~ctxDisj : disjMutable ,
126
125
~parenCnt : parenCnt ,
127
126
~exprToStr : option <expr => string >,
128
127
) => {
@@ -136,7 +135,7 @@ let ptMake = (
136
135
ctxMaxVar ,
137
136
maxVar :ctxMaxVar ,
138
137
newVars : Belt_HashSet .make (~id = module (ExprHash ), ~hintSize = 16 ),
139
- disj ,
138
+ ctxDisj ,
140
139
parenCnt ,
141
140
nextNodeId : 0 ,
142
141
nodes : Belt_HashMap .make (~id = module (ExprHash ), ~hintSize = 128 ),
@@ -145,7 +144,6 @@ let ptMake = (
145
144
ptDbg : exprToStr -> Belt_Option .map (exprToStr => {
146
145
{
147
146
newVars : [],
148
- disj : [],
149
147
exprToStr ,
150
148
}
151
149
})
@@ -310,14 +308,6 @@ let ptAddNewVar = (tree, typ):int => {
310
308
newVar
311
309
}
312
310
313
- let ptAddDisjPair = (tree , n , m ) => {
314
- tree .disj -> disjAddPair ( n ,m )
315
- switch tree .ptDbg {
316
- | None => ()
317
- | Some ({exprToStr , disj }) => disj -> Js .Array2 .push (exprToStr ([n ,m ]))-> ignore
318
- }
319
- }
320
-
321
311
let jstfEqSrc = (jstfArgs :array <expr >, jstfLabel :string , src :exprSrc ):bool => {
322
312
switch src {
323
313
| VarType | Hypothesis (_ ) | AssertionWithErr (_ ) => false
0 commit comments