#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 main() {
  unsigned long long int n, l, j, i, k, o, e, r, t, h, g;
  k = 0;
  h = 0;
  i = 1;
  o = 5170984;
  e = 406567;
  r = 368750;
  t = 2369510;
  g = 2183293;
  do {
    k = 0;
    h = h + 1;
    switch (h) {
    case 1:
      n = o;
      break;
    case 2:
      n = e;
      break;
    case 3:
      n = r;
      break;
    case 4:
      n = t;
      break;
    case 5:
      n = g;
      break;
    }
    j = n;
    do {
      k = k * 10 + n % 10;
      n = n / 10;
    } while (n != 0);
    printf("%llu - %llu ", j, k);
    printf("\n");
  } while (h < 5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x58(%rbp)
movq   $0x1,-0x28(%rbp)
movq   $0x4ee728,-0x38(%rbp)
movq   $0x63427,-0x40(%rbp)
movq   $0x5a06e,-0x48(%rbp)
movq   $0x2427e6,-0x50(%rbp)
movq   $0x21507d,-0x60(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x68(%rbp)
sub    $0x4,%rax
ja     11d9 <main+0xc9>
mov    -0x68(%rbp),%rax
lea    0xe6c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x38(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    11d9 <main+0xc9>
mov    -0x40(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    11d9 <main+0xc9>
mov    -0x48(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    11d9 <main+0xc9>
mov    -0x50(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    11d9 <main+0xc9>
mov    -0x60(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
imul   $0xa,-0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x10(%rbp),%rax
mov    $0xa,%ecx
xor    %edx,%edx
div    %rcx
mov    -0x70(%rbp),%rax
add    %rdx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    $0xa,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11e1 <main+0xd1>
mov    -0x20(%rbp),%rsi
mov    -0x30(%rbp),%rdx
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpq   $0x5,-0x58(%rbp)
jb     115f <main+0x4f>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    $0x4ee728,%esi
mov    $0x4aa05b,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x63427,%esi
mov    $0xbaea4,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x5a06e,%esi
mov    $0xe207,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x2427e6,%esi
mov    $0x26f90,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x21507d,%esi
mov    $0x3bdf64,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%llu - %llu \00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
store i32 0, i32* %1
store i64 0, i64* %6
store i64 0, i64* %11
store i64 1, i64* %5
store i64 5170984, i64* %7
store i64 406567, i64* %8
store i64 368750, i64* %9
store i64 2369510, i64* %10
store i64 2183293, i64* %12
br label %13
13: ; preds = %45, %0
store i64 0, i64* %6
%14 = load i64, i64* %11
%15 = add i64 %14, 1
store i64 %15, i64* %11
%16 = load i64, i64* %11
switch i64 %16, label %27 [
i64 1, label %17
i64 2, label %19
i64 3, label %21
i64 4, label %23
i64 5, label %25
]
17: ; preds = %13
%18 = load i64, i64* %7
store i64 %18, i64* %2
br label %27
19: ; preds = %13
%20 = load i64, i64* %8
store i64 %20, i64* %2
br label %27
21: ; preds = %13
%22 = load i64, i64* %9
store i64 %22, i64* %2
br label %27
23: ; preds = %13
%24 = load i64, i64* %10
store i64 %24, i64* %2
br label %27
25: ; preds = %13
%26 = load i64, i64* %12
store i64 %26, i64* %2
br label %27
27: ; preds = %13, %25, %23, %21, %19, %17
%28 = load i64, i64* %2
store i64 %28, i64* %4
br label %29
29: ; preds = %37, %27
%30 = load i64, i64* %6
%31 = mul i64 %30, 10
%32 = load i64, i64* %2
%33 = urem i64 %32, 10
%34 = add i64 %31, %33
store i64 %34, i64* %6
%35 = load i64, i64* %2
%36 = udiv i64 %35, 10
store i64 %36, i64* %2
br label %37
37: ; preds = %29
%38 = load i64, i64* %2
%39 = icmp ne i64 %38, 0
br i1 %39, label %29, label %40
40: ; preds = %37
%41 = load i64, i64* %4
%42 = load i64, i64* %6
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64 %41, i64 %42)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %45
45: ; preds = %40
%46 = load i64, i64* %11
%47 = icmp ult i64 %46, 5
br i1 %47, label %13, label %48
48: ; preds = %45
ret i32 0
}

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