aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prog/prio.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/prog/prio.go b/prog/prio.go
index 535999c1a..681708893 100644
--- a/prog/prio.go
+++ b/prog/prio.go
@@ -224,6 +224,9 @@ func (target *Target) BuildChoiceTable(corpus []*Prog, enabled map[*Syscall]bool
}
prios := target.CalculatePriorities(corpus)
run := make([][]int32, len(target.Syscalls))
+ // ChoiceTable.runs[][] contains cumulated sum of weighted priority numbers.
+ // This helps in quick binary search with biases when generating programs.
+ // This only applies for system calls that are enabled for the target.
for i := range run {
if !enabled[target.Syscalls[i]] {
continue