#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ assert_cubic_map(int, int, double, double, double, double,
                                    double, double, unsigned int, unsigned int,
                                    unsigned int, int, int, int, double, double,
                                    double, double *, double *, double *,
                                    double *, unsigned int *, unsigned int *,
                                    unsigned int *, double **);
int /*<<< orphan*/ permute_map(int, unsigned int, unsigned int, unsigned int,
                               unsigned int *, unsigned int *, unsigned int *,
                               int, int, int, int *, int *, int *, double *,
                               double **);
int /*<<< orphan*/ permute_print_info(int, unsigned int, unsigned int,
                                      unsigned int, unsigned int, unsigned int,
                                      unsigned int, int, int, int, int, int,
                                      int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ read_mrc(char *, int *, int *, int *, unsigned int *,
                            unsigned int *, unsigned int *, int *, int *, int *,
                            double *, double *, double *, double *, double *,
                            double *, double *, double *, double *, double **);
int /*<<< orphan*/ read_situs(char *, double *, double *, double *, double *,
                              unsigned int *, unsigned int *, unsigned int *,
                              double **);
int test_mrc(char *, int);
int test_situs(char *);
void read_vol(char *vol_file, double *width, double *origx, double *origy,
              double *origz, unsigned *extx, unsigned *exty, unsigned *extz,
              double **phi) {
  int n_range_viol0, n_range_viol1, n_range_viol2;
  int ordermode = 7, cubic = 1, orom = 1;
  unsigned nc, nr, ns;
  unsigned nx, ny, nz;
  int nxstart = 0, nystart = 0, nzstart = 0;
  int ncstart = 0, nrstart = 0, nsstart = 0;
  double widthx, widthy, widthz;
  double xorigin, yorigin, zorigin;
  double alpha, beta, gamma;
  double *phi_raw;
  n_range_viol0 = test_mrc(vol_file, 0);
  n_range_viol1 = test_mrc(vol_file, 1);
  n_range_viol2 = test_situs(vol_file);
  if (n_range_viol2 < n_range_viol0 && n_range_viol2 < n_range_viol1)
    read_situs(vol_file, width, origx, origy, origz, extx, exty, extz, phi);
  else {
    read_mrc(vol_file, &orom, &cubic, &ordermode, &nc, &nr, &ns, &ncstart,
             &nrstart, &nsstart, &widthx, &widthy, &widthz, &xorigin, &yorigin,
             &zorigin, &alpha, &beta, &gamma, &phi_raw);
    permute_map(ordermode, nc, nr, ns, &nx, &ny, &nz, ncstart, nrstart, nsstart,
                &nxstart, &nystart, &nzstart, phi_raw, phi);
    permute_print_info(ordermode, nc, nr, ns, nx, ny, nz, ncstart, nrstart,
                       nsstart, nxstart, nystart, nzstart);
    assert_cubic_map(orom, cubic, alpha, beta, gamma, widthx, widthy, widthz,
                     nx, ny, nz, nxstart, nystart, nzstart, xorigin, yorigin,
                     zorigin, width, origx, origy, origz, extx, exty, extz,
                     phi);
    printf("lib_vio> \n");
  }
  return;
}


x86 assembly (clang, -O0):
<read_vol>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x188,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9,-0x58(%rbp)
movl   $0x7,-0x68(%rbp)
movl   $0x1,-0x6c(%rbp)
movl   $0x1,-0x70(%rbp)
movl   $0x0,-0x8c(%rbp)
movl   $0x0,-0x90(%rbp)
movl   $0x0,-0x94(%rbp)
movl   $0x0,-0x98(%rbp)
movl   $0x0,-0x9c(%rbp)
movl   $0x0,-0xa0(%rbp)
mov    -0x30(%rbp),%rdi
xor    %esi,%esi
call   10a0 <test_mrc@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x30(%rbp),%rdi
mov    $0x1,%esi
call   10a0 <test_mrc@plt>
mov    %eax,-0x60(%rbp)
mov    -0x30(%rbp),%rdi
call   1090 <test_situs@plt>
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jge    1288 <read_vol+0x108>
mov    -0x64(%rbp),%eax
cmp    -0x60(%rbp),%eax
jge    1288 <read_vol+0x108>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    0x10(%rbp),%r11
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1040 <read_situs@plt>
jmp    15a7 <read_vol+0x427>
mov    -0x30(%rbp),%rdi
lea    -0x70(%rbp),%rsi
lea    -0x6c(%rbp),%rdx
lea    -0x68(%rbp),%rcx
lea    -0x74(%rbp),%r8
lea    -0x78(%rbp),%r9
lea    -0x7c(%rbp),%rax
mov    %rax,-0x140(%rbp)
lea    -0x98(%rbp),%rax
mov    %rax,-0x138(%rbp)
lea    -0x9c(%rbp),%rax
mov    %rax,-0x130(%rbp)
lea    -0xa0(%rbp),%rax
mov    %rax,-0x128(%rbp)
lea    -0xa8(%rbp),%rax
mov    %rax,-0x120(%rbp)
lea    -0xb0(%rbp),%rax
mov    %rax,-0x118(%rbp)
lea    -0xb8(%rbp),%r13
lea    -0xc0(%rbp),%r12
lea    -0xc8(%rbp),%r15
lea    -0xd0(%rbp),%r14
lea    -0xd8(%rbp),%rbx
lea    -0xe0(%rbp),%r11
lea    -0xe8(%rbp),%r10
lea    -0xf0(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    -0x140(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x138(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x130(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x128(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x120(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0x118(%rbp),%rax
mov    %rax,0x28(%rsp)
mov    -0x110(%rbp),%rax
mov    %r13,0x30(%rsp)
mov    %r12,0x38(%rsp)
mov    %r15,0x40(%rsp)
mov    %r14,0x48(%rsp)
mov    %rbx,0x50(%rsp)
mov    %r11,0x58(%rsp)
mov    %r10,0x60(%rsp)
mov    %rax,0x68(%rsp)
call   1060 <read_mrc@plt>
mov    -0x68(%rbp),%edi
mov    -0x74(%rbp),%esi
mov    -0x78(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x98(%rbp),%r13d
mov    -0x9c(%rbp),%r12d
mov    -0xa0(%rbp),%r15d
mov    -0xf0(%rbp),%r10
mov    0x20(%rbp),%rax
mov    %rax,-0x108(%rbp)
lea    -0x80(%rbp),%r8
lea    -0x84(%rbp),%r9
lea    -0x88(%rbp),%rax
lea    -0x8c(%rbp),%r14
lea    -0x90(%rbp),%rbx
lea    -0x94(%rbp),%r11
mov    %rax,(%rsp)
mov    -0x108(%rbp),%rax
mov    %r13d,0x8(%rsp)
mov    %r12d,0x10(%rsp)
mov    %r15d,0x18(%rsp)
mov    %r14,0x20(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r11,0x30(%rsp)
mov    %r10,0x38(%rsp)
mov    %rax,0x40(%rsp)
call   1030 <permute_map@plt>
mov    -0x68(%rbp),%edi
mov    -0x74(%rbp),%esi
mov    -0x78(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x84(%rbp),%r9d
mov    -0x88(%rbp),%r12d
mov    -0x98(%rbp),%r15d
mov    -0x9c(%rbp),%r14d
mov    -0xa0(%rbp),%ebx
mov    -0x8c(%rbp),%r11d
mov    -0x90(%rbp),%r10d
mov    -0x94(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <permute_print_info@plt>
mov    -0x70(%rbp),%edi
mov    -0x6c(%rbp),%esi
movsd  -0xd8(%rbp),%xmm0
ff
movsd  -0xe0(%rbp),%xmm1
ff
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm3
ff
movsd  -0xb0(%rbp),%xmm4
ff
movsd  -0xb8(%rbp),%xmm5
ff
mov    -0x80(%rbp),%edx
mov    -0x84(%rbp),%ecx
mov    -0x88(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x90(%rbp),%eax
mov    %eax,-0x100(%rbp)
mov    -0x94(%rbp),%eax
mov    %eax,-0xfc(%rbp)
movsd  -0xc0(%rbp),%xmm6
ff
movsd  -0xc8(%rbp),%xmm7
ff
movsd  -0xd0(%rbp),%xmm8
ff ff
mov    -0x38(%rbp),%r13
mov    -0x40(%rbp),%r12
mov    -0x48(%rbp),%r15
mov    -0x50(%rbp),%r14
mov    -0x58(%rbp),%rbx
mov    0x10(%rbp),%r11
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%rax
mov    %rax,-0xf8(%rbp)
mov    -0x100(%rbp),%eax
mov    %eax,(%rsp)
mov    -0xfc(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0xf8(%rbp),%rax
movsd  %xmm8,0x10(%rsp)
mov    %r13,0x18(%rsp)
mov    %r12,0x20(%rsp)
mov    %r15,0x28(%rsp)
mov    %r14,0x30(%rsp)
mov    %rbx,0x38(%rsp)
mov    %r11,0x40(%rsp)
mov    %r10,0x48(%rsp)
mov    %rax,0x50(%rsp)
call   1080 <assert_cubic_map@plt>
lea    0xa5e(%rip),%rdi
call   1050 <printf@plt>
add    $0x188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_vol>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %r9,%r12
mov    %r8,%r13
mov    %rcx,%rbx
mov    %rdx,0x50(%rsp)
mov    %rsi,0x48(%rsp)
mov    %rdi,%rbp
mov    0x120(%rsp),%rax
mov    %rax,0x70(%rsp)
mov    0x118(%rsp),%rax
mov    %rax,0x78(%rsp)
mov    0x110(%rsp),%rax
mov    %rax,0x80(%rsp)
movl   $0x7,0x24(%rsp)
movl   $0x1,0x44(%rsp)
movl   $0x1,0x40(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
xor    %esi,%esi
call   10a0 <test_mrc@plt>
mov    %eax,%r15d
mov    %rbp,%rdi
mov    $0x1,%esi
call   10a0 <test_mrc@plt>
mov    %eax,%r14d
mov    %rbp,%rdi
call   1090 <test_situs@plt>
cmp    %r15d,%eax
jge    1271 <read_vol+0xf1>
cmp    %r14d,%eax
jge    1271 <read_vol+0xf1>
mov    %rbp,%rdi
mov    0x48(%rsp),%rsi
mov    0x50(%rsp),%rdx
mov    %rbx,%rcx
mov    %r13,%r8
mov    %r12,%r9
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <read_situs@plt>
lea    0x88(%rsp),%r14
mov    %r13,0x60(%rsp)
mov    %rbx,0x68(%rsp)
lea    0x90(%rsp),%r13
lea    0x98(%rsp),%r15
mov    %r12,0x58(%rsp)
lea    0xa0(%rsp),%rbx
lea    0xa8(%rsp),%rax
lea    0xb0(%rsp),%r10
lea    0xb8(%rsp),%r11
lea    0x34(%rsp),%r12
lea    0x40(%rsp),%rsi
lea    0x44(%rsp),%rdx
lea    0x24(%rsp),%rcx
lea    0x3c(%rsp),%r8
lea    0x38(%rsp),%r9
mov    %rbp,%rdi
push   %r14
push   %r13
push   %r15
push   %rbx
push   %rax
push   %r10
push   %r11
lea    0xf8(%rsp),%rax
push   %rax
lea    0x108(%rsp),%rax
push   %rax
lea    0x118(%rsp),%rax
push   %rax
lea    0x5c(%rsp),%rax
push   %rax
lea    0x68(%rsp),%rax
push   %rax
lea    0x74(%rsp),%rax
push   %rax
push   %r12
call   1060 <read_mrc@plt>
add    $0x70,%rsp
mov    0x24(%rsp),%edi
mov    0x3c(%rsp),%esi
mov    0x38(%rsp),%edx
mov    0x34(%rsp),%ecx
mov    0x14(%rsp),%eax
mov    0x10(%rsp),%ebp
mov    0xc(%rsp),%ebx
sub    $0x8,%rsp
lea    0x20(%rsp),%r10
lea    0x24(%rsp),%r11
lea    0x28(%rsp),%r14
lea    0x30(%rsp),%r15
lea    0x38(%rsp),%r8
lea    0x34(%rsp),%r9
mov    0x78(%rsp),%r12
push   %r12
push   0x98(%rsp)
push   %r10
push   %r11
push   %r14
push   %rbx
push   %rbp
push   %rax
push   %r15
call   1040 <permute_map@plt>
add    $0x50,%rsp
mov    0x24(%rsp),%edi
mov    0x3c(%rsp),%esi
mov    0x38(%rsp),%edx
mov    0x34(%rsp),%ecx
mov    0x30(%rsp),%r8d
mov    0x2c(%rsp),%r9d
mov    0x28(%rsp),%r10d
mov    0x14(%rsp),%r11d
mov    0x10(%rsp),%r14d
mov    0xc(%rsp),%r15d
mov    0x20(%rsp),%ebp
mov    0x1c(%rsp),%ebx
mov    0x18(%rsp),%eax
sub    $0x8,%rsp
push   %rax
push   %rbx
push   %rbp
push   %r15
push   %r14
push   %r11
push   %r10
call   1070 <permute_print_info@plt>
add    $0x40,%rsp
mov    0x40(%rsp),%edi
mov    0x44(%rsp),%esi
movsd  0xa0(%rsp),%xmm0
movsd  0x98(%rsp),%xmm1
movsd  0x90(%rsp),%xmm2
movsd  0xd0(%rsp),%xmm3
movsd  0xc8(%rsp),%xmm4
movsd  0xc0(%rsp),%xmm5
mov    0x30(%rsp),%edx
mov    0x2c(%rsp),%ecx
mov    0x28(%rsp),%r8d
mov    0x20(%rsp),%r9d
mov    0x1c(%rsp),%eax
mov    0x18(%rsp),%ebp
movsd  0xb8(%rsp),%xmm6
movsd  0xb0(%rsp),%xmm7
movsd  0xa8(%rsp),%xmm8
sub    $0x60,%rsp
mov    %r12,0x50(%rsp)
mov    0xd8(%rsp),%rbx
mov    %rbx,0x48(%rsp)
mov    0xe0(%rsp),%rbx
mov    %rbx,0x40(%rsp)
mov    0xb8(%rsp),%rbx
mov    %rbx,0x38(%rsp)
mov    0xc0(%rsp),%rbx
mov    %rbx,0x30(%rsp)
mov    0xc8(%rsp),%rbx
mov    %rbx,0x28(%rsp)
mov    0xb0(%rsp),%rbx
mov    %rbx,0x20(%rsp)
mov    0xa8(%rsp),%rbx
mov    %rbx,0x18(%rsp)
mov    %ebp,0x8(%rsp)
mov    %eax,(%rsp)
movsd  %xmm8,0x10(%rsp)
call   1080 <assert_cubic_map@plt>
add    $0x60,%rsp
lea    0xb3b(%rip),%rdi
call   1030 <puts@plt>
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"lib_vio> \0A\00"
define void @read_vol(i8* %0, double* %1, double* %2, double* %3, double* %4, i32* %5, i32* %6, i32* %7, double** %8) {
%10 = alloca i8*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca double**
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
%43 = alloca double
%44 = alloca double
%45 = alloca double
%46 = alloca double*
store i8* %0, i8** %10
store double* %1, double** %11
store double* %2, double** %12
store double* %3, double** %13
store double* %4, double** %14
store i32* %5, i32** %15
store i32* %6, i32** %16
store i32* %7, i32** %17
store double** %8, double*** %18
store i32 7, i32* %22
store i32 1, i32* %23
store i32 1, i32* %24
store i32 0, i32* %31
store i32 0, i32* %32
store i32 0, i32* %33
store i32 0, i32* %34
store i32 0, i32* %35
store i32 0, i32* %36
%47 = load i8*, i8** %10
%48 = call i32 @test_mrc(i8* %47, i32 0)
store i32 %48, i32* %19
%49 = load i8*, i8** %10
%50 = call i32 @test_mrc(i8* %49, i32 1)
store i32 %50, i32* %20
%51 = load i8*, i8** %10
%52 = call i32 @test_situs(i8* %51)
store i32 %52, i32* %21
%53 = load i32, i32* %21
%54 = load i32, i32* %19
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %71
56: ; preds = %9
%57 = load i32, i32* %21
%58 = load i32, i32* %20
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %71
60: ; preds = %56
%61 = load i8*, i8** %10
%62 = load double*, double** %11
%63 = load double*, double** %12
%64 = load double*, double** %13
%65 = load double*, double** %14
%66 = load i32*, i32** %15
%67 = load i32*, i32** %16
%68 = load i32*, i32** %17
%69 = load double**, double*** %18
%70 = call i32 @read_situs(i8* %61, double* %62, double* %63, double* %64, double* %65, i32* %66, i32* %67, i32* %68, double** %69)
br label %125
71: ; preds = %56, %9
%72 = load i8*, i8** %10
%73 = call i32 @read_mrc(i8* %72, i32* %24, i32* %23, i32* %22, i32* %25, i32* %26, i32* %27, i32* %34, i32* %35, i32* %36, double* %37, double* %38, double* %39, double* %40, double* %41, double* %42, double* %43, double* %44, double* %45, double** %46)
%74 = load i32, i32* %22
%75 = load i32, i32* %25
%76 = load i32, i32* %26
%77 = load i32, i32* %27
%78 = load i32, i32* %34
%79 = load i32, i32* %35
%80 = load i32, i32* %36
%81 = load double*, double** %46
%82 = load double**, double*** %18
%83 = call i32 @permute_map(i32 %74, i32 %75, i32 %76, i32 %77, i32* %28, i32* %29, i32* %30, i32 %78, i32 %79, i32 %80, i32* %31, i32* %32, i32* %33, double* %81, double** %82)
%84 = load i32, i32* %22
%85 = load i32, i32* %25
%86 = load i32, i32* %26
%87 = load i32, i32* %27
%88 = load i32, i32* %28
%89 = load i32, i32* %29
%90 = load i32, i32* %30
%91 = load i32, i32* %34
%92 = load i32, i32* %35
%93 = load i32, i32* %36
%94 = load i32, i32* %31
%95 = load i32, i32* %32
%96 = load i32, i32* %33
%97 = call i32 @permute_print_info(i32 %84, i32 %85, i32 %86, i32 %87, i32 %88, i32 %89, i32 %90, i32 %91, i32 %92, i32 %93, i32 %94, i32 %95, i32 %96)
%98 = load i32, i32* %24
%99 = load i32, i32* %23
%100 = load double, double* %43
%101 = load double, double* %44
%102 = load double, double* %45
%103 = load double, double* %37
%104 = load double, double* %38
%105 = load double, double* %39
%106 = load i32, i32* %28
%107 = load i32, i32* %29
%108 = load i32, i32* %30
%109 = load i32, i32* %31
%110 = load i32, i32* %32
%111 = load i32, i32* %33
%112 = load double, double* %40
%113 = load double, double* %41
%114 = load double, double* %42
%115 = load double*, double** %11
%116 = load double*, double** %12
%117 = load double*, double** %13
%118 = load double*, double** %14
%119 = load i32*, i32** %15
%120 = load i32*, i32** %16
%121 = load i32*, i32** %17
%122 = load double**, double*** %18
%123 = call i32 @assert_cubic_map(i32 %98, i32 %99, double %100, double %101, double %102, double %103, double %104, double %105, i32 %106, i32 %107, i32 %108, i32 %109, i32 %110, i32 %111, double %112, double %113, double %114, double* %115, double* %116, double* %117, double* %118, i32* %119, i32* %120, i32* %121, double** %122)
%124 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %125
125: ; preds = %71, %60
ret void
}

LLVM IR (-O2):
@str = [10 x i8] c"lib_vio> \00"
define void @read_vol(i8* %0, double* %1, double* %2, double* %3, double* %4, i32* %5, i32* %6, i32* %7, double** %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double*
%35 = bitcast i32* %10 to i8*
store i32 7, i32* %10
%36 = bitcast i32* %11 to i8*
store i32 1, i32* %11
%37 = bitcast i32* %12 to i8*
store i32 1, i32* %12
%38 = bitcast i32* %13 to i8*
%39 = bitcast i32* %14 to i8*
%40 = bitcast i32* %15 to i8*
%41 = bitcast i32* %16 to i8*
%42 = bitcast i32* %17 to i8*
%43 = bitcast i32* %18 to i8*
%44 = bitcast i32* %19 to i8*
store i32 0, i32* %19
%45 = bitcast i32* %20 to i8*
store i32 0, i32* %20
%46 = bitcast i32* %21 to i8*
store i32 0, i32* %21
%47 = bitcast i32* %22 to i8*
store i32 0, i32* %22
%48 = bitcast i32* %23 to i8*
store i32 0, i32* %23
%49 = bitcast i32* %24 to i8*
store i32 0, i32* %24
%50 = bitcast double* %25 to i8*
%51 = bitcast double* %26 to i8*
%52 = bitcast double* %27 to i8*
%53 = bitcast double* %28 to i8*
%54 = bitcast double* %29 to i8*
%55 = bitcast double* %30 to i8*
%56 = bitcast double* %31 to i8*
%57 = bitcast double* %32 to i8*
%58 = bitcast double* %33 to i8*
%59 = bitcast double** %34 to i8*
%60 = tail call i32 @test_mrc(i8* %0, i32 0)
%61 = tail call i32 @test_mrc(i8* %0, i32 1)
%62 = tail call i32 @test_situs(i8* %0)
%63 = icmp slt i32 %62, %60
%64 = icmp slt i32 %62, %61
%65 = select i1 %63, i1 %64, i1 false
br i1 %65, label %66, label %68
66: ; preds = %9
%67 = tail call i32 @read_situs(i8* %0, double* %1, double* %2, double* %3, double* %4, i32* %5, i32* %6, i32* %7, double** %8)
br label %112
68: ; preds = %9
%69 = call i32 @read_mrc(i8* %0, i32* %12, i32* %11, i32* %10, i32* %13, i32* %14, i32* %15, i32* %22, i32* %23, i32* %24, double* %25, double* %26, double* %27, double* %28, double* %29, double* %30, double* %31, double* %32, double* %33, double** %34)
%70 = load i32, i32* %10
%71 = load i32, i32* %13
%72 = load i32, i32* %14
%73 = load i32, i32* %15
%74 = load i32, i32* %22
%75 = load i32, i32* %23
%76 = load i32, i32* %24
%77 = load double*, double** %34
%78 = call i32 @permute_map(i32 %70, i32 %71, i32 %72, i32 %73, i32* %16, i32* %17, i32* %18, i32 %74, i32 %75, i32 %76, i32* %19, i32* %20, i32* %21, double* %77, double** %8)
%79 = load i32, i32* %10
%80 = load i32, i32* %13
%81 = load i32, i32* %14
%82 = load i32, i32* %15
%83 = load i32, i32* %16
%84 = load i32, i32* %17
%85 = load i32, i32* %18
%86 = load i32, i32* %22
%87 = load i32, i32* %23
%88 = load i32, i32* %24
%89 = load i32, i32* %19
%90 = load i32, i32* %20
%91 = load i32, i32* %21
%92 = call i32 @permute_print_info(i32 %79, i32 %80, i32 %81, i32 %82, i32 %83, i32 %84, i32 %85, i32 %86, i32 %87, i32 %88, i32 %89, i32 %90, i32 %91)
%93 = load i32, i32* %12
%94 = load i32, i32* %11
%95 = load double, double* %31
%96 = load double, double* %32
%97 = load double, double* %33
%98 = load double, double* %25
%99 = load double, double* %26
%100 = load double, double* %27
%101 = load i32, i32* %16
%102 = load i32, i32* %17
%103 = load i32, i32* %18
%104 = load i32, i32* %19
%105 = load i32, i32* %20
%106 = load i32, i32* %21
%107 = load double, double* %28
%108 = load double, double* %29
%109 = load double, double* %30
%110 = call i32 @assert_cubic_map(i32 %93, i32 %94, double %95, double %96, double %97, double %98, double %99, double %100, i32 %101, i32 %102, i32 %103, i32 %104, i32 %105, i32 %106, double %107, double %108, double %109, double* %1, double* %2, double* %3, double* %4, i32* %5, i32* %6, i32* %7, double** %8)
%111 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
br label %112
112: ; preds = %68, %66
ret void
}