2 # Copyright (C) 2005-2009, Parrot Foundation.
5 # ./parrot -R jit fannkuch.pir N (N = 9 for shootout)
7 # modified by karl : default value of N=7 to match shootout output
12 .local pmc perm, perm1, count
13 perm = new 'FixedIntegerArray'
14 perm1 = new 'FixedIntegerArray'
15 count = new 'FixedIntegerArray'
16 .local int flips, flipsMax, r, i, k, didpr
36 unless didpr < 30 goto endif_1
48 unless r != 1 goto endfor_3
68 unless i < j goto endfor_5
82 unless flipsMax < flips goto endif_3
87 unless r == n goto endif_4
94 unless i < r goto endwhile_2
105 if $I0 > 0 goto beginwhile_1
115 if argc == 1 goto default
132 # vim: expandtab shiftwidth=4 ft=pir: