#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 abs(int);
int pow(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  int d[9];
  int negative = 0;
  printf("Enter an integer > ");
  scanf("%d", &n);
  int size = 0;
  while (abs(n) >= pow(10, size)) {
    size++;
  }
  if (n == 0)
    size++;
  if (n < 0)
    negative = 1;
  int i;
  for (i = 0; i < 10; i++) {
    int remainder = n % (int)pow(10, i + 1);
    int multiplier = pow(10, i);
    d[i] = remainder / multiplier;
    n -= remainder;
  }
  if (negative) {
    for (i = 0; i < size - 1; i++) {
      printf("%d\n", d[i] * -1);
    }
    printf("%d\n", d[size - 1]);
  } else
    for (i = 0; i < size; i++) {
      printf("%d\n", d[i]);
    }
  printf("That's all, have a nice day!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea9(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,-0x48(%rbp)
mov    -0x38(%rbp),%esi
mov    $0xa,%edi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
cmp    %ecx,%eax
jl     11ae <main+0x6e>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    117b <main+0x3b>
cmpl   $0x0,-0x8(%rbp)
jne    11c1 <main+0x81>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    11d2 <main+0x92>
movl   $0x1,-0x34(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    123e <main+0xfe>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x3c(%rbp),%esi
add    $0x1,%esi
mov    $0xa,%edi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
cltd
idiv   %ecx
mov    %edx,-0x40(%rbp)
mov    -0x3c(%rbp),%esi
mov    $0xa,%edi
call   1060 <pow@plt>
mov    %eax,-0x44(%rbp)
mov    -0x40(%rbp),%eax
cltd
idivl  -0x44(%rbp)
mov    %eax,%ecx
movslq -0x3c(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x40(%rbp),%ecx
mov    -0x8(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11d9 <main+0x99>
cmpl   $0x0,-0x34(%rbp)
je     12a4 <main+0x164>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1285 <main+0x145>
movslq -0x3c(%rbp),%rax
imul   $0xffffffff,-0x30(%rbp,%rax,4),%esi
lea    0xda7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    124f <main+0x10f>
mov    -0x38(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12e0 <main+0x1a0>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    12db <main+0x19b>
movslq -0x3c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12ab <main+0x16b>
jmp    12e0 <main+0x1a0>
lea    0xd34(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xeab(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeaf(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
mov    $0x2,%r15d
mov    $0x1,%r14d
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%eax
mov    %eax,%ebp
neg    %ebp
cmovs  %eax,%ebp
mov    $0xa,%edi
mov    %ebx,%esi
call   1060 <pow@plt>
add    $0x1,%ebx
add    $0xffffffff,%r15d
add    $0xffffffff,%r14d
cmp    %eax,%ebp
jge    1180 <main+0x40>
mov    0x8(%rsp),%ebp
xor    %r12d,%r12d
test   %ebp,%ebp
sete   %r12b
mov    $0xa,%edi
mov    $0x1,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
xor    %esi,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0xc(%rsp)
mov    %eax,0x10(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0x2,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
mov    $0x1,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0x14(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0x3,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
mov    $0x2,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0x18(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0x4,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
mov    $0x3,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0x1c(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0x5,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
mov    $0x4,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0x20(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0x6,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
mov    $0x5,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0x24(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0x7,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
mov    $0x6,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0x28(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0x8,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
mov    $0x7,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0x2c(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0x9,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
mov    $0xa,%edi
mov    $0x8,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %r13d,%eax
cltd
idiv   %ecx
mov    %eax,0x30(%rsp)
mov    0x8(%rsp),%ebx
sub    %r13d,%ebx
mov    %ebx,0x8(%rsp)
mov    $0xa,%edi
mov    $0xa,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %edx,%ebx
mov    $0xa,%edi
mov    $0x9,%esi
call   1060 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
sub    %ebx,0x8(%rsp)
mov    %eax,0x34(%rsp)
test   %ebp,%ebp
js     1479 <main+0x339>
mov    %r12d,%ebx
sub    %r14d,%ebx
je     14ee <main+0x3ae>
lea    0xbdf(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %r15d,%r12d
je     14ee <main+0x3ae>
mov    $0x1,%ebp
lea    0xbbf(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    0x10(%rsp,%rbp,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1460 <main+0x320>
jmp    14ee <main+0x3ae>
mov    %r12d,%eax
sub    %r14d,%eax
sub    %r15d,%r12d
cmp    $0x2,%eax
jb     14d9 <main+0x399>
mov    0xc(%rsp),%esi
neg    %esi
lea    0xb83(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%r12d
jl     14d9 <main+0x399>
mov    $0x1,%ebp
cmovge %r12d,%ebp
mov    $0x1,%ebx
lea    0xb61(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
xor    %esi,%esi
sub    0x10(%rsp,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    14c0 <main+0x380>
movslq %r12d,%rax
mov    0x10(%rsp,%rax,4),%esi
lea    0xb30(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb26(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Enter an integer > \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [30 x i8] c"That's all, have a nice day!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [9 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
store i32 0, i32* %5
br label %11
11: ; preds = %17, %0
%12 = load i32, i32* %2
%13 = call i32 @abs(i32 %12)
%14 = load i32, i32* %5
%15 = call i32 @pow(i32 10, i32 %14)
%16 = icmp sge i32 %13, %15
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
br label %11
20: ; preds = %11
%21 = load i32, i32* %2
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, i32* %5
%25 = add nsw i32 %24, 1
store i32 %25, i32* %5
br label %26
26: ; preds = %23, %20
%27 = load i32, i32* %2
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %26
store i32 1, i32* %4
br label %30
30: ; preds = %29, %26
store i32 0, i32* %6
br label %31
31: ; preds = %51, %30
%32 = load i32, i32* %6
%33 = icmp slt i32 %32, 10
br i1 %33, label %34, label %54
34: ; preds = %31
%35 = load i32, i32* %2
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
%38 = call i32 @pow(i32 10, i32 %37)
%39 = srem i32 %35, %38
store i32 %39, i32* %7
%40 = load i32, i32* %6
%41 = call i32 @pow(i32 10, i32 %40)
store i32 %41, i32* %8
%42 = load i32, i32* %7
%43 = load i32, i32* %8
%44 = sdiv i32 %42, %43
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [9 x i32], [9 x i32]* %3, i64 0, i64 %46
store i32 %44, i32* %47
%48 = load i32, i32* %7
%49 = load i32, i32* %2
%50 = sub nsw i32 %49, %48
store i32 %50, i32* %2
br label %51
51: ; preds = %34
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 1
store i32 %53, i32* %6
br label %31
54: ; preds = %31
%55 = load i32, i32* %4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %80
57: ; preds = %54
store i32 0, i32* %6
br label %58
58: ; preds = %70, %57
%59 = load i32, i32* %6
%60 = load i32, i32* %5
%61 = sub nsw i32 %60, 1
%62 = icmp slt i32 %59, %61
br i1 %62, label %63, label %73
63: ; preds = %58
%64 = load i32, i32* %6
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [9 x i32], [9 x i32]* %3, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = mul nsw i32 %67, -1
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %63
%71 = load i32, i32* %6
%72 = add nsw i32 %71, 1
store i32 %72, i32* %6
br label %58
73: ; preds = %58
%74 = load i32, i32* %5
%75 = sub nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [9 x i32], [9 x i32]* %3, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %78)
br label %95
80: ; preds = %54
store i32 0, i32* %6
br label %81
81: ; preds = %91, %80
%82 = load i32, i32* %6
%83 = load i32, i32* %5
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %94
85: ; preds = %81
%86 = load i32, i32* %6
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [9 x i32], [9 x i32]* %3, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %89)
br label %91
91: ; preds = %85
%92 = load i32, i32* %6
%93 = add nsw i32 %92, 1
store i32 %93, i32* %6
br label %81
94: ; preds = %81
br label %95
95: ; preds = %94, %73
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Enter an integer > \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@str = [29 x i8] c"That's all, have a nice day!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [9 x i32]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [9 x i32]* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
br label %7
7: ; preds = %7, %0
%8 = phi i32 [ 0, %0 ], [ %13, %7 ]
%9 = load i32, i32* %1
%10 = call i32 @llvm.abs.i32(i32 %9, i1 true)
%11 = call i32 @pow(i32 10, i32 %8)
%12 = icmp slt i32 %10, %11
%13 = add nuw nsw i32 %8, 1
br i1 %12, label %14, label %7
14: ; preds = %7
%15 = load i32, i32* %1
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = add nuw i32 %8, %17
%19 = call i32 @pow(i32 10, i32 1)
%20 = srem i32 %15, %19
%21 = call i32 @pow(i32 10, i32 0)
%22 = sdiv i32 %20, %21
%23 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 0
store i32 %22, i32* %23
%24 = load i32, i32* %1
%25 = sub nsw i32 %24, %20
store i32 %25, i32* %1
%26 = call i32 @pow(i32 10, i32 2)
%27 = srem i32 %25, %26
%28 = call i32 @pow(i32 10, i32 1)
%29 = sdiv i32 %27, %28
%30 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 1
store i32 %29, i32* %30
%31 = load i32, i32* %1
%32 = sub nsw i32 %31, %27
store i32 %32, i32* %1
%33 = call i32 @pow(i32 10, i32 3)
%34 = srem i32 %32, %33
%35 = call i32 @pow(i32 10, i32 2)
%36 = sdiv i32 %34, %35
%37 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 2
store i32 %36, i32* %37
%38 = load i32, i32* %1
%39 = sub nsw i32 %38, %34
store i32 %39, i32* %1
%40 = call i32 @pow(i32 10, i32 4)
%41 = srem i32 %39, %40
%42 = call i32 @pow(i32 10, i32 3)
%43 = sdiv i32 %41, %42
%44 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 3
store i32 %43, i32* %44
%45 = load i32, i32* %1
%46 = sub nsw i32 %45, %41
store i32 %46, i32* %1
%47 = call i32 @pow(i32 10, i32 5)
%48 = srem i32 %46, %47
%49 = call i32 @pow(i32 10, i32 4)
%50 = sdiv i32 %48, %49
%51 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 4
store i32 %50, i32* %51
%52 = load i32, i32* %1
%53 = sub nsw i32 %52, %48
store i32 %53, i32* %1
%54 = call i32 @pow(i32 10, i32 6)
%55 = srem i32 %53, %54
%56 = call i32 @pow(i32 10, i32 5)
%57 = sdiv i32 %55, %56
%58 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 5
store i32 %57, i32* %58
%59 = load i32, i32* %1
%60 = sub nsw i32 %59, %55
store i32 %60, i32* %1
%61 = call i32 @pow(i32 10, i32 7)
%62 = srem i32 %60, %61
%63 = call i32 @pow(i32 10, i32 6)
%64 = sdiv i32 %62, %63
%65 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 6
store i32 %64, i32* %65
%66 = load i32, i32* %1
%67 = sub nsw i32 %66, %62
store i32 %67, i32* %1
%68 = call i32 @pow(i32 10, i32 8)
%69 = srem i32 %67, %68
%70 = call i32 @pow(i32 10, i32 7)
%71 = sdiv i32 %69, %70
%72 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 7
store i32 %71, i32* %72
%73 = load i32, i32* %1
%74 = sub nsw i32 %73, %69
store i32 %74, i32* %1
%75 = call i32 @pow(i32 10, i32 9)
%76 = srem i32 %74, %75
%77 = call i32 @pow(i32 10, i32 8)
%78 = sdiv i32 %76, %77
%79 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 8
store i32 %78, i32* %79
%80 = load i32, i32* %1
%81 = sub nsw i32 %80, %76
store i32 %81, i32* %1
%82 = call i32 @pow(i32 10, i32 10)
%83 = srem i32 %81, %82
%84 = call i32 @pow(i32 10, i32 9)
%85 = sdiv i32 %83, %84
%86 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 9
store i32 %85, i32* %86
%87 = load i32, i32* %1
%88 = sub nsw i32 %87, %83
store i32 %88, i32* %1
%89 = icmp slt i32 %15, 0
br i1 %89, label %96, label %90
90: ; preds = %14
%91 = icmp eq i32 %18, 0
br i1 %91, label %125, label %92
92: ; preds = %90
%93 = zext i32 %18 to i64
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%95 = icmp eq i32 %18, 1
br i1 %95, label %125, label %118
96: ; preds = %14
%97 = add i32 %18, -1
%98 = icmp ugt i32 %18, 1
br i1 %98, label %99, label %113
99: ; preds = %96
%100 = call i32 @llvm.smax.i32(i32 %97, i32 1)
%101 = zext i32 %100 to i64
%102 = sub nsw i32 0, %22
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %102)
%104 = icmp slt i32 %97, 2
br i1 %104, label %113, label %105
105: ; preds = %99, %105
%106 = phi i64 [ %111, %105 ], [ 1, %99 ]
%107 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 %106
%108 = load i32, i32* %107
%109 = sub nsw i32 0, %108
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %109)
%111 = add nuw nsw i64 %106, 1
%112 = icmp eq i64 %111, %101
br i1 %112, label %113, label %105
113: ; preds = %105, %99, %96
%114 = sext i32 %97 to i64
%115 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 %114
%116 = load i32, i32* %115
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %116)
br label %125
118: ; preds = %92, %118
%119 = phi i64 [ %123, %118 ], [ 1, %92 ]
%120 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 %119
%121 = load i32, i32* %120
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %121)
%123 = add nuw nsw i64 %119, 1
%124 = icmp eq i64 %123, %93
br i1 %124, label %125, label %118
125: ; preds = %118, %92, %90, %113
%126 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
ret i32 0
}