Record Class FuzzReport

java.lang.Object
java.lang.Record
org.ek9lang.compiler.fuzz.FuzzReport

public record FuzzReport(long generated, long parseable, long compiled, long compilerCrashes, long knownLimitations, long formatterCrashes, long multiFilePrograms, long totalFiles, long corrections, double programsPerSec, Duration elapsed, long totalGenTimeNs, long totalParseTimeNs, long totalCompileTimeNs, long totalSourceBytes, long totalSourceLines, long minSourceLines, long maxSourceLines, Map<String,Long> errorCodeCounts, Map<String,Long> phaseReachedCounts, Map<String,Long> constructCounts, Map<String,Long> constructCrashCounts, Map<String,Long> controlFlowCounts, Map<String,Long> controlFlowCrashCounts, Map<Integer,Long> paramCountHistogram, Map<String,Long> templateUsageCounts, Map<String,Long> templateCrashCounts, long strand4Matches, long strand4Mismatches, long strand4NoError, long strand4Skips, Map<String,Long> policyCounts, long hierarchiesInjected, long traitImplementations, Map<String, Map<String,Long>> strandPhaseCounts, long harvestSuccesses, long harvestFailures, long hierarchyReverts, long strand4CompoundAttempts, long strand4CompoundMatches, long strand4SurvivorReuses, long strand5SurvivorFeeds, long weightAdjustmentCount, long blindSpotAttempts, long blindSpotTriggered, long s2TemplatesInvalidated, List<Long> seedRotationTimestamps, long peakUsedMemoryMb, long lastUsedMemoryMb, long maxHeapMb, List<FuzzReport.ConvergencePoint> convergencePoints, List<FuzzReport.WeightSnapshot> weightSnapshots, Map<String,Integer> firstDiscoveryCounts, Map<String, List<FuzzStatistics.DiscoveryEvent>> discoveryTimeline, Set<Integer> activeStrands) extends Record
Immutable snapshot of fuzz statistics at a point in time.
  • Constructor Details

    • FuzzReport

      public FuzzReport(long generated, long parseable, long compiled, long compilerCrashes, long knownLimitations, long formatterCrashes, long multiFilePrograms, long totalFiles, long corrections, double programsPerSec, Duration elapsed, long totalGenTimeNs, long totalParseTimeNs, long totalCompileTimeNs, long totalSourceBytes, long totalSourceLines, long minSourceLines, long maxSourceLines, Map<String,Long> errorCodeCounts, Map<String,Long> phaseReachedCounts, Map<String,Long> constructCounts, Map<String,Long> constructCrashCounts, Map<String,Long> controlFlowCounts, Map<String,Long> controlFlowCrashCounts, Map<Integer,Long> paramCountHistogram, Map<String,Long> templateUsageCounts, Map<String,Long> templateCrashCounts, long strand4Matches, long strand4Mismatches, long strand4NoError, long strand4Skips, Map<String,Long> policyCounts, long hierarchiesInjected, long traitImplementations, Map<String, Map<String,Long>> strandPhaseCounts, long harvestSuccesses, long harvestFailures, long hierarchyReverts, long strand4CompoundAttempts, long strand4CompoundMatches, long strand4SurvivorReuses, long strand5SurvivorFeeds, long weightAdjustmentCount, long blindSpotAttempts, long blindSpotTriggered, long s2TemplatesInvalidated, List<Long> seedRotationTimestamps, long peakUsedMemoryMb, long lastUsedMemoryMb, long maxHeapMb, List<FuzzReport.ConvergencePoint> convergencePoints, List<FuzzReport.WeightSnapshot> weightSnapshots, Map<String,Integer> firstDiscoveryCounts, Map<String, List<FuzzStatistics.DiscoveryEvent>> discoveryTimeline, Set<Integer> activeStrands)
      Creates an instance of a FuzzReport record class.
      Parameters:
      generated - the value for the generated record component
      parseable - the value for the parseable record component
      compiled - the value for the compiled record component
      compilerCrashes - the value for the compilerCrashes record component
      knownLimitations - the value for the knownLimitations record component
      formatterCrashes - the value for the formatterCrashes record component
      multiFilePrograms - the value for the multiFilePrograms record component
      totalFiles - the value for the totalFiles record component
      corrections - the value for the corrections record component
      programsPerSec - the value for the programsPerSec record component
      elapsed - the value for the elapsed record component
      totalGenTimeNs - the value for the totalGenTimeNs record component
      totalParseTimeNs - the value for the totalParseTimeNs record component
      totalCompileTimeNs - the value for the totalCompileTimeNs record component
      totalSourceBytes - the value for the totalSourceBytes record component
      totalSourceLines - the value for the totalSourceLines record component
      minSourceLines - the value for the minSourceLines record component
      maxSourceLines - the value for the maxSourceLines record component
      errorCodeCounts - the value for the errorCodeCounts record component
      phaseReachedCounts - the value for the phaseReachedCounts record component
      constructCounts - the value for the constructCounts record component
      constructCrashCounts - the value for the constructCrashCounts record component
      controlFlowCounts - the value for the controlFlowCounts record component
      controlFlowCrashCounts - the value for the controlFlowCrashCounts record component
      paramCountHistogram - the value for the paramCountHistogram record component
      templateUsageCounts - the value for the templateUsageCounts record component
      templateCrashCounts - the value for the templateCrashCounts record component
      strand4Matches - the value for the strand4Matches record component
      strand4Mismatches - the value for the strand4Mismatches record component
      strand4NoError - the value for the strand4NoError record component
      strand4Skips - the value for the strand4Skips record component
      policyCounts - the value for the policyCounts record component
      hierarchiesInjected - the value for the hierarchiesInjected record component
      traitImplementations - the value for the traitImplementations record component
      strandPhaseCounts - the value for the strandPhaseCounts record component
      harvestSuccesses - the value for the harvestSuccesses record component
      harvestFailures - the value for the harvestFailures record component
      hierarchyReverts - the value for the hierarchyReverts record component
      strand4CompoundAttempts - the value for the strand4CompoundAttempts record component
      strand4CompoundMatches - the value for the strand4CompoundMatches record component
      strand4SurvivorReuses - the value for the strand4SurvivorReuses record component
      strand5SurvivorFeeds - the value for the strand5SurvivorFeeds record component
      weightAdjustmentCount - the value for the weightAdjustmentCount record component
      blindSpotAttempts - the value for the blindSpotAttempts record component
      blindSpotTriggered - the value for the blindSpotTriggered record component
      s2TemplatesInvalidated - the value for the s2TemplatesInvalidated record component
      seedRotationTimestamps - the value for the seedRotationTimestamps record component
      peakUsedMemoryMb - the value for the peakUsedMemoryMb record component
      lastUsedMemoryMb - the value for the lastUsedMemoryMb record component
      maxHeapMb - the value for the maxHeapMb record component
      convergencePoints - the value for the convergencePoints record component
      weightSnapshots - the value for the weightSnapshots record component
      firstDiscoveryCounts - the value for the firstDiscoveryCounts record component
      discoveryTimeline - the value for the discoveryTimeline record component
      activeStrands - the value for the activeStrands record component
  • Method Details

    • seedRotations

      public long seedRotations()
      Backward-compatible count of seed rotations.
    • isStrandActive

      public boolean isStrandActive(int strand)
      Check if a specific strand was active during this run. Returns true when no filter was set (all strands active).
    • activeStrandsLabel

      public String activeStrandsLabel()
      Human-readable label for the active strands configuration.
    • uniqueErrorCodes

      public int uniqueErrorCodes()
    • uniqueConstructs

      public int uniqueConstructs()
    • uniqueControlFlow

      public int uniqueControlFlow()
    • avgSourceLines

      public double avgSourceLines()
    • avgFilesPerProgram

      public double avgFilesPerProgram()
    • multiFilePercent

      public double multiFilePercent()
    • parseablePercent

      public double parseablePercent()
    • compiledPercent

      public double compiledPercent()
    • uniqueTemplatesUsed

      public int uniqueTemplatesUsed()
    • strand4Total

      public long strand4Total()
    • strand4MatchPercent

      public double strand4MatchPercent()
    • strand4CompoundMatchPercent

      public double strand4CompoundMatchPercent()
      Get the percentage of a strand's programs that died at a given phase.
    • strandPhasePercent

      public double strandPhasePercent(String strandId, String phaseName)
    • totalFirstDiscoveries

      public int totalFirstDiscoveries()
    • discoverySharePercent

      public double discoverySharePercent(String strandId)
    • mergedTemplateUsage

      public Map<String,long[]> mergedTemplateUsage()
      Merge probe/mutate/targeted template usage into per-QA-ID arrays.
      Returns:
      qaId to [probeCount, mutateCount, targetedCount]
    • mergedTemplateCrashes

      public Map<String,long[]> mergedTemplateCrashes()
      Merge probe/mutate/targeted template crashes into per-QA-ID arrays.
      Returns:
      qaId to [probeCrashes, mutateCrashes, targetedCrashes]
    • strandComplementarityMatrix

      public int[][] strandComplementarityMatrix()
      Build a 5x5 complementarity matrix showing error code overlap between strands. Cell (i,j) = number of codes first discovered by Si that Sj never found at any count. Diagonal = total first discoveries for that strand.
    • errorGroupByStrand

      public Map<String,int[]> errorGroupByStrand()
      Cross-tabulate error code prefixes by strand. Returns prefix (E01-E81) to int[5] per-strand first-discovery counts.
    • strandPhaseBoxPlotStats

      public Map<String,double[]> strandPhaseBoxPlotStats()
      Compute box plot statistics (min, Q1, median, Q3, max) of phase ordinals per strand. Used for phase penetration box plot visualization.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • generated

      public long generated()
      Returns the value of the generated record component.
      Returns:
      the value of the generated record component
    • parseable

      public long parseable()
      Returns the value of the parseable record component.
      Returns:
      the value of the parseable record component
    • compiled

      public long compiled()
      Returns the value of the compiled record component.
      Returns:
      the value of the compiled record component
    • compilerCrashes

      public long compilerCrashes()
      Returns the value of the compilerCrashes record component.
      Returns:
      the value of the compilerCrashes record component
    • knownLimitations

      public long knownLimitations()
      Returns the value of the knownLimitations record component.
      Returns:
      the value of the knownLimitations record component
    • formatterCrashes

      public long formatterCrashes()
      Returns the value of the formatterCrashes record component.
      Returns:
      the value of the formatterCrashes record component
    • multiFilePrograms

      public long multiFilePrograms()
      Returns the value of the multiFilePrograms record component.
      Returns:
      the value of the multiFilePrograms record component
    • totalFiles

      public long totalFiles()
      Returns the value of the totalFiles record component.
      Returns:
      the value of the totalFiles record component
    • corrections

      public long corrections()
      Returns the value of the corrections record component.
      Returns:
      the value of the corrections record component
    • programsPerSec

      public double programsPerSec()
      Returns the value of the programsPerSec record component.
      Returns:
      the value of the programsPerSec record component
    • elapsed

      public Duration elapsed()
      Returns the value of the elapsed record component.
      Returns:
      the value of the elapsed record component
    • totalGenTimeNs

      public long totalGenTimeNs()
      Returns the value of the totalGenTimeNs record component.
      Returns:
      the value of the totalGenTimeNs record component
    • totalParseTimeNs

      public long totalParseTimeNs()
      Returns the value of the totalParseTimeNs record component.
      Returns:
      the value of the totalParseTimeNs record component
    • totalCompileTimeNs

      public long totalCompileTimeNs()
      Returns the value of the totalCompileTimeNs record component.
      Returns:
      the value of the totalCompileTimeNs record component
    • totalSourceBytes

      public long totalSourceBytes()
      Returns the value of the totalSourceBytes record component.
      Returns:
      the value of the totalSourceBytes record component
    • totalSourceLines

      public long totalSourceLines()
      Returns the value of the totalSourceLines record component.
      Returns:
      the value of the totalSourceLines record component
    • minSourceLines

      public long minSourceLines()
      Returns the value of the minSourceLines record component.
      Returns:
      the value of the minSourceLines record component
    • maxSourceLines

      public long maxSourceLines()
      Returns the value of the maxSourceLines record component.
      Returns:
      the value of the maxSourceLines record component
    • errorCodeCounts

      public Map<String,Long> errorCodeCounts()
      Returns the value of the errorCodeCounts record component.
      Returns:
      the value of the errorCodeCounts record component
    • phaseReachedCounts

      public Map<String,Long> phaseReachedCounts()
      Returns the value of the phaseReachedCounts record component.
      Returns:
      the value of the phaseReachedCounts record component
    • constructCounts

      public Map<String,Long> constructCounts()
      Returns the value of the constructCounts record component.
      Returns:
      the value of the constructCounts record component
    • constructCrashCounts

      public Map<String,Long> constructCrashCounts()
      Returns the value of the constructCrashCounts record component.
      Returns:
      the value of the constructCrashCounts record component
    • controlFlowCounts

      public Map<String,Long> controlFlowCounts()
      Returns the value of the controlFlowCounts record component.
      Returns:
      the value of the controlFlowCounts record component
    • controlFlowCrashCounts

      public Map<String,Long> controlFlowCrashCounts()
      Returns the value of the controlFlowCrashCounts record component.
      Returns:
      the value of the controlFlowCrashCounts record component
    • paramCountHistogram

      public Map<Integer,Long> paramCountHistogram()
      Returns the value of the paramCountHistogram record component.
      Returns:
      the value of the paramCountHistogram record component
    • templateUsageCounts

      public Map<String,Long> templateUsageCounts()
      Returns the value of the templateUsageCounts record component.
      Returns:
      the value of the templateUsageCounts record component
    • templateCrashCounts

      public Map<String,Long> templateCrashCounts()
      Returns the value of the templateCrashCounts record component.
      Returns:
      the value of the templateCrashCounts record component
    • strand4Matches

      public long strand4Matches()
      Returns the value of the strand4Matches record component.
      Returns:
      the value of the strand4Matches record component
    • strand4Mismatches

      public long strand4Mismatches()
      Returns the value of the strand4Mismatches record component.
      Returns:
      the value of the strand4Mismatches record component
    • strand4NoError

      public long strand4NoError()
      Returns the value of the strand4NoError record component.
      Returns:
      the value of the strand4NoError record component
    • strand4Skips

      public long strand4Skips()
      Returns the value of the strand4Skips record component.
      Returns:
      the value of the strand4Skips record component
    • policyCounts

      public Map<String,Long> policyCounts()
      Returns the value of the policyCounts record component.
      Returns:
      the value of the policyCounts record component
    • hierarchiesInjected

      public long hierarchiesInjected()
      Returns the value of the hierarchiesInjected record component.
      Returns:
      the value of the hierarchiesInjected record component
    • traitImplementations

      public long traitImplementations()
      Returns the value of the traitImplementations record component.
      Returns:
      the value of the traitImplementations record component
    • strandPhaseCounts

      public Map<String, Map<String,Long>> strandPhaseCounts()
      Returns the value of the strandPhaseCounts record component.
      Returns:
      the value of the strandPhaseCounts record component
    • harvestSuccesses

      public long harvestSuccesses()
      Returns the value of the harvestSuccesses record component.
      Returns:
      the value of the harvestSuccesses record component
    • harvestFailures

      public long harvestFailures()
      Returns the value of the harvestFailures record component.
      Returns:
      the value of the harvestFailures record component
    • hierarchyReverts

      public long hierarchyReverts()
      Returns the value of the hierarchyReverts record component.
      Returns:
      the value of the hierarchyReverts record component
    • strand4CompoundAttempts

      public long strand4CompoundAttempts()
      Returns the value of the strand4CompoundAttempts record component.
      Returns:
      the value of the strand4CompoundAttempts record component
    • strand4CompoundMatches

      public long strand4CompoundMatches()
      Returns the value of the strand4CompoundMatches record component.
      Returns:
      the value of the strand4CompoundMatches record component
    • strand4SurvivorReuses

      public long strand4SurvivorReuses()
      Returns the value of the strand4SurvivorReuses record component.
      Returns:
      the value of the strand4SurvivorReuses record component
    • strand5SurvivorFeeds

      public long strand5SurvivorFeeds()
      Returns the value of the strand5SurvivorFeeds record component.
      Returns:
      the value of the strand5SurvivorFeeds record component
    • weightAdjustmentCount

      public long weightAdjustmentCount()
      Returns the value of the weightAdjustmentCount record component.
      Returns:
      the value of the weightAdjustmentCount record component
    • blindSpotAttempts

      public long blindSpotAttempts()
      Returns the value of the blindSpotAttempts record component.
      Returns:
      the value of the blindSpotAttempts record component
    • blindSpotTriggered

      public long blindSpotTriggered()
      Returns the value of the blindSpotTriggered record component.
      Returns:
      the value of the blindSpotTriggered record component
    • s2TemplatesInvalidated

      public long s2TemplatesInvalidated()
      Returns the value of the s2TemplatesInvalidated record component.
      Returns:
      the value of the s2TemplatesInvalidated record component
    • seedRotationTimestamps

      public List<Long> seedRotationTimestamps()
      Returns the value of the seedRotationTimestamps record component.
      Returns:
      the value of the seedRotationTimestamps record component
    • peakUsedMemoryMb

      public long peakUsedMemoryMb()
      Returns the value of the peakUsedMemoryMb record component.
      Returns:
      the value of the peakUsedMemoryMb record component
    • lastUsedMemoryMb

      public long lastUsedMemoryMb()
      Returns the value of the lastUsedMemoryMb record component.
      Returns:
      the value of the lastUsedMemoryMb record component
    • maxHeapMb

      public long maxHeapMb()
      Returns the value of the maxHeapMb record component.
      Returns:
      the value of the maxHeapMb record component
    • convergencePoints

      public List<FuzzReport.ConvergencePoint> convergencePoints()
      Returns the value of the convergencePoints record component.
      Returns:
      the value of the convergencePoints record component
    • weightSnapshots

      public List<FuzzReport.WeightSnapshot> weightSnapshots()
      Returns the value of the weightSnapshots record component.
      Returns:
      the value of the weightSnapshots record component
    • firstDiscoveryCounts

      public Map<String,Integer> firstDiscoveryCounts()
      Returns the value of the firstDiscoveryCounts record component.
      Returns:
      the value of the firstDiscoveryCounts record component
    • discoveryTimeline

      public Map<String, List<FuzzStatistics.DiscoveryEvent>> discoveryTimeline()
      Returns the value of the discoveryTimeline record component.
      Returns:
      the value of the discoveryTimeline record component
    • activeStrands

      public Set<Integer> activeStrands()
      Returns the value of the activeStrands record component.
      Returns:
      the value of the activeStrands record component