Skip to content

Commit

Permalink
revert unneccessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmdghks committed Oct 1, 2024
1 parent 59fd7f8 commit 5f5257c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions src/main/scala/esmeta/es/util/fuzzer/Fuzzer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Fuzzer(
genStatHeader(mutator.names, mutStatTsv)
})
time(
s"- initializing program pool with ${initPool.size} programs\n", {
s"- initializing program pool with ${initPool.size} programs", {
var i = 1
for {
(synthesizer, rawCode) <- initPool
Expand Down Expand Up @@ -358,10 +358,7 @@ class Fuzzer(
if (kFs > 0) row ++= Vector(tcv)
addRow(row)
// dump coverage
if (dumpDetail == 2)
cov.dumpToWithDetail(logDir, withMsg = (debug == ALL))
else if (dumpDetail == 1)
cov.dumpTo(logDir)
cov.dumpToWithDetail(logDir, withMsg = (debug == ALL))
dumpStat(mutator.names, mutatorStat, mutStatTsv)
private def addRow(data: Iterable[Any], nf: PrintWriter = summaryTsv): Unit =
val row = data.mkString("\t")
Expand Down
5 changes: 1 addition & 4 deletions src/main/scala/esmeta/phase/MinifyFuzz.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ case object MinifyFuzz extends Phase[CFG, Coverage] {
dumpDetail = config.dumpDetail,
)

if (config.dumpDetail == 2)
for (dirname <- config.out) cov.dumpToWithDetail(dirname)
else if (config.dumpDetail == 1)
for (dirname <- config.out) cov.dumpTo(dirname)
for (dirname <- config.out) cov.dumpToWithDetail(dirname)

cov

Expand Down

0 comments on commit 5f5257c

Please sign in to comment.