Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Commit 73efe33

Browse files
committedDec 12, 2017
for better debugging
1 parent e7b099f commit 73efe33

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
 

‎API/src/main/java/org/kframework/EquivChecker.java

+2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ public static java.util.List<Set<SyncNode>> getNextSyncNodes(
126126

127127
queue.add(currSyncNode.currSyncNode);
128128

129+
int steps = 0;
129130
while (!queue.isEmpty()) {
131+
++steps;
130132
for (ConstrainedTerm curr : queue) {
131133

132134
java.util.List<ConstrainedTerm> nexts = rewriter.fastComputeRewriteStep(curr, false, true, true);

‎API/src/main/java/org/kframework/Kapi.java

+2
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ public static Info getInfo(CompiledDefinition compiledDef, String proofFile, Str
311311

312312
//// setting options
313313

314+
globalOptions.debug = true;
315+
314316
krunOptions.experimental.prove = proofFile;
315317
krunOptions.experimental.smt.smtPrelude = prelude;
316318

‎java-backend/src/main/java/org/kframework/backend/java/symbolic/FastRuleMatcher.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,11 @@ private BitSet match(Term subject, Term pattern, BitSet ruleMask, scala.collecti
326326
return unifyMapModuloPatternFolding((BuiltinMap) subject, (BuiltinMap) pattern, ruleMask, path);
327327
} else if (subject instanceof Token && pattern instanceof Token) {
328328
// TODO: make tokens unique?
329-
return subject.equals(pattern) ? ruleMask : empty;
329+
if (subject.equals(pattern)) {
330+
return ruleMask;
331+
} else {
332+
return empty;
333+
}
330334
} else if (subject instanceof BuiltinSet && pattern instanceof BuiltinSet) {
331335
return subject.equals(pattern) ? ruleMask : empty;
332336
} else {

0 commit comments

Comments
 (0)
This repository has been archived.