@@ -3012,7 +3012,7 @@ else if (tright != null)
30123012 type = new Type("boolean",null);
30133013 }
30143014 else
3015- { System.err.println("TYPE ERROR: Unable to type: " + this);
3015+ { System.err.println("!!! TYPE ERROR: Unable to type: " + this);
30163016 JOptionPane.showMessageDialog(null, "Unable to type " + this,
30173017 "Type error", JOptionPane.ERROR_MESSAGE);
30183018 type = null;
@@ -9370,8 +9370,9 @@ else if ((operator.equals("->includes") ||
93709370 { return bel.updateForm(env,"/:",val3,right,local); }
93719371 }
93729372 else
9373- { return "{} // No update form for: " + this + "\n";
9374- }
9373+ { String qf = queryForm(env,local);
9374+ return "if (" + qf + ") { } else { System.err.println(\"Assertion " + this + " fails\"); }\n";
9375+ }
93759376 }
93769377
93779378public String updateFormIn(String language, java.util.Map env, Expression var, boolean local)
@@ -9442,7 +9443,10 @@ else if ("->including".equals(operator))
94429443 return " if (" + test.queryForm(language, env, local) + ") { }\n" +
94439444 " else { " + adda.updateForm(language, env, local) + " }";
94449445 }
9445- return "{ } // No update form for " + var + " : " + this + " \n";
9446+ else
9447+ { String qf = queryForm(env,local);
9448+ return "if (" + qf + ") { } else { System.err.println(\"Assertion " + this + " fails\"); }\n";
9449+ }
94469450}
94479451
94489452public String updateFormNotIn(String language, java.util.Map env, Expression var, boolean local)
@@ -10291,7 +10295,7 @@ else if ("/".equals(operator) && Type.isNumericType(type))
1029110295 return assign.updateForm(language, env, local);
1029210296 }
1029310297
10294- return "/* No update form for: " + this + " = " + var + " */";
10298+ return "/* No update form for: " + this + " = " + var + " */\n ";
1029510299 }
1029610300
1029710301 public String updateFormJava6(java.util.Map env, boolean local)
@@ -10457,8 +10461,13 @@ else if ((operator.equals("->includes") ||
1045710461 else
1045810462 { return bel.updateFormJava6(env,"/:",val3,right,local); }
1045910463 }
10460- else
10461- { return "{} /* Cannot produce update code for: " + this + " */"; }
10464+ else
10465+ { String qf = queryFormJava6(env,local);
10466+ return "if (" + qf + ") { } else { System.err.println(\"Assertion " + this + " fails\"); }\n";
10467+ }
10468+
10469+ // else
10470+ // { return "{} /* Cannot produce update code for: " + this + " */"; }
1046210471 }
1046310472
1046410473 public String updateFormJava7(java.util.Map env, boolean local)
@@ -10633,7 +10642,12 @@ else if ((operator.equals("->includes") ||
1063310642 { return bel.updateFormJava7(env,"/:",val3,right,local); }
1063410643 }
1063510644 else
10636- { return "{} /* Cannot produce update code for: " + this + " */"; }
10645+ { String qf = queryFormJava7(env,local);
10646+ return "if (" + qf + ") { } else { System.err.println(\"Assertion " + this + " fails\"); }\n";
10647+ }
10648+
10649+ // else
10650+ // { return "{} /* Cannot produce update code for: " + this + " */"; }
1063710651 }
1063810652
1063910653 public String updateFormCSharp(java.util.Map env, boolean local)
0 commit comments