Skip to content

Commit 025947b

Browse files
committed
Reset id counter.
1 parent c386dbe commit 025947b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

VSharp.IL/Serializer.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,14 @@ let collectStatesInfoToDump (basicBlocks: ResizeArray<BasicBlock>) =
348348

349349
statesInfoToDump
350350

351-
let getFirstFreePathConditionVertexId =
351+
let getFirstFreePathConditionVertexId, resetPathConditionVertexIdCounter =
352352
let mutable count = 0u<pathConditionVertexId>
353353

354354
fun () ->
355355
let res = count
356356
count <- count + 1u<pathConditionVertexId>
357357
res
358+
, fun () -> count <- 0u<pathConditionVertexId>
358359

359360
let pathConditionVertices = Dictionary<Core.term, PathConditionVertex>()
360361

VSharp.ML.GameServer.Runner/Main.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ let ws port outputDirectory (webSocket: WebSocket) (context: HttpContext) =
208208
API.Reset()
209209
HashMap.hashMap.Clear()
210210
Serializer.pathConditionVertices.Clear()
211+
Serializer.resetPathConditionVertexIdCounter ()
211212

212213
do!
213214
sendResponse (

0 commit comments

Comments
 (0)