search for: rung2

Displaying 1 result from an estimated 1 matches for "rung2".

Did you mean: rung
2015 Oct 09
3
Python version for scripts in LLVM?
...s.rungs % 2) != 0: - print "Rungs must be a multiple of 2" + print("Rungs must be a multiple of 2") return - print "int ladder(int *foo, int *bar, int x) {" + print("int ladder(int *foo, int *bar, int x) {") rung1 = xrange(0, args.rungs, 2) rung2 = xrange(1, args.rungs, 2) for i in rung1: - print "rung1%d:" % i - print "*foo = x++;" + print("rung1%d:" % i) + print("*foo = x++;") if i != rung1[-1]: - print "if (*bar) goto rung1%d;" % (i+2) - print "else goto...