public void PushAggregate(ScriptFile script, Function function, string decomp) { lock (pushLock) { if (function.NativeCount > 0 && Utils.CountLines(decomp) >= Program.AggregateMinLines) { string hash = Utils.SHA256(decomp); if (FunctionLoc.ContainsKey(hash)) { FunctionLoc[hash].AddFunction(function); } else { FunctionLoc.Add(hash, new AggregateData(function, "Aggregate_" + FunctionLoc.Count, hash)); } } } }
public AggregateData FetchAggregate(string decomp) => FunctionLoc[Utils.SHA256(decomp)];
public bool IsAggregate(string decomp) => FunctionLoc.ContainsKey(Utils.SHA256(decomp));