view test/suite_aggrs/config.lua @ 462:653b65580cb4

suite_aggr: - added arrays (inside of structs/unions, only, as only way to pass/return them by value) - cleanups and pregen of source
author Tassilo Philipp
date Tue, 01 Feb 2022 21:44:18 +0100
parents 236015fdf7a8
children bd8f5da2c74b
line wrap: on
line source

-- user config for rand-sig.lua:
minargs      = 0
maxargs      = 16
maxarraylen  = 16   -- note some callconvs pass structs via regs, so using big numbers here will reduce those cases
arraydice    = 40   -- how often to turn a member into an array (1 out of arraydice-times)
maxaggrdepth = 3    -- max nesting depth of aggregates, 1 = no nesting
emptyaggrs   = true -- whether to allow empty aggregates or not
ncases       = 400
types        = "csijlpfd{}<>"  -- {...} for structs, <...> for unions
seed         = 2112

-- specify types more than once to increase relative occurance, e.g.:

-- this favors non-aggregate args, especially ints (and also increases avg num of aggregate fields):
--types       = "ccssiiiiijjllpfd{}"

-- this heavily favors nested structs, while not having any union:
--types       = "csijlpfd{{{{{{}"

-- this heavily favors flat and short/empty aggregates:
--types       = "csijlpfd{}}}}}}<>>>>>"