Skip to content

Commit

Permalink
Fix map obligation to use single type binds
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Sep 11, 2023
1 parent cc21a30 commit 9039438
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ private void append(StringBuilder sb, String exp)
String m1 = getVar("m");
String m2 = getVar("m");

sb.append("forall " + m1 + ", " + m2 + " in set ");
sb.append("forall " + m1 + " in set ");
sb.append(exp);
sb.append(", " + m2 + " in set ");
sb.append(exp);

String d1 = getVar("d");
Expand Down
2 changes: 1 addition & 1 deletion vdmj/src/test/java/com/fujitsu/vdmj/junit/PogTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected void tearDown() throws Exception
"exists finmap1:map nat to (int) & forall a:int, b in set {1, 2, 3} & (a < 10) => exists findex2 in set dom finmap1 & finmap1(findex2) = (a + b)\n",
"(forall a:map (int) to (int), b:map (int) to (int) &\n forall ldom1 in set dom a, rdom2 in set dom b & ldom1 = rdom2 => a(ldom1) = b(rdom2))\n",
"(forall x:int &\n forall m1, m2 in set {{1 |-> 2}, {2 |-> 3}, {x |-> 4}} & forall d3 in set dom m1, d4 in set dom m2 & d3 = d4 => m1(d3) = m2(d4))\n",
"forall m1, m2 in set {{1 |-> 2}, {2 |-> 3}} & forall d3 in set dom m1, d4 in set dom m2 & d3 = d4 => m1(d3) = m2(d4)\n",
"forall m1 in set {{1 |-> 2}, {2 |-> 3}}, m2 in set {{1 |-> 2}, {2 |-> 3}} & forall d3 in set dom m1, d4 in set dom m2 & d3 = d4 => m1(d3) = m2(d4)\n",
"(forall n:nat &\n is_(measure_recursive(n), nat))\n",
"(forall n:nat &\n (not (n = 1) =>\n (n - 1) >= 0))\n",
"(forall n:nat &\n (not (n = 1) =>\n measure_recursive(n) > measure_recursive((n - 1))))\n",
Expand Down

0 comments on commit 9039438

Please sign in to comment.