Skip to content

Commit

Permalink
Revert "Chore: Ordering of modules now deterministic in compiled code (
Browse files Browse the repository at this point in the history
…dafny-lang#5684)"

This reverts commit 299e2c8 as a
temporary workaround for the issue described in
dafny-lang#5788
  • Loading branch information
dnezam committed Sep 25, 2024
1 parent 2036e20 commit fda429c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
6 changes: 0 additions & 6 deletions Source/DafnyCore/Backends/Dafny/DafnyCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3105,12 +3105,6 @@ protected override void EmitSingleValueGenerator(Expression e, bool inLetExprBod
}
}

protected override void OrganizeModules(Program program, out List<ModuleDefinition> modules) {
modules = program.CompileModules.ToList();
modules.Sort((a, b) =>
String.Compare(a.FullDafnyName, b.FullDafnyName, StringComparison.Ordinal));
}

protected override void EmitHaltRecoveryStmt(Statement body, string haltMessageVarName, Statement recoveryBody, ConcreteSyntaxTree wr) {
TrStmt(body, wr);
}
Expand Down

This file was deleted.

0 comments on commit fda429c

Please sign in to comment.