Skip to content

Commit

Permalink
Bugfix + initial coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed Jan 14, 2024
1 parent 7c06f7e commit c447ab8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/Fault/Simulation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,14 @@ enum Simulator {
for tvcPair in coverageList {
testVectorHash.insert(tvcPair.vector)
sa0Covered.formUnion(tvcPair.coverage.sa0)
sa0Covered.formUnion(tvcPair.coverage.sa1)
sa1Covered.formUnion(tvcPair.coverage.sa1)
}
}

var coverage: Float = 0.0
var coverage: Float =
Float(sa0Covered.count + sa1Covered.count) /
Float(2 * faultPoints.count)
print("Initial coverage: \(coverage * 100)%")

var totalTVAttempts = 0
var tvAttempts = min(initialVectorCount, ceiling, sampleRun ? 1 : Int.max)
Expand Down

0 comments on commit c447ab8

Please sign in to comment.