Skip to content

Commit b8633f3

Browse files
author
nmacedo
committed
Merge branch 'core' into visualiser
2 parents 04da8e8 + 58f4d65 commit b8633f3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

org.alloytools.alloy.core/src/main/java/edu/mit/csail/sdg/ast/ExprUnary.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ public void toString(StringBuilder out, int indent) {
101101
sub.toString(out, -1);
102102
out.append(']');
103103
return;
104+
case PRIME : // [HASLab]
105+
out.append('(');
106+
sub.toString(out, -1);
107+
out.append(")'");
108+
return;
104109
case NOOP :
105110
break;
106111
default :

org.alloytools.alloy.core/src/main/java/edu/mit/csail/sdg/translator/A4Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ private static void rename(A4Solution frame, PrimSig s, Map<Sig,List<Tuple>> nex
14251425
frame.atom2name.put(t.atom(0), x);
14261426
ExprVar v = ExprVar.make(null, x, s.type());
14271427
TupleSet ts = t.universe().factory().range(t, t);
1428-
Relation r = Relation.atom(x);
1428+
Relation r = Relation.atom(x); // [HASLab]
14291429
frame.eval.instance().add(r, ts);
14301430
frame.a2k.put(v, r);
14311431
frame.atoms.add(v);

0 commit comments

Comments
 (0)