diff options
author | Gavin Howard <gavin@yzena.com> | 2021-07-31 14:35:23 -0600 |
---|---|---|
committer | Gavin Howard <gavin@yzena.com> | 2021-07-31 14:35:23 -0600 |
commit | f7c32654fa3c8e699012dc17091fa0af493a9c84 (patch) | |
tree | 4badba8165f7a5e64a30236dd34d6a08cf56a2d8 | |
parent | 735450ad507d9ba6e7dfc7b0b2525bd5e55ac6df (diff) | |
download | bc-f7c32654fa3c8e699012dc17091fa0af493a9c84.tar.gz |
Run afl-cmin on the corpuses
This should make fuzzing go faster. Hopefully.
Signed-off-by: Gavin Howard <gavin@yzena.com>
90 files changed, 1223 insertions, 747 deletions
diff --git a/tests/fuzzing/bc_inputs1/abs.txt b/tests/fuzzing/bc_inputs1/abs.txt deleted file mode 120000 index 686f3317..00000000 --- a/tests/fuzzing/bc_inputs1/abs.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/abs.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs1/add.txt b/tests/fuzzing/bc_inputs1/add.txt deleted file mode 100644 index b84f7438..00000000 --- a/tests/fuzzing/bc_inputs1/add.txt +++ /dev/null @@ -1,84 +0,0 @@ -0 + 0 -0 + 1 -1 + 1 -1 + 0 -2 + 5 -237 + 483 -999 + 999 -2374623 + 324869356734856 -2378639084586723980562 + 23468729367839 -37298367203972395108367910823465293084561329084561390845613409516734503870691837451 + 785621394067928346918023476190834672198467134908618723249671349062187346898241093486139046139084613490817356023871869102746182749061872609129847 -1.1 + 0 -0 + 1.1 -457283.731284923576 + 37842934672834.3874629385672354 -1.0 + 0.1 -3746289134067138046 + 0.138375863945672398456712389456273486293 --1 + -1 --4 + -15 --1346782 + -1287904651762468913476 -99999999999999999999999999999999999999999999999999999999999.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 + 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 -99999999999999999999999999999999999989999999999999999999999.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 + 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 --1889985797 + 2012747315 -0 + -14338.391079082 --2422297 + 1.3134942556 -182039471029834 + 282039471029834 -282039471029834 + 182039471029834 -182039471029834.2801722893 + 282039471029834 -182039471029834.2801722893 + 282039471029834.2838 -182039471029834 + 282039471029834.2801722893 -182039471029834.8297282893 + 282039471029834.2801722893 -471029834 + 282039471029834 -471029834.2801722893 + 282039471029834 -471029834.2801722893 + 282039471029834.2838 -471029834 + 282039471029834.2801722893 -471029834.8297282893 + 282039471029834.2801722893 -182039471029834 + 471029834 -182039471029834.2801722893 + 471029834 -182039471029834.2801722893 + 471029834.2838 -182039471029834 + 471029834.2801722893 -182039471029834.8297282893 + 471029834.2801722893 --182039471029834 + 282039471029834 --182039471029834.2801722893 + 282039471029834 --182039471029834.2801722893 + 282039471029834.2838 --182039471029834 + 282039471029834.2801722893 --182039471029834.8297282893 + 282039471029834.2801722893 --471029834 + 282039471029834 --471029834.2801722893 + 282039471029834 --471029834.2801722893 + 282039471029834.2838 --471029834 + 282039471029834.2801722893 --471029834.8297282893 + 282039471029834.2801722893 --182039471029834 + 471029834 --182039471029834.2801722893 + 471029834 --182039471029834.2801722893 + 471029834.2838 --182039471029834 + 471029834.2801722893 --182039471029834.8297282893 + 471029834.2801722893 -182039471029834 + -282039471029834 -182039471029834.2801722893 + -282039471029834 -182039471029834.2801722893 + -282039471029834.2838 -182039471029834 + -282039471029834.2801722893 -182039471029834.8297282893 + -282039471029834.2801722893 -471029834 + -282039471029834 -471029834.2801722893 + -282039471029834 -471029834.2801722893 + -282039471029834.2838 -471029834 + -282039471029834.2801722893 -471029834.8297282893 + -282039471029834.2801722893 -182039471029834 + -471029834 -182039471029834.2801722893 + -471029834 -182039471029834.2801722893 + -471029834.2838 -182039471029834 + -471029834.2801722893 -182039471029834.8297282893 + -471029834.2801722893 --182039471029834 + -282039471029834 --182039471029834.2801722893 + -282039471029834 --182039471029834.2801722893 + -282039471029834.2838 --182039471029834 + -282039471029834.2801722893 --182039471029834.8297282893 + -282039471029834.2801722893 --471029834 + -282039471029834 --471029834.2801722893 + -282039471029834 --471029834.2801722893 + -282039471029834.2838 --471029834 + -282039471029834.2801722893 --471029834.8297282893 + -282039471029834.2801722893 --182039471029834 + -471029834 --182039471029834.2801722893 + -471029834 --182039471029834.2801722893 + -471029834.2838 --182039471029834 + -471029834.2801722893 --182039471029834.8297282893 + -471029834.2801722893 diff --git a/tests/fuzzing/bc_inputs1/arctangent.txt b/tests/fuzzing/bc_inputs1/arctangent.txt deleted file mode 100644 index f665ea90..00000000 --- a/tests/fuzzing/bc_inputs1/arctangent.txt +++ /dev/null @@ -1,26 +0,0 @@ -a(.267) -a(1) -scale = 64 -a(.267) -a(1) -scale = 100 -a(.267) -a(1) -scale = 20 -a(0) -a(.5) -a(0.577350269189625764509148780501) -a(1.5) -a(1.7320508075688772935274463415) -a(2) -a(3) -a(1000) -a(-.5) -a(-0.577350269189625764509148780501) -a(-1.5) -a(-1.7320508075688772935274463415) -a(-2) -a(-3) -a(-1000) -a(-3249917614.2821897119) -a(-694706362.1974670468) diff --git a/tests/fuzzing/bc_inputs1/array.bc b/tests/fuzzing/bc_inputs1/array.bc index 4a3f8674..dac23280 120000..100644 --- a/tests/fuzzing/bc_inputs1/array.bc +++ b/tests/fuzzing/bc_inputs1/array.bc @@ -1 +1,60 @@ -../../bc/scripts/array.bc
\ No newline at end of file +#! /usr/bin/bc -q + +define z(a[]) { + for (i = 0; i < l; ++i) { + a[i] + } +} + +define x(a[]) { + + # Test for separate vars and arrays. + auto a + + for (a = 0; a < l; ++a) { + a[a] = -a + } + + z(a[]) +} + +define g(x[], y[]) { + return x[0] - y[0] +} + +define h(y[], x[]) { + return g(x[], y[]) +} + +define m(*x[], *y[]) { + return x[0] / y[0] +} + +define n(*y[], *x[]) { + return m(x[], y[]) +} + +for (i = 0; i < 101; ++i) { + a[i] = i +} + +a[104] = 204 + +l = length(a[]) + +for (i = 0; i <= l; ++i) { + a[i] +} + +z(a[]) +x(a[]) +z(a[]) +l + +x[0] = 5 +y[0] = 4 + +h(x[], y[]) +n(x[], y[]) + +halt diff --git a/tests/fuzzing/bc_inputs1/arrays.txt b/tests/fuzzing/bc_inputs1/arrays.txt deleted file mode 120000 index 97991c7e..00000000 --- a/tests/fuzzing/bc_inputs1/arrays.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/arrays.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs1/assignments.txt b/tests/fuzzing/bc_inputs1/assignments.txt deleted file mode 120000 index b7e8da93..00000000 --- a/tests/fuzzing/bc_inputs1/assignments.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/assignments.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs1/basic.txt b/tests/fuzzing/bc_inputs1/basic.txt deleted file mode 100644 index f3d957a2..00000000 --- a/tests/fuzzing/bc_inputs1/basic.txt +++ /dev/null @@ -1,7 +0,0 @@ -scale=10;123981239.981273987 * 12983791827398.29836472638 -scale=100;759634576394.3946587934658364895 / 9834759834895386.36459364958346 -34895734986539489834759837489573498573.398475984759837485734987598345 + 9823749832749872384234872934.28347982374987239847982374 -a=123123123.987239874; b=123123123.239479823748; a+b -20347023.23498723984 - 28934723874.234720384 -scale=100;a=739534985.895347284957;b=238746782364.2374623784; c = a / b; c+0 - diff --git a/tests/fuzzing/bc_inputs1/boolean.txt b/tests/fuzzing/bc_inputs1/boolean.txt deleted file mode 120000 index 64910764..00000000 --- a/tests/fuzzing/bc_inputs1/boolean.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/boolean.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs1/cosine.txt b/tests/fuzzing/bc_inputs1/cosine.txt deleted file mode 100644 index 6e6fb0e9..00000000 --- a/tests/fuzzing/bc_inputs1/cosine.txt +++ /dev/null @@ -1,29 +0,0 @@ -scale = 25 -p = 4 * a(1) -scale = 20 -c(0) -c(0.5) -c(1) -c(-0.5) -c(-1) -c(p / 7) -c(-p / 7) -c(3 * p / 4) -c(3 * -p / 4) -c(p) -c(-p) -c(3 * p / 2) -c(3 * -p / 2) -c(2 * p) -c(2 * -p) -c(131231) -c(-131231) -c(859799894.3562378245) -c(4307371) -c(3522556.3323810191) -c(44961070) -c(6918619.1574479809) -c(190836996.2180244164) -c(34934) -c(2483599) -c(13720376) diff --git a/tests/fuzzing/bc_inputs1/divide.txt b/tests/fuzzing/bc_inputs1/divide.txt deleted file mode 100644 index 28a7b6fd..00000000 --- a/tests/fuzzing/bc_inputs1/divide.txt +++ /dev/null @@ -1,20 +0,0 @@ -1 / 1 -1 / 1287469297356 -1 / 0.2395672438567234 -1 / 237586239856.0293596728392360 -1249687284356 / 3027949207835207 -35768293846193284 / 2374568947.045762839567823 --78987234567812345 / 876542837618936 --5203475364850390 / 435742903748307.70869378534043296404530458 --0.37861723347576903 / 7385770896 --0.6920414523873204 / 356489645223.76076045304879030 --35872917389671.7573280963748 / 73924708 --2374123896417.143789621437581 / 347821469423789.1473856783960 --896729350238549726 / -34976289345762 --237584692306721845726038 / -21783910782374529637.978102738746189024761 --0.9186739823576829347586 / -0.235678293458756239846 --0.9375896183746982374568 / -13784962873546.0928729395476283745 --2930754618923467.12323745862937465 / -734869238465 --23745861923467.874675129834675 / -0.23542357869124756 --3878923750692883.7238596702834756902 / -7384192674957215364986723.9738461923487621983 -1 / 0.00000000000000000000000000000000000000000002346728372937352457354204563027 diff --git a/tests/fuzzing/bc_inputs1/engineering.txt b/tests/fuzzing/bc_inputs1/engineering.txt deleted file mode 120000 index 439c6c9c..00000000 --- a/tests/fuzzing/bc_inputs1/engineering.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/engineering.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs1/exponent.txt b/tests/fuzzing/bc_inputs1/exponent.txt deleted file mode 120000 index bd282b6a..00000000 --- a/tests/fuzzing/bc_inputs1/exponent.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/exponent.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs1/functions.bc b/tests/fuzzing/bc_inputs1/functions.bc index 9a7e0feb..80d6d162 120000..100644 --- a/tests/fuzzing/bc_inputs1/functions.bc +++ b/tests/fuzzing/bc_inputs1/functions.bc @@ -1 +1,7 @@ -../../bc/scripts/functions.bc
\ No newline at end of file +e(0.5) + +define e(x) { + return x +} + +e(0.5) diff --git a/tests/fuzzing/bc_inputs1/functions.txt b/tests/fuzzing/bc_inputs1/functions.txt deleted file mode 120000 index c87f8568..00000000 --- a/tests/fuzzing/bc_inputs1/functions.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/functions.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs1/globals.txt b/tests/fuzzing/bc_inputs1/globals.txt deleted file mode 120000 index feb20d5c..00000000 --- a/tests/fuzzing/bc_inputs1/globals.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/globals.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs1/len.bc b/tests/fuzzing/bc_inputs1/len.bc index 11d2f524..ec931f23 120000..100644 --- a/tests/fuzzing/bc_inputs1/len.bc +++ b/tests/fuzzing/bc_inputs1/len.bc @@ -1 +1,48 @@ -../../bc/scripts/len.bc
\ No newline at end of file +define fast_gcd(a, b) { + + if (a == b) return a; + if (a > b) return fast_gcd(a - b, b) + + return fast_gcd(a, b - a); +} + +define void r_reduce(*r[]) { + + auto g,s; + + if (length(r[]) != 2) sqrt(-1); + if (scale(r[0])) 2^r[0]; + if (scale(r[1])) 2^r[1]; + + if (r[0] >= 0 && r[1] >= 0) g = fast_gcd(r[0], r[1]); + else g = gcd(r[0], r[1]); + + s = scale; + scale = 0; + + r[0] /= g; + r[1] /= g; + + scale = s; +} + +define void r_init(*r[], a, b) { + r[0] = a; + r[1] = b; + r_reduce(r[]); +} + +define void r_initi(*r[], i, a, b) { + + length(r[]); + + r[0] = i * b + a; + r[1] = b; + + length(r[]); + + r_reduce(r[]); +} + +length(a[]) +r_initi(a[], 5, 63, 94); diff --git a/tests/fuzzing/bc_inputs1/length.txt b/tests/fuzzing/bc_inputs1/length.txt deleted file mode 100644 index 250b9693..00000000 --- a/tests/fuzzing/bc_inputs1/length.txt +++ /dev/null @@ -1,21 +0,0 @@ -length(0) -length(1) -length(1234567890) -length(1.0) -length(1234567890.0) -length(.1) -length(.1234567890) -length(.01) -length(.01234567890) -length(.0000000001) -length(.0000000001234567890) -length(289.29837) -length(2893.00000) -length(289.0) -length(1802973.0000000238) -length(.000000000000000093182394080000000000) -a[0] = 0 -a[5] = 0 -length(a[]) -length("astnohe") -v="astoh";length(v) diff --git a/tests/fuzzing/bc_inputs1/lib11.txt b/tests/fuzzing/bc_inputs1/lib11.txt deleted file mode 100644 index 5bb262bd..00000000 --- a/tests/fuzzing/bc_inputs1/lib11.txt +++ /dev/null @@ -1,4 +0,0 @@ -perm(10, 2) -comb(10, 2) -perm(6, 2) -comb(6, 2) diff --git a/tests/fuzzing/bc_inputs1/lib4.txt b/tests/fuzzing/bc_inputs1/lib4.txt deleted file mode 100644 index 9f532337..00000000 --- a/tests/fuzzing/bc_inputs1/lib4.txt +++ /dev/null @@ -1,10 +0,0 @@ -binary(0) -hex(0) -binary(1) -hex(1) -binary(2) -hex(2) -binary(15) -hex(15) -binary(16) -hex(16) diff --git a/tests/fuzzing/bc_inputs1/lib5.txt b/tests/fuzzing/bc_inputs1/lib5.txt deleted file mode 100644 index c69a4916..00000000 --- a/tests/fuzzing/bc_inputs1/lib5.txt +++ /dev/null @@ -1,2 +0,0 @@ -uint32(2147483647) -int32(2147483647) diff --git a/tests/fuzzing/bc_inputs1/lib7.txt b/tests/fuzzing/bc_inputs1/lib7.txt deleted file mode 100644 index edd66a40..00000000 --- a/tests/fuzzing/bc_inputs1/lib7.txt +++ /dev/null @@ -1,12 +0,0 @@ -ubytes(0) -ubytes(1) -ubytes(2) -sbytes(0) -sbytes(1) -sbytes(-1) -sbytes(2) -sbytes(127) -sbytes(128) -sbytes(254) -sbytes(255) -sbytes(256) diff --git a/tests/fuzzing/bc_inputs1/lib8.txt b/tests/fuzzing/bc_inputs1/lib8.txt deleted file mode 100644 index a4cc720c..00000000 --- a/tests/fuzzing/bc_inputs1/lib8.txt +++ /dev/null @@ -1,3 +0,0 @@ -l2(0) -l2(8) -l2(-8) diff --git a/tests/fuzzing/bc_inputs1/strings.txt b/tests/fuzzing/bc_inputs1/strings.txt deleted file mode 100644 index a58dd0c5..00000000 --- a/tests/fuzzing/bc_inputs1/strings.txt +++ /dev/null @@ -1,14 +0,0 @@ -v = "string" -v -"stuff" -print "\n" - -define v(v) { - print v, "\n" -} - -v("stuff") -v(v) - -length("ouch") -length(v) diff --git a/tests/fuzzing/bc_inputs2/lib13.txt b/tests/fuzzing/bc_inputs2/lib13.txt deleted file mode 100644 index f7957ddc..00000000 --- a/tests/fuzzing/bc_inputs2/lib13.txt +++ /dev/null @@ -1 +0,0 @@ -uint(-3) diff --git a/tests/fuzzing/bc_inputs2/lib14.txt b/tests/fuzzing/bc_inputs2/lib14.txt deleted file mode 100644 index a07d4730..00000000 --- a/tests/fuzzing/bc_inputs2/lib14.txt +++ /dev/null @@ -1 +0,0 @@ -uint64(2147483647) diff --git a/tests/fuzzing/bc_inputs2/lib16.txt b/tests/fuzzing/bc_inputs2/lib16.txt deleted file mode 100644 index de8dff5e..00000000 --- a/tests/fuzzing/bc_inputs2/lib16.txt +++ /dev/null @@ -1 +0,0 @@ -uint(2147483647) diff --git a/tests/fuzzing/bc_inputs2/lib19.txt b/tests/fuzzing/bc_inputs2/lib19.txt deleted file mode 100644 index 95fdd402..00000000 --- a/tests/fuzzing/bc_inputs2/lib19.txt +++ /dev/null @@ -1 +0,0 @@ -int(4294967296) diff --git a/tests/fuzzing/bc_inputs2/lib20.txt b/tests/fuzzing/bc_inputs2/lib20.txt deleted file mode 100644 index 8872f9b5..00000000 --- a/tests/fuzzing/bc_inputs2/lib20.txt +++ /dev/null @@ -1 +0,0 @@ -int(-4294967296) diff --git a/tests/fuzzing/bc_inputs2/lib22.txt b/tests/fuzzing/bc_inputs2/lib22.txt deleted file mode 100644 index 438575ef..00000000 --- a/tests/fuzzing/bc_inputs2/lib22.txt +++ /dev/null @@ -1 +0,0 @@ -int(-1) diff --git a/tests/fuzzing/bc_inputs2/lib23.txt b/tests/fuzzing/bc_inputs2/lib23.txt deleted file mode 100644 index df3d6400..00000000 --- a/tests/fuzzing/bc_inputs2/lib23.txt +++ /dev/null @@ -1 +0,0 @@ -uint(3.928375) diff --git a/tests/fuzzing/bc_inputs2/lib24.txt b/tests/fuzzing/bc_inputs2/lib24.txt deleted file mode 100644 index 01c7181e..00000000 --- a/tests/fuzzing/bc_inputs2/lib24.txt +++ /dev/null @@ -1 +0,0 @@ -int(4.000000) diff --git a/tests/fuzzing/bc_inputs2/log.txt b/tests/fuzzing/bc_inputs2/log.txt deleted file mode 120000 index d0edea71..00000000 --- a/tests/fuzzing/bc_inputs2/log.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/log.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs2/misc.txt b/tests/fuzzing/bc_inputs2/misc.txt deleted file mode 120000 index 7be1fb00..00000000 --- a/tests/fuzzing/bc_inputs2/misc.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/misc.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs2/misc1.txt b/tests/fuzzing/bc_inputs2/misc1.txt deleted file mode 120000 index 13562b4c..00000000 --- a/tests/fuzzing/bc_inputs2/misc1.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/misc1.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs2/misc2.txt b/tests/fuzzing/bc_inputs2/misc2.txt deleted file mode 120000 index 726bff3b..00000000 --- a/tests/fuzzing/bc_inputs2/misc2.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/misc2.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs2/misc3.txt b/tests/fuzzing/bc_inputs2/misc3.txt index 53aa8e3a..7aad374c 120000..100644 --- a/tests/fuzzing/bc_inputs2/misc3.txt +++ b/tests/fuzzing/bc_inputs2/misc3.txt @@ -1 +1,12 @@ -../../bc/misc3.txt
\ No newline at end of file +for (i = 0; i < A; ++i) +{print "n" +if(1)if(1){3 +} +if(0)if(1){3 +} +else 4 +if(0){if(1){3 +}} +else 5 +{i} +} diff --git a/tests/fuzzing/bc_inputs2/multiply.txt b/tests/fuzzing/bc_inputs2/multiply.txt deleted file mode 100644 index bfc0d112..00000000 --- a/tests/fuzzing/bc_inputs2/multiply.txt +++ /dev/null @@ -1,15 +0,0 @@ -0 * 0 -1 * 0 -0 * 2498752389672835476 -12374861230476103672835496 * 1 -1 * 1 -17 * 8 -9878894576289457634856.2738627161689017387608947567654 * 37842939768237596237854203.29874372139852739126739621793162 --1 * 1 --1 * 2 -78893457 * -34876238956 -235678324957634 * -0.2349578349672389576 --12849567821934 * 12738462937681 -1274861293467.927843682937462 * -28935678239 -2936077239872.12937462836 * -0.012842357682435762 -.000000000000000000000000001 * .0000000000000000000000001 diff --git a/tests/fuzzing/bc_inputs2/pi.txt b/tests/fuzzing/bc_inputs2/pi.txt deleted file mode 100644 index 775545c8..00000000 --- a/tests/fuzzing/bc_inputs2/pi.txt +++ /dev/null @@ -1,4 +0,0 @@ -for (i = 0; i <= 20; ++i) { - scale = i - 4 * a(1) -} diff --git a/tests/fuzzing/bc_inputs2/places.txt b/tests/fuzzing/bc_inputs2/places.txt deleted file mode 100644 index d6f20a46..00000000 --- a/tests/fuzzing/bc_inputs2/places.txt +++ /dev/null @@ -1,19 +0,0 @@ -0 @ 0 -1 @ 0 -2 @ 0 -0.0023896 @ 0 -1.298346 @ 0 -2.00000000 @ 0 -0.0023896 @ 3 -1.298346 @ 4 -2.00000000 @ 5 -289 @ 3 -18.34 @ 6 --183.1 @ 0 --23.238 @ 8 --343.23 @ 2 -x = 89136.892348976 -x @= 7 -x --.1897263 @ 0 -.1982365 @ 0 diff --git a/tests/fuzzing/bc_inputs2/power.txt b/tests/fuzzing/bc_inputs2/power.txt deleted file mode 100644 index 96a27c78..00000000 --- a/tests/fuzzing/bc_inputs2/power.txt +++ /dev/null @@ -1,21 +0,0 @@ -0 ^ 0 -0 ^ 1 -0 ^ 1894 -1 ^ 0 -39746823 ^ 0 -18394762374689237468.97354862973846 ^ 0 -1 ^ 1 -2 ^ 1 -18927361346 ^ 1 -328956734869213746.89782398457234 ^ 1 -8937 ^ 98 -0.124876812394 ^ 2396 -1 ^ -1 -2 ^ -1 -10 ^ -1 -683734768 ^ -1 -1 ^ -32467 -2 ^ -53 --0.23424398 ^ -781 --178.234786 ^ -879 --1274.346 ^ -768 diff --git a/tests/fuzzing/bc_inputs2/print2.txt b/tests/fuzzing/bc_inputs2/print2.txt deleted file mode 120000 index 60ede079..00000000 --- a/tests/fuzzing/bc_inputs2/print2.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/print2.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs2/references.bc b/tests/fuzzing/bc_inputs2/references.bc index a3337e74..8188f17a 120000..100644 --- a/tests/fuzzing/bc_inputs2/references.bc +++ b/tests/fuzzing/bc_inputs2/references.bc @@ -1 +1,408 @@ -../../bc/scripts/references.bc
\ No newline at end of file +#! /usr/bin/bc -q + +define printarray(a[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a[i] + } +} + +define a2(a[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a[i] = a[i] * a[i] + } + + printarray(a[], len) +} + +define a4(a__[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a__[i] = a__[i] * a__[i] + } + + printarray(a__[], len) +} + +define a6(*a__[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a__[i] = a__[i] * a__[i] + } + + printarray(a__[], len) +} + +define a1(*a[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a[i] = i + } + + a2(a[], len) + + printarray(a[], len) +} + +define a3(*a__[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a__[i] = i + } + + a4(a__[], len) + + printarray(a__[], len) +} + +define a5(*a__[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a__[i] = i + } + + a2(a__[], len) + + printarray(a__[], len) +} + +define a7(*a__[], len) { + + auto i + + for (i = 0; i < len; ++i) { + a__[i] = i + } + + a6(a__[], len) + + printarray(a__[], len) +} + +len = 16 + +a1(a[], len) +printarray(a[], len) +a3(a[], len) +printarray(a[], len) +a5(a[], len) +printarray(a[], len) +a7(a[], len) +printarray(a[], len) + +a1(b[], len) +printarray(b[], len) +a3(b[], len) +printarray(b[], len) +a5(b[], len) +printarray(b[], len) +a7(b[], len) +printarray(b[], len) + +a1[0] = 0 +a2[0] = 0 +a3[0] = 0 +a4[0] = 0 +a5[0] = 0 +a6[0] = 0 +a7[0] = 0 +a8[0] = 0 +a9[0] = 0 +a10[0] = 0 +a11[0] = 0 +a12[0] = 0 +a13[0] = 0 +a14[0] = 0 +a15[0] = 0 +a16[0] = 0 +a17[0] = 0 +a18[0] = 0 +a19[0] = 0 +a20[0] = 0 +a21[0] = 0 +a22[0] = 0 +a23[0] = 0 +a24[0] = 0 +a25[0] = 0 +a26[0] = 0 +a27[0] = 0 +a28[0] = 0 +a29[0] = 0 +a30[0] = 0 +a31[0] = 0 +a32[0] = 0 +a33[0] = 0 +a34[0] = 0 +a35[0] = 0 +a36[0] = 0 +a37[0] = 0 +a38[0] = 0 +a39[0] = 0 +a40[0] = 0 +a41[0] = 0 +a42[0] = 0 +a43[0] = 0 +a44[0] = 0 +a45[0] = 0 +a46[0] = 0 +a47[0] = 0 +a48[0] = 0 +a49[0] = 0 +a50[0] = 0 +a51[0] = 0 +a52[0] = 0 +a53[0] = 0 +a54[0] = 0 +a55[0] = 0 +a56[0] = 0 +a57[0] = 0 +a58[0] = 0 +a59[0] = 0 +a60[0] = 0 +a61[0] = 0 +a62[0] = 0 +a63[0] = 0 +a64[0] = 0 +a65[0] = 0 +a66[0] = 0 +a67[0] = 0 +a68[0] = 0 +a69[0] = 0 +a70[0] = 0 +a71[0] = 0 +a72[0] = 0 +a73[0] = 0 +a74[0] = 0 +a75[0] = 0 +a76[0] = 0 +a77[0] = 0 +a78[0] = 0 +a79[0] = 0 +a80[0] = 0 +a81[0] = 0 +a82[0] = 0 +a83[0] = 0 +a84[0] = 0 +a85[0] = 0 +a86[0] = 0 +a87[0] = 0 +a88[0] = 0 +a89[0] = 0 +a90[0] = 0 +a91[0] = 0 +a92[0] = 0 +a93[0] = 0 +a94[0] = 0 +a95[0] = 0 +a96[0] = 0 +a97[0] = 0 +a98[0] = 0 +a99[0] = 0 +a100[0] = 0 +a101[0] = 0 +a102[0] = 0 +a103[0] = 0 +a104[0] = 0 +a105[0] = 0 +a106[0] = 0 +a107[0] = 0 +a108[0] = 0 +a109[0] = 0 +a110[0] = 0 +a111[0] = 0 +a112[0] = 0 +a113[0] = 0 +a114[0] = 0 +a115[0] = 0 +a116[0] = 0 +a117[0] = 0 +a118[0] = 0 +a119[0] = 0 +a120[0] = 0 +a121[0] = 0 +a122[0] = 0 +a123[0] = 0 +a124[0] = 0 +a125[0] = 0 +a126[0] = 0 +a127[0] = 0 +a128[0] = 0 +a129[0] = 0 +a130[0] = 0 +a131[0] = 0 +a132[0] = 0 +a133[0] = 0 +a134[0] = 0 +a135[0] = 0 +a136[0] = 0 +a137[0] = 0 +a138[0] = 0 +a139[0] = 0 +a140[0] = 0 +a141[0] = 0 +a142[0] = 0 +a143[0] = 0 +a144[0] = 0 +a145[0] = 0 +a146[0] = 0 +a147[0] = 0 +a148[0] = 0 +a149[0] = 0 +a150[0] = 0 +a151[0] = 0 +a152[0] = 0 +a153[0] = 0 +a154[0] = 0 +a155[0] = 0 +a156[0] = 0 +a157[0] = 0 +a158[0] = 0 +a159[0] = 0 +a160[0] = 0 +a161[0] = 0 +a162[0] = 0 +a163[0] = 0 +a164[0] = 0 +a165[0] = 0 +a166[0] = 0 +a167[0] = 0 +a168[0] = 0 +a169[0] = 0 +a170[0] = 0 +a171[0] = 0 +a172[0] = 0 +a173[0] = 0 +a174[0] = 0 +a175[0] = 0 +a176[0] = 0 +a177[0] = 0 +a178[0] = 0 +a179[0] = 0 +a180[0] = 0 +a181[0] = 0 +a182[0] = 0 +a183[0] = 0 +a184[0] = 0 +a185[0] = 0 +a186[0] = 0 +a187[0] = 0 +a188[0] = 0 +a189[0] = 0 +a190[0] = 0 +a191[0] = 0 +a192[0] = 0 +a193[0] = 0 +a194[0] = 0 +a195[0] = 0 +a196[0] = 0 +a197[0] = 0 +a198[0] = 0 +a199[0] = 0 +a200[0] = 0 +a201[0] = 0 +a202[0] = 0 +a203[0] = 0 +a204[0] = 0 +a205[0] = 0 +a206[0] = 0 +a207[0] = 0 +a208[0] = 0 +a209[0] = 0 +a210[0] = 0 +a211[0] = 0 +a212[0] = 0 +a213[0] = 0 +a214[0] = 0 +a215[0] = 0 +a216[0] = 0 +a217[0] = 0 +a218[0] = 0 +a219[0] = 0 +a220[0] = 0 +a221[0] = 0 +a222[0] = 0 +a223[0] = 0 +a224[0] = 0 +a225[0] = 0 +a226[0] = 0 +a227[0] = 0 +a228[0] = 0 +a229[0] = 0 +a230[0] = 0 +a231[0] = 0 +a232[0] = 0 +a233[0] = 0 +a234[0] = 0 +a235[0] = 0 +a236[0] = 0 +a237[0] = 0 +a238[0] = 0 +a239[0] = 0 +a240[0] = 0 +a241[0] = 0 +a242[0] = 0 +a243[0] = 0 +a244[0] = 0 +a245[0] = 0 +a246[0] = 0 +a247[0] = 0 +a248[0] = 0 +a249[0] = 0 +a250[0] = 0 +a251[0] = 0 +a252[0] = 0 +a253[0] = 0 +a254[0] = 0 +a255[0] = 0 +a256[0] = 0 + +a1(a253[], len) +printarray(a253[], len) +a3(a253[], len) +printarray(a253[], len) +a5(a253[], len) +printarray(a253[], len) +a7(a253[], len) +printarray(a253[], len) + +a1(a254[], len) +printarray(a254[], len) +a3(a254[], len) +printarray(a254[], len) +a5(a254[], len) +printarray(a254[], len) +a7(a254[], len) +printarray(a254[], len) + +a1(a255[], len) +printarray(a255[], len) +a3(a255[], len) +printarray(a255[], len) +a5(a255[], len) +printarray(a255[], len) +a7(a255[], len) +printarray(a255[], len) + +a1(a256[], len) +printarray(a256[], len) +a3(a256[], len) +printarray(a256[], len) +a5(a256[], len) +printarray(a256[], len) +a7(a256[], len) +printarray(a256[], len) diff --git a/tests/fuzzing/bc_inputs2/scale.txt b/tests/fuzzing/bc_inputs2/scale.txt deleted file mode 120000 index 900fe458..00000000 --- a/tests/fuzzing/bc_inputs2/scale.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/scale.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs2/scientific.txt b/tests/fuzzing/bc_inputs2/scientific.txt deleted file mode 120000 index ca5c08dc..00000000 --- a/tests/fuzzing/bc_inputs2/scientific.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/scientific.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs2/shift.txt b/tests/fuzzing/bc_inputs2/shift.txt deleted file mode 100644 index 26b2bfcd..00000000 --- a/tests/fuzzing/bc_inputs2/shift.txt +++ /dev/null @@ -1,42 +0,0 @@ -0 << 0 -1.298346 << 4 -2.00000000 << 5 -x = 89136.892348976 -x <<= 7 -x -x = 1892634051829351283289298 -x <<= 24 -x -(0 >> 12) / 2 -10000000000 >> 0 -10000000000 >> 1 -10000000000 >> 19 -10000000000.1 >> 0 -10000000000.1 >> 1 -10000000000.1 >> 19 -10000000000.01 >> 0 -10000000000.01 >> 1 -10000000000.01 >> 19 -10000000000.001 >> 0 -10000000000.001 >> 1 -10000000000.001 >> 19 -10000000000.0001 >> 0 -10000000000.0001 >> 1 -10000000000.00001 >> 0 -10000000000.00001 >> 1 -10000000000.00001 >> 19 -10000000000.000001 >> 0 -10000000000.000001 >> 1 -10000000000.000001 >> 19 -10000000000.0000001 >> 0 -10000000000.0000001 >> 1 -10000000000.0000001 >> 19 -10000000000.00000001 >> 0 -10000000000.00000001 >> 1 -10000000000.00000001 >> 19 -10000000000.000000001 >> 0 -10000000000.000000001 >> 1 -10000000000.000000001 >> 19 -10000000000.0000000001 >> 0 -10000000000.0000000001 >> 1 -10000000000.0000000001 >> 19 diff --git a/tests/fuzzing/bc_inputs2/sine.txt b/tests/fuzzing/bc_inputs2/sine.txt deleted file mode 100644 index 0b38df7e..00000000 --- a/tests/fuzzing/bc_inputs2/sine.txt +++ /dev/null @@ -1,42 +0,0 @@ -scale = 25 -p = 4 * a(1) -scale = 20 -s(0) -s(0.5) -s(1) -s(-0.5) -s(-1) -s(p / 7) -s(-p / 7) -s(3 * p / 4) -s(3 * -p / 4) -s(p) -s(-p) -s(3 * p / 2) -s(3 * -p / 2) -s(2 * p) -s(2 * -p) -s(131231) -s(-131231) -s(69.1967507777) -s(10828) -s(-16248506.847013148) -s(2050281000) -s(8224939) -s(11334231.1154662464) -s(-4109411249.2986954846) -s(-2395915402.13984) -s(-2795874313) -s(-2262647256) -s(3323158182.1239222084) -s(99901384) -s(-4202726050.2780080957) -s(2870000621.3228830588) -s(-4230239450.981045150) -s(-1517506941.2678857223) -s(4004582176) -s(-4193724543.1108508063) -s(-3432511261) -s(1804484812) -s(3229084127) -s(-3565317246.583937244) diff --git a/tests/fuzzing/bc_inputs3/01.txt b/tests/fuzzing/bc_inputs3/01.txt deleted file mode 100644 index 0bfc76b2..00000000 --- a/tests/fuzzing/bc_inputs3/01.txt +++ /dev/null @@ -1,43 +0,0 @@ -a(s001020001l[ba]) -scal[ ca] -a -a -e -cs -c - -a -s(scal[ ba]) -scal[ ca] -s(scal[ ba]) -s(1) -sd= 20 -a(0) -a=i-=se-=as0-=se-=as0-=i-=s-=se-=xse!=e-=as=ase-=se-=as-=ase-=se-=as-=se-=a(1) -s0000^aaaaaaaaaaaaaaa20 -a(0) -a=i-=se-=ase-=se-=ase-=i-=s-=se-=xse!=e-=as=ase-=se-=as-=a00-=se-=as-=se-=axse!=e-=ase-=i-=se-=ase-=se-=se-=ase-=se-=as-=e-=as=ase-=se-=as-=as=i-=se-=ase-=se-=se-=ase-=se-=as-=e-=as=ase-=se-=as-=ase-=se-=as-=se-=a(1) -scscales=ase-=se-=as-=ase-=se-=as-=se-=a(1) -scscale ==se-=a(1) -sd= 20 -a(0) -a=i-=se-=ase-=se-=ase-=i-=s-=se-=xse!=e-=as=ase-=se-=as-=ase-=se-=as-=se-=a(1) -scale ==se-=a(1) -scale = 20 -a(0) -a==se-=as+=ase-=se8=as-=se-=a(1) -s ==se-=a(1) -scale = 20 -a(0) -a=i-=se-=ase-=se-=ase-=i-=se-=xse!=e-=ase-=i-=se-=ase-=se-=se-=ase-=se-=as-=e-=as=ase-=se-=as-=ase-=se-=as-=se-=a(1) -scscale ==se-=a(1) -scale = 20 -a(0) -a=i-=se-=ase-=se-=ase-=i-=s-=se-=xse!=e-=se-=a(1) -scale = 20 -a(0) -a=i-=se-=ase-=se-=ase-=i-=s-=se-=xse!=e-=a0=as-=ase-=se-=se0=ase-=se-=as-=e-=as=ae-=a(1) -sc= 20 -a(0) -a=i-=se-=ase-=se-=ase-=i-=se-=xse!=e-=ase-=i-=se-=ase-=se-=se-=ase-=se-=as-=e-=as=ase-=se-=as-=ase-=se-=as-=se-=a(1) -scscale ==se-=a(1) diff --git a/tests/fuzzing/bc_inputs3/04.txt b/tests/fuzzing/bc_inputs3/04.txt deleted file mode 100644 index c0965de5..00000000 --- a/tests/fuzzing/bc_inputs3/04.txt +++ /dev/null @@ -1 +0,0 @@ -"000000 diff --git a/tests/fuzzing/bc_inputs3/05.txt b/tests/fuzzing/bc_inputs3/05.txt deleted file mode 100644 index 99148974..00000000 --- a/tests/fuzzing/bc_inputs3/05.txt +++ /dev/null @@ -1 +0,0 @@ -/*00000000 diff --git a/tests/fuzzing/bc_inputs3/08.txt b/tests/fuzzing/bc_inputs3/08.txt deleted file mode 100644 index 8c5afd78..00000000 --- a/tests/fuzzing/bc_inputs3/08.txt +++ /dev/null @@ -1,3 +0,0 @@ -define i(x){ -c0 -if(6)} diff --git a/tests/fuzzing/bc_inputs3/09.txt b/tests/fuzzing/bc_inputs3/09.txt deleted file mode 100644 index f7a34755..00000000 --- a/tests/fuzzing/bc_inputs3/09.txt +++ /dev/null @@ -1,11 +0,0 @@ -e --1\ -#00000 -{print"0" -if(1)if(1)#0 -} -if(0)if(0){3 -} -else 4\ -#00000000000000000000000000 -} diff --git a/tests/fuzzing/bc_inputs3/11.txt b/tests/fuzzing/bc_inputs3/11.txt deleted file mode 100644 index 19e7e87b..00000000 --- a/tests/fuzzing/bc_inputs3/11.txt +++ /dev/null @@ -1,99 +0,0 @@ -#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) diff --git a/tests/fuzzing/bc_inputs3/13.txt b/tests/fuzzing/bc_inputs3/13.txt deleted file mode 100644 index 5628ba70..00000000 --- a/tests/fuzzing/bc_inputs3/13.txt +++ /dev/null @@ -1,56 +0,0 @@ -#0 - -define z(a[]) {for (i = 0; i < l; ++i) { - a[i] - } -} - -define x(a[]) { - - #00000000000000000000000000000000000 - auto a - - for (a = 0; a < l; ++a) { - a[a] = -a - } - - z(a[]) -} - -define g(x[], y[]) { - return x[0] - y[0] -} - -define h(u000 x[]) { - return g(x[], y[]) -} - -define m(*x[], *y[]) { - return x[0] / y[0] -} - -define n(*y[], *x[]) { - return m(x[], y[]) -} - -for (i = 0; i < 101; ++i) { - a[i] = i -} - -a[104] = 200 - -l = length(a[]) - -for (i = 0; i <= l; ++i) { - a[i] -} - -z(a[]) -x(a[]) -z(a[]) -l - -x[0] = 5 -y[0] = 4 - -h(x[], y[]) diff --git a/tests/fuzzing/bc_inputs3/14.txt b/tests/fuzzing/bc_inputs3/14.txt deleted file mode 100644 index 2487d82a..00000000 --- a/tests/fuzzing/bc_inputs3/14.txt +++ /dev/null @@ -1 +0,0 @@ -a(int32(O100000000)) diff --git a/tests/fuzzing/bc_inputs3/15.txt b/tests/fuzzing/bc_inputs3/15.txt deleted file mode 100644 index cf1f81df..00000000 --- a/tests/fuzzing/bc_inputs3/15.txt +++ /dev/null @@ -1,3 +0,0 @@ -for (i = 0; int32(29834); ++i) { - i -} diff --git a/tests/fuzzing/bc_inputs3/17.txt b/tests/fuzzing/bc_inputs3/17.txt deleted file mode 100644 index f158be7e..00000000 --- a/tests/fuzzing/bc_inputs3/17.txt +++ /dev/null @@ -1,11 +0,0 @@ -print "000000000000000000\n" - -s = s0 - -m = 0 - -for (i = 0; i < 100; ++i) { - a[i] =d() - s= a[i] - b[i] = irand(u0) -} diff --git a/tests/fuzzing/bc_inputs3/18.txt b/tests/fuzzing/bc_inputs3/18.txt deleted file mode 100644 index 9f338c1f..00000000 --- a/tests/fuzzing/bc_inputs3/18.txt +++ /dev/null @@ -1,3 +0,0 @@ -while(0){ - -define diff --git a/tests/fuzzing/bc_inputs3/19.txt b/tests/fuzzing/bc_inputs3/19.txt deleted file mode 100644 index 1edb8c62..00000000 --- a/tests/fuzzing/bc_inputs3/19.txt +++ /dev/null @@ -1,5 +0,0 @@ -define i(x){ - -i(10) -ibase -o(10)`0000 diff --git a/tests/fuzzing/bc_inputs3/20.txt b/tests/fuzzing/bc_inputs3/20.txt deleted file mode 100644 index 465146d4..00000000 --- a/tests/fuzzing/bc_inputs3/20.txt +++ /dev/null @@ -1,51 +0,0 @@ -define w() { auto z; return 1; } -define x() { -"0" -return (1) -} -define y() { -"0" - return (2) -} -define z() { - "0" - return (3) -} -define v() { return } - -v() - -w() - -if (x() == y()) { 0 } -1 -if (x() <= y()) { 2 } -if (y() >= x()) { 3 } -if (x() != y()) { 4 } -if (x() < y()) { 5 } -if (y() > x()) { 6 } - -if (x() == z()) { 100} -10 -if (x() <= z()) { 10 } -if (z() >= x()) { 10 } -if (x() != z()) { 10 } -if (x() < z()) { 10 } -if (z() > x()) { 10 } - -x = -10 -while (x <= 0) { - x - if (x == -5) break; - x += 1 -} - -define u() { - auto a[]; - return a[H] -} - -u() - -if (x == -4) x -000000000000000000000000ÿ diff --git a/tests/fuzzing/bc_inputs3/21.txt b/tests/fuzzing/bc_inputs3/21.txt deleted file mode 100644 index 531705b2..00000000 --- a/tests/fuzzing/bc_inputs3/21.txt +++ /dev/null @@ -1,10 +0,0 @@ -define i(x) { - ibase=x - s0=x - return 74; b=100.000000000000;e -} - -i(11) -ibase -o0 -0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 diff --git a/tests/fuzzing/bc_inputs3/22.txt b/tests/fuzzing/bc_inputs3/22.txt deleted file mode 100644 index f7a91f0b..00000000 --- a/tests/fuzzing/bc_inputs3/22.txt +++ /dev/null @@ -1,2 +0,0 @@ -#000000000000000 - for(i = 0; i < M; ++i) l000000000000= length(a00000000iii= l[]0 diff --git a/tests/fuzzing/bc_inputs3/23.txt b/tests/fuzzing/bc_inputs3/23.txt Binary files differdeleted file mode 100644 index d711d0ac..00000000 --- a/tests/fuzzing/bc_inputs3/23.txt +++ /dev/null diff --git a/tests/fuzzing/bc_inputs3/24.txt b/tests/fuzzing/bc_inputs3/24.txt deleted file mode 100644 index 25f98c15..00000000 --- a/tests/fuzzing/bc_inputs3/24.txt +++ /dev/null @@ -1,4 +0,0 @@ -perm(10,2) -comb(10,2) -perm(6,2) -b(6,++i[] diff --git a/tests/fuzzing/bc_inputs3/sqrt.txt b/tests/fuzzing/bc_inputs3/sqrt.txt deleted file mode 100644 index 07cdee66..00000000 --- a/tests/fuzzing/bc_inputs3/sqrt.txt +++ /dev/null @@ -1,14 +0,0 @@ -scale = 20 -sqrt(0) -sqrt(2) -sqrt(4) -sqrt(9) -sqrt(16) -sqrt(25) -sqrt(121) -sqrt(48765) -sqrt(9287356207356) -sqrt(0.189274385967238956872354) -sqrt(12389467137496823.134567829387456283946) -sqrt(.0000000000000000000000000000123) -sqrt(1) diff --git a/tests/fuzzing/bc_inputs3/strings.txt b/tests/fuzzing/bc_inputs3/strings.txt deleted file mode 120000 index bfcfba0f..00000000 --- a/tests/fuzzing/bc_inputs3/strings.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/strings.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs3/subtract.txt b/tests/fuzzing/bc_inputs3/subtract.txt deleted file mode 120000 index 468bd308..00000000 --- a/tests/fuzzing/bc_inputs3/subtract.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/subtract.txt
\ No newline at end of file diff --git a/tests/fuzzing/bc_inputs3/trunc.txt b/tests/fuzzing/bc_inputs3/trunc.txt index 8344855c..364bb224 120000..100644 --- a/tests/fuzzing/bc_inputs3/trunc.txt +++ b/tests/fuzzing/bc_inputs3/trunc.txt @@ -1 +1,15 @@ -../../bc/trunc.txt
\ No newline at end of file +0$ +1$ +2$ +0.8249167203486$ +1.28937150237$ +2.0$ +28937.92837605126$ +2890.000000000$ +-1$ +-1.128973$ +-9812387.28910273$ +x = 83.298 +x$ +x = -1893.19 +(x)$ diff --git a/tests/fuzzing/bc_inputs3/void.txt b/tests/fuzzing/bc_inputs3/void.txt deleted file mode 120000 index bf0b4b23..00000000 --- a/tests/fuzzing/bc_inputs3/void.txt +++ /dev/null @@ -1 +0,0 @@ -../../bc/void.txt
\ No newline at end of file diff --git a/tests/fuzzing/dc_inputs/19.txt b/tests/fuzzing/dc_inputs/19.txt deleted file mode 100644 index df417b4a..00000000 --- a/tests/fuzzing/dc_inputs/19.txt +++ /dev/null @@ -1 +0,0 @@ -þ0000000000000000000000000000000 diff --git a/tests/fuzzing/dc_inputs/abs.txt b/tests/fuzzing/dc_inputs/abs.txt index 41dca6dc..9907dfc6 120000..100644 --- a/tests/fuzzing/dc_inputs/abs.txt +++ b/tests/fuzzing/dc_inputs/abs.txt @@ -1 +1,7 @@ -../../dc/abs.txt
\ No newline at end of file +0bpR +1bpR +.218933bpR +138963.9873645bpR +_19bpR +_.1298376bpR +_3892173.289375bpR diff --git a/tests/fuzzing/dc_inputs/add.txt b/tests/fuzzing/dc_inputs/add.txt index 125bf9ff..42da2f1f 120000..100644 --- a/tests/fuzzing/dc_inputs/add.txt +++ b/tests/fuzzing/dc_inputs/add.txt @@ -1 +1,33 @@ -../../dc/add.txt
\ No newline at end of file +0 0+pR +0 0 0++pR +0 1+pR +0 1 1++pR +1 1+pR +1 0+pR +2 5+pR +237 483+pR +999 999+pR +2374623 324869356734856+pR +2378639084586723980562 23468729367839+pR +37298367203972395108367910823465293084561329084561390845613409516734503870691837451 785621394067928346918023476190834672198467134908618723249671349062187346898241093486139046139084613490817356023871869102746182749061872609129847+pR +1.1 0+pR +0 1.1+pR +457283.731284923576 37842934672834.3874629385672354+pR +1.0 0.1+pR +3746289134067138046 0.138375863945672398456712389456273486293+pR +_1 _1+pR +_4 _15+pR +_1346782 _1287904651762468913476+pR +99999999999999999999999999999999999999999999999999999999999.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001+pR +99999999999999999999999999999999999999999999999999999999999.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999995 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005+pR +99999999999999999999999999999999999999999999999999999999999.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001+pR +99999999999999999999999999999999999999999999999999999999999.999999999999999999999999999999999999999999999999999999999899999999999999999999999999999999999999999999999999999999999999 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001+pR +99999999999999999999999999999999999989999999999999999999999.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001+pR +_1889985797 2012747315+pR +0 _14338.391079082+pR +_2422297 1.3134942556+pR +_1289374 1289374.2893417 0.238971 28937.28971+++pR +1289374 1289374.2893417 _0.238971 28937.28971+++pR +1289374 1289374.2893417 0.238971 _28937.28971+++pR +1289374 1289374.2893417 _0.238971 _28937.28971+++pR +1289374 _1289374.2893417 _0.238971 _28937.28971+++pR diff --git a/tests/fuzzing/dc_inputs/boolean.txt b/tests/fuzzing/dc_inputs/boolean.txt index 59309495..815100f0 120000..100644 --- a/tests/fuzzing/dc_inputs/boolean.txt +++ b/tests/fuzzing/dc_inputs/boolean.txt @@ -1 +1,80 @@ -../../dc/boolean.txt
\ No newline at end of file +0 1(pR +1 1(pR +2 1(pR +_1 1(pR +_1 0(pR +_1 _1(pR +_1 _2(pR +0 1{pR +1 1{pR +2 1{pR +_1 1{pR +_1 0{pR +_1 _1{pR +_1 _2{pR +0 1)pR +1 1)pR +2 1)pR +_1 1)pR +_1 0)pR +_1 _1)pR +_1 _2)pR +0 1}pR +1 1}pR +2 1}pR +_1 1}pR +_1 0}pR +_1 _1}pR +_1 _2}pR +0 0GpR +0 1GpR +1 0GpR +_1 _1GpR +0 _1GpR +_1 0GpR +1 1GpR +238 2GpR +0NpR +1NpR +_1NpR +2398NpR +_2983.2389NpR +0 0MpR +1 0MpR +0 1MpR +1 1MpR +128973240 0MpR +0 2893712MpR +1982 28937MpR +_2938 0MpR +0 _1023.298037MpR +0.283917 0MpR +2389 _1208.28937MpR +0 289.289372MpR +_298.29387 0MpR +_2983.28973 82937MpR +0 _2938.320837MpR +_2089.2308 0MpR +_0.2893 _2938.28973MpR +0.00000 1892MpR +1289.023 .0000MpR +0 0mpR +1 0mpR +0 1mpR +1 1mpR +128973240 0mpR +0 2893712mpR +1982 28937mpR +_2938 0mpR +0 _1023.298037mpR +0.283917 0mpR +2389 _1208.28937mpR +0 289.289372mpR +_298.29387 0mpR +_2983.28973 82937mpR +0 _2938.320837mpR +_2089.2308 0mpR +_0.2893 _2938.28973mpR +0.00000 1892mpR +1289.023 .0000mpR +0.0000 .00000mpR diff --git a/tests/fuzzing/dc_inputs/decimal.txt b/tests/fuzzing/dc_inputs/decimal.txt index 57b9fbbb..fdc628c8 120000..100644 --- a/tests/fuzzing/dc_inputs/decimal.txt +++ b/tests/fuzzing/dc_inputs/decimal.txt @@ -1 +1,41 @@ -../../dc/decimal.txt
\ No newline at end of file +0pR +0.0pR +.0000pR +000000000000000000000000.00000000000000000000000pR +000000000000000000000000000135482346782356pR +000000000000000000000000002pR +1pR +11pR +123pR +7505pR +1023468723275435238491972521917846pR +4343472432431705867392073517038270398027352709027389273920739037937960379637893607893607893670530278200795207952702873892786172916728961783907893607418973587857386079679267926737520730925372983782793652793pR +_1pR +_203pR +_57pR +_18586pR +_31378682943772818461924738352952347258pR +_823945628745673589495067238723986520375698237620834674509627345273096287563846592384526349872634895763257893467523987578690283762897568459072348758071071087813501875908127359018715023841710239872301387278pR +.123521346523546pR +0.1245923756273856pR +_.1024678456387pR +_0.8735863475634587pR +4.0pR +_6.0pR +234237468293576.000000000000000000000000000000pR +23987623568943567.00000000000000000005677834650000000000000pR +23856934568940675.000000000000000435676782300000000000000456784pR +77567648698496.000000000000000000587674750000000000458563800000000000000pR +2348672354968723.2374823546000000000003256987394502346892435623870000000034578pR +_2354768.000000000000000000000000000000000000pR +_96739874567.000000000347683456pR +_3764568345.000000000004573845000000347683460pR +_356784356.934568495770004586495678300000000pR +74325437345273852773827101738273127312738521733017537073520735207307570358738257390761276072160719802671980267018728630178.7082681027680521760217867841276127681270867827821768173178207830710978017738178678012767377058785378278207385237085237803278203782037237582795870pR +_756752732785273851273728537852738257837283678965738527385272983678372867327835672967385278372637862738627836279863782673862783670.71738178361738718367186378610738617836781603760178367018603760178107735278372832783728367826738627836278378260736270367362073867097307925pR +9812734012837410982345719208345712908357412903587192048571920458712.23957182459817249058172945781pR +2893.982.28937pRpR +198273\ +.192837pR +1892.238907\ +.3982739pRpR diff --git a/tests/fuzzing/dc_inputs/divide.txt b/tests/fuzzing/dc_inputs/divide.txt index f8a9734b..38b874e9 120000..100644 --- a/tests/fuzzing/dc_inputs/divide.txt +++ b/tests/fuzzing/dc_inputs/divide.txt @@ -1 +1,33 @@ -../../dc/divide.txt
\ No newline at end of file +20k +0 1/pR +0 321566/pR +0 0.3984567238456/pR +1 1/pR +1 1287469297356/pR +1 0.2395672438567234/pR +1 237586239856.0293596728392360/pR +1249687284356 3027949207835207/pR +378617298617396719 35748521/pR +9348576237845624358 0.9857829375461/pR +35768293846193284 2374568947.045762839567823/pR +_78987234567812345 876542837618936/pR +_356789237555535468 0.3375273860984786903/pR +_5203475364850390 435742903748307.70869378534043296404530458/pR +_0.37861723347576903 7385770896/pR +_0.399454682043962 0.34824389304/pR +_0.6920414523873204 356489645223.76076045304879030/pR +_35872917389671.7573280963748 73924708/pR +_78375896314.4836709876983 0.78356798637817/pR +_2374123896417.143789621437581 347821469423789.1473856783960/pR +_896729350238549726 _34976289345762/pR +_2374568293458762348596 _0.8792370647234987679/pR +_237584692306721845726038 _21783910782374529637.978102738746189024761/pR +_0.23457980123576298375682 _1375486293874612/pR +_0.173897061862478951264 _0.8179327486017634987516298745/pR +_0.9186739823576829347586 _0.235678293458756239846/pR +_0.9375896183746982374568 _13784962873546.0928729395476283745/pR +_2930754618923467.12323745862937465 _734869238465/pR +_23745861923467.874675129834675 _0.23542357869124756/pR +_3878923750692883.7238596702834756902 _7384192674957215364986723.9738461923487621983/pR +1 0.00000000000000000000000000000000000000000002346728372937352457354204563027/pR +239854711289345712 2891374 182 .2893 ///pR diff --git a/tests/fuzzing/dc_inputs/divmod.txt b/tests/fuzzing/dc_inputs/divmod.txt index 3494de48..1633203f 120000..100644 --- a/tests/fuzzing/dc_inputs/divmod.txt +++ b/tests/fuzzing/dc_inputs/divmod.txt @@ -1 +1,64 @@ -../../dc/divmod.txt
\ No newline at end of file +20k +0 1~pRpR +0 321566~pRpR +0 0.3984567238456~pRpR +1 1~pRpR +1 1287469297356~pRpR +1 0.2395672438567234~pRpR +1 237586239856.0293596728392360~pRpR +1249687284356 3027949207835207~pRpR +378617298617396719 35748521~pRpR +9348576237845624358 0.9857829375461~pRpR +35768293846193284 2374568947.045762839567823~pRpR +_78987234567812345 876542837618936~pRpR +_356789237555535468 0.3375273860984786903~pRpR +_5203475364850390 435742903748307.70869378534043296404530458~pRpR +_0.37861723347576903 7385770896~pRpR +_0.399454682043962 0.34824389304~pRpR +_0.6920414523873204 356489645223.76076045304879030~pRpR +_35872917389671.7573280963748 73924708~pRpR +_78375896314.4836709876983 0.78356798637817~pRpR +_2374123896417.143789621437581 347821469423789.1473856783960~pRpR +_896729350238549726 _34976289345762~pRpR +_2374568293458762348596 _0.8792370647234987679~pRpR +_237584692306721845726038 _21783910782374529637.978102738746189024761~pRpR +_0.23457980123576298375682 _1375486293874612~pRpR +_0.173897061862478951264 _0.8179327486017634987516298745~pRpR +_0.9186739823576829347586 _0.235678293458756239846~pRpR +_0.9375896183746982374568 _13784962873546.0928729395476283745~pRpR +_2930754618923467.12323745862937465 _734869238465~pRpR +_23745861923467.874675129834675 _0.23542357869124756~pRpR +_3878923750692883.7238596702834756902 _7384192674957215364986723.9738461923487621983~pRpR +1 0.00000000000000000000000000000000000000000002346728372937352457354204563027~pRpR +0k +0 1~pRpR +0 321566~pRpR +0 0.3984567238456~pRpR +1 1~pRpR +1 1287469297356~pRpR +1 0.2395672438567234~pRpR +1 237586239856.0293596728392360~pRpR +1249687284356 3027949207835207~pRpR +378617298617396719 35748521~pRpR +9348576237845624358 0.9857829375461~pRpR +35768293846193284 2374568947.045762839567823~pRpR +_78987234567812345 876542837618936~pRpR +_356789237555535468 0.3375273860984786903~pRpR +_5203475364850390 435742903748307.70869378534043296404530458~pRpR +_0.37861723347576903 7385770896~pRpR +_0.399454682043962 0.34824389304~pRpR +_0.6920414523873204 356489645223.76076045304879030~pRpR +_35872917389671.7573280963748 73924708~pRpR +_78375896314.4836709876983 0.78356798637817~pRpR +_2374123896417.143789621437581 347821469423789.1473856783960~pRpR +_896729350238549726 _34976289345762~pRpR +_2374568293458762348596 _0.8792370647234987679~pRpR +_237584692306721845726038 _21783910782374529637.978102738746189024761~pRpR +_0.23457980123576298375682 _1375486293874612~pRpR +_0.173897061862478951264 _0.8179327486017634987516298745~pRpR +_0.9186739823576829347586 _0.235678293458756239846~pRpR +_0.9375896183746982374568 _13784962873546.0928729395476283745~pRpR +_2930754618923467.12323745862937465 _734869238465~pRpR +_23745861923467.874675129834675 _0.23542357869124756~pRpR +_3878923750692883.7238596702834756902 _7384192674957215364986723.9738461923487621983~pRpR +1 0.00000000000000000000000000000000000000000002346728372937352457354204563027~pRpR diff --git a/tests/fuzzing/dc_inputs/else.dc b/tests/fuzzing/dc_inputs/else.dc index b8d42e4d..84deb875 120000..100644 --- a/tests/fuzzing/dc_inputs/else.dc +++ b/tests/fuzzing/dc_inputs/else.dc @@ -1 +1,4 @@ -../../dc/scripts/else.dc
\ No newline at end of file +#! /usr/bin/dc +[[Done!]pR]sM[lip1-si0li>LeM]sL10silLx +[[Done!]pR]sM[lip1-si0li!<LeM]sL10silLx +[[Done!]pR]sM[lip1-si0li!=LeM]sL10silLx diff --git a/tests/fuzzing/dc_inputs/engineering.txt b/tests/fuzzing/dc_inputs/engineering.txt index 1b9d9ffd..90a35052 120000..100644 --- a/tests/fuzzing/dc_inputs/engineering.txt +++ b/tests/fuzzing/dc_inputs/engineering.txt @@ -1 +1,19 @@ -../../dc/engineering.txt
\ No newline at end of file +1o +0pR +1pR +_34pR +298pR +_8933pR +29488pR +_148232pR +8927559pR +.2pR +_.02pR +.002pR +_.0003pR +.0000209310pR +_.00000289362pR +.000000859289pR +_.02983672pR +.20201296pR +_.8907210897000000000000000000pR diff --git a/tests/fuzzing/dc_inputs/loop.dc b/tests/fuzzing/dc_inputs/loop.dc index 23a24898..26cec238 120000..100644 --- a/tests/fuzzing/dc_inputs/loop.dc +++ b/tests/fuzzing/dc_inputs/loop.dc @@ -1 +1,3 @@ -../../dc/scripts/loop.dc
\ No newline at end of file +#! /usr/bin/dc +[lip1-si0li>L]sL10silLx +[lip1+si10li<L]sL0silLx diff --git a/tests/fuzzing/dc_inputs/modexp.txt b/tests/fuzzing/dc_inputs/modexp.txt index a39eb491..a6afb998 120000..100644 --- a/tests/fuzzing/dc_inputs/modexp.txt +++ b/tests/fuzzing/dc_inputs/modexp.txt @@ -1 +1,103 @@ -../../dc/modexp.txt
\ No newline at end of file +0 0 1|pR +1 0 1|pR +1 0 2|pR +0 10 1|pR +1 293 1|pR +1 2789365 2|pR +100 8 7|pR +10922384 15031007 201|pR +3346529 189 254|pR +4113416930 197 14|pR +7709 5887 111|pR +5487406 3252 128|pR +2080527 2279453822 219|pR +48895 50678 232|pR +1535808383 2902995144 18|pR +8437837 2882198 69|pR +35363 25806 2|pR +3221177403 1560419989 189|pR +227 42775 163|pR +2811398069 37500 173|pR +15046850 3859895697 195|pR +15770756 3621999893 119|pR +6937927 3719297189 183|pR +12573 43819 209|pR +42098463 7584603 136|pR +8656683 1328292415 226|pR +209 81 157|pR +141 13317429 26|pR +809485795 60745 101|pR +4882 1388217898 38|pR +750704 78 119|pR +668879580 2888860497 179|pR +1152725844 15295742 154|pR +16160694 8981529 154|pR +216 102 3|pR +3691227289 5344109 232|pR +2195559299 61 222|pR +2478990626 13007440 30|pR +45083 44 117|pR +224 55824 53|pR +1372700133 89 94|pR +205 10422 48|pR +11887 12 73|pR +5955 24353 114|pR +1201697310 789722419 6|pR +56577 231 229|pR +96 38841 189|pR +6529661 5636520 209|pR +11005 15955685 27|pR +9709 231 132|pR +59790 1034579699 166|pR +47892 14536879 79|pR +48 208 21|pR +33036 3877 65|pR +164 6527085 249|pR +12146850 224 37|pR +218 16425679 62|pR +51 27641 95|pR +3076735605 49154 32|pR +515652717 4117874315 143|pR +300672671 720768884 110|pR +9422066 206 5|pR +43 97 13|pR +545174510 65319 126|pR +3317462730 704990271 51|pR +47316 23231 202|pR +7236571 4379567 106|pR +2584584521 2459274189 29|pR +61562 5035178 178|pR +65302 112 151|pR +63040 2168854052 213|pR +9039611 2370306559 62|pR +16414384 1020652061 83|pR +7491 3853569905 172|pR +1180322494 46670 84|pR +3823343557 3865107254 127|pR +6240872 55335 39|pR +2281401897 1098411 251|pR +61 2949190429 231|pR +8981024 162 43|pR +1 3568883218 212|pR +4217100969 3471787779 8|pR +3232237 13 243|pR +29280 3972452706 100|pR +13077 6431923 216|pR +104 3098510775 140|pR +9503298 174 242|pR +3424695712 12184 23|pR +184 15066347 151|pR +2935856 14003205 184|pR +1386637762 2128151420 71|pR +154 11960656 12|pR +743976432 4004778779 136|pR +3909160595 3575680922 21|pR +26133 3580 147|pR +409154 170 68|pR +149 55629 40|pR +5753 13776176 32|pR +3831447473 658273178 98|pR +1527252003 2300622 207|pR +3363824553 8244645 215|pR +20 145 101|pR +4005077294 2196555621 94|pR diff --git a/tests/fuzzing/dc_inputs/modulus.txt b/tests/fuzzing/dc_inputs/modulus.txt index 1eb3b8b8..613944b2 120000..100644 --- a/tests/fuzzing/dc_inputs/modulus.txt +++ b/tests/fuzzing/dc_inputs/modulus.txt @@ -1 +1,70 @@ -../../dc/modulus.txt
\ No newline at end of file +20k +1 1%pR +2 1%pR +16 4%pR +15 4%pR +17 4%pR +2389473 5%pR +39240687239 1%pR +346728934 23958%pR +3496723859067234 298375462837546928347623059375486%pR +_1 1%pR +_2 1%pR +_47589634875689345 37869235%pR +_1274852934765 2387628935486273546%pR +_6324758963 237854962%pR +1 _1%pR +2 _1%pR +2 _2%pR +2 _3%pR +16 5%pR +15 5%pR +14 5%pR +89237423 _237856923854%pR +123647238946 _12467%pR +_1 _1%pR +_2 _1%pR +_2 _2%pR +_2 _3%pR +_13 _7%pR +_14 _7%pR +_15 _7%pR +_12784956 _32746%pR +_127849612 _23712347682193%pR +0k +1 1%pR +2 1%pR +16 4%pR +15 4%pR +17 4%pR +2389473 5%pR +39240687239 1%pR +346728934 23958%pR +3496723859067234 298375462837546928347623059375486%pR +_1 1%pR +_2 1%pR +_47589634875689345 37869235%pR +_1274852934765 2387628935486273546%pR +_6324758963 237854962%pR +1 _1%pR +2 _1%pR +2 _2%pR +2 _3%pR +16 5%pR +15 5%pR +14 5%pR +89237423 _237856923854%pR +123647238946 _12467%pR +_1 _1%pR +_2 _1%pR +_2 _2%pR +_2 _3%pR +_13 _7%pR +_14 _7%pR +_15 _7%pR +_12784956 _32746%pR +_127849612 _23712347682193%pR +_3191280681 641165986%pR +0k _899510228 _2448300078.40314%pR +0k _7424863 _207.2609738667%pR +0k 3769798918 0.6%pR diff --git a/tests/fuzzing/dc_inputs/quit.dc b/tests/fuzzing/dc_inputs/quit.dc index 94d50d09..81e6289a 120000..100644 --- a/tests/fuzzing/dc_inputs/quit.dc +++ b/tests/fuzzing/dc_inputs/quit.dc @@ -1 +1,2 @@ -../../dc/scripts/quit.dc
\ No newline at end of file +1se [li p 1+si le li !=lem]sl [lk p 1+sk le lk !=o]so [0sk lox leQ 0sk lox le 3*1+Q 0sk lox]sm [0si llx le 1+se 10 le !=n]dsnx +1si [li p 1+si 10 li !=set]ss [1000Q]st lsx diff --git a/tests/fuzzing/dc_inputs/scientific.txt b/tests/fuzzing/dc_inputs/scientific.txt index 683edf9c..240473b0 120000..100644 --- a/tests/fuzzing/dc_inputs/scientific.txt +++ b/tests/fuzzing/dc_inputs/scientific.txt @@ -1 +1,55 @@ -../../dc/scientific.txt
\ No newline at end of file +0e0pR +0e1pR +0e5pR +0e_2pR +0e_100pR +1e0pR +_1e1pR +1e9pR +_1e21pR +1e_1pR +_1e_2pR +1e_5pR +4.92837e5pR +_3.28971028e20pR +6.2e3pR +_8.289371e2pR +5.9817280937e8pR +_3.28977e_1pR +8.8927891e_20pR +_7.98239e_4pR +4.4892e_4pR +_18937e0pR +198273e10pR +_18927e_4pR +28937e_5pR +_891072e_7pR +.28972e0pR +_.891273e_1pR +.8928397e1pR +_.0002983172e5pR +.00022e3pR +_.00022e4pR +.0000328937e8pR +82938.29873e8.82\ +937pRpR +2893e2\ +.389pRpR +0o +0pR +1pR +10pR +_289pR +2894pR +_89434pR +894370pR +_1239839pR +28931708pR +_8052098.8029731809pR +.1pR +_.01pR +.001pR +_.00038pR +.0000483pR +_.0002894378190pR +.2893712083pR diff --git a/tests/fuzzing/dc_inputs/shift.txt b/tests/fuzzing/dc_inputs/shift.txt index 9f0df4d4..628b0a5b 120000..100644 --- a/tests/fuzzing/dc_inputs/shift.txt +++ b/tests/fuzzing/dc_inputs/shift.txt @@ -1 +1,42 @@ -../../dc/shift.txt
\ No newline at end of file +0 0HpR +1 0HpR +2 0HpR +0.0023896 0HpR +1.298346 0HpR +2.00000000 0HpR +0.0023896 3HpR +1.298346 4HpR +2.00000000 5HpR +89136.892348976 7HpR +1892634051829351283289298 24HpR +0 0hpR +1 0hpR +2 0hpR +0.0023896 0hpR +1.298346 0hpR +2.00000000 0hpR +0.0023896 3hpR +1.298346 4hpR +2.00000000 5hpR +89136.892348976 7hpR +1892634051829351283289298 24hpR +_1 0HpR +_2 0HpR +_0.0023896 0HpR +_1.298346 0HpR +_2.00000000 0HpR +_0.0023896 3HpR +_1.298346 4HpR +_2.00000000 5HpR +_89136.892348976 7HpR +_1892634051829351283289298 24HpR +_1 0hpR +_2 0hpR +_0.0023896 0hpR +_1.298346 0hpR +_2.00000000 0hpR +_0.0023896 3hpR +_1.298346 4hpR +_2.00000000 5hpR +_89136.892348976 7hpR +_1892634051829351283289298 24hpR diff --git a/tests/fuzzing/dc_inputs/sqrt.txt b/tests/fuzzing/dc_inputs/sqrt.txt index e95e9413..7c13fdd0 120000..100644 --- a/tests/fuzzing/dc_inputs/sqrt.txt +++ b/tests/fuzzing/dc_inputs/sqrt.txt @@ -1 +1,14 @@ -../../dc/sqrt.txt
\ No newline at end of file +20k +0vpR +2vpR +4vpR +9vpR +16vpR +25vpR +121vpR +48765vpR +9287356207356vpR +0.189274385967238956872354vpR +12389467137496823.134567829387456283946vpR +.0000000000000000000000000000123vpR +1vpR diff --git a/tests/fuzzing/dc_inputs/stack_len.txt b/tests/fuzzing/dc_inputs/stack_len.txt index c3b02236..1b367f3a 120000..100644 --- a/tests/fuzzing/dc_inputs/stack_len.txt +++ b/tests/fuzzing/dc_inputs/stack_len.txt @@ -1 +1,15 @@ -../../dc/stack_len.txt
\ No newline at end of file +zp +zp +zp +zp +sa +yap +Sa +yap +Sa +yapR +La +yapR +La +yap +zp diff --git a/tests/fuzzing/dc_inputs/strings.txt b/tests/fuzzing/dc_inputs/strings.txt index 71966ea5..460976ab 120000..100644 --- a/tests/fuzzing/dc_inputs/strings.txt +++ b/tests/fuzzing/dc_inputs/strings.txt @@ -1 +1,51 @@ -../../dc/strings.txt
\ No newline at end of file +[Hello, World!]ZpR +[Hello, World!]pR +[Hello, \[ World!]ZpR +[Hello, \[ World!]pR +[Hello, \] World!]ZpR +[Hello, \] World!]pR +[30pR] +[29pR] +[28pR] +[27pR] +[26pR] +[25pR] +[24pR] +[23pR] +[22pR] +[21pR] +[20pR] +[19pR] +[18pR] +[17pR] +[16pR] +[15pR] +[14pR] +[13pR] +[12pR] +[11pR] +[10pR] +[9pR] +[8pR] +[7pR] +[6pR] +[5pR] +[4pR] +[3pR] +[2pR] +[1pR] +[xz0<x]dsxx +[\\]pR +[\[\]]pR +1xpR +[1st] 0:b [2nd] 1:b 0;b p 1;b p +[string]XpR +[3 4^pR]silix +[[[q 1 3+pR]x]x]x4 5^pR +4xpR +5 112ax 90ax 112ax 82ax +[\q] pR +[q\\] pR +[\\] pR +92 a pR +[[10pR]si]x [[lix]x]x diff --git a/tests/fuzzing/dc_inputs/subtract.txt b/tests/fuzzing/dc_inputs/subtract.txt index 3fa1029b..2cb4104f 120000..100644 --- a/tests/fuzzing/dc_inputs/subtract.txt +++ b/tests/fuzzing/dc_inputs/subtract.txt @@ -1 +1,33 @@ -../../dc/subtract.txt
\ No newline at end of file +0 0-pR +0 1-pR +1 0-pR +1 1-pR +5 2-pR +2 9-pR +321974 12845976238457-pR +2874519803456710938465 384723854-pR +10000000000000000000000000000000000000000 999999999999999999999999999999999999999-pR +10000000000000000000000000000000000000000 9999999999999999999999999999999999999999-pR +10000000000000000000000000000000000000000 999999999999999999999999999999999999999.99999999999999999999999999999999999-pR +10000000000000000000000000000000000000000 9999999999999999999999999999999999999999.9999999999999999999999999999999999-pR +10000000000000000000000000000000000000000 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000001-pR +10000000000000000000000000000000000000001 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000001-pR +10000000000000000000000000000000000000000.0000000001 0.0000000000000000000000000000000000000000000000000000000000000000000000000001-pR +_2 6-pR +_23784692345 182934721309467230894628735496027345-pR +_224352354962873059862 _1245723576829456278354960278345-pR +_3468273598 _12354243-pR +_0.92345768293 _2354768923-pR +_712384634.123476823 _24768293376-pR +_1879234638 _0.917234869234-pR +_0.9172438692134 _0.971284967124-pR +_0.1283475123465 _0.937462346-pR +_124765829346.2837468293562 _0.923467829346-pR +_12476829385769 _1928476259034.8378629356-pR +_0.38476284395876345 _94875394587623.2357869324857-pR +_4674596708467.34754789403674343567 _48672394852354698.237548629345-pR +979519669 3018100865-pR +929002449 3280677283-pR +0 _525898-pR +3 _3-pR +2 _1 2893714 _2189367411289 _.8921374 3.9201384----pR diff --git a/tests/fuzzing/dc_inputs/trunc.txt b/tests/fuzzing/dc_inputs/trunc.txt deleted file mode 120000 index f03effad..00000000 --- a/tests/fuzzing/dc_inputs/trunc.txt +++ /dev/null @@ -1 +0,0 @@ -../../dc/trunc.txt
\ No newline at end of file diff --git a/tests/fuzzing/dc_inputs/vars.txt b/tests/fuzzing/dc_inputs/vars.txt index 67f3f66f..bbe73b47 120000..100644 --- a/tests/fuzzing/dc_inputs/vars.txt +++ b/tests/fuzzing/dc_inputs/vars.txt @@ -1 +1,2 @@ -../../dc/vars.txt
\ No newline at end of file +298734.8921702348sx_928374892.28937syzpRlxly+pR +298734.8921702348S xotj _928374892.28937S yotp zpRl xotj l yotp-pRzpR L xotj L yotp-pR diff --git a/tests/fuzzing/dc_inputs/weird.dc b/tests/fuzzing/dc_inputs/weird.dc index a2a4c554..391ec05d 120000..100644 --- a/tests/fuzzing/dc_inputs/weird.dc +++ b/tests/fuzzing/dc_inputs/weird.dc @@ -1 +1,2 @@ -../../dc/scripts/weird.dc
\ No newline at end of file +#! /usr/bin/dc +zp198202389.289374pzp[He World!]SzpzXfrfxzpfR |