summaryrefslogtreecommitdiff
path: root/impl/performance/generate-cycle.py
diff options
context:
space:
mode:
Diffstat (limited to 'impl/performance/generate-cycle.py')
-rw-r--r--impl/performance/generate-cycle.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/impl/performance/generate-cycle.py b/impl/performance/generate-cycle.py
new file mode 100644
index 0000000..6c22e6e
--- /dev/null
+++ b/impl/performance/generate-cycle.py
@@ -0,0 +1,5 @@
+import sys
+
+print 'x0 = max(0,x'+str(int(sys.argv[1])-1)+')'
+for i in xrange(int(sys.argv[1])-1):
+ print 'x' + str(i+1) + " = x" + str(i)