protected static void ComputeFileHash(IEnumerable<FormulaOp> formula, byte[] file, ref uint[] values)
{
int len = file.Length;
for (int i = 0; i < len; i += 4)
{
values[3] = BitConverter.ToUInt32(file, i);
foreach (FormulaOp op in formula)
values[op.Result] = Operations[op.Operation](values[op.Variable1], values[op.Variable2]);
}
}