Просмотр исходного кода

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

Claudio Gomes 5 лет назад
Родитель
Сommit
668160e267
1 измененных файлов с 3 добавлено и 0 удалено
  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: {