#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(void) {
  int num, numl, n, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9;
  printf("\nEnter an integer > ");
  scanf("%d", &num);
  numl = num;
  n = 0;
  while (numl > 0) {
    n += 1;
    numl = numl / 10;
  }
  d0 = num % 10;
  num = (num - d0) / 10;
  d1 = num % 10;
  num = (num - d1) / 10;
  d2 = num % 10;
  num = (num - d2) / 10;
  d3 = num % 10;
  num = (num - d3) / 10;
  d4 = num % 10;
  num = (num - d4) / 10;
  d5 = num % 10;
  num = (num - d5) / 10;
  d6 = num % 10;
  num = (num - d6) / 10;
  d7 = num % 10;
  num = (num - d7) / 10;
  d8 = num % 10;
  num = (num - d8) / 10;
  d9 = num % 10;
  num = (num - d9) / 10;
  printf("\n%d\n", d0);
  if (n > 1)
    printf("%d\n", d1);
  if (n > 2)
    printf("%d\n", d2);
  if (n > 3)
    printf("%d\n", d3);
  if (n > 4)
    printf("%d\n", d4);
  if (n > 5)
    printf("%d\n", d5);
  if (n > 6)
    printf("%d\n", d6);
  if (n > 7)
    printf("%d\n", d7);
  if (n > 8)
    printf("%d\n", d8);
  if (n > 9)
    printf("%d\n", d9);
  printf("That's all, have a nice day!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    1180 <main+0x60>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0xc(%rbp)
jmp    115a <main+0x3a>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x18(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x18(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x1c(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x20(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x20(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x24(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x24(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x28(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x28(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x2c(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x2c(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x30(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x30(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x34(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x38(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x38(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    -0x14(%rbp),%esi
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x1,-0x10(%rbp)
jle    12e2 <main+0x1c2>
mov    -0x18(%rbp),%esi
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x2,-0x10(%rbp)
jle    12fd <main+0x1dd>
mov    -0x1c(%rbp),%esi
lea    0xd23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x3,-0x10(%rbp)
jle    1318 <main+0x1f8>
mov    -0x20(%rbp),%esi
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x4,-0x10(%rbp)
jle    1333 <main+0x213>
mov    -0x24(%rbp),%esi
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x5,-0x10(%rbp)
jle    134e <main+0x22e>
mov    -0x28(%rbp),%esi
lea    0xcd2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x6,-0x10(%rbp)
jle    1369 <main+0x249>
mov    -0x2c(%rbp),%esi
lea    0xcb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x7,-0x10(%rbp)
jle    1384 <main+0x264>
mov    -0x30(%rbp),%esi
lea    0xc9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x8,-0x10(%rbp)
jle    139f <main+0x27f>
mov    -0x34(%rbp),%esi
lea    0xc81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x9,-0x10(%rbp)
jle    13ba <main+0x29a>
mov    -0x38(%rbp),%esi
lea    0xc66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%esi
test   %esi,%esi
jle    1184 <main+0x54>
xor    %ebp,%ebp
mov    $0xcccccccd,%eax
mov    %esi,%ecx
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebp
mov    %ecx,%edx
imul   %rax,%rdx
shr    $0x23,%rdx
cmp    $0x9,%ecx
mov    %edx,%ecx
ja     1170 <main+0x40>
movslq %esi,%r14
imul   $0x66666667,%r14,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x22,%rbx
add    %eax,%ebx
lea    (%rbx,%rbx,1),%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%esi
movl   $0x0,0xc(%rsp)
lea    0xe66(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%ebp
jb     1406 <main+0x2d6>
movslq %ebx,%rax
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%ebx
lea    0xe32(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%ebp
je     1406 <main+0x2d6>
imul   $0x51eb851f,%r14,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
movslq %eax,%rsi
imul   $0x66666667,%rsi,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%esi
lea    0xde7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x4,%ebp
jb     1406 <main+0x2d6>
imul   $0x10624dd3,%r14,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x26,%rax
add    %ecx,%eax
movslq %eax,%rsi
imul   $0x66666667,%rsi,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%esi
lea    0xd9e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x4,%ebp
je     1406 <main+0x2d6>
imul   $0x68db8bad,%r14,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x2c,%rax
add    %ecx,%eax
movslq %eax,%rsi
imul   $0x66666667,%rsi,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%esi
lea    0xd55(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x6,%ebp
jb     1406 <main+0x2d6>
imul   $0x14f8b589,%r14,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x2d,%rax
add    %ecx,%eax
movswl %ax,%ecx
imul   $0x6667,%ecx,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x12,%ecx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
movswl %ax,%esi
lea    0xd0d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x6,%ebp
je     1406 <main+0x2d6>
imul   $0x431bde83,%r14,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x32,%rax
add    %ecx,%eax
imul   $0x6667,%eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x12,%ecx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
movswl %ax,%esi
lea    0xcc8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x8,%ebp
jb     1406 <main+0x2d6>
imul   $0x6b5fca6b,%r14,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x36,%rax
add    %ecx,%eax
imul   $0x6667,%eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x12,%ecx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
movswl %ax,%esi
lea    0xc83(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x8,%ebp
je     1406 <main+0x2d6>
imul   $0x55e63b89,%r14,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x39,%rax
add    %ecx,%eax
imul   $0x67,%eax,%ecx
movzwl %cx,%edx
shr    $0xa,%ecx
shr    $0xf,%edx
add    %cl,%dl
movzbl %dl,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %cl,%al
movsbl %al,%esi
lea    0xc41(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xa,%ebp
jb     1406 <main+0x2d6>
imul   $0x44b82fa1,%r14,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x3c,%rsi
add    %eax,%esi
lea    0xc1a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc10(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [21 x i8] c"\0AEnter an integer > \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [5 x i8] c"\0A%d\0A\00"
@.str.3 = [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 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 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 = load i32, i32* %1
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %0, %7
%8 = phi i32 [ %11, %7 ], [ %5, %0 ]
%9 = phi i32 [ %10, %7 ], [ 0, %0 ]
%10 = add nuw nsw i32 %9, 1
%11 = udiv i32 %8, 10
%12 = icmp ult i32 %8, 10
br i1 %12, label %13, label %7
13: ; preds = %7, %0
%14 = phi i32 [ 0, %0 ], [ %10, %7 ]
%15 = srem i32 %5, 10
%16 = sdiv i32 %5, 10
%17 = sdiv i32 %5, 100
%18 = srem i32 %17, 10
%19 = sdiv i32 %5, 1000
%20 = srem i32 %19, 10
%21 = sdiv i32 %5, 10000
%22 = srem i32 %21, 10
%23 = sdiv i32 %5, 100000
%24 = trunc i32 %23 to i16
%25 = srem i16 %24, 10
%26 = sext i16 %25 to i32
%27 = sdiv i32 %5, 1000000
%28 = trunc i32 %27 to i16
%29 = srem i16 %28, 10
%30 = sext i16 %29 to i32
%31 = sdiv i32 %5, 10000000
%32 = trunc i32 %31 to i16
%33 = srem i16 %32, 10
%34 = sext i16 %33 to i32
%35 = sdiv i32 %5, 100000000
%36 = trunc i32 %35 to i8
%37 = srem i8 %36, 10
%38 = sext i8 %37 to i32
%39 = sdiv i32 %5, 1000000000
store i32 0, i32* %1
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %15)
%41 = icmp ugt i32 %14, 1
br i1 %41, label %42, label %69
42: ; preds = %13
%43 = srem i32 %16, 10
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %43)
%45 = icmp eq i32 %14, 2
br i1 %45, label %69, label %46
46: ; preds = %42
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %18)
%48 = icmp ugt i32 %14, 3
br i1 %48, label %49, label %69
49: ; preds = %46
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %20)
%51 = icmp eq i32 %14, 4
br i1 %51, label %69, label %52
52: ; preds = %49
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %22)
%54 = icmp ugt i32 %14, 5
br i1 %54, label %55, label %69
55: ; preds = %52
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%57 = icmp eq i32 %14, 6
br i1 %57, label %69, label %58
58: ; preds = %55
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %30)
%60 = icmp ugt i32 %14, 7
br i1 %60, label %61, label %69
61: ; preds = %58
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %34)
%63 = icmp eq i32 %14, 8
br i1 %63, label %69, label %64
64: ; preds = %61
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %38)
%66 = icmp ugt i32 %14, 9
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %39)
br label %69
69: ; preds = %13, %42, %46, %49, %52, %55, %58, %61, %67, %64
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
ret i32 0
}