Commit b71c756e authored by Sebastian Nickels's avatar Sebastian Nickels
Browse files

Renamed bodies in UnrollInstructionSymbol

parent 180da9b6
Pipeline #180581 passed with stages
in 17 minutes and 38 seconds
......@@ -37,7 +37,7 @@ public class UnrollInstructionSymbol extends NetworkInstructionSymbol {
private List<ArgumentSymbol> arguments;
private ParameterSymbol timeParameter;
private ArrayList<SerialCompositeElementSymbol> bodies = new ArrayList<>();
private ArrayList<SerialCompositeElementSymbol> resolvedBodies = new ArrayList<>();
protected UnrollInstructionSymbol(String name) {
super(name, KIND);
......@@ -61,8 +61,8 @@ public class UnrollInstructionSymbol extends NetworkInstructionSymbol {
}
return declaration;
}
public ArrayList<SerialCompositeElementSymbol> getBodiesForAllTimesteps() {
return bodies;
public ArrayList<SerialCompositeElementSymbol> getResolvedBodies() {
return resolvedBodies;
}
@Override
......@@ -120,6 +120,8 @@ public class UnrollInstructionSymbol extends NetworkInstructionSymbol {
getArchitecture().setInputs(inputs);
getArchitecture().setOutputs(outputs);
resolvedBodies.clear();
for (int timestep = startValue; timestep < endValue; timestep++) {
SerialCompositeElementSymbol currentBody = getBody().preResolveDeepCopy();
currentBody.putInScope(getBody().getSpannedScope());
......@@ -129,7 +131,7 @@ public class UnrollInstructionSymbol extends NetworkInstructionSymbol {
currentBody.resolveOrError();
bodies.add(currentBody);
resolvedBodies.add(currentBody);
}
UnrollInstructionSymbol resolvedUnroll = getDeclaration().call(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment