diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-11 10:33:44 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-11 10:33:44 -0500 |
commit | 96251837db7c698a76d997f1449f0cd47885f203 (patch) | |
tree | 3a0019a8c9e6115bc4205c00baa86e7814baaa0f /proto/ctests | |
parent | 86dfca58460639f9a969aa312f0adf17e79be1f0 (diff) | |
download | roux-96251837db7c698a76d997f1449f0cd47885f203.tar.gz |
leave the prototype to git history
Diffstat (limited to 'proto/ctests')
-rw-r--r-- | proto/ctests/eucl.c | 17 | ||||
-rw-r--r-- | proto/ctests/pspill.c | 20 | ||||
-rw-r--r-- | proto/ctests/psum.c | 13 |
3 files changed, 0 insertions, 50 deletions
diff --git a/proto/ctests/eucl.c b/proto/ctests/eucl.c deleted file mode 100644 index fd2e9c9..0000000 --- a/proto/ctests/eucl.c +++ /dev/null @@ -1,17 +0,0 @@ -#include <stdio.h> - -int main() -{ - int a = 123456; - int b = 32223; - int t; - - do { - t = a % b; - a = b; - b = t; - } while (b); - - printf("%d\n", a); - return 0; -} diff --git a/proto/ctests/pspill.c b/proto/ctests/pspill.c deleted file mode 100644 index d3dfba8..0000000 --- a/proto/ctests/pspill.c +++ /dev/null @@ -1,20 +0,0 @@ -long f() { - long l00, l01, l02, l03, l04, l05, l06, l07, l08, l09, l10, l11, l12, l13; - - l00 = 42; - l01 = l00 + l00; - l02 = l00 + l01; - l03 = l00 + l02; - l04 = l00 + l03; - l05 = l00 + l04; - l06 = l00 + l05; - l07 = l06 + l06; - l08 = l05 + l07; - l09 = l04 + l08; - l10 = l03 + l09; - l11 = l02 + l10; - l12 = l01 + l11; - l13 = l00 + l12; - - return l13; -} diff --git a/proto/ctests/psum.c b/proto/ctests/psum.c deleted file mode 100644 index 4ea6a03..0000000 --- a/proto/ctests/psum.c +++ /dev/null @@ -1,13 +0,0 @@ -long f() { - long n, n0, s; - - s = 0; - n = 1234567; - for (;;) { - n0 = n - 1; - s = s + n; - if (!n0) break; - n = n0; - } - return s; -} |