Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
atomb committed Apr 17, 2024
1 parent e64b370 commit cd51f29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Provers/SMTLib/SMTLibProcessTheoremProver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public SMTLibProcessTheoremProver(SMTLibOptions libOptions, SMTLibSolverOptions
}
protected static ScopedNamer GetNamer(SMTLibOptions libOptions, ProverOptions options, ScopedNamer namer = null)
{
return libOptions.NormalizeNames
return libOptions.NormalizeNames || libOptions.RandomizeVcIterations > 0
? RandomiseNamer.Create(new Random(options.RandomSeed), namer)
: KeepOriginalNamer.Create(namer);
}
Expand Down
6 changes: 3 additions & 3 deletions Source/UnitTests/ExecutionEngineTests/RandomSeedTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public async Task SomeVariablesAreRenamed()
{
var options = CommandLineOptions.FromArguments(TextWriter.Null);
options.RandomSeed = randomSeed;
options.NormalizeNames = false;
options.NormalizeNames = true;
var randomOptionsLogs = await GetProverLogs.GetProverLogForProgram(options, program);
Assert.IsTrue(randomOptionsLogs.Contains("random2084218992"));
Assert.IsTrue(randomOptionsLogs.Contains("random506996257"));
}
}
}

0 comments on commit cd51f29

Please sign in to comment.