#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 n, d10 = 0, d9 = 0, d8 = 0, d7 = 0, d6 = 0, d5 = 0, d4 = 0, d3 = 0,
         d2 = 0, d1 = 0;
  printf("\nEnter an integer > ");
  scanf("%d", &n);
  d1 = n % 10;
  d2 = (n % 100 - n % 10) / 10;
  d3 = (n % 1000 - n % 100) / 100;
  d4 = (n % 10000 - n % 1000) / 1000;
  d5 = (n % 100000 - n % 10000) / 10000;
  d6 = (n % 1000000 - n % 100000) / 100000;
  d7 = (n % 10000000 - n % 1000000) / 1000000;
  d8 = (n % 100000000 - n % 10000000) / 10000000;
  d9 = (n % 1000000000 - n % 100000000) / 100000000;
  d10 = (n % 10000000000 - n % 1000000000) / 1000000000;
  if (d1 != 0)
    printf("\n%d", d1);
  if (d2 != 0)
    printf("\n%d", d2);
  if (d3 != 0)
    printf("\n%d", d3);
  if (d4 != 0)
    printf("\n%d", d4);
  if (d5 != 0)
    printf("\n%d", d5);
  if (d6 != 0)
    printf("\n%d", d6);
  if (d7 != 0)
    printf("\n%d", d7);
  if (d8 != 0)
    printf("\n%d", d8);
  if (d9 != 0)
    printf("\n%d", d9);
  if (d10 != 0)
    printf("\n%d", d10);
  printf("\nThat's all, have a nice day!\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8c(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x30(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x58(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x58(%rbp),%eax
sub    %edx,%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %edx,-0x54(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    -0x54(%rbp),%eax
sub    %edx,%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2710,%ecx
cltd
idiv   %ecx
mov    %edx,-0x50(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    -0x50(%rbp),%eax
sub    %edx,%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x186a0,%ecx
cltd
idiv   %ecx
mov    %edx,-0x4c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2710,%ecx
cltd
idiv   %ecx
mov    -0x4c(%rbp),%eax
sub    %edx,%eax
mov    $0x2710,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    %edx,-0x48(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x186a0,%ecx
cltd
idiv   %ecx
mov    -0x48(%rbp),%eax
sub    %edx,%eax
mov    $0x186a0,%ecx
cltd
idiv   %ecx
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x989680,%ecx
cltd
idiv   %ecx
mov    %edx,-0x44(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    -0x44(%rbp),%eax
sub    %edx,%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x5f5e100,%ecx
cltd
idiv   %ecx
mov    %edx,-0x40(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x989680,%ecx
cltd
idiv   %ecx
mov    -0x40(%rbp),%eax
sub    %edx,%eax
mov    $0x989680,%ecx
cltd
idiv   %ecx
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3b9aca00,%ecx
cltd
idiv   %ecx
mov    %edx,-0x3c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x5f5e100,%ecx
cltd
idiv   %ecx
mov    -0x3c(%rbp),%eax
sub    %edx,%eax
mov    $0x5f5e100,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
movslq -0x8(%rbp),%rax
movabs $0x2540be400,%rcx
cqto
idiv   %rcx
mov    %rdx,-0x38(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3b9aca00,%ecx
cltd
idiv   %ecx
mov    -0x38(%rbp),%rax
movslq %edx,%rcx
sub    %rcx,%rax
mov    $0x3b9aca00,%ecx
cqto
idiv   %rcx
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x30(%rbp)
je     133d <main+0x21d>
mov    -0x30(%rbp),%esi
lea    0xcdf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x2c(%rbp)
je     1358 <main+0x238>
mov    -0x2c(%rbp),%esi
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x28(%rbp)
je     1373 <main+0x253>
mov    -0x28(%rbp),%esi
lea    0xca9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x24(%rbp)
je     138e <main+0x26e>
mov    -0x24(%rbp),%esi
lea    0xc8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x20(%rbp)
je     13a9 <main+0x289>
mov    -0x20(%rbp),%esi
lea    0xc73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     13c4 <main+0x2a4>
mov    -0x1c(%rbp),%esi
lea    0xc58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x18(%rbp)
je     13df <main+0x2bf>
mov    -0x18(%rbp),%esi
lea    0xc3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
je     13fa <main+0x2da>
mov    -0x14(%rbp),%esi
lea    0xc22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
je     1415 <main+0x2f5>
mov    -0x10(%rbp),%esi
lea    0xc07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
je     1430 <main+0x310>
mov    -0xc(%rbp),%esi
lea    0xbec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbe2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%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    0xebb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
lea    0x14(%rsp),%rsi
call   1050 <scanf@plt>
movslq 0x14(%rsp),%r13
imul   $0x66666667,%r13,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
mov    %r13d,%esi
sub    %eax,%esi
imul   $0x51eb851f,%r13,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
imul   $0x64,%eax,%eax
mov    %r13d,%ebp
sub    %eax,%ebp
mov    %ebp,%edi
sub    %esi,%edi
imul   $0x10624dd3,%r13,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x26,%rax
add    %ecx,%eax
imul   $0x3e8,%eax,%eax
mov    %r13d,%ecx
sub    %eax,%ecx
mov    %ecx,0x10(%rsp)
imul   $0x68db8bad,%r13,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x2c,%rax
add    %ecx,%eax
imul   $0x2710,%eax,%r8d
imul   $0x14f8b589,%r13,%r12
mov    %r12,%rax
shr    $0x3f,%rax
sar    $0x2d,%r12
add    %eax,%r12d
imul   $0x431bde83,%r13,%r14
mov    %r14,%r15
shr    $0x3f,%r15
sar    $0x32,%r14
imul   $0x6b5fca6b,%r13,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
mov    %rcx,0x18(%rsp)
sar    $0x36,%rax
mov    %rax,0x20(%rsp)
imul   $0x55e63b89,%r13,%rbx
imul   $0x44b82fa1,%r13,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x3c,%rax
add    %ecx,%eax
imul   $0x3b9aca00,%eax,%eax
mov    %r13d,%ecx
sub    %eax,%ecx
mov    %rcx,0x28(%rsp)
movslq %ecx,%rcx
mov    %r13,%rax
sub    %rcx,%rax
movabs $0x112e0be826d694b3,%rcx
0b 2e 11
imul   %rcx
mov    %rdx,0x30(%rsp)
test   %esi,%esi
je     128b <main+0x15b>
mov    %rdi,(%rsp)
lea    0xd9f(%rip),%rdi
xor    %eax,%eax
mov    %r8d,0x8(%rsp)
call   1040 <printf@plt>
mov    0x8(%rsp),%r8d
mov    (%rsp),%rdi
mov    %r13d,%edx
sub    %r8d,%edx
mov    %rbx,%rax
shr    $0x3f,%rax
mov    %rax,0x8(%rsp)
sar    $0x39,%rbx
mov    %rbx,(%rsp)
add    %r15d,%r14d
mov    0x10(%rsp),%ebx
mov    %ebx,%r15d
sub    %ebp,%r15d
imul   $0x186a0,%r12d,%r12d
lea    0x9(%rdi),%eax
cmp    $0x13,%eax
jb     12eb <main+0x1bb>
movsbl %dil,%eax
imul   $0x67,%eax,%eax
movzwl %ax,%eax
movswl %ax,%ecx
shr    $0xf,%eax
shr    $0xa,%ecx
add    %al,%cl
movsbl %cl,%esi
lea    0xd35(%rip),%rdi
xor    %eax,%eax
mov    %edx,%ebp
call   1040 <printf@plt>
mov    %ebp,%edx
mov    %edx,%ebp
sub    %ebx,%ebp
mov    0x20(%rsp),%rcx
add    0x18(%rsp),%ecx
imul   $0xf4240,%r14d,%r14d
mov    %r13d,%esi
sub    %r12d,%esi
lea    0x63(%r15),%eax
cmp    $0xc7,%eax
jb     1345 <main+0x215>
movswl %r15w,%eax
imul   $0x147b,%eax,%eax
mov    %rcx,%r15
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x13,%eax
add    %ecx,%eax
mov    %esi,%r12d
movswl %ax,%esi
lea    0xce1(%rip),%rdi
xor    %eax,%eax
mov    %edx,%ebx
call   1040 <printf@plt>
mov    %r12d,%esi
mov    %ebx,%edx
mov    %r15,%rcx
mov    (%rsp),%rax
add    0x8(%rsp),%eax
mov    %rax,(%rsp)
imul   $0x989680,%ecx,%ecx
mov    %r13d,%r12d
sub    %r14d,%r12d
mov    %esi,%r15d
sub    %edx,%r15d
lea    0x3e7(%rbp),%eax
cmp    $0x7cf,%eax
jb     13a5 <main+0x275>
movswl %bp,%eax
imul   $0xffff8313,%eax,%eax
shr    $0x10,%eax
add    %ebp,%eax
movzwl %ax,%eax
mov    %ecx,%ebp
movswl %ax,%ecx
shr    $0xf,%eax
sar    $0x9,%ecx
add    %eax,%ecx
mov    %esi,%ebx
movswl %cx,%esi
lea    0xc7b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%ecx
mov    %ebx,%esi
imul   $0x5f5e100,(%rsp),%ebp
mov    %r13d,%r14d
sub    %ecx,%r14d
mov    %r12d,%ebx
sub    %esi,%ebx
lea    0x270f(%r15),%eax
cmp    $0x4e1f,%eax
jb     13ea <main+0x2ba>
movslq %r15d,%rax
imul   $0x68db8bad,%rax,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x2c,%rsi
add    %eax,%esi
lea    0xc32(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
sub    %ebp,%r13d
mov    %r14d,%ebp
sub    %r12d,%ebp
lea    0x1869f(%rbx),%eax
cmp    $0x30d3f,%eax
jb     1425 <main+0x2f5>
movslq %ebx,%rax
imul   $0x14f8b589,%rax,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x2d,%rsi
add    %eax,%esi
lea    0xbf7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%ebx
sub    %r14d,%ebx
mov    0x30(%rsp),%r15
mov    %r15,%r14
shr    $0x3f,%r14
shr    $0x1a,%r15
lea    0xf423f(%rbp),%eax
cmp    $0x1e847f,%eax
jb     146d <main+0x33d>
movslq %ebp,%rax
imul   $0x431bde83,%rax,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x32,%rsi
add    %eax,%esi
lea    0xbaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x28(%rsp),%rbp
sub    %r13d,%ebp
lea    0x98967f(%rbx),%eax
cmp    $0x1312cff,%eax
jb     14a7 <main+0x377>
movslq %ebx,%rax
imul   $0x6b5fca6b,%rax,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x36,%rsi
add    %eax,%esi
lea    0xb75(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    %r14d,%r15d
lea    0x5f5e0ff(%rbp),%eax
cmp    $0xbebc1ff,%eax
jb     14dc <main+0x3ac>
movslq %ebp,%rax
imul   $0x55e63b89,%rax,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x39,%rsi
add    %eax,%esi
lea    0xb40(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r15d,%r15d
je     14f2 <main+0x3c2>
lea    0xb2d(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb20(%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 = [21 x i8] c"\0AEnter an integer > \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [4 x i8] c"\0A%d\00"
@.str.3 = [31 x i8] c"\0AThat'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
store i32 0, i32* %1
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%15 = load i32, i32* %2
%16 = srem i32 %15, 10
store i32 %16, i32* %12
%17 = load i32, i32* %2
%18 = srem i32 %17, 100
%19 = load i32, i32* %2
%20 = srem i32 %19, 10
%21 = sub nsw i32 %18, %20
%22 = sdiv i32 %21, 10
store i32 %22, i32* %11
%23 = load i32, i32* %2
%24 = srem i32 %23, 1000
%25 = load i32, i32* %2
%26 = srem i32 %25, 100
%27 = sub nsw i32 %24, %26
%28 = sdiv i32 %27, 100
store i32 %28, i32* %10
%29 = load i32, i32* %2
%30 = srem i32 %29, 10000
%31 = load i32, i32* %2
%32 = srem i32 %31, 1000
%33 = sub nsw i32 %30, %32
%34 = sdiv i32 %33, 1000
store i32 %34, i32* %9
%35 = load i32, i32* %2
%36 = srem i32 %35, 100000
%37 = load i32, i32* %2
%38 = srem i32 %37, 10000
%39 = sub nsw i32 %36, %38
%40 = sdiv i32 %39, 10000
store i32 %40, i32* %8
%41 = load i32, i32* %2
%42 = srem i32 %41, 1000000
%43 = load i32, i32* %2
%44 = srem i32 %43, 100000
%45 = sub nsw i32 %42, %44
%46 = sdiv i32 %45, 100000
store i32 %46, i32* %7
%47 = load i32, i32* %2
%48 = srem i32 %47, 10000000
%49 = load i32, i32* %2
%50 = srem i32 %49, 1000000
%51 = sub nsw i32 %48, %50
%52 = sdiv i32 %51, 1000000
store i32 %52, i32* %6
%53 = load i32, i32* %2
%54 = srem i32 %53, 100000000
%55 = load i32, i32* %2
%56 = srem i32 %55, 10000000
%57 = sub nsw i32 %54, %56
%58 = sdiv i32 %57, 10000000
store i32 %58, i32* %5
%59 = load i32, i32* %2
%60 = srem i32 %59, 1000000000
%61 = load i32, i32* %2
%62 = srem i32 %61, 100000000
%63 = sub nsw i32 %60, %62
%64 = sdiv i32 %63, 100000000
store i32 %64, i32* %4
%65 = load i32, i32* %2
%66 = sext i32 %65 to i64
%67 = srem i64 %66, 10000000000
%68 = load i32, i32* %2
%69 = srem i32 %68, 1000000000
%70 = sext i32 %69 to i64
%71 = sub nsw i64 %67, %70
%72 = sdiv i64 %71, 1000000000
%73 = trunc i64 %72 to i32
store i32 %73, i32* %3
%74 = load i32, i32* %12
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %79
76: ; preds = %0
%77 = load i32, i32* %12
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %77)
br label %79
79: ; preds = %76, %0
%80 = load i32, i32* %11
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %85
82: ; preds = %79
%83 = load i32, i32* %11
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %83)
br label %85
85: ; preds = %82, %79
%86 = load i32, i32* %10
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %85
%89 = load i32, i32* %10
%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 = %88, %85
%92 = load i32, i32* %9
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %97
94: ; preds = %91
%95 = load i32, i32* %9
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %95)
br label %97
97: ; preds = %94, %91
%98 = load i32, i32* %8
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %97
%101 = load i32, i32* %8
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %101)
br label %103
103: ; preds = %100, %97
%104 = load i32, i32* %7
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %103
%107 = load i32, i32* %7
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %107)
br label %109
109: ; preds = %106, %103
%110 = load i32, i32* %6
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %115
112: ; preds = %109
%113 = load i32, i32* %6
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %113)
br label %115
115: ; preds = %112, %109
%116 = load i32, i32* %5
%117 = icmp ne i32 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %115
%119 = load i32, i32* %5
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %119)
br label %121
121: ; preds = %118, %115
%122 = load i32, i32* %4
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %127
124: ; preds = %121
%125 = load i32, i32* %4
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %125)
br label %127
127: ; preds = %124, %121
%128 = load i32, i32* %3
%129 = icmp ne i32 %128, 0
br i1 %129, label %130, label %133
130: ; preds = %127
%131 = load i32, i32* %3
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %131)
br label %133
133: ; preds = %130, %127
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, 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 = [4 x i8] c"\0A%d\00"
@str = [30 x i8] c"\0AThat'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 = srem i32 %5, 10
%7 = srem i32 %5, 100
%8 = sub nsw i32 %7, %6
%9 = trunc i32 %8 to i8
%10 = sdiv i8 %9, 10
%11 = sext i8 %10 to i32
%12 = srem i32 %5, 1000
%13 = sub nsw i32 %12, %7
%14 = trunc i32 %13 to i16
%15 = sdiv i16 %14, 100
%16 = sext i16 %15 to i32
%17 = srem i32 %5, 10000
%18 = sub nsw i32 %17, %12
%19 = trunc i32 %18 to i16
%20 = sdiv i16 %19, 1000
%21 = sext i16 %20 to i32
%22 = srem i32 %5, 100000
%23 = sub nsw i32 %22, %17
%24 = sdiv i32 %23, 10000
%25 = srem i32 %5, 1000000
%26 = sub nsw i32 %25, %22
%27 = sdiv i32 %26, 100000
%28 = srem i32 %5, 10000000
%29 = sub nsw i32 %28, %25
%30 = sdiv i32 %29, 1000000
%31 = srem i32 %5, 100000000
%32 = sub nsw i32 %31, %28
%33 = sdiv i32 %32, 10000000
%34 = srem i32 %5, 1000000000
%35 = sub nsw i32 %34, %31
%36 = sdiv i32 %35, 100000000
%37 = sext i32 %5 to i64
%38 = sext i32 %34 to i64
%39 = sub nsw i64 %37, %38
%40 = sdiv i64 %39, 1000000000
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %6, 0
br i1 %42, label %45, label %43
43: ; preds = %0
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %6)
br label %45
45: ; preds = %43, %0
%46 = add nsw i32 %8, 9
%47 = icmp ult i32 %46, 19
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %11)
br label %50
50: ; preds = %48, %45
%51 = add nsw i32 %13, 99
%52 = icmp ult i32 %51, 199
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %16)
br label %55
55: ; preds = %53, %50
%56 = add nsw i32 %18, 999
%57 = icmp ult i32 %56, 1999
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %21)
br label %60
60: ; preds = %58, %55
%61 = add nsw i32 %23, 9999
%62 = icmp ult i32 %61, 19999
br i1 %62, label %65, label %63
63: ; preds = %60
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %24)
br label %65
65: ; preds = %63, %60
%66 = add nsw i32 %26, 99999
%67 = icmp ult i32 %66, 199999
br i1 %67, label %70, label %68
68: ; preds = %65
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %27)
br label %70
70: ; preds = %68, %65
%71 = add nsw i32 %29, 999999
%72 = icmp ult i32 %71, 1999999
br i1 %72, label %75, label %73
73: ; preds = %70
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %30)
br label %75
75: ; preds = %73, %70
%76 = add nsw i32 %32, 9999999
%77 = icmp ult i32 %76, 19999999
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %33)
br label %80
80: ; preds = %78, %75
%81 = add nsw i32 %35, 99999999
%82 = icmp ult i32 %81, 199999999
br i1 %82, label %85, label %83
83: ; preds = %80
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %36)
br label %85
85: ; preds = %83, %80
%86 = icmp eq i32 %41, 0
br i1 %86, label %89, label %87
87: ; preds = %85
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %41)
br label %89
89: ; preds = %87, %85
%90 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
ret i32 0
}