Browse Source

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

Claudio Gomes 4 years ago
parent
commit
668160e267
1 changed files with 3 additions and 0 deletions
  1. 3 0
      HintCOEngine/src/ua/ansymo/hintco/CandidatesGenerator.xtend

+ 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: {