Skip to content

Commit

Permalink
Merge pull request #108 from michael-emmi/restore-totalusertime
Browse files Browse the repository at this point in the history
Restoring TotalUserTime increment removed by #106.
  • Loading branch information
michael-emmi authored Jan 2, 2020
2 parents 316de1b + 071cf3b commit 7d0b814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions source/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,7 @@ public static int run(string[] args)
// Add our CPU time to Z3's CPU time reported by SMTLibProcess and print it
Microsoft.Boogie.FixedpointVC.CleanUp(); // make sure to account for FixedPoint Time
System.TimeSpan TotalUserTime = System.Diagnostics.Process.GetCurrentProcess().UserProcessorTime;

// XXX: cannot count prover time this way because Boogie deleted this field.
// TotalUserTime += Microsoft.Boogie.SMTLib.SMTLibProcess.TotalUserTime;

TotalUserTime += Microsoft.Boogie.SMTLib.SMTLibProcess.TotalUserTime;
Log.WriteLine(string.Format("Total User CPU time: {0} s", TotalUserTime.TotalSeconds));


Expand Down Expand Up @@ -1215,10 +1212,7 @@ public static void runSDVMode(Program program, Configs config)
// Add our CPU time to Z3's CPU time reported by SMTLibProcess and print it
Microsoft.Boogie.FixedpointVC.CleanUp(); // make sure to account for FixedPoint Time
System.TimeSpan TotalUserTime = System.Diagnostics.Process.GetCurrentProcess().UserProcessorTime;

// XXX: cannot count prover time this way because Boogie deleted this field.
// TotalUserTime += Microsoft.Boogie.SMTLib.SMTLibProcess.TotalUserTime;

TotalUserTime += Microsoft.Boogie.SMTLib.SMTLibProcess.TotalUserTime;
Console.WriteLine(string.Format("Total User CPU time: {0} s", TotalUserTime.TotalSeconds.ToString("F2")));


Expand Down

0 comments on commit 7d0b814

Please sign in to comment.