#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*/ printf(char *, ...);
void permute_print_info(int ordermode, unsigned nc, unsigned nr, unsigned ns,
                        unsigned nx, unsigned ny, unsigned nz, int ncstart,
                        int nrstart, int nsstart, int nxstart, int nystart,
                        int nzstart) {
  if (ordermode > 1) {
    printf("lib_vio> Map parameters BEFORE selected axis permutation: \n");
    printf("lib_vio>       NC = %8d  (# columns)\n", nc);
    printf("lib_vio>       NR = %8d  (# rows)\n", nr);
    printf("lib_vio>       NS = %8d  (# sections)\n", ns);
    printf(
        "lib_vio>  NCSTART = %8d  (index of first column, counting from 0)\n",
        ncstart);
    printf("lib_vio>  NRSTART = %8d  (index of first row, counting from 0)\n",
           nrstart);
    printf(
        "lib_vio>  NSSTART = %8d  (index of first section, counting from 0)\n",
        nsstart);
    printf("lib_vio> Map parameters AFTER selected axis permutation: \n");
    printf("lib_vio>       NX = %8d  (# X fields)\n", nx);
    printf("lib_vio>       NY = %8d  (# Y fields)\n", ny);
    printf("lib_vio>       NZ = %8d  (# Z fields)\n", nz);
    printf(
        "lib_vio>  NXSTART = %8d  (X index of first voxel, counting from 0)\n",
        nxstart);
    printf(
        "lib_vio>  NYSTART = %8d  (Y index of first voxel, counting from 0)\n",
        nystart);
    printf(
        "lib_vio>  NZSTART = %8d  (Z index of first voxel, counting from 0)\n",
        nzstart);
  } else {
    printf("lib_vio> C,R,S = X,Y,Z (no axis permutation). \n");
  }
}


