view test/suite_aggrs/config.lua @ 446:54c1dc2e6ea5

suite_aggrs: added knob to enable/disable generation of empty structs (some compilers like Plan9's pcc don't allow them)
author Tassilo Philipp
date Wed, 26 Jan 2022 23:04:07 +0100
parents 3d2c5d156d78
children c497b87552f6
line wrap: on
line source

-- user config for rand-sig.lua:
minargs      = 0
maxargs      = 16
maxaggrdepth = 3    -- max nesting depth of aggregates, 1 = no nesting
emptyaggrs   = true -- whether to allow empty aggregates or not
ncases       = 800
types        = "csijlpfd{}"
seed         = 2112

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

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

-- this heavily favors nested structs:
--types       = "csijlpfd{{{{{{}"

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