Skip to content

Commit

Permalink
Add new attributes to Game repr
Browse files Browse the repository at this point in the history
  • Loading branch information
emnigma committed Jan 17, 2024
1 parent e1c397c commit 47a2f5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions VSharp.ML.AIAgent/common/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@
class StateHistoryElem:
GraphVertexId: int
NumOfVisits: int
StepWhenVisitedLastTime: int


@dataclass_json
@dataclass(slots=True)
class State:
Id: int
Position: int
PredictedUsefulness: float
PathConditionSize: int
VisitedAgainVertices: int
VisitedNotCoveredVerticesInZone: int
VisitedNotCoveredVerticesOutOfZone: int
StepWhenMovedLastTime: int
InstructionsVisitedInCurrentBlock: int
History: list[StateHistoryElem]
Children: list[int]

Expand All @@ -30,13 +32,14 @@ def __hash__(self) -> int:
@dataclass_json
@dataclass(slots=True)
class GameMapVertex:
Uid: int
Id: int
InCoverageZone: bool
BasicBlockSize: int
CoveredByTest: bool
VisitedByState: bool
TouchedByState: bool
ContainsCall: bool
ContainsThrow: bool
States: list[int]


Expand Down Expand Up @@ -69,7 +72,6 @@ class GameMap:
MaxSteps: int
CoverageToStart: int
AssemblyFullName: str
CoverageZone: bool
NameOfObjectToCover: str
MapName: str

Expand Down

0 comments on commit 47a2f5d

Please sign in to comment.