소스 검색

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

Claudio Gomes 5 년 전
부모
커밋
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: {