x86 assembly (clang, -O0):
<permute_print_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
cmpl   $0x1,-0x4(%rbp)
jle    1238 <permute_print_info+0x128>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xf00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x18(%rbp),%esi
lea    0xf16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x20(%rbp),%esi
lea    0xf48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x28(%rbp),%esi
lea    0xf77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xfd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xfed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x10(%rbp),%esi
lea    0x1003(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x30(%rbp),%esi
lea    0x1019(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x38(%rbp),%esi
lea    0x104c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x40(%rbp),%esi
lea    0x107f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1246 <permute_print_info+0x136>
lea    0x10b0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<permute_print_info>:
cmp    $0x2,%edi
jl     1270 <permute_print_info+0x150>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r8d,%ebx
mov    %ecx,%r12d
mov    %edx,%r14d
mov    %esi,%ebp
mov    0x80(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    0x78(%rsp),%eax
mov    %eax,0x10(%rsp)
mov    0x70(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    0x68(%rsp),%eax
mov    %eax,(%rsp)
mov    0x60(%rsp),%r15d
mov    0x58(%rsp),%r13d
mov    0x50(%rsp),%eax
mov    %eax,0x8(%rsp)
lea    0x112a(%rip),%rdi
mov    %r9d,0x4(%rsp)
call   1030 <puts@plt>
lea    0xe72(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe88(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb0(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee2(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf11(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10ef(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4f(%rip),%rdi
mov    0x4(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf64(%rip),%rdi
mov    0x8(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf79(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfab(%rip),%rdi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfdd(%rip),%rdi
mov    0x14(%rsp),%esi
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <printf@plt>
lea    0x1001(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [60 x i8] c"lib_vio> Map parameters BEFORE selected axis permutation: \0A\00"
@.str.1 = [38 x i8] c"lib_vio> NC = %8d (# columns)\0A\00"
@.str.2 = [35 x i8] c"lib_vio> NR = %8d (# rows)\0A\00"
@.str.3 = [39 x i8] c"lib_vio> NS = %8d (# sections)\0A\00"
@.str.4 = [67 x i8] c"lib_vio> NCSTART = %8d (index of first column, counting from 0)\0A\00"
@.str.5 = [64 x i8] c"lib_vio> NRSTART = %8d (index of first row, counting from 0)\0A\00"
@.str.6 = [68 x i8] c"lib_vio> NSSTART = %8d (index of first section, counting from 0)\0A\00"
@.str.7 = [59 x i8] c"lib_vio> Map parameters AFTER selected axis permutation: \0A\00"
@.str.8 = [39 x i8] c"lib_vio> NX = %8d (# X fields)\0A\00"
@.str.9 = [39 x i8] c"lib_vio> NY = %8d (# Y fields)\0A\00"
@.str.10 = [39 x i8] c"lib_vio> NZ = %8d (# Z fields)\0A\00"
@.str.11 = [68 x i8] c"lib_vio> NXSTART = %8d (X index of first voxel, counting from 0)\0A\00"
@.str.12 = [68 x i8] c"lib_vio> NYSTART = %8d (Y index of first voxel, counting from 0)\0A\00"
@.str.13 = [68 x i8] c"lib_vio> NZSTART = %8d (Z index of first voxel, counting from 0)\0A\00"
@.str.14 = [48 x i8] c"lib_vio> C,R,S = X,Y,Z (no axis permutation). \0A\00"
define void @permute_print_info(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12) {
%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 i32
%26 = alloca i32
store i32 %0, i32* %14
store i32 %1, i32* %15
store i32 %2, i32* %16
store i32 %3, i32* %17
store i32 %4, i32* %18
store i32 %5, i32* %19
store i32 %6, i32* %20
store i32 %7, i32* %21
store i32 %8, i32* %22
store i32 %9, i32* %23
store i32 %10, i32* %24
store i32 %11, i32* %25
store i32 %12, i32* %26
%27 = load i32, i32* %14
%28 = icmp sgt i32 %27, 1
br i1 %28, label %29, label %56
29: ; preds = %13
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
%31 = load i32, i32* %15
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %31)
%33 = load i32, i32* %16
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %33)
%35 = load i32, i32* %17
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %35)
%37 = load i32, i32* %21
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %22
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i32 %39)
%41 = load i32, i32* %23
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0), i32 %41)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0))
%44 = load i32, i32* %18
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i32 %44)
%46 = load i32, i32* %19
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %20
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %24
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %25
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %26
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.13, i64 0, i64 0), i32 %54)
br label %58
56: ; preds = %13
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0))
br label %58
58: ; preds = %56, %29
ret void
}

LLVM IR (-O2):
@.str.1 = [38 x i8] c"lib_vio> NC = %8d (# columns)\0A\00"
@.str.2 = [35 x i8] c"lib_vio> NR = %8d (# rows)\0A\00"
@.str.3 = [39 x i8] c"lib_vio> NS = %8d (# sections)\0A\00"
@.str.4 = [67 x i8] c"lib_vio> NCSTART = %8d (index of first column, counting from 0)\0A\00"
@.str.5 = [64 x i8] c"lib_vio> NRSTART = %8d (index of first row, counting from 0)\0A\00"
@.str.6 = [68 x i8] c"lib_vio> NSSTART = %8d (index of first section, counting from 0)\0A\00"
@.str.8 = [39 x i8] c"lib_vio> NX = %8d (# X fields)\0A\00"
@.str.9 = [39 x i8] c"lib_vio> NY = %8d (# Y fields)\0A\00"
@.str.10 = [39 x i8] c"lib_vio> NZ = %8d (# Z fields)\0A\00"
@.str.11 = [68 x i8] c"lib_vio> NXSTART = %8d (X index of first voxel, counting from 0)\0A\00"
@.str.12 = [68 x i8] c"lib_vio> NYSTART = %8d (Y index of first voxel, counting from 0)\0A\00"
@.str.13 = [68 x i8] c"lib_vio> NZSTART = %8d (Z index of first voxel, counting from 0)\0A\00"
@str = [47 x i8] c"lib_vio> C,R,S = X,Y,Z (no axis permutation). \00"
@str.15 = [59 x i8] c"lib_vio> Map parameters BEFORE selected axis permutation: \00"
@str.16 = [58 x i8] c"lib_vio> Map parameters AFTER selected axis permutation: \00"
define void @permute_print_info(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12) {
%14 = icmp sgt i32 %0, 1
br i1 %14, label %15, label %30
15: ; preds = %13
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.15, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 %1)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %2)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %3)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i32 %7)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i32 %8)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0), i32 %9)
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.16, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i32 %4)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %5)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), i32 %6)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0), i32 %10)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0), i32 %11)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.13, i64 0, i64 0), i32 %12)
br label %32
30: ; preds = %13
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
br label %32
32: ; preds = %30, %15
ret void
}