summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Unknown <afd@afd-THINK>2012-08-31 12:16:51 +0100
committerGravatar Unknown <afd@afd-THINK>2012-08-31 12:16:51 +0100
commit1787d671c39eee47c675c995f99c4ff60cc17d22 (patch)
tree018834a0368bb3cd1f0c1e86d2b9374d0230cf31
parentc3724e5d87340ec4e1310e8bf2885ef5b8780ed4 (diff)
Moved point at which preprocessed output is shown.
-rw-r--r--Source/GPUVerify/GPUVerifier.cs19
1 files changed, 9 insertions, 10 deletions
diff --git a/Source/GPUVerify/GPUVerifier.cs b/Source/GPUVerify/GPUVerifier.cs
index b3a7dcdc..d2ae0ad8 100644
--- a/Source/GPUVerify/GPUVerifier.cs
+++ b/Source/GPUVerify/GPUVerifier.cs
@@ -365,6 +365,10 @@ namespace GPUVerify
preProcess();
+ if (CommandLineOptions.ShowStages) {
+ emitProgram(outputFilename + "_preprocessed");
+ }
+
DoLiveVariableAnalysis();
DoUniformityAnalysis();
@@ -377,17 +381,17 @@ namespace GPUVerify
DoArrayControlFlowAnalysis();
- if (CommandLineOptions.ShowStages)
- {
- emitProgram(outputFilename + "_preprocessed");
- }
-
if (CommandLineOptions.Inference)
{
foreach (var impl in Program.TopLevelDeclarations.OfType<Implementation>().ToList())
{
LoopInvariantGenerator.PreInstrument(this, impl);
}
+
+ if (CommandLineOptions.ShowStages) {
+ emitProgram(outputFilename + "_pre_inference");
+ }
+
}
RaceInstrumenter.AddRaceCheckingInstrumentation();
@@ -432,11 +436,6 @@ namespace GPUVerify
emitProgram(outputFilename + "_dualised");
}
- if (CommandLineOptions.ShowStages)
- {
- emitProgram(outputFilename + "_cross_thread_invariants");
- }
-
RaceInstrumenter.AddRaceCheckingDeclarations();
GenerateBarrierImplementation();