Skip to content

Commit

Permalink
Include the solver used in each VCResult
Browse files Browse the repository at this point in the history
  • Loading branch information
atomb committed Aug 9, 2023
1 parent 0b1e684 commit 22e292f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Source/VCGeneration/Split.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.IO;
using Microsoft.BaseTypes;
using Microsoft.Boogie.VCExprAST;
using Microsoft.Boogie.SMTLib;

namespace VC
{
Expand Down Expand Up @@ -1287,7 +1288,8 @@ public int GetHashCode(List<Block> obj)
counterExamples: Counterexamples,
asserts: Asserts,
coveredElements: CoveredElements,
resourceCount: resourceCount);
resourceCount: resourceCount,
solverUsed: (options as SMTLibSolverOptions)?.Solver);
callback.OnVCResult(result);

if (options.VcsDumpSplits)
Expand Down
4 changes: 3 additions & 1 deletion Source/VCGeneration/VCResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.IO;
using Microsoft.BaseTypes;
using Microsoft.Boogie.VCExprAST;
using Microsoft.Boogie.SMTLib;

namespace VC
{
Expand All @@ -25,7 +26,8 @@ public record VCResult
List<Counterexample> counterExamples,
List<AssertCmd> asserts,
IEnumerable<string> coveredElements,
int resourceCount
int resourceCount,
SolverKind? solverUsed
) {
public void ComputePerAssertOutcomes(out Dictionary<AssertCmd, ProverInterface.Outcome> perAssertOutcome,
out Dictionary<AssertCmd, Counterexample> perAssertCounterExamples) {
Expand Down

0 comments on commit 22e292f

Please sign in to comment.