#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 main() {
  int num1 = 5170984, num2 = 406567, num3 = 368750, num4 = 2369510,
      num5 = 2183293, i = 0, res = 0;
  printf("%d - ", num1);
  while (num1 != 0) {
    res = res * 10 + num1 % 10;
    num1 = num1 / 10;
  }
  printf("%d\n", res);
  res = 0;
  printf("%d - ", num2);
  while (num2 != 0) {
    res = res * 10 + num2 % 10;
    num2 = num2 / 10;
  }
  printf("%d\n", res);
  res = 0;
  printf("%d - ", num3);
  while (num3 != 0) {
    res = res * 10 + num3 % 10;
    num3 = num3 / 10;
  }
  printf("%d\n", res);
  res = 0;
  printf("%d - ", num4);
  while (num4 != 0) {
    res = res * 10 + num4 % 10;
    num4 = num4 / 10;
  }
  printf("%d\n", res);
  res = 0;
  printf("%d - ", num5);
  while (num5 != 0) {
    res = res * 10 + num5 % 10;
    num5 = num5 / 10;
  }
  printf("%d\n", res);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x4ee728,-0x8(%rbp)
movl   $0x63427,-0xc(%rbp)
movl   $0x5a06e,-0x10(%rbp)
movl   $0x2427e6,-0x14(%rbp)
movl   $0x21507d,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%esi
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
je     1196 <main+0x86>
imul   $0xa,-0x20(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x24(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    115f <main+0x4f>
mov    -0x20(%rbp),%esi
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0xc(%rbp),%esi
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
je     11f2 <main+0xe2>
imul   $0xa,-0x20(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x28(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0xc(%rbp)
jmp    11bb <main+0xab>
mov    -0x20(%rbp),%esi
lea    0xe0a(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%esi
lea    0xdee(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
je     124e <main+0x13e>
imul   $0xa,-0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x2c(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
jmp    1217 <main+0x107>
mov    -0x20(%rbp),%esi
lea    0xdae(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x14(%rbp),%esi
lea    0xd92(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
je     12aa <main+0x19a>
imul   $0xa,-0x20(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x30(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x14(%rbp)
jmp    1273 <main+0x163>
mov    -0x20(%rbp),%esi
lea    0xd52(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x18(%rbp),%esi
lea    0xd36(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x18(%rbp)
je     1306 <main+0x1f6>
imul   $0xa,-0x20(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x34(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x18(%rbp)
jmp    12cf <main+0x1bf>
mov    -0x20(%rbp),%esi
lea    0xcf6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%r14
mov    %r14,%rdi
mov    $0x4ee728,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rbx
mov    %rbx,%rdi
mov    $0x4aa05b,%esi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x63427,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xbaea4,%esi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x5a06e,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xe207,%esi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x2427e6,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x26f90,%esi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x21507d,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x3bdf64,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%d - \00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5170984)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 4890715)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 406567)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 765604)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 368750)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 57863)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 2369510)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 159632)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 2183293)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3923812)
ret i32 0
}