diff options
Diffstat (limited to 'contrib/bc/tests/fuzzing/bc_inputs3/11.txt')
-rw-r--r-- | contrib/bc/tests/fuzzing/bc_inputs3/11.txt | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/contrib/bc/tests/fuzzing/bc_inputs3/11.txt b/contrib/bc/tests/fuzzing/bc_inputs3/11.txt new file mode 100644 index 000000000000..19e7e87b2d65 --- /dev/null +++ b/contrib/bc/tests/fuzzing/bc_inputs3/11.txt @@ -0,0 +1,99 @@ +#0000000000000000 + +define printarray(a[],len){ + +auto i + +for(i=0; i < n; ++i) { + a[i] + } +} + +define a2(a[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a[i] = a[i] * a[i] + } + + printarray(len, n) +} + +define a4(a00[], l) { + + auto i + + for (i = 0; i < l; ++i) { + a[i] = a00[i] * a[i] + } + + printarray(a00[], l) +} + +define a6(*a00[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a00[i] = a00[i] * a00[i] + } + + printarray(a00[], len) +} + +define a1(*a[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a[i] = i + } + + a2(a[], len) + + printarray(a[], len) +} + +define a0(*a00[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a00[i] = i + } + + a0(a00[], len) + + printarray(a00[], len) +} + +define a5(*a00[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a00[i] = i + } + + a0(a00[], len) + + printarray(a, len) +} + +define a7(*a00[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a00[i] = i + } + + a0(a00[], len) + + printarray(a00[], len) +} + +len = 16 + +a1(a[], len) |