#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*/ reverse_number(int);
int main() {
  int count;
  long unsigned int number, original;
  for (count = 1; count <= 5; count++) {
    switch (count) {
    case 1:
      reverse_number(5170984);
      break;
    case 2:
      reverse_number(406567);
      break;
    case 3:
      reverse_number(368750);
      break;
    case 4:
      reverse_number(2369510);
      break;
    case 5:
      reverse_number(2183293);
      break;
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jg     11b2 <main+0xa2>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x4,%eax
ja     119f <main+0x8f>
mov    -0x20(%rbp),%rax
lea    0xeb0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x4ee728,%edi
call   1030 <reverse_number@plt>
jmp    119f <main+0x8f>
mov    $0x63427,%edi
call   1030 <reverse_number@plt>
jmp    119f <main+0x8f>
mov    $0x5a06e,%edi
call   1030 <reverse_number@plt>
jmp    119f <main+0x8f>
mov    $0x2427e6,%edi
call   1030 <reverse_number@plt>
jmp    119f <main+0x8f>
mov    $0x21507d,%edi
call   1030 <reverse_number@plt>
jmp    11a4 <main+0x94>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x4ee728,%edi
call   1030 <reverse_number@plt>
mov    $0x63427,%edi
call   1030 <reverse_number@plt>
mov    $0x5a06e,%edi
call   1030 <reverse_number@plt>
mov    $0x2427e6,%edi
call   1030 <reverse_number@plt>
mov    $0x21507d,%edi
call   1030 <reverse_number@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
%4 = alloca i64
store i32 0, i32* %1
store i32 1, i32* %2
br label %5
5: ; preds = %21, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 5
br i1 %7, label %8, label %24
8: ; preds = %5
%9 = load i32, i32* %2
switch i32 %9, label %20 [
i32 1, label %10
i32 2, label %12
i32 3, label %14
i32 4, label %16
i32 5, label %18
]
10: ; preds = %8
%11 = call i32 @reverse_number(i32 5170984)
br label %20
12: ; preds = %8
%13 = call i32 @reverse_number(i32 406567)
br label %20
14: ; preds = %8
%15 = call i32 @reverse_number(i32 368750)
br label %20
16: ; preds = %8
%17 = call i32 @reverse_number(i32 2369510)
br label %20
18: ; preds = %8
%19 = call i32 @reverse_number(i32 2183293)
br label %20
20: ; preds = %8, %18, %16, %14, %12, %10
br label %21
21: ; preds = %20
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %5
24: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @reverse_number(i32 5170984)
%2 = tail call i32 @reverse_number(i32 406567)
%3 = tail call i32 @reverse_number(i32 368750)
%4 = tail call i32 @reverse_number(i32 2369510)
%5 = tail call i32 @reverse_number(i32 2183293)
ret i32 0
}