Przeglądaj źródła

forgot to check for cycle in case an extrapolation adaptation comes along.

Claudio Gomes 5 lat temu
rodzic
commit
668160e267

+ 3 - 0
HintCOEngine/src/ua/ansymo/hintco/CandidatesGenerator.xtend

@@ -277,6 +277,9 @@ class CandidatesGenerator {
 					adaptedPort.identifier)
 				val success = addConstraint(adaptedPort.unit, adaptedPort, constraints, n, cs)
 				logger.debug("Success: {}", success)
+				if (success == AddConstraintResult.CYCLE) {
+					introducedCycle = true
+				}
 
 			}
 			InterpolationAdaptation: {