#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 */
double cos(double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ printval(double, int);
double sin(double);
int /*<<< orphan*/ strcmp(char *, char *);
scalar_t__ strstr(char *, char *);
int main(int argc, char *argv[]) {
  int i, j;
  int do_sin = argc > 1 && !strcmp(argv[1], "sin");
  int fixed = argc > 1 && strstr(argv[1], "fixed");
  double (*func)(double) = do_sin ? sin : cos;
  printf("/* This file was automatically generated. */\n");
  printf("#define FFT_FLOAT %d\n", !fixed);
  printf("#include \"libavcodec/%s\"\n", do_sin ? "rdft.h" : "fft.h");
  for (i = 4; i <= 16; i++) {
    int m = 1 << i;
    double freq = 2 * 3.14159265358979323846 / m;
    printf("%s(%i) = {\n   ", do_sin ? "SINTABLE" : "COSTABLE", m);
    for (j = 0; j < m / 2 - 1; j++) {
      int idx = j > m / 4 ? m / 2 - j : j;
      if (do_sin && j >= m / 4)
        idx = m / 4 - j;
      printval(func(idx * freq), fixed);
      if ((j & 3) == 3)
        printf("\n   ");
    }
    printval(func(do_sin ? -(m / 4 - 1) * freq : freq), fixed);
    printf("\n};\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
cmpl   $0x1,-0x8(%rbp)
mov    %al,-0x3d(%rbp)
jle    1184 <main+0x44>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe94(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x1c(%rbp)
xor    %eax,%eax
cmpl   $0x1,-0x8(%rbp)
mov    %al,-0x3e(%rbp)
jle    11bc <main+0x7c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe5f(%rip),%rsi
call   1060 <strstr@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x3e(%rbp)
mov    -0x3e(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%edx
mov    0x2e17(%rip),%rax
mov    0x2e08(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x28(%rbp)
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x20(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%esi
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%ecx
lea    0xe60(%rip),%rsi
lea    0xe52(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x4,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jg     13eb <main+0x2ab>
mov    -0x14(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,-0x2c(%rbp)
cvtsi2sdl -0x2c(%rbp),%xmm1
movsd  0xda2(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x1c(%rbp),%ecx
lea    0xe24(%rip),%rsi
lea    0xe14(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
mov    -0x2c(%rbp),%edx
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x2c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1379 <main+0x239>
mov    -0x18(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x2c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
cmp    %ecx,%eax
jle    12ec <main+0x1ac>
mov    -0x2c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
sub    -0x18(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    12f2 <main+0x1b2>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1331 <main+0x1f1>
mov    -0x18(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x2c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x50(%rbp),%eax
cmp    %ecx,%eax
jl     1331 <main+0x1f1>
mov    -0x2c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
sub    -0x18(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rax
cvtsi2sdl -0x3c(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
call   *%rax
mov    -0x20(%rbp),%edi
call   1050 <printval@plt>
mov    -0x18(%rbp),%eax
and    $0x3,%eax
cmp    $0x3,%eax
jne    1366 <main+0x226>
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    136b <main+0x22b>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1297 <main+0x157>
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     13b2 <main+0x272>
mov    -0x2c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
sub    $0x1,%ecx
xor    %eax,%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    13bc <main+0x27c>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x58(%rbp),%rax
movsd  -0x60(%rbp),%xmm0
call   *%rax
mov    -0x20(%rbp),%edi
call   1050 <printval@plt>
lea    0xcc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    123a <main+0xfa>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    $0x1,%ebp
cmp    $0x2,%edi
jl     11b1 <main+0x61>
mov    0x8(%rsi),%rbx
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
mov    %eax,%r14d
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strstr@plt>
xor    %ebp,%ebp
movl   $0x0,0x8(%rsp)
test   %rax,%rax
sete   %al
setne  %cl
test   %r14d,%r14d
sete   %bl
jne    11c9 <main+0x79>
mov    0x2e31(%rip),%rdx
jmp    11d0 <main+0x80>
mov    0x2e30(%rip),%rax
mov    %rax,0x10(%rsp)
movl   $0x0,0x8(%rsp)
xor    %ebx,%ebx
jmp    11e2 <main+0x92>
mov    0x2e18(%rip),%rdx
mov    %rdx,0x10(%rsp)
mov    0x8(%rsp),%edx
mov    %cl,%dl
mov    %edx,0x8(%rsp)
mov    %al,%bpl
lea    0xe87(%rip),%rdi
call   1030 <puts@plt>
lea    0xe1d(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe3d(%rip),%rax
lea    0xe3d(%rip),%rsi
test   %bl,%bl
cmovne %rax,%rsi
lea    0xe0f(%rip),%rdi
lea    0xe3e(%rip),%rax
lea    0xe40(%rip),%rcx
cmovne %rax,%rcx
mov    %rcx,0x30(%rsp)
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebx,%r14d
xor    $0x1,%r14b
mov    $0x4,%ebp
mov    %ebx,0x24(%rsp)
jmp    12a5 <main+0x155>
nopl   0x0(%rax)
mov    0x28(%rsp),%rcx
lea    0x3(%rcx),%eax
test   %ecx,%ecx
cmovns %ecx,%eax
sar    $0x2,%eax
mov    $0x1,%ecx
sub    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mov    0xc(%rsp),%ebp
call   *0x10(%rsp)
mov    0x8(%rsp),%edi
call   1060 <printval@plt>
lea    0xe09(%rip),%rdi
call   1030 <puts@plt>
add    $0x1,%ebp
cmp    $0x11,%ebp
je     139b <main+0x24b>
mov    $0x1,%ebx
mov    %ebp,0xc(%rsp)
mov    %ebp,%ecx
shl    %cl,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  0xd3f(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
lea    0xd7d(%rip),%rdi
mov    0x30(%rsp),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,0x28(%rsp)
cmp    $0x4,%ebx
jl     1380 <main+0x230>
mov    0x28(%rsp),%rax
mov    %eax,%r12d
shr    $0x1f,%r12d
add    %eax,%r12d
sar    %r12d
mov    %eax,%r15d
shr    $0x2,%r15d
cmp    $0x3,%r12d
mov    $0x2,%ebx
cmovge %r12d,%ebx
add    $0xffffffff,%ebx
xor    %r13d,%r13d
mov    %r15d,%ebp
jmp    1330 <main+0x1e0>
nop
add    $0x1,%r13d
add    $0xffffffff,%r12d
add    $0xffffffff,%ebp
cmp    %r13d,%ebx
je     1380 <main+0x230>
cmp    %r13d,%r15d
mov    %r13d,%eax
cmovb  %r12d,%eax
mov    %ebp,%ecx
cmova  %eax,%ecx
test   %r14b,%r14b
cmovne %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mulsd  0x18(%rsp),%xmm0
call   *0x10(%rsp)
mov    0x8(%rsp),%edi
call   1060 <printval@plt>
mov    %r13d,%eax
not    %eax
test   $0x3,%al
jne    1320 <main+0x1d0>
lea    0xcea(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1320 <main+0x1d0>
nopl   0x0(%rax,%rax,1)
mov    0x24(%rsp),%ebx
test   %bl,%bl
jne    1250 <main+0x100>
mov    0xc(%rsp),%ebp
movsd  0x18(%rsp),%xmm0
jmp    1280 <main+0x130>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"sin\00"
@.str.1 = [6 x i8] c"fixed\00"
@.str.2 = [46 x i8] c"/* This file was automatically generated. */\0A\00"
@.str.3 = [22 x i8] c"#define FFT_FLOAT %d\0A\00"
@.str.4 = [26 x i8] c"#include \22libavcodec/%s\22\0A\00"
@.str.5 = [7 x i8] c"rdft.h\00"
@.str.6 = [6 x i8] c"fft.h\00"
@.str.7 = [15 x i8] c"%s(%i) = {\0A \00"
@.str.8 = [9 x i8] c"SINTABLE\00"
@.str.9 = [9 x i8] c"COSTABLE\00"
@.str.10 = [5 x i8] c"\0A \00"
@.str.11 = [5 x i8] c"\0A};\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double (double)*
%11 = alloca i32
%12 = alloca double
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp sgt i32 %14, 1
br i1 %15, label %16, label %23
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
br label %23
23: ; preds = %16, %2
%24 = phi i1 [ false, %2 ], [ %22, %16 ]
%25 = zext i1 %24 to i32
store i32 %25, i32* %8
%26 = load i32, i32* %4
%27 = icmp sgt i32 %26, 1
br i1 %27, label %28, label %34
28: ; preds = %23
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i64 @strstr(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp ne i64 %32, 0
br label %34
34: ; preds = %28, %23
%35 = phi i1 [ false, %23 ], [ %33, %28 ]
%36 = zext i1 %35 to i32
store i32 %36, i32* %9
%37 = load i32, i32* %8
%38 = icmp ne i32 %37, 0
%39 = zext i1 %38 to i64
%40 = select i1 %38, double (double)* @sin, double (double)* @cos
store double (double)* %40, double (double)** %10
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* %9
%43 = icmp ne i32 %42, 0
%44 = xor i1 %43, true
%45 = zext i1 %44 to i32
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %45)
%47 = load i32, i32* %8
%48 = icmp ne i32 %47, 0
%49 = zext i1 %48 to i64
%50 = select i1 %48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %50)
store i32 4, i32* %6
br label %52
52: ; preds = %137, %34
%53 = load i32, i32* %6
%54 = icmp sle i32 %53, 16
br i1 %54, label %55, label %140
55: ; preds = %52
%56 = load i32, i32* %6
%57 = shl i32 1, %56
store i32 %57, i32* %11
%58 = load i32, i32* %11
%59 = sitofp i32 %58 to double
%60 = fdiv double 0x401921FB54442D18, %59
store double %60, double* %12
%61 = load i32, i32* %8
%62 = icmp ne i32 %61, 0
%63 = zext i1 %62 to i64
%64 = select i1 %62, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0)
%65 = load i32, i32* %11
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %64, i32 %65)
store i32 0, i32* %7
br label %67
67: ; preds = %114, %55
%68 = load i32, i32* %7
%69 = load i32, i32* %11
%70 = sdiv i32 %69, 2
%71 = sub nsw i32 %70, 1
%72 = icmp slt i32 %68, %71
br i1 %72, label %73, label %117
73: ; preds = %67
%74 = load i32, i32* %7
%75 = load i32, i32* %11
%76 = sdiv i32 %75, 4
%77 = icmp sgt i32 %74, %76
br i1 %77, label %78, label %83
78: ; preds = %73
%79 = load i32, i32* %11
%80 = sdiv i32 %79, 2
%81 = load i32, i32* %7
%82 = sub nsw i32 %80, %81
br label %85
83: ; preds = %73
%84 = load i32, i32* %7
br label %85
85: ; preds = %83, %78
%86 = phi i32 [ %82, %78 ], [ %84, %83 ]
store i32 %86, i32* %13
%87 = load i32, i32* %8
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %99
89: ; preds = %85
%90 = load i32, i32* %7
%91 = load i32, i32* %11
%92 = sdiv i32 %91, 4
%93 = icmp sge i32 %90, %92
br i1 %93, label %94, label %99
94: ; preds = %89
%95 = load i32, i32* %11
%96 = sdiv i32 %95, 4
%97 = load i32, i32* %7
%98 = sub nsw i32 %96, %97
store i32 %98, i32* %13
br label %99
99: ; preds = %94, %89, %85
%100 = load double (double)*, double (double)** %10
%101 = load i32, i32* %13
%102 = sitofp i32 %101 to double
%103 = load double, double* %12
%104 = fmul double %102, %103
%105 = call double %100(double %104)
%106 = load i32, i32* %9
%107 = call i32 @printval(double %105, i32 %106)
%108 = load i32, i32* %7
%109 = and i32 %108, 3
%110 = icmp eq i32 %109, 3
br i1 %110, label %111, label %113
111: ; preds = %99
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %113
113: ; preds = %111, %99
br label %114
114: ; preds = %113
%115 = load i32, i32* %7
%116 = add nsw i32 %115, 1
store i32 %116, i32* %7
br label %67
117: ; preds = %67
%118 = load double (double)*, double (double)** %10
%119 = load i32, i32* %8
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %129
121: ; preds = %117
%122 = load i32, i32* %11
%123 = sdiv i32 %122, 4
%124 = sub nsw i32 %123, 1
%125 = sub nsw i32 0, %124
%126 = sitofp i32 %125 to double
%127 = load double, double* %12
%128 = fmul double %126, %127
br label %131
129: ; preds = %117
%130 = load double, double* %12
br label %131
131: ; preds = %129, %121
%132 = phi double [ %128, %121 ], [ %130, %129 ]
%133 = call double %118(double %132)
%134 = load i32, i32* %9
%135 = call i32 @printval(double %133, i32 %134)
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
br label %137
137: ; preds = %131
%138 = load i32, i32* %6
%139 = add nsw i32 %138, 1
store i32 %139, i32* %6
br label %52
140: ; preds = %52
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"sin\00"
@.str.1 = [6 x i8] c"fixed\00"
@.str.3 = [22 x i8] c"#define FFT_FLOAT %d\0A\00"
@.str.4 = [26 x i8] c"#include \22libavcodec/%s\22\0A\00"
@.str.5 = [7 x i8] c"rdft.h\00"
@.str.6 = [6 x i8] c"fft.h\00"
@.str.7 = [15 x i8] c"%s(%i) = {\0A \00"
@.str.8 = [9 x i8] c"SINTABLE\00"
@.str.9 = [9 x i8] c"COSTABLE\00"
@.str.10 = [5 x i8] c"\0A \00"
@str = [45 x i8] c"/* This file was automatically generated. */\00"
@str.12 = [4 x i8] c"\0A};\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %15
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %6, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
%9 = tail call i64 @strstr(i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i32
%12 = select i1 %8, double (double)* @sin, double (double)* @cos
%13 = xor i1 %10, true
%14 = zext i1 %13 to i32
br label %15
15: ; preds = %4, %2
%16 = phi i32 [ 0, %2 ], [ %11, %4 ]
%17 = phi i32 [ 1, %2 ], [ %14, %4 ]
%18 = phi i1 [ false, %2 ], [ %8, %4 ]
%19 = phi double (double)* [ @cos, %2 ], [ %12, %4 ]
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%22 = select i1 %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %22)
%24 = select i1 %18, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0)
%25 = xor i1 %18, true
br label %26
26: ; preds = %15, %64
%27 = phi i32 [ 4, %15 ], [ %69, %64 ]
%28 = shl nuw nsw i32 1, %27
%29 = sitofp i32 %28 to double
%30 = fdiv double 0x401921FB54442D18, %29
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %24, i32 %28)
%32 = sdiv i32 %28, 2
%33 = icmp sgt i32 %28, 3
br i1 %33, label %34, label %58
34: ; preds = %26
%35 = lshr i32 %28, 2
%36 = call i32 @llvm.smax.i32(i32 %32, i32 2)
%37 = add nsw i32 %36, -1
br label %38
38: ; preds = %34, %55
%39 = phi i32 [ 0, %34 ], [ %56, %55 ]
%40 = icmp ult i32 %35, %39
%41 = sub nsw i32 %32, %39
%42 = select i1 %40, i32 %41, i32 %39
%43 = icmp ugt i32 %35, %39
%44 = select i1 %25, i1 true, i1 %43
%45 = sub nsw i32 %35, %39
%46 = select i1 %44, i32 %42, i32 %45
%47 = sitofp i32 %46 to double
%48 = fmul double %30, %47
%49 = tail call double %19(double %48)
%50 = tail call i32 @printval(double %49, i32 %16)
%51 = and i32 %39, 3
%52 = icmp eq i32 %51, 3
br i1 %52, label %53, label %55
53: ; preds = %38
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %55
55: ; preds = %53, %38
%56 = add nuw nsw i32 %39, 1
%57 = icmp eq i32 %56, %37
br i1 %57, label %58, label %38
58: ; preds = %55, %26
br i1 %18, label %59, label %64
59: ; preds = %58
%60 = sdiv i32 %28, -4
%61 = add nsw i32 %60, 1
%62 = sitofp i32 %61 to double
%63 = fmul double %30, %62
br label %64
64: ; preds = %58, %59
%65 = phi double [ %63, %59 ], [ %30, %58 ]
%66 = tail call double %19(double %65)
%67 = tail call i32 @printval(double %66, i32 %16)
%68 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.12, i64 0, i64 0))
%69 = add nuw nsw i32 %27, 1
%70 = icmp eq i32 %69, 17
br i1 %70, label %71, label %26
71: ; preds = %64
ret i32 0
}