Skip to content

Commit

Permalink
Moved some unreachable code under ifdef's.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustan Leino committed Jul 6, 2017
1 parent 7a82510 commit fcf2824
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions Source/VCGeneration/VC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ namespace VC {
using System.Threading.Tasks;

public class VCGen : ConditionGeneration {
private const bool _print_time = false;
/// <summary>
/// Constructor. Initializes the theorem prover.
/// </summary>
Expand Down Expand Up @@ -1603,12 +1602,11 @@ public override Outcome VerifyImplementation(Implementation/*!*/ impl, VerifierC
callback.OnProgress("VCgen", 0, 0, 0.0);

Stopwatch watch = new Stopwatch();
if (_print_time)
{
Console.WriteLine("Checking function {0}", impl.Name);
watch.Reset();
watch.Start();
}
#if PRINT_TIME
Console.WriteLine("Checking function {0}", impl.Name);
watch.Reset();
watch.Start();
#endif

ConvertCFG2DAG(impl);

Expand Down Expand Up @@ -1991,11 +1989,10 @@ public override Outcome VerifyImplementation(Implementation/*!*/ impl, VerifierC

callback.OnProgress("done", 0, 0, 1.0);

if (_print_time)
{
watch.Stop();
Console.WriteLine("Total time for this method: {0}", watch.Elapsed.ToString());
}
#if PRINT_TIME
watch.Stop();
Console.WriteLine("Total time for this method: {0}", watch.Elapsed.ToString());
#endif

return outcome;
}
Expand Down

0 comments on commit fcf2824

Please sign in to comment.