Mercurial > pub > dyncall > dyncall
comparison test/call_suite_aggrs/config.lua @ 502:a4ed1564024a
- cosmetics
author | Tassilo Philipp |
---|---|
date | Fri, 08 Apr 2022 17:43:37 +0200 |
parents | d45c582b5457 |
children | c9c546f8598b |
comparison
equal
deleted
inserted
replaced
501:62c3746390da | 502:a4ed1564024a |
---|---|
1 -- user config for rand-sig.lua: | 1 -- user config for rand-sig.lua: |
2 minargs = 0 | 2 minargs = 0 |
3 maxargs = 16 | 3 maxargs = 16 |
4 minaggrfields= 0 -- 0 allows for empty structs/unions | 4 minaggrfields= 0 -- 0 allows for empty structs/unions |
5 maxaggrfields= 12 | 5 maxaggrfields= 12 |
6 maxarraylen = 16 -- see 1) | 6 maxarraylen = 16 -- see *) |
7 arraydice = 40 -- how often to turn a member into an array (1 out of arraydice-times) | 7 arraydice = 40 -- how often to turn a member into an array (1 out of arraydice-times) |
8 maxaggrdepth = 3 -- max nesting depth of aggregates, 1 = no nesting | 8 maxaggrdepth = 3 -- max nesting depth of aggregates, 1 = no nesting |
9 reqaggrinsig = true -- require that every generated signature has at least one aggregate | 9 reqaggrinsig = true -- require that every generated signature has at least one aggregate |
10 ncases = 400 | 10 ncases = 400 |
11 types = "csijlCSIJLpfd{}<>" -- {...} for structs, <...> for unions | 11 types = "csijlCSIJLpfd{}<>" -- {...} for structs, <...> for unions |
12 seed = 2112 | 12 seed = 2112 |
13 | 13 |
14 -- specify types more than once to increase relative occurance, e.g.: | 14 -- *) note some callconvs pass structs via regs, so using big numbers here will |
15 -- reduce those cases; however special alignment rules are specified in some | |
16 -- ABIs for bigger arrays, which is also worth testing | |
17 | |
18 | |
19 | |
20 -- Notes: specify types more than once to increase relative occurance, e.g.: | |
15 | 21 |
16 -- this favors non-aggregate args, especially ints (and also increases avg num of aggregate fields): | 22 -- this favors non-aggregate args, especially ints (and also increases avg num of aggregate fields): |
17 --types = "ccssiiiiijjllpfd{}" | 23 --types = "ccssiiiiijjllpfd{}" |
18 | 24 |
19 -- this heavily favors nested structs, while not having any union: | 25 -- this heavily favors nested structs, while not having any union: |
20 --types = "csijlpfd{{{{{{}" | 26 --types = "csijlpfd{{{{{{}" |
21 | 27 |
22 -- this heavily favors flat and short/empty aggregates: | 28 -- this heavily favors flat and short/empty aggregates: |
23 --types = "csijlpfd{}}}}}}<>>>>>" | 29 --types = "csijlpfd{}}}}}}<>>>>>" |
24 | 30 |
25 | |
26 -- 1) note some callconvs pass structs via regs, so using big numbers here will | |
27 -- reduce those cases; however special alignment rules are specified in some | |
28 -- ABIs for bigger arrays, which is also worth testing | |
29 | 31 |
30 | 32 |
31 -- user config for mk-cases.lua | 33 -- user config for mk-cases.lua |
32 | 34 |
33 -- if true, aggregates are copied via = operator, otherwise field by field | 35 -- if true, aggregates are copied via = operator, otherwise field by field |