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 Jan 10, 2025
1 parent 0edf705 commit 35da44f
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 @@ -3234,12 +3234,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 35da44f

Please sign in to comment.