From d106d7b0aa514c727099b1ee9bde94ec8c4d68fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Wed, 17 Feb 2021 23:39:14 +0100 Subject: rename tests to be valid identifiers --- progs/bench/fib_iter.sy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 progs/bench/fib_iter.sy (limited to 'progs/bench/fib_iter.sy') diff --git a/progs/bench/fib_iter.sy b/progs/bench/fib_iter.sy new file mode 100644 index 0000000..b6ff3d8 --- /dev/null +++ b/progs/bench/fib_iter.sy @@ -0,0 +1,14 @@ +// A fibonacci implementation that is a little +// less awefull. But we run it 10000 times instead. +j := 0 +for , j < 10000, j = j + 1 { + a := 0 + b := 1 + + for i := 0, i < 50, i = i + 1 { + c := a + a = b + b = c + b + } + a <=> 12586269025 +} -- cgit v1.2.1