#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 /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, i;
  printf("Digite o grau do polinomio: ");
  scanf("%d", &n);
  printf("\n");
  int a[(n + 1)], b[n], *p;
  p = &a[0];
  for (i = 0; i <= n; i++) {
    printf("Digire o valor de A de Ax^%i: ", i);
    scanf("%d", p);
    p++;
  }
  printf("\n f(x) = ");
  for (i = (n); i >= 0; i--) {
    printf("%dx^%d", a[i], i);
    if (i != 0)
      printf(" + ");
  }
  for (i = 0; i < n; i++) {
    b[i] = a[i + 1] * (i + 1);
  }
  printf("\n f'(x) = ");
  for (i = (n - 1); i >= 0; i--) {
    printf("%dx^%d", b[i], i);
    if (i != 0)
      printf(" + ");
  }
  printf("\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x41(%rbp)
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x41(%rbp),%al
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,%ecx
mov    %rsp,%rax
mov    %rax,-0x18(%rbp)
lea    0xf(,%rcx,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rax
sub    %rdx,%rax
mov    %rax,-0x40(%rbp)
mov    %rax,%rsp
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%ecx
lea    0xf(,%rcx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x38(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11fd <main+0xdd>
mov    -0xc(%rbp),%esi
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xe6c(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x30(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x30(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11b6 <main+0x96>
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     1262 <main+0x142>
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0xc(%rbp),%edx
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
je     124f <main+0x12f>
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1254 <main+0x134>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1211 <main+0xf1>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12a7 <main+0x187>
mov    -0x38(%rbp),%rax
mov    -0x40(%rbp),%rcx
mov    -0xc(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
mov    (%rcx,%rdx,4),%edx
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%edx
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1269 <main+0x149>
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     130f <main+0x1ef>
mov    -0x38(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0xc(%rbp),%edx
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
je     12fc <main+0x1dc>
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1301 <main+0x1e1>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    12be <main+0x19e>
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xee8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf24(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   1060 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rsp,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%r13
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
mov    -0x2c(%rbp),%eax
mov    %rsp,%rdx
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%rdx
mov    %rdx,-0x38(%rbp)
mov    %rdx,%rsp
test   %eax,%eax
js     11f3 <main+0xb3>
mov    $0xffffffff,%ebx
lea    0xe99(%rip),%r14
lea    0xebf(%rip),%r15
mov    %r13,%r12
xchg   %ax,%ax
add    $0x1,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <scanf@plt>
add    $0x4,%r12
cmp    -0x2c(%rbp),%ebx
jl     11d0 <main+0x90>
lea    0xe82(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x2c(%rbp),%ebx
test   %ebx,%ebx
mov    -0x38(%rbp),%r12
js     1388 <main+0x248>
mov    0x0(%r13,%rbx,4),%esi
lea    0xe6a(%rip),%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
test   %rbx,%rbx
je     1264 <main+0x124>
lea    0xe5c(%rip),%r14
lea    0xe4e(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x4(%r13,%rbx,4),%esi
add    $0xffffffffffffffff,%rbx
mov    %r15,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
test   %rbx,%rbx
jne    1240 <main+0x100>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
jle    1388 <main+0x248>
cmp    $0x8,%eax
jae    127b <main+0x13b>
xor    %ecx,%ecx
jmp    1370 <main+0x230>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
xor    %edx,%edx
movdqa 0xd75(%rip),%xmm8
movdqa 0xd7c(%rip),%xmm9
mov    $0x7,%esi
movq   %rsi,%xmm12
movdqa 0xd79(%rip),%xmm10
movdqa 0xd80(%rip),%xmm11
movq   %rdx,%xmm6
pshufd $0x44,%xmm6,%xmm1
movdqa %xmm1,%xmm4
por    %xmm8,%xmm4
movdqa %xmm1,%xmm5
por    %xmm9,%xmm5
por    %xmm12,%xmm6
movdqa %xmm1,%xmm0
por    %xmm10,%xmm0
paddq  %xmm11,%xmm1
movq   %xmm5,%rsi
movdqu 0x0(%r13,%rsi,4),%xmm3
movdqu 0x10(%r13,%rsi,4),%xmm13
movd   %esi,%xmm2
punpcklqdq %xmm4,%xmm2
movdqa %xmm0,%xmm7
punpcklqdq %xmm6,%xmm7
punpckhqdq %xmm4,%xmm5
pshufd $0xf5,%xmm3,%xmm4
pmuludq %xmm5,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pmuludq %xmm3,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm4,%xmm2
pmuludq %xmm13,%xmm7
pshufd $0xe8,%xmm7,%xmm3
punpckhqdq %xmm1,%xmm0
pshufd $0xf5,%xmm13,%xmm1
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm0
punpckldq %xmm0,%xmm3
movdqa %xmm2,(%r12,%rdx,4)
movdqa %xmm3,0x10(%r12,%rdx,4)
add    $0x8,%rdx
cmp    %rdx,%rcx
jne    12b0 <main+0x170>
cmp    %rax,%rcx
je     1388 <main+0x248>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x1(%rcx),%rdx
mov    0x4(%r13,%rcx,4),%esi
imul   %edx,%esi
mov    %esi,(%r12,%rcx,4)
mov    %rdx,%rcx
cmp    %rdx,%rax
jne    1370 <main+0x230>
lea    0xd02(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x2c(%rbp),%ebx
test   %ebx,%ebx
jle    13f3 <main+0x2b3>
add    $0xffffffffffffffff,%rbx
lea    0xcde(%rip),%r14
lea    0xcde(%rip),%r15
jmp    13d1 <main+0x291>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    -0x1(%rbx),%rax
add    $0x1,%rbx
cmp    $0x1,%rbx
mov    %rax,%rbx
jbe    13f3 <main+0x2b3>
mov    %ebx,%eax
mov    (%r12,%rax,4),%esi
mov    %r14,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
test   %ebx,%ebx
je     13c0 <main+0x280>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13c0 <main+0x280>
lea    0xca2(%rip),%rdi
call   1040 <puts@plt>
mov    -0x40(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [29 x i8] c"Digite o grau do polinomio: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [31 x i8] c"Digire o valor de A de Ax^%i: \00"
@.str.4 = [10 x i8] c"\0A f(x) = \00"
@.str.5 = [7 x i8] c"%dx^%d\00"
@.str.6 = [4 x i8] c" + \00"
@.str.7 = [11 x i8] c"\0A f'(x) = \00"
@.str.8 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
%7 = alloca i32*
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
%13 = zext i32 %12 to i64
%14 = call i8* @llvm.stacksave()
store i8* %14, i8** %4
%15 = alloca i32, i64 %13
store i64 %13, i64* %5
%16 = load i32, i32* %2
%17 = zext i32 %16 to i64
%18 = alloca i32, i64 %17
store i64 %17, i64* %6
%19 = getelementptr inbounds i32, i32* %15, i64 0
store i32* %19, i32** %7
store i32 0, i32* %3
br label %20
20: ; preds = %31, %0
%21 = load i32, i32* %3
%22 = load i32, i32* %2
%23 = icmp sle i32 %21, %22
br i1 %23, label %24, label %34
24: ; preds = %20
%25 = load i32, i32* %3
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%27 = load i32*, i32** %7
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %27)
%29 = load i32*, i32** %7
%30 = getelementptr inbounds i32, i32* %29, i32 1
store i32* %30, i32** %7
br label %31
31: ; preds = %24
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
br label %20
34: ; preds = %20
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%36 = load i32, i32* %2
store i32 %36, i32* %3
br label %37
37: ; preds = %52, %34
%38 = load i32, i32* %3
%39 = icmp sge i32 %38, 0
br i1 %39, label %40, label %55
40: ; preds = %37
%41 = load i32, i32* %3
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, i32* %15, i64 %42
%44 = load i32, i32* %43
%45 = load i32, i32* %3
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %44, i32 %45)
%47 = load i32, i32* %3
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %40
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %51
51: ; preds = %49, %40
br label %52
52: ; preds = %51
%53 = load i32, i32* %3
%54 = add nsw i32 %53, -1
store i32 %54, i32* %3
br label %37
55: ; preds = %37
store i32 0, i32* %3
br label %56
56: ; preds = %72, %55
%57 = load i32, i32* %3
%58 = load i32, i32* %2
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %75
60: ; preds = %56
%61 = load i32, i32* %3
%62 = add nsw i32 %61, 1
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, i32* %15, i64 %63
%65 = load i32, i32* %64
%66 = load i32, i32* %3
%67 = add nsw i32 %66, 1
%68 = mul nsw i32 %65, %67
%69 = load i32, i32* %3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, i32* %18, i64 %70
store i32 %68, i32* %71
br label %72
72: ; preds = %60
%73 = load i32, i32* %3
%74 = add nsw i32 %73, 1
store i32 %74, i32* %3
br label %56
75: ; preds = %56
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%77 = load i32, i32* %2
%78 = sub nsw i32 %77, 1
store i32 %78, i32* %3
br label %79
79: ; preds = %94, %75
%80 = load i32, i32* %3
%81 = icmp sge i32 %80, 0
br i1 %81, label %82, label %97
82: ; preds = %79
%83 = load i32, i32* %3
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, i32* %18, i64 %84
%86 = load i32, i32* %85
%87 = load i32, i32* %3
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %86, i32 %87)
%89 = load i32, i32* %3
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %82
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %93
93: ; preds = %91, %82
br label %94
94: ; preds = %93
%95 = load i32, i32* %3
%96 = add nsw i32 %95, -1
store i32 %96, i32* %3
br label %79
97: ; preds = %79
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %1
%99 = load i8*, i8** %4
%100 = load i32, i32* %1
ret i32 %100
}

LLVM IR (-O2):
@.str = [29 x i8] c"Digite o grau do polinomio: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [31 x i8] c"Digire o valor de A de Ax^%i: \00"
@.str.4 = [10 x i8] c"\0A f(x) = \00"
@.str.5 = [7 x i8] c"%dx^%d\00"
@.str.6 = [4 x i8] c" + \00"
@.str.7 = [11 x i8] c"\0A f'(x) = \00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = call i32 @putchar(i32 10)
%6 = load i32, i32* %1
%7 = add nsw i32 %6, 1
%8 = zext i32 %7 to i64
%9 = call i8* @llvm.stacksave()
%10 = alloca i32, i64 %8
%11 = load i32, i32* %1
%12 = zext i32 %11 to i64
%13 = alloca i32, i64 %12
%14 = icmp slt i32 %11, 0
br i1 %14, label %24, label %15
15: ; preds = %0, %15
%16 = phi i32* [ %20, %15 ], [ %10, %0 ]
%17 = phi i32 [ %21, %15 ], [ 0, %0 ]
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%20 = getelementptr inbounds i32, i32* %16, i64 1
%21 = add nuw nsw i32 %17, 1
%22 = load i32, i32* %1
%23 = icmp slt i32 %17, %22
br i1 %23, label %15, label %24
24: ; preds = %15, %0
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%26 = load i32, i32* %1
%27 = icmp sgt i32 %26, -1
br i1 %27, label %28, label %89
28: ; preds = %24
%29 = zext i32 %26 to i64
%30 = getelementptr inbounds i32, i32* %10, i64 %29
%31 = load i32, i32* %30
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %31, i32 %26)
%33 = icmp eq i32 %26, 0
br i1 %33, label %34, label %71
34: ; preds = %71, %28
%35 = load i32, i32* %1
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %89
37: ; preds = %34
%38 = zext i32 %35 to i64
%39 = icmp ult i32 %35, 8
br i1 %39, label %69, label %40
40: ; preds = %37
%41 = and i64 %38, 4294967288
br label %42
42: ; preds = %42, %40
%43 = phi i64 [ 0, %40 ], [ %65, %42 ]
%44 = insertelement <4 x i64> poison, i64 %43, i64 0
%45 = shufflevector <4 x i64> %44, <4 x i64> poison, <4 x i32> zeroinitializer
%46 = or <4 x i64> %45, <i64 1, i64 2, i64 3, i64 4>
%47 = or <4 x i64> %45, <i64 5, i64 6, i64 7, i64 poison>
%48 = add <4 x i64> %45, <i64 poison, i64 poison, i64 poison, i64 8>
%49 = shufflevector <4 x i64> %47, <4 x i64> %48, <4 x i32> <i32 0, i32 1, i32 2, i32 7>
%50 = extractelement <4 x i64> %46, i64 0
%51 = getelementptr inbounds i32, i32* %10, i64 %50
%52 = bitcast i32* %51 to <4 x i32>*
%53 = load <4 x i32>, <4 x i32>* %52
%54 = getelementptr inbounds i32, i32* %51, i64 4
%55 = bitcast i32* %54 to <4 x i32>*
%56 = load <4 x i32>, <4 x i32>* %55
%57 = trunc <4 x i64> %46 to <4 x i32>
%58 = trunc <4 x i64> %49 to <4 x i32>
%59 = mul nsw <4 x i32> %53, %57
%60 = mul nsw <4 x i32> %56, %58
%61 = getelementptr inbounds i32, i32* %13, i64 %43
%62 = bitcast i32* %61 to <4 x i32>*
store <4 x i32> %59, <4 x i32>* %62
%63 = getelementptr inbounds i32, i32* %61, i64 4
%64 = bitcast i32* %63 to <4 x i32>*
store <4 x i32> %60, <4 x i32>* %64
%65 = add nuw i64 %43, 8
%66 = icmp eq i64 %65, %41
br i1 %66, label %67, label %42
67: ; preds = %42
%68 = icmp eq i64 %41, %38
br i1 %68, label %89, label %69
69: ; preds = %37, %67
%70 = phi i64 [ 0, %37 ], [ %41, %67 ]
br label %80
71: ; preds = %28, %71
%72 = phi i64 [ %74, %71 ], [ %29, %28 ]
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%74 = add nsw i64 %72, -1
%75 = getelementptr inbounds i32, i32* %10, i64 %74
%76 = load i32, i32* %75
%77 = trunc i64 %74 to i32
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %76, i32 %77)
%79 = icmp eq i64 %74, 0
br i1 %79, label %34, label %71
80: ; preds = %69, %80
%81 = phi i64 [ %82, %80 ], [ %70, %69 ]
%82 = add nuw nsw i64 %81, 1
%83 = getelementptr inbounds i32, i32* %10, i64 %82
%84 = load i32, i32* %83
%85 = trunc i64 %82 to i32
%86 = mul nsw i32 %84, %85
%87 = getelementptr inbounds i32, i32* %13, i64 %81
store i32 %86, i32* %87
%88 = icmp eq i64 %82, %38
br i1 %88, label %89, label %80
89: ; preds = %80, %67, %24, %34
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%91 = load i32, i32* %1
%92 = icmp sgt i32 %91, 0
br i1 %92, label %93, label %108
93: ; preds = %89
%94 = zext i32 %91 to i64
br label %95
95: ; preds = %93, %106
%96 = phi i64 [ %94, %93 ], [ %97, %106 ]
%97 = add nsw i64 %96, -1
%98 = trunc i64 %97 to i32
%99 = and i64 %97, 4294967295
%100 = getelementptr inbounds i32, i32* %13, i64 %99
%101 = load i32, i32* %100
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %101, i32 %98)
%103 = icmp eq i32 %98, 0
br i1 %103, label %106, label %104
104: ; preds = %95
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %106
106: ; preds = %95, %104
%107 = icmp ugt i64 %96, 1
br i1 %107, label %95, label %108
108: ; preds = %106, %89
%109 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret i32 0
}