#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 M_PI;
double *alloca(int);
float atof(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char, char, ...);
int rint(float);
double sin(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
char *strchr(char *, char);
int /*<<< orphan*/ usage();
int main(int argc, char *argv[]) {
  int i, j;
  double *f;
  double *amp;
  if (argc < 2)
    usage();
  f = alloca(sizeof(*f) * (argc - 1));
  amp = alloca(sizeof(*amp) * (argc - 1));
  i = 0;
  while (argv[i + 1]) {
    char *pos = strchr(argv[i + 1], ',');
    f[i] = atof(argv[i + 1]);
    if (pos)
      amp[i] = atof(pos + 1) * 32767.f;
    else
      amp[i] = 32767.f;
    fprintf(stderr, "%g Hz, %g amp\n", f[i], amp[i]);
    i++;
  }
  for (i = 0; i < 44100 * 10; i++) {
    float val = 0;
    int ival;
    for (j = 0; j < argc - 1; j++)
      val += amp[j] * sin(i / 44100.f * f[j] * 2 * M_PI);
    ival = rint(val);
    if (ival > 32767.f)
      ival = 32767.f;
    if (ival < -32768.f)
      ival = -32768.f;
    fprintf(stdout, "%c%c%c%c", (char)(ival & 0xff), (char)((ival >> 8) & 0xff),
            (char)(ival & 0xff), (char)((ival >> 8) & 0xff));
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1197 <main+0x27>
mov    $0x0,%al
call   1090 <usage@plt>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <alloca@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <alloca@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     12c0 <main+0x150>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x2c,%esi
call   1040 <strchr@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <atof@plt>
cvtss2sd %xmm0,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
cmpq   $0x0,-0x30(%rbp)
je     1264 <main+0xf4>
mov    -0x30(%rbp),%rdi
add    $0x1,%rdi
call   1030 <atof@plt>
movss  0xdb6(%rip),%xmm1
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1279 <main+0x109>
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  0xda4(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2d58(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rdx
cvttsd2si (%rax,%rdx,8),%eax
mov    %al,%cl
mov    -0x28(%rbp),%rax
movsd  (%rax,%rdx,8),%xmm0
cvttsd2si %xmm0,%eax
lea    0xd7b(%rip),%rsi
movsbl %cl,%edx
movsbl %al,%ecx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11cc <main+0x5c>
movl   $0x0,-0x14(%rbp)
cmpl   $0x6baa8,-0x14(%rbp)
jge    1420 <main+0x2b0>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    137c <main+0x20c>
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
cvtsi2ssl -0x14(%rbp),%xmm0
movss  0xcf5(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x18(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  0xce0(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    0x2cad(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1070 <sin@plt>
movaps %xmm0,%xmm2
movsd  -0x40(%rbp),%xmm0
movss  -0x34(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12e3 <main+0x173>
movss  -0x34(%rbp),%xmm0
call   1080 <rint@plt>
mov    %eax,-0x38(%rbp)
cvtsi2ssl -0x38(%rbp),%xmm0
movss  0xc6a(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    13a6 <main+0x236>
movl   $0x7fff,-0x38(%rbp)
cvtsi2ssl -0x38(%rbp),%xmm1
movss  0xc51(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    13c3 <main+0x253>
movl   $0xffff8000,-0x38(%rbp)
mov    0x2c06(%rip),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x38(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    -0x38(%rbp),%edx
and    $0xff,%edx
movsbl %dl,%r8d
mov    -0x38(%rbp),%edx
sar    $0x8,%edx
and    $0xff,%edx
movsbl %dl,%r9d
lea    0xc2a(%rip),%rsi
movsbl %cl,%edx
movsbl %al,%ecx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12c7 <main+0x157>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %rdi,0x18(%rsp)
cmp    $0x1,%edi
jg     1192 <main+0x22>
xor    %eax,%eax
call   1090 <usage@plt>
mov    0x18(%rsp),%rax
lea    -0x1(%rax),%ecx
mov    %ecx,0x8(%rsp)
lea    -0x8(,%rax,8),%ebp
mov    %ebp,%edi
call   1060 <alloca@plt>
mov    %rax,%r12
mov    %ebp,%edi
call   1060 <alloca@plt>
mov    %rax,%r15
mov    0x8(%rbx),%rbp
test   %rbp,%rbp
je     1257 <main+0xe7>
xor    %r14d,%r14d
jmp    120b <main+0x9b>
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,(%r15,%r14,1)
cvttsd2si (%r12,%r14,1),%eax
mov    0x2df5(%rip),%rcx
mov    (%rcx),%edi
cvttsd2si %xmm0,%ecx
movsbl %al,%edx
movsbl %cl,%ecx
lea    0xe1a(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x10(%rbx,%r14,1),%rbp
add    $0x8,%r14
test   %rbp,%rbp
je     1257 <main+0xe7>
mov    %rbp,%rdi
mov    $0x2c,%esi
call   1040 <strchr@plt>
mov    %rax,%r13
mov    %rbp,%rdi
call   1030 <atof@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,(%r12,%r14,1)
movsd  0xdcb(%rip),%xmm0
test   %r13,%r13
je     11d0 <main+0x60>
add    $0x1,%r13
mov    %r13,%rdi
call   1030 <atof@plt>
mulss  0xdba(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
jmp    11d0 <main+0x60>
mov    0x8(%rsp),%ebp
mov    0x2d86(%rip),%r13
xor    %r14d,%r14d
jmp    12c6 <main+0x156>
nopw   0x0(%rax,%rax,1)
call   1080 <rint@plt>
cmp    $0x7fff,%eax
mov    $0x7fff,%ecx
cmovge %ecx,%eax
cmp    $0xffff8001,%eax
mov    $0xffff8000,%ecx
cmovl  %ecx,%eax
mov    0x2d3a(%rip),%rcx
mov    (%rcx),%edi
movsbl %al,%edx
shr    $0x8,%eax
movsbl %al,%ecx
lea    0xd77(%rip),%rsi
mov    %edx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x1,%r14d
cmp    $0x6baa8,%r14d
je     134e <main+0x1de>
xorps  %xmm0,%xmm0
cmpl   $0x2,0x18(%rsp)
jl     1270 <main+0x100>
xorps  %xmm0,%xmm0
cvtsi2ss %r14d,%xmm0
divss  0xd2c(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
xorps  %xmm0,%xmm0
xor    %ebx,%ebx
nop
movss  %xmm0,0x14(%rsp)
movsd  (%r15,%rbx,8),%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  (%r12,%rbx,8),%xmm0
mulsd  0x20(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x0(%r13),%xmm1
addsd  %xmm0,%xmm0
mulsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
call   1070 <sin@plt>
movss  0x14(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  0x8(%rsp),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    12f0 <main+0x180>
jmp    1270 <main+0x100>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [15 x i8] c"%g Hz, %g amp\0A\00"
@M_PI = global i32 0
@stdout = global i32 0
@.str.1 = [9 x i8] c"%c%c%c%c\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 double*
%9 = alloca double*
%10 = alloca i8*
%11 = alloca float
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 (...) @usage()
br label %17
17: ; preds = %15, %2
%18 = load i32, i32* %4
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = mul i64 8, %20
%22 = trunc i64 %21 to i32
%23 = call double* @alloca(i32 %22)
store double* %23, double** %8
%24 = load i32, i32* %4
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = mul i64 8, %26
%28 = trunc i64 %27 to i32
%29 = call double* @alloca(i32 %28)
store double* %29, double** %9
store i32 0, i32* %6
br label %30
30: ; preds = %75, %17
%31 = load i8**, i8*** %5
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %31, i64 %34
%36 = load i8*, i8** %35
%37 = icmp ne i8* %36, null
br i1 %37, label %38, label %92
38: ; preds = %30
%39 = load i8**, i8*** %5
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8*, i8** %39, i64 %42
%44 = load i8*, i8** %43
%45 = call i8* @strchr(i8* %44, i8 signext 44)
store i8* %45, i8** %10
%46 = load i8**, i8*** %5
%47 = load i32, i32* %6
%48 = add nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8*, i8** %46, i64 %49
%51 = load i8*, i8** %50
%52 = call float @atof(i8* %51)
%53 = fpext float %52 to double
%54 = load double*, double** %8
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %54, i64 %56
store double %53, double* %57
%58 = load i8*, i8** %10
%59 = icmp ne i8* %58, null
br i1 %59, label %60, label %70
60: ; preds = %38
%61 = load i8*, i8** %10
%62 = getelementptr inbounds i8, i8* %61, i64 1
%63 = call float @atof(i8* %62)
%64 = fmul float %63, 3.276700e+04
%65 = fpext float %64 to double
%66 = load double*, double** %9
%67 = load i32, i32* %6
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
store double %65, double* %69
br label %75
70: ; preds = %38
%71 = load double*, double** %9
%72 = load i32, i32* %6
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, double* %71, i64 %73
store double 3.276700e+04, double* %74
br label %75
75: ; preds = %70, %60
%76 = load i32, i32* @stderr
%77 = load double*, double** %8
%78 = load i32, i32* %6
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %77, i64 %79
%81 = load double, double* %80
%82 = fptosi double %81 to i8
%83 = load double*, double** %9
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, double* %83, i64 %85
%87 = load double, double* %86
%88 = fptosi double %87 to i8
%89 = call i32 (i32, i8*, i8, i8, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8 signext %82, i8 signext %88)
%90 = load i32, i32* %6
%91 = add nsw i32 %90, 1
store i32 %91, i32* %6
br label %30
92: ; preds = %30
store i32 0, i32* %6
br label %93
93: ; preds = %162, %92
%94 = load i32, i32* %6
%95 = icmp slt i32 %94, 441000
br i1 %95, label %96, label %165
96: ; preds = %93
store float 0.000000e+00, float* %11
store i32 0, i32* %7
br label %97
97: ; preds = %128, %96
%98 = load i32, i32* %7
%99 = load i32, i32* %4
%100 = sub nsw i32 %99, 1
%101 = icmp slt i32 %98, %100
br i1 %101, label %102, label %131
102: ; preds = %97
%103 = load double*, double** %9
%104 = load i32, i32* %7
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %103, i64 %105
%107 = load double, double* %106
%108 = load i32, i32* %6
%109 = sitofp i32 %108 to float
%110 = fdiv float %109, 4.410000e+04
%111 = fpext float %110 to double
%112 = load double*, double** %8
%113 = load i32, i32* %7
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %112, i64 %114
%116 = load double, double* %115
%117 = fmul double %111, %116
%118 = fmul double %117, 2.000000e+00
%119 = load i32, i32* @M_PI
%120 = sitofp i32 %119 to double
%121 = fmul double %118, %120
%122 = fptosi double %121 to i32
%123 = call double @sin(i32 %122)
%124 = load float, float* %11
%125 = fpext float %124 to double
%126 = call double @llvm.fmuladd.f64(double %107, double %123, double %125)
%127 = fptrunc double %126 to float
store float %127, float* %11
br label %128
128: ; preds = %102
%129 = load i32, i32* %7
%130 = add nsw i32 %129, 1
store i32 %130, i32* %7
br label %97
131: ; preds = %97
%132 = load float, float* %11
%133 = call i32 @rint(float %132)
store i32 %133, i32* %12
%134 = load i32, i32* %12
%135 = sitofp i32 %134 to float
%136 = fcmp ogt float %135, 3.276700e+04
br i1 %136, label %137, label %138
137: ; preds = %131
store i32 32767, i32* %12
br label %138
138: ; preds = %137, %131
%139 = load i32, i32* %12
%140 = sitofp i32 %139 to float
%141 = fcmp olt float %140, -3.276800e+04
br i1 %141, label %142, label %143
142: ; preds = %138
store i32 -32768, i32* %12
br label %143
143: ; preds = %142, %138
%144 = load i32, i32* @stdout
%145 = load i32, i32* %12
%146 = and i32 %145, 255
%147 = trunc i32 %146 to i8
%148 = load i32, i32* %12
%149 = ashr i32 %148, 8
%150 = and i32 %149, 255
%151 = trunc i32 %150 to i8
%152 = load i32, i32* %12
%153 = and i32 %152, 255
%154 = trunc i32 %153 to i8
%155 = sext i8 %154 to i32
%156 = load i32, i32* %12
%157 = ashr i32 %156, 8
%158 = and i32 %157, 255
%159 = trunc i32 %158 to i8
%160 = sext i8 %159 to i32
%161 = call i32 (i32, i8*, i8, i8, ...) @fprintf(i32 %144, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8 signext %147, i8 signext %151, i32 %155, i32 %160)
br label %162
162: ; preds = %143
%163 = load i32, i32* %6
%164 = add nsw i32 %163, 1
store i32 %164, i32* %6
br label %93
165: ; preds = %93
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [15 x i8] c"%g Hz, %g amp\0A\00"
@M_PI = global i32 0
@stdout = global i32 0
@.str.1 = [9 x i8] c"%c%c%c%c\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 (...) @usage()
br label %6
6: ; preds = %4, %2
%7 = add nsw i32 %0, -1
%8 = shl i32 %7, 3
%9 = tail call double* @alloca(i32 %8)
%10 = tail call double* @alloca(i32 %8)
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = icmp eq i8* %12, null
br i1 %13, label %14, label %17
14: ; preds = %32, %6
%15 = icmp sgt i32 %0, 1
%16 = zext i32 %7 to i64
br label %44
17: ; preds = %6, %32
%18 = phi i64 [ %21, %32 ], [ 0, %6 ]
%19 = phi i64 [ %40, %32 ], [ 1, %6 ]
%20 = phi i8* [ %42, %32 ], [ %12, %6 ]
%21 = add nuw nsw i64 %18, 1
%22 = tail call i8* @strchr(i8* %20, i8 signext 44)
%23 = tail call float @atof(i8* %20)
%24 = fpext float %23 to double
%25 = getelementptr inbounds double, double* %9, i64 %18
store double %24, double* %25
%26 = icmp eq i8* %22, null
br i1 %26, label %32, label %27
27: ; preds = %17
%28 = getelementptr inbounds i8, i8* %22, i64 1
%29 = tail call float @atof(i8* %28)
%30 = fmul float %29, 3.276700e+04
%31 = fpext float %30 to double
br label %32
32: ; preds = %17, %27
%33 = phi double [ %31, %27 ], [ 3.276700e+04, %17 ]
%34 = getelementptr inbounds double, double* %10, i64 %18
store double %33, double* %34
%35 = load i32, i32* @stderr
%36 = load double, double* %25
%37 = fptosi double %36 to i8
%38 = fptosi double %33 to i8
%39 = tail call i32 (i32, i8*, i8, i8, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8 signext %37, i8 signext %38)
%40 = add nuw i64 %19, 1
%41 = getelementptr inbounds i8*, i8** %1, i64 %40
%42 = load i8*, i8** %41
%43 = icmp eq i8* %42, null
br i1 %43, label %14, label %17
44: ; preds = %14, %69
%45 = phi i32 [ 0, %14 ], [ %85, %69 ]
br i1 %15, label %46, label %69
46: ; preds = %44
%47 = sitofp i32 %45 to float
%48 = fdiv float %47, 4.410000e+04
%49 = fpext float %48 to double
br label %50
50: ; preds = %46, %50
%51 = phi i64 [ 0, %46 ], [ %67, %50 ]
%52 = phi float [ 0.000000e+00, %46 ], [ %66, %50 ]
%53 = getelementptr inbounds double, double* %10, i64 %51
%54 = load double, double* %53
%55 = getelementptr inbounds double, double* %9, i64 %51
%56 = load double, double* %55
%57 = fmul double %56, %49
%58 = fmul double %57, 2.000000e+00
%59 = load i32, i32* @M_PI
%60 = sitofp i32 %59 to double
%61 = fmul double %58, %60
%62 = fptosi double %61 to i32
%63 = tail call double @sin(i32 %62)
%64 = fpext float %52 to double
%65 = tail call double @llvm.fmuladd.f64(double %54, double %63, double %64)
%66 = fptrunc double %65 to float
%67 = add nuw nsw i64 %51, 1
%68 = icmp eq i64 %67, %16
br i1 %68, label %69, label %50
69: ; preds = %50, %44
%70 = phi float [ 0.000000e+00, %44 ], [ %66, %50 ]
%71 = tail call i32 @rint(float %70)
%72 = icmp slt i32 %71, 32767
%73 = select i1 %72, i32 %71, i32 32767
%74 = icmp sgt i32 %73, -32768
%75 = select i1 %74, i32 %73, i32 -32768
%76 = load i32, i32* @stdout
%77 = trunc i32 %75 to i8
%78 = lshr i32 %75, 8
%79 = trunc i32 %78 to i8
%80 = shl i32 %75, 24
%81 = ashr exact i32 %80, 24
%82 = shl i32 %78, 24
%83 = ashr exact i32 %82, 24
%84 = tail call i32 (i32, i8*, i8, i8, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8 signext %77, i8 signext %79, i32 %81, i32 %83)
%85 = add nuw nsw i32 %45, 1
%86 = icmp eq i32 %85, 441000
br i1 %86, label %87, label %44
87: ; preds = %69
ret i32 0
}