Skip to content

Commit 31eb222

Browse files
committed
returned counters
1 parent 5d0edb0 commit 31eb222

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

VSharp.Explorer/AISearcher.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,15 @@ type internal AISearcher(oracle: Oracle, aiAgentTrainingMode: Option<AIAgentTrai
385385
parentOf[j] <- int64 stateIds[state.Id]
386386
parentOf[numOfParentOfEdges + j] <- int64 stateIds[children])
387387

388+
firstFreePositionInParentsOf <- firstFreePositionInParentsOf + state.Children.Length
389+
388390
state.PathCondition
389391
|> Array.iteri (fun i pcId ->
390392
let j = firstFreePositionInPcToState + i
391393
index_pcToState[j] <- int64 pathConditionVerticesIds[pcId]
392394
index_pcToState[numOfParentOfEdges + j] <- int64 stateIds[state.Id])
395+
396+
firstFreePositionInPcToState <- firstFreePositionInPcToState + 1
393397

394398
state.History
395399
|> Array.iteri (fun i historyElem ->

VSharp.IL/Serializer.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,13 +495,13 @@ let collectGameState (basicBlocks: ResizeArray<BasicBlock>) filterStates process
495495
for term in pathCondition do
496496
pathConditionDelta.AddRange(collectPathCondition term termsWithId processedPathConditionVertices)
497497

498-
let pathConditionId = [| for p in pathCondition -> termsWithId.[p] |]
498+
let pathCondition = [| for p in pathCondition -> termsWithId.[p] |]
499499

500500
State(
501501
s.Id,
502502
(uint <| s.CodeLocation.offset - currentBasicBlock.StartOffset + 1<byte_offset>)
503503
* 1u<byte_offset>,
504-
pathConditionId,
504+
pathCondition,
505505
s.VisitedAgainVertices,
506506
s.VisitedNotCoveredVerticesInZone,
507507
s.VisitedNotCoveredVerticesOutOfZone,

0 commit comments

Comments
 (0)