Debian Codegraph @

src/ACU_Theory/ChangeLog.AC_Theory

raw
1 Mon Feb 3 14:07:20 1997 Steven Eker <[email protected]>
2
3 * AC_DagNode.cc (overwriteWithClone): fixed serious bug
4 where we were copying sort of overwritten node rather than
5 overwriting node
6
7 Tue Jan 7 10:56:15 1997 Steven Eker <[email protected]>
8
9 * AC_Symbol.cc (eqRewrite): Lazy case rewritten using
10 inErrorSort() to fix two subtle bugs: (1) If after coputing base
11 sort we were not in the error sort we would return with a
12 possibly incorrect sort in the dag node which would be accepted as
13 gospel by reduce(). (2) If after copying and reducing subterms the
14 and normalizing at top the number of subterms changed, our
15 extension information would be invalid.
16 (eqRewrite): Semi-eager case: removed superfluous Assert and
17 repudiateSortInfo().
18 (eqRewrite): replaced calls to repudiateSortInfo() since
19 applyReplace() may compute true sort which is invalidated by
20 rewriting below
21
22 Tue Dec 24 17:27:21 1996 Steven Eker <[email protected]>
23
24 * AC_LhsAutomaton.cc (forcedLoneVariableCase): rewritten to use
25 computeBaseSort() and sortConstraintFree()
26
27 * AC_Subproblem.cc (matchedPortionOK): call to findBaseSort()
28 replaced by call to computeBaseSort()
29 (computeAssignment): computeSortWhilePreservingContext() ->
30 computeTrueSortWhilePreservingContext()
31 (solveVariables): computeSortWhilePreservingContext() ->
32 computeTrueSortWhilePreservingContext()
33
34 * AC_Symbol.hh (class AC_Symbol): findBaseSort() deleted
35
36 * AC_Symbol.cc (eqRewrite): adapted from rewrite(); call to
37 DagNode::computeSort() replaced by DagNode::computeTrueSort();
38 call to Symbol::computeSort() in lazy case replaced by
39 Symbol::computeBaseSort();
40 (computeBaseSort): adapted from findBaseSort()
41 (computeTrueSort): adapted from computeSort()
42
43 * AC_Symbol.hh (class AC_Symbol): computeSort() replaced by
44 computeBaseSort() and computeTrueSort(); rewrite() -> eqRewrite()
45
46 Thu Dec 19 14:12:11 1996 Steven Eker <[email protected]>
47
48 * AC_DagNode.cc (makeClone): copy sort information to avoid recomputation
49
50 Thu Dec 12 17:43:19 1996 Steven Eker <[email protected]>
51
52 * AC_DagNode.cc (overwriteWithClone): copy sort information; this
53 is needed so then when we rewrite with a collapse equation we do
54 not lose sort infomation with the possibility of infinite looping
55 on foreign sort constraints
56
57 Wed Dec 11 12:04:02 1996 Steven Eker <[email protected]>
58
59 * AC_Symbol.cc (findBaseSort): use sortConstraintFree() rather
60 than obselete test
61
62 Mon Dec 9 15:10:26 1996 Steven Eker <[email protected]>
63
64 * AC_Symbol.cc (computeSort): use new constrainToSmallerSort()
65 calling convention
66
67 Mon Nov 25 19:00:06 1996 Steven Eker <[email protected]>
68
69 * AC_Symbol.cc (AC_Symbol): added constructor arg
70
71 Wed Nov 20 12:15:40 1996 Steven Eker <[email protected]>
72
73 * AC_Symbol.cc (matchVariableWithExtension): implemented
74
75 Tue Nov 19 18:33:05 1996 Steven Eker <[email protected]>
76
77 * AC_Symbol.hh (class AC_Symbol): matchVariableWithExtension() added
78
79 * AC_LhsAutomaton.cc (fullMatch): pass 1 as lowerBound to
80 addTopVariable()
81
82 * AC_Subproblem.cc (addTopVariable): lowerBound added
83 (extractDiophantineSystem): use lowerBound
84
85 * AC_Subproblem.hh (class AC_Subproblem): lowerBound added to
86 addTopVariable() and struct TopVariable
87
88 Thu Nov 14 18:01:50 1996 Steven Eker <[email protected]>
89
90 * AC_DagNode.cc (makeClone): added
91
92 Tue Oct 15 17:16:01 1996 Steven Eker <[email protected]>
93
94 * AC_RhsAutomaton.cc (dump): added indentLevel arg
95
96 * AC_LhsAutomaton.cc (dump): rewritten to do indentation
97
98 Fri Oct 11 17:49:08 1996 Steven Eker <[email protected]>
99
100 * AC_Symbol.cc (partialReplace): deleted
101 (partialConstruct): deleted
102
103 * AC_DagNode.cc (copyWithReplacement): AC_DagNode:: removed from
104 mergeSortAndUniquize() call
105 (partialReplace): added
106 (partialConstruct): added
107
108 Fri Sep 27 11:24:48 1996 Steven Eker <[email protected]>
109
110 * AC_DagNode.cc (AC_DagNode): trackStorage call removed
111 (markArguments): evacuate() call added
112
113 * AC_DagNode.hh (DagNode): trackStorage call removed
114
115 * AC_DagNode.cc (mergeSortAndUniquize): mergeBuffer made local
116 automatic rather than class static
117
118 Fri Aug 16 16:47:49 1996 Steven Eker <[email protected]>
119
120 * AC_Symbol.cc (specificRewrite): added
121
122 Fri Aug 9 19:01:59 1996 Steven Eker <[email protected]>
123
124 * AC_Symbol.cc (partialConstruct): added
125 (ruleRewrite): added
126
127 * AC_DagNode.cc (stackArguments): added
128 (copyWithReplacement): added
129
130 Tue Aug 6 15:21:40 1996 Steven Eker <[email protected]>
131
132 * AC_LhsCompiler.cc: created by extracting compilation code from AC_Term.cc
133 (analyseConstraintPropagation): matchAtTop arg removed
134 (compileLhs): boundAbove arg reoved togtehr with code that updates
135 it and passes it
136 (findConstraintPropagationSequence): don't pass matchAtTop arg
137
138 * AC_Term.hh (class AC_Term): removed boundAbove arg from
139 compileLhs(); removed matchAtTop arg from analyseConstraintPropagation()
140
141 Wed Jul 31 17:24:27 1996 Steven Eker <[email protected]>
142
143 * AC_Symbol.cc (makeTerm): added
144
145 Thu Jul 18 16:45:12 1996 Steven Eker <[email protected]>
146
147 * AC_Term.cc (findLongestIncreasingSequence): fixed bug where we
148 were not handling UNDECIDED value from subsumes() correctly
149 (addSubsumedAliens): fixed bug where we
150 were not handling UNDECIDED value from subsumes() correctly
151
152 Fri Jun 28 17:13:03 1996 Steven Eker <[email protected]>
153
154 * AC_DagNode.cc (normalizeAtTop): else branch inside loop simplified
155
156 * AC_Term.cc (findGreedySequence): ASsert() -> Assert()
157
158 * AC_Symbol.cc: ASsert() -> Assert()
159
160 Fri Jun 21 10:09:03 1996 Steven Eker <[email protected]>
161
162 * AC_Term.cc (compileLhs): heavy rewrite to use new compileLhs()
163 and track subproblemLikely; use variableIndex.conditionVariables()
164
165 * AC_Symbol.cc (compileOpDeclarations): use new PermuteSymbol functions
166 (AC_Symbol): initialize BinarySymbol
167
168 * AC_Symbol.hh (class AC_Symbol): now derived from PermuteSymbol
169
170 * AC_Term.cc (addIndependentAliens): added
171 (addSubsumedAliens): add; these two functions replace addForceableAliens()
172 (addSubsumedAliens): fixed goto label bug
173 (compileLhs): subsumed aliens cannot be allowed to affect
174 baoundUniquely even though any variables they bind won't exists in
175 their context or the condition since this would cause our internal
176 consistancy checks to fail
177
178 Thu Jun 20 14:12:21 1996 Steven Eker <[email protected]>
179
180 * AC_Term.cc (findConstraintPropagationSequence): fixed bug where
181 we were swaping wrong element when adding grounded out stuff to sequence
182 (findConstraintPropagationSequence): fix bug: i -> j in search for
183 grounded out stuff
184
185 * AC_LhsAutomaton.cc (buildBipartiteGraph): fixed bug where we
186 were passing wrong pattern # to addEdge() when firstAlien != 0
187
188 * AC_Term.cc (findConstraintPropagationSequence): added
189 (compileLhs): major rewrite
190 (findGreedySequence): renamed (was findOptimalSequence())
191 (addForceableAliens): added
192 (analyseConstraintPropagation): completely rewritten to match more
193 powerful constraint propagation in compileLhs()
194
195 Tue Jun 18 15:03:04 1996 Steven Eker <[email protected]>
196
197 * AC_DagNode.cc (compareArguments): added SPEED_HACK
198
199 * AC_Term.cc (compareArguments): clean up both versions to make
200 them look more like AC_DagNode::compareArguments()
201
202 * AC_Term.hh (class AC_Term): revoked AC_ArgumentIterator friendship
203
204 * AC_Term.cc (normalizeAliensAndFlatten): simplified and corrected
205 possible bug arising from flattening in subterm with single arg of
206 > 1 multiplicity
207
208 * AC_DagNode.cc (compareArguments): optimized
209 (mergeSortAndUniquize): use mergeBuffer; some code cleaning
210 (normalizeAtTop): rewritten to avoid allocating destination vector
211 (copyEagerUptoReduced): replaced C cast with static_cast
212 (compareArguments): put const in static cast;
213 (eliminateSubject): superfluous scope op deleted
214
215 * AC_DagNode.hh (class AC_DagNode): added mergeBuffer
216
217 * AC_DagNode.cc (sortAndUniquize): use runsBuffer
218
219 * AC_DagNode.hh (class AC_DagNode): runsBuffer added
220
221 * AC_Symbol.cc (findBaseSort): replaced sortIndexBuffer with
222 utilityBuffer
223 (partialReplace): replaced runs with utilityBuffer
224 (partialReplace): remember to set utilityBuffer[0] = 0
225
226 * AC_Symbol.hh (class AC_Symbol): sortIndexBuffer and runs
227 replaced by static Vector<int> utilityBuffer
228
229 Mon Jun 17 13:20:52 1996 Steven Eker <[email protected]>
230
231 * AC_DagNode.cc (sortAndUniquize): use AC_DagNode's runs vector
232 (mergeSortAndUniquize): use static Vector and ensure we don't end
233 up giving its allocated memory to the node we were working on
234
235 * AC_Symbol.cc (partialReplace): use static runs vector
236 (AC_Symbol): initialize runs buffer
237
238 Sat Jun 15 14:11:03 1996 Steven Eker <[email protected]>
239
240 * AC_LhsAutomaton.cc (operator<<): added
241
242 * AC_Term.cc (findLongestIncreasingSequence): a term can only
243 subsume another for greedy matching if it has multiplicity 1
244 (compileLhs): fixed bug in the nrNonGroundAliens == 1 case
245
246 Fri Jun 14 15:27:47 1996 Steven Eker <[email protected]>
247
248 * AC_Term.cc (compileLhs): rewrote to use new match strategies
249
250 * AC_LhsAutomaton.cc (match): rewritten to use matchStrategy
251 (greedyMatch): handle case where alien multiplicity > 1
252 (buildBipartiteGraph): matchable now a bool
253 (forcedLoneVariableCase): removed returnedSubproblem = 0 (twice)
254 (dump): removed linearUnconditional
255 (AC_LhsAutomaton): removed linearUnconditional
256 (topVariableCompare): now sort variables by decreasing
257 multiplicity first
258 (greedyPureMatch): handle variables with multiplicity > 1
259
260 * AC_LhsAutomaton.hh (class AC_LhsAutomaton): enum MatchStrategy
261 added; linearUnconditional deleted
262
263 Thu Jun 13 17:18:21 1996 Steven Eker <[email protected]>
264
265 * AC_LhsAutomaton.cc (aliensOnlyMatch): use SubproblemAccumulator
266 (aliensOnlyMatch): fixed bug where we were only considering
267 subject with = rather than >= multyiplicity
268 (aliensOnlyMatch): avoid copying solution if local copy is known
269 to be the same as current solution
270 (greedyMatch): optimized use of scratch substitution
271
272 Wed Jun 12 10:53:24 1996 Steven Eker <[email protected]>
273
274 * AC_LhsAutomaton.cc (aliensOnlyMatch): reorganised to use built
275 in local Substitution
276 (buildBipartiteGraph): reorganised to use built
277 in local Substitution
278 (greedyMatch): reorganised to use built in local and scratch Substitutions
279
280 * AC_LhsAutomaton.hh (class AC_LhsAutomaton): added local and
281 scratch data members to avoid run time allocation of substitutions
282
283 * AC_LhsAutomaton.cc (AC_LhsAutomaton): added nrVariables arg,
284 initialized local and scratch substitutions
285
286 * AC_Term.cc (compileLhs): added nrVariables arg
287
288 Sat Jun 8 15:54:31 1996 Steven Eker <[email protected]>
289
290 * AC_LhsAutomaton.cc (greedyMatch): return false if we couldn't
291 find a match for an independent alien
292 (dump): dump totalNonGroundAliensMultiplicity and nrIndependentAliens
293
294 * AC_Term.cc (findIndependentSets): added
295 (lengthCompare): added
296 (findOptimalSequence): added
297 (findLongestIncreasingSequence): added
298 (compileLhs): added code for optimal sequence in greedy case
299
300 * AC_LhsAutomaton.cc (addGroundedOutAlien): added
301
302 * AC_Term.cc (compileLhs): rewritten; we deliberately introduce a
303 bug in the case where the candidate is a non ground alien; this
304 will be fixed when the constraint propagation code is revamped
305
306 Fri Jun 7 14:14:38 1996 Steven Eker <[email protected]>
307
308 * AC_LhsAutomaton.cc (aliensOnlyMatch): use new SubproblemSequence
309 constructor and semantics
310
311 * AC_Theory.cc: Sequence's abolished throughout module
312
313 * AC_Subproblem.cc (extractDiophantineSystem): use Vector.append()
314 (twice)
315
316 * AC_DagNode.cc (sortAndUniquize): use Vector.append()
317
318 Thu Jun 6 12:25:45 1996 Steven Eker <[email protected]>
319
320 * AC_DagNode.cc (compareArguments): reversed size order
321 REVERTING TO Engine13 AC_DagNode.cc AND AC_Term.cc; new orderings
322 on multisets may be cheaper to compute but cause more shuffling of
323 subterms and lower performance
324
325 * AC_Term.cc (compareArguments): both versions: ordering changed
326 to that on DagNodes
327 (compareArguments): both versions: reversed size order
328
329 * AC_DagNode.cc (compareArguments): optimized loop
330 (compareArguments): changed ordering on multisets of subterms in
331 the interest of more speed
332
333 Wed Jun 5 18:27:19 1996 Steven Eker <[email protected]>
334
335 * AC_Subproblem.cc (extractDiophantineSystem): pass pre allocate
336 sizes to diophantine system
337
338 * AC_LhsAutomaton.cc (greedyPureMatch): modified to use new
339 AC_ExtensionInfo semantics
340
341 * AC_Subproblem.cc (fillOutExtensionInfo): modified to use new
342 AC_ExtensionInfo semantics
343
344 * AC_ExtensionInfo.hh (class AC_ExtensionInfo): revise to avoid
345 allocating memeory for vector until it is clear it will actually
346 be used
347 (clear): don't set whole flag
348
349 Sun Jun 2 17:08:38 1996 Steven Eker <[email protected]>
350
351 * AC_LhsAutomaton.cc (aliensOnlyMatch): added
352 (buildBipartiteGraph): added
353 (fullMatch): simplified, using buildBipartiteGraph()
354 (match): major rewrite
355
356 Sat Jun 1 14:53:43 1996 Steven Eker <[email protected]>
357
358 * AC_LhsAutomaton.cc (fullMatch): optimized use of local substitution
359
360 * AC_Term.cc (compileLhs): dont pass linear unconditional arg
361
362 * AC_LhsAutomaton.cc (addTopVariable): linearUnconditional arg
363 removed; code cleaning
364 (updateTotals): added
365 (addGroundAlien): code cleaning
366 (addNonGroundAlien): code cleaning
367 (AC_LhsAutomaton): clear totalNonGroundAliensMultiplicity
368 (addNonGroundAlien): update totalNonGroundAliensMultiplicity
369 (multiplicityChecks): code cleaning
370 (eliminateGroundAliens): code cleaning
371 (forcedAliensCase): fixed bug where we were possibly trashing
372 global solution whenever alien match failed
373 (forcedAliensCase): deepSelfDestruct seq rather than delete it to
374 avoid memory leak!
375 (computeTotalMultiplicity): added
376 (copyMultiplicity): renamed
377 (match): code cleaning
378 (greedyMatch): code cleaning
379 (greedyPureMatch): code cleaning; use cheap failureMode optimization
380 (dump): removed dump of TopVariable linearUnconditional field
381
382 * AC_LhsAutomaton.hh (class AC_LhsAutomaton): added
383 totalNonGroundAliensMultiplicity and nrIndependentNonGroundAliens
384 data members; struct TopVariable loses its linearUnconditional flag
385
386 * AC_LhsAutomaton.cc (fullMatch): serious memory leak where we
387 forgetting to deepSelfDestruct subproblem on failure fixed
388 (greedyMatch): fix memory leak where we were failing to
389 deepSelfDestruct subproblem passes back to us
390
391 Fri May 31 15:09:12 1996 Steven Eker <[email protected]>
392
393 * AC_LhsAutomaton.cc (AC_LhsAutomaton): store linearUnconditional flag
394 (greedyMatch): added
395 (copyMultiplicities): added
396 (greedyPureMatch): removed linearUnconditional checks and
397 multiplicity copying
398 (match): added calls to copyMultiplicities() and additional
399 linearUnconditional check
400 (dump): now dump linearUnconditional flag
401
402 * AC_Term.cc (compileLhs): pass linearUnconditional flag to
403 AC_LhsAutomaton constructor
404
405 * AC_LhsAutomaton.cc (forcedLoneVariableCase): hacked to use Sort*
406 rather than SortCode
407 (addTopVariable): store Sort* rather than SortCode
408 (fullMatch): hacked for Sort* rather than SortCode
409 (greedyPureMatch): hacked for Sort* rather than SortCode
410 (dump): hacked for Sort* rather than SortCode
411 (greedyPureMatch): temporrary warning about inefficiency added;
412 code cleaning
413
414 * AC_LhsAutomaton.hh (class AC_LhsAutomaton): struct TopVariable
415 now hold Sort* rather than SortCode
416
417 * AC_LhsAutomaton.cc (complete): added
418 (topVariableCompare): added
419
420 * AC_Term.cc (compileLhs): call AC_LhsAutomaton::complete()
421
422 * AC_LhsAutomaton.cc (match): switched order of
423 eliminateGroundAliens() and eliminateBoundVariables()
424 (greedyPureMatch): added code to return false where possible if we
425 fail to assign something to a variable
426
427 Thu May 30 12:27:49 1996 Steven Eker <[email protected]>
428
429 * AC_LhsAutomaton.cc (dump): dump structure and linearUnconditional
430 slots
431 (greedyPureMatch): added
432 (greedyPureMatch): bug fix: testing for bound rather than unbound
433 variable in firstSubject assignment loop
434 (match): need to clear returnedSubproblem if greedyPureMatch() succeeds
435
436 * AC_Term.cc (compileLhs): pass linearUnconditional flag to addTopVariable
437
438 * AC_LhsAutomaton.cc (addTopVariable): fill out structure slot
439 (addTopVariable): take linearUnconditional arg and fill out
440 linearUnconditional slot
441
442 * AC_Symbol.cc (compileOpDeclarations): call associativeSortStructureAnalysis()
443
444 * AC_Symbol.hh (sortStructure): added
445
446 Wed May 29 16:32:51 1996 Steven Eker <[email protected]>
447
448 * AC_LhsAutomaton.cc (addTopVariable): code cleaning
449 (eliminateGroundedOutAliens): code cleaning
450 (forcedLoneVariableCase): much code cleaning
451 (forcedAliensCase): added
452 (AC_fullMatch): added
453
454 * AC_LhsAutomaton.hh (class AC_LhsAutomaton): new fields added to
455 struct TopVariable to make way for greedy pure matcher
456 (class AC_LhsAutomaton): struct Subject added
457 (class AC_LhsAutomaton): subjects and lastUnboundvariable data
458 members added
459
460 * AC_LhsAutomaton.cc (multiplicityChecks): added
461 (eliminateBoundVariables): added
462 (eliminateGroundAliens): added
463 (eliminateGroundedOutAliens): added
464 (forcedLoneVariableCase): added
465 (match): major rewrite using new functions
466
467 Tue May 28 11:52:29 1996 Steven Eker <[email protected]>
468
469 * AC_Term.cc (compileLhs): added code to detect opportunities to
470 use greedy heuristic
471
472 Fri May 24 11:07:17 1996 Steven Eker <[email protected]>
473
474 * AC_Subproblem.cc (matchedPortionOK): use findBaseSort(), context
475 arg removed
476
477 * AC_LhsAutomaton.cc (match): do necessary sort check on created
478 AC_DagNode in "no aliens, 1 variable" case, using findBaseSort()
479 and sortCheckSubproblem
480
481 * AC_Symbol.hh (class AC_Symbol): added sortIndexBuffer data member
482
483 * AC_Symbol.cc (findBaseSort): added
484 (computeSort): reimplemented using findBaseSort()
485 (findBaseSort): have sortIndexBuffer in AC_Symbol object rather
486 than automatic to save a malloc() call
487
488 * AC_Term.cc (analyseConstraintPropagation): reimplemented; assume
489 Variable::analyseConstraintPropagation() works and use it to
490 simplify code
491 (compileLhs): changed to update boundUniquely correctly
492
493 * AC_LhsAutomaton.cc (match): added code for "no aliens" case
494
495 Thu May 23 10:19:28 1996 Steven Eker <[email protected]>
496
497 * AC_LhsAutomaton.cc (match): added code to deal with grounded out
498 case without returning non-null subproblem
499 (match): added code for the "no unbound variables" case
500
501 * AC_Term.cc (compileLhs): do boundAbove.insert() after
502 compileLhs(); is it really needed anyway?
503 (compileLhs): insert(t->occursBelow()) not insert(occursBelow())
504 (compileLhs): fixed bug in test to determine if alien is grounded out
505
506 * AC_LhsAutomaton.cc (dump): implemented, now take variableIndex arg
507
508 Wed May 22 18:17:08 1996 Steven Eker <[email protected]>
509
510 * AC_LhsAutomaton.cc (match): eliminate grounded out aliens early on
511
512 * AC_Term.cc (compileLhs): calculate grounded out arg for addNonGroundAlien()
513
514 * AC_LhsAutomaton.hh (class AC_LhsAutomaton): store grounded out
515 aliens in seperate vector
516
517 * AC_LhsAutomaton.cc (addNonGroundAlien): take grounded out argument
518
519 Mon May 20 10:20:56 1996 Steven Eker <[email protected]>
520
521 * AC_Subproblem.hh (class AC_Subproblem): secure member in struct
522 TopVariable removed because DagRoots cannot be safely relocated
523
524 * AC_Subproblem.cc (solveVariables): don't set secure
525
526 * AC_Subproblem.hh (class AC_Subproblem): difference member of
527 struct Edge is now a pointer to a LocalBinding since LocalBindings
528 cannot be safely relocated when a vector expands
529
530 * AC_Subproblem.cc (PatternNode::solve): use LocalBinding assert
531 and retract
532 (deepSelfDestruct): now delete difference along with subproblem
533 (addEdge): use new operator- on Substitution
534 (solve): check if difference is 0 before calling member functions
535 on it
536
537 * AC_Subproblem.hh (class AC_Subproblem): Edge struct now has
538 LocalBinding member (rather that Substitution::Difference)
539
540 Sat May 18 11:22:18 1996 Steven Eker <[email protected]>
541
542 * AC_Symbol.cc (rewrite): rewritten to use copyAndReduceSubterms()
543 and to implement going eager on lazy AC symbols in the error sort
544
545 Fri May 17 16:14:56 1996 Steven Eker <[email protected]>
546
547 * AC_Symbol.cc (copyAndReduceSubterms): added
548
549 * AC_DagNode.cc: #include "dumpContext.hh" removed
550 (normalizeAtTop): now return a bool; true if at least one
551 flattening took place
552
553 * AC_Subproblem.cc: #include "dumpContext.hh" removed
554
555 * AC_LhsAutomaton.cc (dump): use streams
556
557 * AC_RhsAutomaton.cc (dump): use streams
558
559 Tue May 14 11:37:13 1996 Steven Eker <[email protected]>
560
561 * AC_RhsAutomaton.cc (buildArguments): treat two runs of length 1
562 as a special case to avoid expensive call to mergeSortAndUniquize()
563
564 * AC_DagNode.cc (normalizeAtTop): must sortAndUniquize(argArray)
565 after flattening
566
567 * AC_RhsAutomaton.cc (buildArguments): removed const since we may
568 need to write to "runs" vector
569
570 * AC_Term.cc (compileRhs): pass symbol to addArgument()
571
572 * AC_RhsAutomaton.cc (close): outlined; now flip unstable args
573 back into original order; have a non-empty runs vector if there
574 are any unstable args
575 (addArgument): outline; stack stable args at front and unstable
576 args at back; take symbols argument to make sure stable arg is
577 less than last stable arg to really qualify for stable stack
578 (Symbol): initialize new data members
579
580 * AC_Term.cc (compileRhs): use addArgument(), close() and stable()
581
582 * AC_RhsAutomaton.cc (topSymbol): now clears nrStable
583
584 * AC_RhsAutomaton.hh (addArgument): created from setArgument();
585 now tracks stable arguments.
586 (close): created from setDestination(); now sets up "runs" vector
587 if needed; must be called _after_ all argumments have been added
588
589 Mon May 13 13:44:57 1996 Steven Eker <[email protected]>
590
591 * AC_DagNode.cc (mergeSortAndUniquize): fixed bug where we were
592 changing the value of d before we stored the position of the start
593 of the odd run. Moved run position storage statement to start of
594 basic block and then put an Assert in front of it to ensure we
595 don't overwrite start position of previous odd run.
596 (mergeSortAndUniquize): stripped out optimzation of back and forth
597 copies because there is a serious bug: the copies may be needed in
598 order to move elements backwards because the number of earlier
599 elements shrunk during pass; we can't predict ahead of time
600 whether the copy-back will need to happen so we can't omit the copy.
601
602 * AC_Symbol.cc (partialReplace): use mergeSortAndUniquize() and
603 binaryInsert()
604
605 * AC_DagNode.cc (sortAndUniquize): now merge equal args and
606 reverse out of order pairs of args to reduce number of runs
607 (fastSortAndUniquize): deleted; old sortAndUniquize() deleted
608 (sortAndUniquize): bug in recompuation of r fixed
609 (mergeSortAndUniquize): avoid copying odd run if it will still be
610 odd in next pass (or we avoided copying is last pass). This avoids
611 copying a run back and forth without possibility of merging.
612 (binaryInsert): added
613 (pairCompare): deleted
614
615 Sat May 11 16:32:40 1996 Steven Eker <[email protected]>
616
617 * AC_RhsAutomaton.cc (buildArguments): use new sortAndUniquize()
618
619 * AC_DagNode.cc (mergeSortAndUniquize): added
620 (sortAndUniquize): reimplemented using mergeSortAndUniquize()
621 (normalizeAtTop): use new sortAndUniquize()
622
623 * AC_Symbol.cc (AC_Symbol): pass stable = true
624
625 Thu May 2 10:16:26 1996 Steven Eker <[email protected]>
626
627 * AC_Subproblem.cc (solveVariables): use
628 computeSortWhilePreservingContext() to avoid corrupting current solution
629 (computeAssignment): use computeSortWhilePreservingContext()
630 to avoid corrupting current solution
631 (matchedPortionOK): use computeSortWhilePreservingContext()
632 to avoid corrupting current solution
633
634 * AC_Symbol.cc (rewrite): repudiate sort in SEMI_EAGER case; this
635 is because Symbol::applyReplace() may indirectly call
636 AC_Subproblem::solveVariables() which under rare circumstances may
637 compute a sort for the subject; which may have been invalidated by
638 reducing the subjects arguments (and normalizing)
639 (computeSort): now handle sort constraints
640
641 * AC_Subproblem.cc (solveVariables): added check against whole
642 subject being in the error sort in the case where the diophantine
643 system is null.
644
645 Wed May 1 10:39:56 1996 Steven Eker <[email protected]>
646
647 * AC_Subproblem.cc (solveVariables): fixed subtle bug where
648 binding found for variables involved in old diophantine system
649 were being eliminated from afterMultiplicity during formation of
650 new diophantine system.
651
652 * AC_Term.cc (compileLhs): fixed bug where we were passing
653 boundUniquely rather than local to subautomaton compilation
654
655 * AC_ExtensionInfo.hh (clear): added
656
657 * AC_Subproblem.cc (extractDiophantineSystem): handle trvial
658 system correctly
659 (fillOutExtensionInfo): modified to use AC_ExtensionInfo.clear()
660 (solveVariables): modified to deal with null system correctly; use
661 AC_ExtensionInfo.clear()
662
663 Tue Apr 30 15:20:45 1996 Steven Eker <[email protected]>
664
665 * AC_Subproblem.cc (AC_Subproblem): use initializers for const
666 data members
667 (deepSelfDestruct): implemented
668
669 * AC_Subproblem.hh (class AC_Subproblem): rearranged data members,
670 made some const
671
672 * AC_Subproblem.cc (computeAssignment): added; bug where we failed
673 to build AC binding for single subterm with > 1 multiplicity removed
674 (solveVariables): use computeAssignment(), check sorts of variable
675 bindings.
676 (matchedPortionOK): added
677 (solveVariables): use matchedPortionOK()
678 (extractDiophantineSystem): added
679 (fillOutExtensionInfo): added
680 (solveVariables): use extractDiophantineSystem() and fillOutExtensionInfo()
681
682 Mon Apr 29 10:45:06 1996 Steven Eker <[email protected]>
683
684 * AC_Subproblem.cc (solveVariables): added missing "return true"
685
686 * AC_DagNode.cc (normalizeAtTop): may need to flatten even if
687 expansion = 0 (subterm may only have 1 actual subterm but with > 1
688 multiplicity). needToFlatten flag added
689
690 * AC_Symbol.cc (rewrite): update nrArgs after both normalizeAtTop()
691 calls since flattening may increase number of args
692
693 * AC_Subproblem.cc (solveVariables): use subject->symbol() in
694 place of topSymbol
695 (solveVariables): set extensionInfo whole flag correctly
696 (solvePatterns): deal with the nrPatterns == 0 case
697 (solveVariables): fixed for loop bug: nrRows -> nrColumns
698 (solveVariables): fixed for loop bug: <= -> <
699 (solveVariables): use nrVars instead of nrRows to take account of
700 extension row
701 (solveVariables): added extensionRow variable
702
703 * AC_Subproblem.hh (class AC_Subproblem): topSymbol data member removed
704
705 Fri Apr 26 11:04:19 1996 Steven Eker <[email protected]>
706
707 * AC_Term.cc (compileLhs): implemented
708 (compileLhs): fixed trivial bug - missing '()'s after "theory"
709
710 * AC_LhsAutomaton.cc (addNonGroundAlien): added
711 (addGroundAlien): added
712 (addTopVariable): added
713
714 * AC_Symbol.hh (sortBound): added
715
716 * AC_LhsAutomaton.cc (eliminateSubject): deleted
717 (match): modified to use AC_DagNode::eliminateSubject()
718 (match): modified to use new AC_Subproblem constructor
719
720 * AC_DagNode.cc (eliminateSubject): added
721
722 * AC_DagNode.hh (class AC_DagNode): eliminateSubject() added
723
724 * AC_Subproblem.hh (class AC_Subproblem): "DagRoot secure" added to
725 struct TopVariable.
726
727 Thu Apr 25 10:48:32 1996 Steven Eker <[email protected]>
728
729 * AC_LhsAutomaton.cc (match): pass inErrorSort flag to AC_Subproblem()
730
731 * AC_Subproblem.cc (AC_Subproblem): take extra arg to initialize
732 errorSortFlag
733
734 * AC_Subproblem.hh (class AC_Subproblem): inErrorSort flag added
735
736 * AC_LhsAutomaton.hh (class AC_LhsAutomaton): inErrorSort flag added
737
738 * AC_Symbol.cc (rewrite): optimization where we returned false
739 immmediately from lazy case if there were no equations
740 removed. This is done for consistancy with free case.
741 (rewrite): rewritten so that users strategy is no longer abandoned
742 if the top operator is found to be in ther error sort. This is
743 done because its difficult to know what constitutes a lazy subterm
744 when an existing lazy subterm rewrites into our theory.
745
746 Tue Apr 23 11:04:38 1996 Steven Eker <[email protected]>
747
748 * AC_Subproblem.cc: Substitution& args replace by
749 RewritingContext& args throughout
750 (addPatternNode): added
751 (addEdge): added
752 (addTopVariable): added
753
754 Mon Apr 22 14:25:11 1996 Steven Eker <[email protected]>
755
756 * AC_LhsAutomaton.cc (eliminateSubject): added
757
758 Sat Apr 20 13:18:01 1996 Steven Eker <[email protected]>
759
760 * AC_DagNode.cc (binarySearch): added
761 (binarySearch): added a term version
762
763 Fri Apr 19 16:23:23 1996 Steven Eker <[email protected]>
764
765 * AC_Symbol.cc (computeSort): implemented
766
767 Thu Apr 18 16:08:25 1996 Steven Eker <[email protected]>
768
769 * AC_Symbol.cc (partialReplace): implemented
770
771 * AC_DagNode.cc (normalizeAtTop): added
772
773 * AC_Symbol.cc (rewrite): implemented
774
775 Wed Apr 17 14:45:08 1996 Steven Eker <[email protected]>
776
777 * AC_Symbol.cc (applyReplace): added
778 (partialReplace): added
779 (applyReplace): deleted
780
781 * AC_ExtensionInfo.hh: created
782
783 * AC_Subproblem.cc (solve): inserted calls to assert() and retract()
784
785 * AC_Subproblem.hh (class AC_Subproblem): bound added to struct TopVariable
786
787 Tue Apr 16 16:46:40 1996 Steven Eker <[email protected]>
788
789 * AC_Symbol.cc (compileOpDeclarations): added
790
791 * AC_Symbol.hh (class AC_Symbol): compileOpDeclarations() added
792
793 Fri Apr 12 14:40:40 1996 Steven Eker <[email protected]>
794
795 * AC_Term.cc (dagify): implemented
796 (compileRhs): implemented
797 (analyseConstraintPropagation): implemented
798
799 * AC_RhsAutomaton.hh (addAlien): added
800 (setArgument): added (replaces addArgument())
801 (setDestination): added
802
803 * AC_RhsAutomaton.cc: heavily revised to allow sharing subDAGs
804 with other automata
805 (addArgument): added
806
807 * AC_DagNode.cc (pairCompare): added
808 (sortAndUniquize): added
809
810 * AC_RhsAutomaton.hh: created
811
812 * AC_RhsAutomaton.cc: created
813
814 Wed Apr 10 11:41:46 1996 Steven Eker <[email protected]>
815
816 * AC_DagArgumentIterator.hh: created
817
818 * AC_DagArgumentIterator.cc: created
819
820 * AC_DagNode.hh: created
821
822 * AC_DagNode.cc: created
823
824 * AC_Term.cc (compareArguments): implemented
825
826 * AC_Symbol.cc: created
827
828 * AC_Theory.hh: created
829
830 * AC_Term.hh: created
831
832 * AC_Term.cc: created
833
834 * AC_ArgumentIterator.hh: created
835
836 * AC_ArgumentIterator.cc: created
837
838 Fri Apr 5 17:19:02 1996 Steven Eker <[email protected]>
839
840 * AC_Symbol.hh: created
841