package org.simantics.scl.compiler.internal.elaboration.constraints;\r
\r
-import gnu.trove.map.hash.THashMap;\r
-import gnu.trove.set.hash.THashSet;\r
-\r
import java.util.ArrayList;\r
import java.util.Arrays;\r
import java.util.Collections;\r
import org.simantics.scl.compiler.types.util.TConComparator;\r
import org.simantics.scl.compiler.types.util.TypeUnparsingContext;\r
\r
+import gnu.trove.map.hash.THashMap;\r
+import gnu.trove.set.hash.THashSet;\r
+\r
public class ConstraintSolver {\r
\r
public static THashSet<TCon> DEFAULTS_IGNORE = new THashSet<TCon>(); \r
DEFAULTS_IGNORE.add(Types.SHOW);\r
DEFAULTS_IGNORE.add(Types.con("Json2", "JSON"));\r
DEFAULTS_IGNORE.add(Types.VEC_COMP);\r
- DEFAULTS_IGNORE.add(Types.EQ);\r
DEFAULTS_IGNORE.add(Types.ORD);\r
DEFAULTS_IGNORE.add(Types.TYPEABLE);\r
DEFAULTS_IGNORE.add(Types.SERIALIZABLE);\r
}\r
for(Constraint constraint : group) {\r
Reduction reduction = environment.reduce(constraint.constraint);\r
- if(reduction.parameters.length > 0)\r
+ if(reduction.demands.length > 0)\r
throw new InternalCompilerError();\r
constraint.setGenerator(Constraint.STATE_HAS_INSTANCE,\r
reduction.generator, reduction.parameters);\r