#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, ...);
int /*<<< orphan*/ scanf(char *, int *);
void main() {
  int A[10], B[10];
  for (int i = 0; i < 10; i++) {
    printf("Informe o valor da posicao A[%d]: ", i + 1);
    scanf("%d", &A[i]);
    B[i] = 1;
  }
  for (int i = 1, fat = 1; i <= 10; i++) {
    if (A[i - 1] > 0) {
      for (int j = 1; j <= i; j++) {
        fat *= j;
      }
      printf("%d\n", fat);
      B[i - 1] = fat;
      fat = 1;
    } else {
      B[i - 1] = A[i - 1];
    }
  }
  for (int i = 0; i < 10; i++) {
    printf("%d -> %d\n", A[i], B[i]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x64(%rbp)
cmpl   $0xa,-0x64(%rbp)
jge    1185 <main+0x65>
mov    -0x64(%rbp),%esi
add    $0x1,%esi
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x64(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xebd(%rip),%rdi
call   1040 <scanf@plt>
movslq -0x64(%rbp),%rax
movl   $0x1,-0x60(%rbp,%rax,4)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1132 <main+0x12>
movl   $0x1,-0x68(%rbp)
movl   $0x1,-0x6c(%rbp)
cmpl   $0xa,-0x68(%rbp)
jg     1232 <main+0x112>
mov    -0x68(%rbp),%eax
sub    $0x1,%eax
cltq
cmpl   $0x0,-0x30(%rbp,%rax,4)
jle    1207 <main+0xe7>
movl   $0x1,-0x70(%rbp)
mov    -0x70(%rbp),%eax
cmp    -0x68(%rbp),%eax
jg     11db <main+0xbb>
mov    -0x70(%rbp),%eax
imul   -0x6c(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    11b7 <main+0x97>
mov    -0x6c(%rbp),%esi
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x6c(%rbp),%ecx
mov    -0x68(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %ecx,-0x60(%rbp,%rax,4)
movl   $0x1,-0x6c(%rbp)
jmp    121f <main+0xff>
mov    -0x68(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%ecx
mov    -0x68(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %ecx,-0x60(%rbp,%rax,4)
jmp    1224 <main+0x104>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    1193 <main+0x73>
movl   $0x0,-0x74(%rbp)
cmpl   $0xa,-0x74(%rbp)
jge    126f <main+0x14f>
movslq -0x74(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
movslq -0x74(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%edx
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1239 <main+0x119>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0xf6b(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf78(%rip),%rbp
mov    %rsp,%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
mov    $0x2,%ebx
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
movaps 0xe4a(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
mov    %r14,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
movdqa 0xdcd(%rip),%xmm0
movdqa %xmm0,0x40(%rsp)
mov    %r14,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x20(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
movl   $0x1,0x50(%rsp)
mov    %r14,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x24(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
movl   $0x1,0x54(%rsp)
mov    $0x1,%r15d
mov    $0xfffffff9,%r12d
lea    0xe38(%rip),%r14
movdqa 0xd83(%rip),%xmm9
movdqa 0xd8a(%rip),%xmm10
movdqa 0xd91(%rip),%xmm11
movdqa 0xd98(%rip),%xmm12
movdqa 0xd9f(%rip),%xmm13
movdqa 0xda6(%rip),%xmm14
movdqa 0xdad(%rip),%xmm15
xor    %esi,%esi
jmp    1348 <main+0x228>
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movdqa 0xd2b(%rip),%xmm9
movdqa 0xd32(%rip),%xmm10
movdqa 0xd39(%rip),%xmm11
movdqa 0xd40(%rip),%xmm12
movdqa 0xd47(%rip),%xmm13
movdqa 0xd4e(%rip),%xmm14
movdqa 0xd55(%rip),%xmm15
mov    %ebp,0x2c(%rsp,%r15,4)
add    $0x1,%r15
add    $0x1,%ebx
add    $0x1,%r12d
mov    %r13d,%esi
cmp    $0xb,%r15
je     156f <main+0x44f>
lea    0x1(%rsi),%r13d
mov    -0x4(%rsp,%r15,4),%ebp
test   %ebp,%ebp
jle    132b <main+0x20b>
mov    $0x1,%edx
mov    $0x1,%ebp
cmp    $0x8,%r13d
jb     1560 <main+0x440>
mov    %r12d,%eax
shr    $0x3,%eax
add    $0xfffffff9,%esi
mov    %esi,%ecx
shr    $0x3,%ecx
add    $0x1,%ecx
movdqa 0xc8e(%rip),%xmm0
movdqa 0xc76(%rip),%xmm2
movdqa %xmm2,%xmm1
cmp    $0x18,%esi
jb     14a1 <main+0x381>
lea    0x1(%rax),%edx
and    $0xfffffffc,%edx
movdqa 0xc6b(%rip),%xmm0
movdqa 0xc53(%rip),%xmm2
movdqa %xmm2,%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm3
paddd  %xmm9,%xmm3
pshufd $0xf5,%xmm1,%xmm4
pshufd $0xf5,%xmm0,%xmm5
pmuludq %xmm4,%xmm5
pmuludq %xmm0,%xmm1
pshufd $0xf5,%xmm2,%xmm4
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm4,%xmm6
pmuludq %xmm2,%xmm3
movdqa %xmm0,%xmm2
paddd  %xmm10,%xmm2
movdqa %xmm0,%xmm4
paddd  %xmm11,%xmm4
pmuludq %xmm2,%xmm1
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm5,%xmm2
pmuludq %xmm4,%xmm3
pshufd $0xf5,%xmm4,%xmm4
pmuludq %xmm6,%xmm4
movdqa %xmm0,%xmm5
paddd  %xmm12,%xmm5
movdqa %xmm0,%xmm6
paddd  %xmm13,%xmm6
pshufd $0xf5,%xmm5,%xmm7
pmuludq %xmm2,%xmm7
pmuludq %xmm1,%xmm5
pshufd $0xf5,%xmm6,%xmm8
pmuludq %xmm4,%xmm8
pmuludq %xmm3,%xmm6
movdqa %xmm0,%xmm2
paddd  %xmm14,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm15,%xmm3
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm1
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm7,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
pmuludq %xmm3,%xmm6
pshufd $0xe8,%xmm6,%xmm2
pshufd $0xf5,%xmm3,%xmm3
pmuludq %xmm8,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
paddd  0xbf8(%rip),%xmm0
add    $0xfffffffc,%edx
jne    13c0 <main+0x2a0>
mov    %r13d,%edx
and    $0xfffffff8,%edx
movdqa %xmm1,%xmm3
movdqa %xmm2,%xmm4
test   $0x3,%cl
je     151f <main+0x3ff>
add    $0x1,%al
movzbl %al,%eax
and    $0x3,%eax
nopl   0x0(%rax)
movdqa %xmm0,%xmm4
paddd  %xmm9,%xmm4
movdqa %xmm0,%xmm3
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pshufd $0xf5,%xmm0,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xe8,%xmm5,%xmm1
punpckldq %xmm1,%xmm3
pshufd $0xf5,%xmm4,%xmm1
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm1,%xmm2
pshufd $0xe8,%xmm2,%xmm1
punpckldq %xmm1,%xmm4
paddd  %xmm10,%xmm0
movdqa %xmm3,%xmm1
movdqa %xmm4,%xmm2
add    $0xffffffff,%eax
jne    14c0 <main+0x3a0>
pshufd $0xf5,%xmm3,%xmm0
pshufd $0xf5,%xmm4,%xmm1
pmuludq %xmm0,%xmm1
pmuludq %xmm3,%xmm4
pshufd $0xee,%xmm4,%xmm0
pmuludq %xmm4,%xmm0
pshufd $0xaa,%xmm1,%xmm2
pmuludq %xmm1,%xmm2
pmuludq %xmm0,%xmm2
movd   %xmm2,%ebp
cmp    %edx,%r13d
je     12e0 <main+0x1c0>
or     $0x1,%edx
nopw   0x0(%rax,%rax,1)
imul   %edx,%ebp
add    $0x1,%edx
cmp    %edx,%ebx
jne    1560 <main+0x440>
jmp    12e0 <main+0x1c0>
mov    (%rsp),%esi
mov    0x30(%rsp),%edx
lea    0xb49(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0x34(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
mov    0x38(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x3c(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rsp),%esi
mov    0x40(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
mov    0x44(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rsp),%esi
mov    0x48(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%rsp),%esi
mov    0x4c(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x20(%rsp),%esi
mov    0x50(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x24(%rsp),%esi
mov    0x54(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Informe o valor da posicao A[%d]: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [10 x i8] c"%d -> %d\0A\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
br label %8
8: ; preds = %22, %0
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 10
br i1 %10, label %11, label %25
11: ; preds = %8
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
%14 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %16
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
%19 = load i32, i32* %3
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %20
store i32 1, i32* %21
br label %22
22: ; preds = %11
%23 = load i32, i32* %3
%24 = add nsw i32 %23, 1
store i32 %24, i32* %3
br label %8
25: ; preds = %8
store i32 1, i32* %4
store i32 1, i32* %5
br label %26
26: ; preds = %67, %25
%27 = load i32, i32* %4
%28 = icmp sle i32 %27, 10
br i1 %28, label %29, label %70
29: ; preds = %26
%30 = load i32, i32* %4
%31 = sub nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %32
%34 = load i32, i32* %33
%35 = icmp sgt i32 %34, 0
br i1 %35, label %36, label %56
36: ; preds = %29
store i32 1, i32* %6
br label %37
37: ; preds = %45, %36
%38 = load i32, i32* %6
%39 = load i32, i32* %4
%40 = icmp sle i32 %38, %39
br i1 %40, label %41, label %48
41: ; preds = %37
%42 = load i32, i32* %6
%43 = load i32, i32* %5
%44 = mul nsw i32 %43, %42
store i32 %44, i32* %5
br label %45
45: ; preds = %41
%46 = load i32, i32* %6
%47 = add nsw i32 %46, 1
store i32 %47, i32* %6
br label %37
48: ; preds = %37
%49 = load i32, i32* %5
%50 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %49)
%51 = load i32, i32* %5
%52 = load i32, i32* %4
%53 = sub nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %54
store i32 %51, i32* %55
store i32 1, i32* %5
br label %66
56: ; preds = %29
%57 = load i32, i32* %4
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %59
%61 = load i32, i32* %60
%62 = load i32, i32* %4
%63 = sub nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %64
store i32 %61, i32* %65
br label %66
66: ; preds = %56, %48
br label %67
67: ; preds = %66
%68 = load i32, i32* %4
%69 = add nsw i32 %68, 1
store i32 %69, i32* %4
br label %26
70: ; preds = %26
store i32 0, i32* %7
br label %71
71: ; preds = %84, %70
%72 = load i32, i32* %7
%73 = icmp slt i32 %72, 10
br i1 %73, label %74, label %87
74: ; preds = %71
%75 = load i32, i32* %7
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = load i32, i32* %7
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %78, i32 %82)
br label %84
84: ; preds = %74
%85 = load i32, i32* %7
%86 = add nsw i32 %85, 1
store i32 %86, i32* %7
br label %71
87: ; preds = %71
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"Informe o valor da posicao A[%d]: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [10 x i8] c"%d -> %d\0A\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca [10 x i32]
%3 = bitcast [10 x i32]* %1 to i8*
%4 = bitcast [10 x i32]* %2 to i8*
%5 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 1)
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%8 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 2)
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%11 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 3)
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %12)
%14 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 4)
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%17 = bitcast [10 x i32]* %2 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %17
%18 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 5)
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %19)
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
%22 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 6)
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %23)
%25 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 7)
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %26)
%28 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 8)
%29 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %29)
%31 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %31
%32 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 9)
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %33)
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
store i32 1, i32* %35
%36 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 10)
%37 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %37)
%39 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
store i32 1, i32* %39
br label %40
40: ; preds = %0, %120
%41 = phi i32 [ 0, %0 ], [ %126, %120 ]
%42 = phi i64 [ 1, %0 ], [ %123, %120 ]
%43 = phi i32 [ 2, %0 ], [ %124, %120 ]
%44 = add i32 %41, -7
%45 = lshr i32 %44, 3
%46 = add nuw nsw i32 %45, 1
%47 = add i32 %41, 1
%48 = add nsw i64 %42, -1
%49 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %120
52: ; preds = %40
%53 = icmp ult i32 %47, 8
br i1 %53, label %108, label %54
54: ; preds = %52
%55 = and i32 %47, -8
%56 = or i32 %55, 1
%57 = and i32 %46, 3
%58 = icmp ult i32 %44, 24
br i1 %58, label %84, label %59
59: ; preds = %54
%60 = and i32 %46, 1073741820
br label %61
61: ; preds = %61, %59
%62 = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %59 ], [ %81, %61 ]
%63 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %59 ], [ %79, %61 ]
%64 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %59 ], [ %80, %61 ]
%65 = phi i32 [ 0, %59 ], [ %82, %61 ]
%66 = add <4 x i32> %62, <i32 4, i32 4, i32 4, i32 4>
%67 = mul <4 x i32> %62, %63
%68 = mul <4 x i32> %66, %64
%69 = add <4 x i32> %62, <i32 8, i32 8, i32 8, i32 8>
%70 = add <4 x i32> %62, <i32 12, i32 12, i32 12, i32 12>
%71 = mul <4 x i32> %69, %67
%72 = mul <4 x i32> %70, %68
%73 = add <4 x i32> %62, <i32 16, i32 16, i32 16, i32 16>
%74 = add <4 x i32> %62, <i32 20, i32 20, i32 20, i32 20>
%75 = mul <4 x i32> %73, %71
%76 = mul <4 x i32> %74, %72
%77 = add <4 x i32> %62, <i32 24, i32 24, i32 24, i32 24>
%78 = add <4 x i32> %62, <i32 28, i32 28, i32 28, i32 28>
%79 = mul <4 x i32> %77, %75
%80 = mul <4 x i32> %78, %76
%81 = add <4 x i32> %62, <i32 32, i32 32, i32 32, i32 32>
%82 = add i32 %65, 4
%83 = icmp eq i32 %82, %60
br i1 %83, label %84, label %61
84: ; preds = %61, %54
%85 = phi <4 x i32> [ undef, %54 ], [ %79, %61 ]
%86 = phi <4 x i32> [ undef, %54 ], [ %80, %61 ]
%87 = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %54 ], [ %81, %61 ]
%88 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %54 ], [ %79, %61 ]
%89 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %54 ], [ %80, %61 ]
%90 = icmp eq i32 %57, 0
br i1 %90, label %102, label %91
91: ; preds = %84, %91
%92 = phi <4 x i32> [ %99, %91 ], [ %87, %84 ]
%93 = phi <4 x i32> [ %97, %91 ], [ %88, %84 ]
%94 = phi <4 x i32> [ %98, %91 ], [ %89, %84 ]
%95 = phi i32 [ %100, %91 ], [ 0, %84 ]
%96 = add <4 x i32> %92, <i32 4, i32 4, i32 4, i32 4>
%97 = mul <4 x i32> %92, %93
%98 = mul <4 x i32> %96, %94
%99 = add <4 x i32> %92, <i32 8, i32 8, i32 8, i32 8>
%100 = add i32 %95, 1
%101 = icmp eq i32 %100, %57
br i1 %101, label %102, label %91
102: ; preds = %91, %84
%103 = phi <4 x i32> [ %85, %84 ], [ %97, %91 ]
%104 = phi <4 x i32> [ %86, %84 ], [ %98, %91 ]
%105 = mul <4 x i32> %104, %103
%106 = call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %105)
%107 = icmp eq i32 %47, %55
br i1 %107, label %111, label %108
108: ; preds = %52, %102
%109 = phi i32 [ 1, %52 ], [ %56, %102 ]
%110 = phi i32 [ 1, %52 ], [ %106, %102 ]
br label %114
111: ; preds = %114, %102
%112 = phi i32 [ %106, %102 ], [ %117, %114 ]
%113 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %112)
br label %120
114: ; preds = %108, %114
%115 = phi i32 [ %118, %114 ], [ %109, %108 ]
%116 = phi i32 [ %117, %114 ], [ %110, %108 ]
%117 = mul nsw i32 %115, %116
%118 = add nuw nsw i32 %115, 1
%119 = icmp eq i32 %118, %43
br i1 %119, label %111, label %114
120: ; preds = %40, %111
%121 = phi i32 [ %112, %111 ], [ %50, %40 ]
%122 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %48
store i32 %121, i32* %122
%123 = add nuw nsw i64 %42, 1
%124 = add nuw nsw i32 %43, 1
%125 = icmp eq i64 %123, 11
%126 = add i32 %41, 1
br i1 %125, label %127, label %40
127: ; preds = %120
%128 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
%129 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 6
%130 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 5
%131 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%132 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 3
%133 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%134 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%135 = load i32, i32* %6
%136 = load i32, i32* %131
%137 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %135, i32 %136)
%138 = load i32, i32* %9
%139 = load i32, i32* %134
%140 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %138, i32 %139)
%141 = load i32, i32* %12
%142 = load i32, i32* %133
%143 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %141, i32 %142)
%144 = load i32, i32* %15
%145 = load i32, i32* %132
%146 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %144, i32 %145)
%147 = load i32, i32* %19
%148 = load i32, i32* %21
%149 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %147, i32 %148)
%150 = load i32, i32* %23
%151 = load i32, i32* %130
%152 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %150, i32 %151)
%153 = load i32, i32* %26
%154 = load i32, i32* %129
%155 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %153, i32 %154)
%156 = load i32, i32* %29
%157 = load i32, i32* %128
%158 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %156, i32 %157)
%159 = load i32, i32* %33
%160 = load i32, i32* %35
%161 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %159, i32 %160)
%162 = load i32, i32* %37
%163 = load i32, i32* %39
%164 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %162, i32 %163)
ret void
}