From 3d22a2aa6dac3833a3e163fb5130e672eb6e3ae4 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 5 Jan 2002 17:03:32 +0000 Subject: [PATCH] bounding tests --- boundtest.c | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 boundtest.c diff --git a/boundtest.c b/boundtest.c new file mode 100644 index 00000000..2266ab71 --- /dev/null +++ b/boundtest.c @@ -0,0 +1,201 @@ +#include +#include + +#define NB_ITS 1000000 +//#define NB_ITS 1 +#define TAB_SIZE 100 + +int tab[TAB_SIZE]; +int ret_sum; +char tab3[256]; + +int test1(void) +{ + int i, sum = 0; + for(i=0;i= 2) + index = atoi(argv[1]); + /* well, we also use bounds on this ! */ + ftest = table_test[index]; + ftest(); + + return 0; +} + +/* + * without bound 0.77 s + * with bounds 4.73 + */