search for: rung1

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

Did you mean: ring1
2015 Oct 09
3
Python version for scripts in LLVM?
...rgs = parser.parse_args() if (args.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;"...