#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 *, ...);
int rand();
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/ *);
void main() {
  srand((unsigned)time(NULL));
  int array[10], sum, n, i, j;
  for (i = 0; i < 10; i++)
    array[i] = rand() % 99 + 1;
  printf("array values are: ");
  for (i = 0; i < 10; i++)
    printf("%2d ", array[i]);
  printf("\ncalculate averages over how many values?  ");
  scanf("%d", &n);
  if (n < 1 || n > 10)
    return;
  printf("\nthe averages are: ");
  for (i = 0; i < 10 - n + 1; i++) {
    sum = 0;
    for (j = i; j < i + n; j++)
      sum += array[j];
    printf("%.2f ", (float)(sum) / n);
  }
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    11a1 <main+0x51>
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x63,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
movslq -0x3c(%rbp),%rax
mov    %edx,-0x30(%rbp,%rax,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    116f <main+0x1f>
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    11e4 <main+0x94>
movslq -0x3c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11b6 <main+0x66>
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4b(%rip),%rdi
lea    -0x38(%rbp),%rsi
call   1060 <scanf@plt>
cmpl   $0x1,-0x38(%rbp)
jl     1216 <main+0xc6>
cmpl   $0xa,-0x38(%rbp)
jle    121b <main+0xcb>
jmp    12b3 <main+0x163>
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    $0xa,%ecx
sub    -0x38(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    12ae <main+0x15e>
movl   $0x0,-0x34(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    -0x3c(%rbp),%ecx
add    -0x38(%rbp),%ecx
cmp    %ecx,%eax
jge    1280 <main+0x130>
movslq -0x40(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1253 <main+0x103>
cvtsi2ssl -0x34(%rbp),%xmm0
cvtsi2ssl -0x38(%rbp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdc2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1230 <main+0xe0>
jmp    12b3 <main+0x163>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x1c(%rsp)
mov    %eax,0x20(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x18(%rsp)
mov    %eax,0x24(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x14(%rsp)
mov    %eax,0x28(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x10(%rsp)
mov    %eax,0x2c(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
mov    %eax,0x30(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%ebp
add    $0x1,%ebp
mov    %ebp,0x34(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%r14d
add    $0x1,%r14d
mov    %r14d,0x38(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%r15d
add    $0x1,%r15d
mov    %r15d,0x3c(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%r12d
add    $0x1,%r12d
mov    %r12d,0x40(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0xffffffffa57eb503,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
imul   $0x63,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%r13d
add    $0x1,%r13d
mov    %r13d,0x44(%rsp)
lea    0xc9c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xca1(%rip),%rbx
mov    %rbx,%rdi
mov    0x1c(%rsp),%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    0x18(%rsp),%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc19(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc37(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x8(%rsp),%eax
add    $0xfffffff5,%eax
cmp    $0xfffffff6,%eax
jb     1642 <main+0x4f2>
lea    0xc19(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%r10d
lea    -0xc(%r10),%eax
cmp    $0xfffffffe,%eax
jg     1642 <main+0x4f2>
lea    0x90(%rsp),%rbp
lea    0x30(%rsp),%r15
mov    $0x1,%r13d
xor    %r12d,%r12d
lea    0xbf7(%rip),%r14
xor    %ebx,%ebx
jmp    14ba <main+0x36a>
nopl   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2ss %esi,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ss %r10d,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x1,%rbx
mov    0x8(%rsp),%r10d
mov    $0xb,%eax
sub    %r10d,%eax
add    $0x4,%rbp
add    $0x1,%r13
add    $0xffffffffffffffff,%r12
add    $0x4,%r15
cmp    %ebx,%eax
jle    1642 <main+0x4f2>
mov    $0x0,%esi
test   %r10d,%r10d
jle    1470 <main+0x320>
lea    0x1(%rbx),%r9
lea    (%r10,%rbx,1),%eax
movslq %eax,%rcx
cmp    %rcx,%r9
cmovle %rcx,%r9
sub    %rbx,%r9
xor    %esi,%esi
mov    %rbx,%rdx
cmp    $0x8,%r9
jb     1630 <main+0x4e0>
mov    %r9,%rdx
and    $0xfffffffffffffff8,%rdx
lea    -0x8(%rdx),%rax
mov    %rax,%r8
shr    $0x3,%r8
add    $0x1,%r8
cmp    $0x18,%rax
jae    1513 <main+0x3c3>
pxor   %xmm0,%xmm0
xor    %esi,%esi
pxor   %xmm1,%xmm1
jmp    15aa <main+0x45a>
lea    (%r10,%rbx,1),%eax
movslq %eax,%rdi
cmp    %rdi,%r13
cmovg  %r13,%rdi
add    %r12,%rdi
and    $0xfffffffffffffff8,%rdi
add    $0xfffffffffffffff8,%rdi
shr    $0x3,%rdi
add    $0x1,%rdi
and    $0xfffffffffffffffc,%rdi
pxor   %xmm0,%xmm0
xor    %esi,%esi
pxor   %xmm1,%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movdqu -0x70(%rbp,%rsi,4),%xmm2
paddd  %xmm0,%xmm2
movdqu -0x60(%rbp,%rsi,4),%xmm0
paddd  %xmm1,%xmm0
movdqu -0x50(%rbp,%rsi,4),%xmm1
movdqu -0x40(%rbp,%rsi,4),%xmm3
movdqu -0x30(%rbp,%rsi,4),%xmm4
paddd  %xmm1,%xmm4
paddd  %xmm2,%xmm4
movdqu -0x20(%rbp,%rsi,4),%xmm2
paddd  %xmm3,%xmm2
paddd  %xmm0,%xmm2
movdqu -0x10(%rbp,%rsi,4),%xmm0
paddd  %xmm4,%xmm0
movdqu 0x0(%rbp,%rsi,4),%xmm1
paddd  %xmm2,%xmm1
add    $0x20,%rsi
add    $0xfffffffffffffffc,%rdi
jne    1550 <main+0x400>
test   $0x3,%r8b
je     15fc <main+0x4ac>
lea    (%r15,%rsi,4),%rsi
lea    (%r10,%rbx,1),%eax
cltq
cmp    %rax,%r13
cmovg  %r13,%rax
add    %r12d,%eax
and    $0x18,%al
add    $0xf8,%al
shr    $0x3,%al
add    $0x1,%al
movzbl %al,%edi
and    $0x3,%edi
shl    $0x5,%rdi
xor    %eax,%eax
nopl   0x0(%rax)
movdqu -0x10(%rsi,%rax,1),%xmm2
paddd  %xmm2,%xmm0
movdqu (%rsi,%rax,1),%xmm2
paddd  %xmm2,%xmm1
add    $0x20,%rax
cmp    %rax,%rdi
jne    15e0 <main+0x490>
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
cmp    %rdx,%r9
je     1470 <main+0x320>
add    %rbx,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    0x20(%rsp,%rdx,4),%esi
add    $0x1,%rdx
cmp    %rcx,%rdx
jl     1630 <main+0x4e0>
jmp    1470 <main+0x320>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"array values are: \00"
@.str.1 = [5 x i8] c"%2d \00"
@.str.2 = [44 x i8] c"\0Acalculate averages over how many values? \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [20 x i8] c"\0Athe averages are: \00"
@.str.5 = [6 x i8] c"%.2f \00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = call i64 @time(i32* null)
%7 = trunc i64 %6 to i32
%8 = call i32 @srand(i32 %7)
store i32 0, i32* %4
br label %9
9: ; preds = %19, %0
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = call i32 (...) @rand()
%14 = srem i32 %13, 99
%15 = add nsw i32 %14, 1
%16 = load i32, i32* %4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %17
store i32 %15, i32* %18
br label %19
19: ; preds = %12
%20 = load i32, i32* %4
%21 = add nsw i32 %20, 1
store i32 %21, i32* %4
br label %9
22: ; preds = %9
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %24
24: ; preds = %33, %22
%25 = load i32, i32* %4
%26 = icmp slt i32 %25, 10
br i1 %26, label %27, label %36
27: ; preds = %24
%28 = load i32, i32* %4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %31)
br label %33
33: ; preds = %27
%34 = load i32, i32* %4
%35 = add nsw i32 %34, 1
store i32 %35, i32* %4
br label %24
36: ; preds = %24
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%39 = load i32, i32* %3
%40 = icmp slt i32 %39, 1
br i1 %40, label %44, label %41
41: ; preds = %36
%42 = load i32, i32* %3
%43 = icmp sgt i32 %42, 10
br i1 %43, label %44, label %45
44: ; preds = %41, %36
br label %83
45: ; preds = %41
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %4
br label %47
47: ; preds = %79, %45
%48 = load i32, i32* %4
%49 = load i32, i32* %3
%50 = sub nsw i32 10, %49
%51 = add nsw i32 %50, 1
%52 = icmp slt i32 %48, %51
br i1 %52, label %53, label %82
53: ; preds = %47
store i32 0, i32* %2
%54 = load i32, i32* %4
store i32 %54, i32* %5
br label %55
55: ; preds = %68, %53
%56 = load i32, i32* %5
%57 = load i32, i32* %4
%58 = load i32, i32* %3
%59 = add nsw i32 %57, %58
%60 = icmp slt i32 %56, %59
br i1 %60, label %61, label %71
61: ; preds = %55
%62 = load i32, i32* %5
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = load i32, i32* %2
%67 = add nsw i32 %66, %65
store i32 %67, i32* %2
br label %68
68: ; preds = %61
%69 = load i32, i32* %5
%70 = add nsw i32 %69, 1
store i32 %70, i32* %5
br label %55
71: ; preds = %55
%72 = load i32, i32* %2
%73 = sitofp i32 %72 to float
%74 = load i32, i32* %3
%75 = sitofp i32 %74 to float
%76 = fdiv float %73, %75
%77 = fpext float %76 to double
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %77)
br label %79
79: ; preds = %71
%80 = load i32, i32* %4
%81 = add nsw i32 %80, 1
store i32 %81, i32* %4
br label %47
82: ; preds = %47
br label %83
83: ; preds = %82, %44
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"array values are: \00"
@.str.1 = [5 x i8] c"%2d \00"
@.str.2 = [44 x i8] c"\0Acalculate averages over how many values? \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [20 x i8] c"\0Athe averages are: \00"
@.str.5 = [6 x i8] c"%.2f \00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = tail call i64 @time(i32* null)
%4 = trunc i64 %3 to i32
%5 = tail call i32 @srand(i32 %4)
%6 = bitcast [10 x i32]* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = tail call i32 (...) @rand()
%9 = srem i32 %8, 99
%10 = add nsw i32 %9, 1
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
store i32 %10, i32* %11
%12 = tail call i32 (...) @rand()
%13 = srem i32 %12, 99
%14 = add nsw i32 %13, 1
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
store i32 %14, i32* %15
%16 = tail call i32 (...) @rand()
%17 = srem i32 %16, 99
%18 = add nsw i32 %17, 1
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
store i32 %18, i32* %19
%20 = tail call i32 (...) @rand()
%21 = srem i32 %20, 99
%22 = add nsw i32 %21, 1
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
store i32 %22, i32* %23
%24 = tail call i32 (...) @rand()
%25 = srem i32 %24, 99
%26 = add nsw i32 %25, 1
%27 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
store i32 %26, i32* %27
%28 = tail call i32 (...) @rand()
%29 = srem i32 %28, 99
%30 = add nsw i32 %29, 1
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
store i32 %30, i32* %31
%32 = tail call i32 (...) @rand()
%33 = srem i32 %32, 99
%34 = add nsw i32 %33, 1
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
store i32 %34, i32* %35
%36 = tail call i32 (...) @rand()
%37 = srem i32 %36, 99
%38 = add nsw i32 %37, 1
%39 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
store i32 %38, i32* %39
%40 = tail call i32 (...) @rand()
%41 = srem i32 %40, 99
%42 = add nsw i32 %41, 1
%43 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
store i32 %42, i32* %43
%44 = tail call i32 (...) @rand()
%45 = srem i32 %44, 99
%46 = add nsw i32 %45, 1
%47 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
store i32 %46, i32* %47
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %22)
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %34)
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %38)
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %42)
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %46)
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%60 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%61 = load i32, i32* %2
%62 = add i32 %61, -11
%63 = icmp ult i32 %62, -10
br i1 %63, label %191, label %64
64: ; preds = %0
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%66 = load i32, i32* %2
%67 = add i32 %66, -12
%68 = icmp slt i32 %67, -1
br i1 %68, label %69, label %191
69: ; preds = %64, %179
%70 = phi i64 [ %186, %179 ], [ 0, %64 ]
%71 = phi i32 [ %188, %179 ], [ %66, %64 ]
%72 = icmp sgt i32 %71, 0
br i1 %72, label %73, label %179
73: ; preds = %69
%74 = add nuw i64 %70, 1
%75 = trunc i64 %70 to i32
%76 = add nsw i32 %71, %75
%77 = sext i32 %76 to i64
%78 = call i64 @llvm.smax.i64(i64 %74, i64 %77)
%79 = sub i64 %78, %70
%80 = icmp ult i64 %79, 8
br i1 %80, label %168, label %81
81: ; preds = %73
%82 = and i64 %79, -8
%83 = add i64 %70, %82
%84 = add i64 %82, -8
%85 = lshr exact i64 %84, 3
%86 = add nuw nsw i64 %85, 1
%87 = and i64 %86, 3
%88 = icmp ult i64 %84, 24
br i1 %88, label %138, label %89
89: ; preds = %81
%90 = and i64 %86, 4611686018427387900
br label %91
91: ; preds = %91, %89
%92 = phi i64 [ 0, %89 ], [ %135, %91 ]
%93 = phi <4 x i32> [ zeroinitializer, %89 ], [ %133, %91 ]
%94 = phi <4 x i32> [ zeroinitializer, %89 ], [ %134, %91 ]
%95 = phi i64 [ 0, %89 ], [ %136, %91 ]
%96 = add i64 %70, %92
%97 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %96
%98 = bitcast i32* %97 to <4 x i32>*
%99 = load <4 x i32>, <4 x i32>* %98
%100 = getelementptr inbounds i32, i32* %97, i64 4
%101 = bitcast i32* %100 to <4 x i32>*
%102 = load <4 x i32>, <4 x i32>* %101
%103 = add <4 x i32> %99, %93
%104 = add <4 x i32> %102, %94
%105 = or i64 %92, 8
%106 = add i64 %70, %105
%107 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %106
%108 = bitcast i32* %107 to <4 x i32>*
%109 = load <4 x i32>, <4 x i32>* %108
%110 = getelementptr inbounds i32, i32* %107, i64 4
%111 = bitcast i32* %110 to <4 x i32>*
%112 = load <4 x i32>, <4 x i32>* %111
%113 = add <4 x i32> %109, %103
%114 = add <4 x i32> %112, %104
%115 = or i64 %92, 16
%116 = add i64 %70, %115
%117 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %116
%118 = bitcast i32* %117 to <4 x i32>*
%119 = load <4 x i32>, <4 x i32>* %118
%120 = getelementptr inbounds i32, i32* %117, i64 4
%121 = bitcast i32* %120 to <4 x i32>*
%122 = load <4 x i32>, <4 x i32>* %121
%123 = add <4 x i32> %119, %113
%124 = add <4 x i32> %122, %114
%125 = or i64 %92, 24
%126 = add i64 %70, %125
%127 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %126
%128 = bitcast i32* %127 to <4 x i32>*
%129 = load <4 x i32>, <4 x i32>* %128
%130 = getelementptr inbounds i32, i32* %127, i64 4
%131 = bitcast i32* %130 to <4 x i32>*
%132 = load <4 x i32>, <4 x i32>* %131
%133 = add <4 x i32> %129, %123
%134 = add <4 x i32> %132, %124
%135 = add nuw i64 %92, 32
%136 = add i64 %95, 4
%137 = icmp eq i64 %136, %90
br i1 %137, label %138, label %91
138: ; preds = %91, %81
%139 = phi <4 x i32> [ undef, %81 ], [ %133, %91 ]
%140 = phi <4 x i32> [ undef, %81 ], [ %134, %91 ]
%141 = phi i64 [ 0, %81 ], [ %135, %91 ]
%142 = phi <4 x i32> [ zeroinitializer, %81 ], [ %133, %91 ]
%143 = phi <4 x i32> [ zeroinitializer, %81 ], [ %134, %91 ]
%144 = icmp eq i64 %87, 0
br i1 %144, label %162, label %145
145: ; preds = %138, %145
%146 = phi i64 [ %159, %145 ], [ %141, %138 ]
%147 = phi <4 x i32> [ %157, %145 ], [ %142, %138 ]
%148 = phi <4 x i32> [ %158, %145 ], [ %143, %138 ]
%149 = phi i64 [ %160, %145 ], [ 0, %138 ]
%150 = add i64 %70, %146
%151 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %150
%152 = bitcast i32* %151 to <4 x i32>*
%153 = load <4 x i32>, <4 x i32>* %152
%154 = getelementptr inbounds i32, i32* %151, i64 4
%155 = bitcast i32* %154 to <4 x i32>*
%156 = load <4 x i32>, <4 x i32>* %155
%157 = add <4 x i32> %153, %147
%158 = add <4 x i32> %156, %148
%159 = add nuw i64 %146, 8
%160 = add i64 %149, 1
%161 = icmp eq i64 %160, %87
br i1 %161, label %162, label %145
162: ; preds = %145, %138
%163 = phi <4 x i32> [ %139, %138 ], [ %157, %145 ]
%164 = phi <4 x i32> [ %140, %138 ], [ %158, %145 ]
%165 = add <4 x i32> %164, %163
%166 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %165)
%167 = icmp eq i64 %79, %82
br i1 %167, label %179, label %168
168: ; preds = %73, %162
%169 = phi i64 [ %70, %73 ], [ %83, %162 ]
%170 = phi i32 [ 0, %73 ], [ %166, %162 ]
br label %171
171: ; preds = %168, %171
%172 = phi i64 [ %177, %171 ], [ %169, %168 ]
%173 = phi i32 [ %176, %171 ], [ %170, %168 ]
%174 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %172
%175 = load i32, i32* %174
%176 = add nsw i32 %175, %173
%177 = add nuw nsw i64 %172, 1
%178 = icmp slt i64 %177, %77
br i1 %178, label %171, label %179
179: ; preds = %171, %162, %69
%180 = phi i32 [ 0, %69 ], [ %166, %162 ], [ %176, %171 ]
%181 = sitofp i32 %180 to float
%182 = sitofp i32 %71 to float
%183 = fdiv float %181, %182
%184 = fpext float %183 to double
%185 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %184)
%186 = add nuw nsw i64 %70, 1
%187 = trunc i64 %186 to i32
%188 = load i32, i32* %2
%189 = sub i32 11, %188
%190 = icmp sgt i32 %189, %187
br i1 %190, label %69, label %191
191: ; preds = %179, %64, %0
ret void
}