You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//reset previously obtained opposite parent relation if it interfaces clock-variables
@@ -735,21 +735,10 @@ algorithm
735
735
end if;
736
736
partitionInterfacesClockVars[part1] :=not (clockedVarsMask[var1] and clockedVarsMask[var2]);
737
737
//avoid mutually dependent parents that would result in stack overflow later on
738
-
ifnot intEq(partitionParents[part2], part1) then
738
+
if partitionParents[part2]<>part1 then
739
739
partitionParents[part1] := part2;
740
740
end if;
741
741
end for;
742
-
/*
743
-
for i in 1:numPartitions loop
744
-
for j in arrayGet(partAdjacency,i) loop
745
-
print("partition "+intString(i)+" is connected to partition "+intString(Util.tuple21(j))+" with subCLock "+BackendDump.subClockString(Util.tuple22(j))+"\n");
746
-
end for;
747
-
end for;
748
-
749
-
for i in 1:numPartitions loop
750
-
print("partition "+intString(i)+" has parent "+intString(partitionParents[i])+"\n");
751
-
end for;
752
-
*/
753
742
754
743
//get the order
755
744
partLst :=List.intRange(numPartitions);
@@ -759,19 +748,18 @@ algorithm
759
748
part::partLst := partLst;
760
749
ifnot partitionParentsVisited[part] then
761
750
//partition without parent, not yet visited
762
-
ifintEq(partitionParents[part],-1) then
751
+
if partitionParents[part]==-1or partitionParents[part] == part then
763
752
orderLst := part::orderLst;
764
753
partitionParentsVisited[part] :=true;
765
-
//partition with parents, parent not yet visited
766
-
elseif intNe(partitionParents[part],-1) and intNe(partitionParents[part],part)andnot partitionParentsVisited[partitionParents[part]] then
767
-
partLst := part::partLst;
768
-
partLst := partitionParents[part]::partLst;
769
754
//partition with parents, parent visited
770
-
elseif intNe(partitionParents[part],-1) andpartitionParentsVisited[partitionParents[part]] then
755
+
elseif partitionParentsVisited[partitionParents[part]] then
0 commit comments