int main(void) {
  int bestAction;
  double alphaVectors[625][6];
  double alphaActions[6];
  readPolicy("test.xml", alphaVectors, alphaActions);
  int xStart = 2;
  int yStart = 2;
  double belief[] = {[0 ... 625 - 1] = 0.0};
  initBelief(belief, xStart, yStart);
  double bprime[] = {[0 ... 625 - 1] = 1.0 / 625};
  bestAction = getAction(belief, alphaVectors);
  printf("best action = %i\n", bestAction);
  updateBelief(belief, bprime, bestAction, 2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9c90,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x7540(%rbp),%rsi
lea    -0x7570(%rbp),%rdx
lea    0xe69(%rip),%rdi
mov    $0x0,%al
call   1080 <readPolicy@plt>
movl   $0x2,-0x7574(%rbp)
movl   $0x2,-0x7578(%rbp)
lea    -0x8900(%rbp),%rdi
xor    %esi,%esi
mov    $0x1388,%edx
call   1060 <memset@plt>
lea    -0x8900(%rbp),%rdi
mov    -0x7574(%rbp),%esi
mov    -0x7578(%rbp),%edx
mov    $0x0,%al
call   1050 <initBelief@plt>
lea    -0x9c90(%rbp),%rdi
lea    0xe33(%rip),%rsi
mov    $0x1388,%edx
call   1070 <memcpy@plt>
lea    -0x8900(%rbp),%rdi
lea    -0x7540(%rbp),%rsi
mov    $0x0,%al
call   1090 <getAction@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x8900(%rbp),%rdi
lea    -0x9c90(%rbp),%rsi
mov    -0x8(%rbp),%edx
mov    $0x2,%ecx
mov    $0x0,%al
call   1030 <updateBelief@plt>
xor    %eax,%eax
add    $0x9c90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x9c88,%rsp
lea    0xe7c(%rip),%rdi
lea    0x2750(%rsp),%r14
mov    %rsp,%rdx
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <readPolicy@plt>
lea    0x13c0(%rsp),%rbx
mov    $0x1388,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <initBelief@plt>
lea    0xe55(%rip),%rsi
lea    0x30(%rsp),%r15
mov    $0x1388,%edx
mov    %r15,%rdi
call   1070 <memcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1090 <getAction@plt>
mov    %eax,%ebp
lea    0xe16(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1030 <updateBelief@plt>
xor    %eax,%eax
add    $0x9c88,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"test.xml\00"
@__const.main.bprime = [625 x double] [double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03]
@.str.1 = [18 x i8] c"best action = %i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [625 x [6 x double]]
%4 = alloca [6 x double]
%5 = alloca i32
%6 = alloca i32
%7 = alloca [625 x double]
%8 = alloca [625 x double]
store i32 0, i32* %1
%9 = getelementptr inbounds [625 x [6 x double]], [625 x [6 x double]]* %3, i64 0, i64 0
%10 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 0
%11 = call i32 (i8*, [6 x double]*, double*, ...) bitcast (i32 (...)* @readPolicy to i32 (i8*, [6 x double]*, double*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), [6 x double]* %9, double* %10)
store i32 2, i32* %5
store i32 2, i32* %6
%12 = bitcast [625 x double]* %7 to i8*
%13 = getelementptr inbounds [625 x double], [625 x double]* %7, i64 0, i64 0
%14 = load i32, i32* %5
%15 = load i32, i32* %6
%16 = call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @initBelief to i32 (double*, i32, i32, ...)*)(double* %13, i32 %14, i32 %15)
%17 = bitcast [625 x double]* %8 to i8*
%18 = getelementptr inbounds [625 x double], [625 x double]* %7, i64 0, i64 0
%19 = getelementptr inbounds [625 x [6 x double]], [625 x [6 x double]]* %3, i64 0, i64 0
%20 = call i32 (double*, [6 x double]*, ...) bitcast (i32 (...)* @getAction to i32 (double*, [6 x double]*, ...)*)(double* %18, [6 x double]* %19)
store i32 %20, i32* %2
%21 = load i32, i32* %2
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %21)
%23 = getelementptr inbounds [625 x double], [625 x double]* %7, i64 0, i64 0
%24 = getelementptr inbounds [625 x double], [625 x double]* %8, i64 0, i64 0
%25 = load i32, i32* %2
%26 = call i32 (double*, double*, i32, i32, ...) bitcast (i32 (...)* @updateBelief to i32 (double*, double*, i32, i32, ...)*)(double* %23, double* %24, i32 %25, i32 2)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"test.xml\00"
@__const.main.bprime = [625 x double] [double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03, double 1.600000e-03]
@.str.1 = [18 x i8] c"best action = %i\0A\00"
define i32 @main() {
%1 = alloca [625 x [6 x double]]
%2 = alloca [6 x double]
%3 = alloca [625 x double]
%4 = alloca [625 x double]
%5 = bitcast [625 x [6 x double]]* %1 to i8*
%6 = bitcast [6 x double]* %2 to i8*
%7 = getelementptr inbounds [625 x [6 x double]], [625 x [6 x double]]* %1, i64 0, i64 0
%8 = getelementptr inbounds [6 x double], [6 x double]* %2, i64 0, i64 0
%9 = call i32 (i8*, [6 x double]*, double*, ...) bitcast (i32 (...)* @readPolicy to i32 (i8*, [6 x double]*, double*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), [6 x double]* %7, double* %8)
%10 = bitcast [625 x double]* %3 to i8*
%11 = getelementptr inbounds [625 x double], [625 x double]* %3, i64 0, i64 0
%12 = call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @initBelief to i32 (double*, i32, i32, ...)*)(double* %11, i32 2, i32 2)
%13 = bitcast [625 x double]* %4 to i8*
%14 = call i32 (double*, [6 x double]*, ...) bitcast (i32 (...)* @getAction to i32 (double*, [6 x double]*, ...)*)(double* %11, [6 x double]* %7)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = getelementptr inbounds [625 x double], [625 x double]* %4, i64 0, i64 0
%17 = call i32 (double*, double*, i32, i32, ...) bitcast (i32 (...)* @updateBelief to i32 (double*, double*, i32, i32, ...)*)(double* %11, double* %16, i32 %14, i32 2)
ret i32 0
}