Skip to content

Commit

Permalink
make output script more deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
Frotty committed Oct 17, 2023
1 parent 4d8285c commit 756eb4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -49,7 +49,7 @@ private void removeCycles(AtomicReference<Set<Set<ImFunction>>> components) {

private void removeCycle(List<ImFunction> funcs, Set<ImFunction> funcSet) {
List<ImVar> newParameters = Lists.newArrayList();
Map<ImVar, ImVar> oldToNewVar = Maps.newHashMap();
Map<ImVar, ImVar> oldToNewVar = Maps.newLinkedHashMap();

calculateNewParameters(funcs, newParameters, oldToNewVar);

Expand Down Expand Up @@ -215,7 +215,7 @@ private void replaceReturn(Element e, ImType returnType) {

}

private Map<String, ImVar> tempReturnVars = Maps.newHashMap();
private Map<String, ImVar> tempReturnVars = Maps.newLinkedHashMap();

private ImVar getTempReturnVar(ImType t) {
String typeName = t.translateType();
Expand Down
Expand Up @@ -519,7 +519,7 @@ public static void print(ImTypeVarRef e, Appendable sb, int indent) {

public static void print(ImClassType ct, Appendable sb, int indent) {
append(sb, ct.getClassDef().getName());
append(sb, smallHash(ct.getClassDef()));
//append(sb, smallHash(ct.getClassDef()));
ImTypeArguments typeArguments = ct.getTypeArguments();
printTypeArguments(typeArguments, indent, sb);
}
Expand Down
Expand Up @@ -1042,7 +1042,7 @@ public Multimap<ImFunction, ImFunction> getCalledFunctions() {
}

public void calculateCallRelationsAndUsedVariables() {
callRelations = HashMultimap.create();
callRelations = LinkedHashMultimap.create();
usedVariables = Sets.newLinkedHashSet();
readVariables = Sets.newLinkedHashSet();
usedFunctions = Sets.newLinkedHashSet();
Expand Down

0 comments on commit 756eb4f

Please sign in to comment.