#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*/ print_long_binary(int);
int /*<<< orphan*/ print_long_hex(int);
int /*<<< orphan*/ printf(char *);
void print_long_test() {
  printf("============= print_long_test ================\n");
  print_long_hex(0);
  print_long_binary(0);
  print_long_hex(1);
  print_long_binary(1);
  print_long_hex(2);
  print_long_binary(2);
  print_long_hex(4);
  print_long_binary(4);
  print_long_hex(1635780);
  print_long_binary(1635780);
}


x86 assembly (clang, -O0):
<print_long_test>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <print_long_hex@plt>
xor    %edi,%edi
call   1050 <print_long_binary@plt>
mov    $0x1,%edi
call   1040 <print_long_hex@plt>
mov    $0x1,%edi
call   1050 <print_long_binary@plt>
mov    $0x2,%edi
call   1040 <print_long_hex@plt>
mov    $0x2,%edi
call   1050 <print_long_binary@plt>
mov    $0x4,%edi
call   1040 <print_long_hex@plt>
mov    $0x4,%edi
call   1050 <print_long_binary@plt>
mov    $0x18f5c4,%edi
call   1040 <print_long_hex@plt>
mov    $0x18f5c4,%edi
call   1050 <print_long_binary@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_long_test>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <print_long_hex@plt>
xor    %edi,%edi
call   1050 <print_long_binary@plt>
mov    $0x1,%edi
call   1040 <print_long_hex@plt>
mov    $0x1,%edi
call   1050 <print_long_binary@plt>
mov    $0x2,%edi
call   1040 <print_long_hex@plt>
mov    $0x2,%edi
call   1050 <print_long_binary@plt>
mov    $0x4,%edi
call   1040 <print_long_hex@plt>
mov    $0x4,%edi
call   1050 <print_long_binary@plt>
mov    $0x18f5c4,%edi
call   1040 <print_long_hex@plt>
mov    $0x18f5c4,%edi
pop    %rax
jmp    1050 <print_long_binary@plt>

LLVM IR (-O0):
@.str = [48 x i8] c"============= print_long_test ================\0A\00"
define void @print_long_test() {
%1 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @print_long_hex(i32 0)
%3 = call i32 @print_long_binary(i32 0)
%4 = call i32 @print_long_hex(i32 1)
%5 = call i32 @print_long_binary(i32 1)
%6 = call i32 @print_long_hex(i32 2)
%7 = call i32 @print_long_binary(i32 2)
%8 = call i32 @print_long_hex(i32 4)
%9 = call i32 @print_long_binary(i32 4)
%10 = call i32 @print_long_hex(i32 1635780)
%11 = call i32 @print_long_binary(i32 1635780)
ret void
}

LLVM IR (-O2):
@str = [47 x i8] c"============= print_long_test ================\00"
define void @print_long_test() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @print_long_hex(i32 0)
%3 = tail call i32 @print_long_binary(i32 0)
%4 = tail call i32 @print_long_hex(i32 1)
%5 = tail call i32 @print_long_binary(i32 1)
%6 = tail call i32 @print_long_hex(i32 2)
%7 = tail call i32 @print_long_binary(i32 2)
%8 = tail call i32 @print_long_hex(i32 4)
%9 = tail call i32 @print_long_binary(i32 4)
%10 = tail call i32 @print_long_hex(i32 1635780)
%11 = tail call i32 @print_long_binary(i32 1635780)
ret void
}