#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 */
typedef int int64_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int main(int argc, char *argv[]) {
  int64_t a = 0xA987654321;
  int64_t b = 0x123456789A;
  printf("a = %lld, b = %lld\n", a, b);
  printf("a = 0x%llX, b = 0x%llX\n", a, b);
  printf("Unified >> a = "
         "%ll"
         "d"
         ", b = "
         "%ll"
         "d"
         "\n",
         a, b);
  printf("Unified >> a = "
         "%ll"
         "x"
         ", b = "
         "%ll"
         "x"
         "\n",
         a, b);
  printf("Unified >> a = "
         "%"
         "15"
         "ll"
         "x"
         ", b = "
         "%"
         "15"
         "ll"
         "x"
         "\n",
         a, b);
  printf("Unified >> a = "
         "%"
         "-15"
         "ll"
         "x"
         ", b = "
         "%"
         "-15"
         "ll"
         "x"
         "\n",
         a, b);
  return 316227766;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x87654321,-0x14(%rbp)
movl   $0x3456789a,-0x18(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
mov    $0x12d940b6,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf0b(%rip),%rdi
mov    $0x87654321,%esi
mov    $0x3456789a,%edx
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x87654321,%esi
mov    $0x3456789a,%edx
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x87654321,%esi
mov    $0x3456789a,%edx
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x87654321,%esi
mov    $0x3456789a,%edx
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x87654321,%esi
mov    $0x3456789a,%edx
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x87654321,%esi
mov    $0x3456789a,%edx
call   1030 <printf@plt>
mov    $0x12d940b6,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"a = %lld, b = %lld\0A\00"
@.str.1 = [24 x i8] c"a = 0x%llX, b = 0x%llX\0A\00"
@.str.2 = [31 x i8] c"Unified >> a = %lld, b = %lld\0A\00"
@.str.3 = [31 x i8] c"Unified >> a = %llx, b = %llx\0A\00"
@.str.4 = [35 x i8] c"Unified >> a = %15llx, b = %15llx\0A\00"
@.str.5 = [37 x i8] c"Unified >> a = %-15llx, b = %-15llx\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 -2023406815, i32* %6
store i32 878082202, i32* %7
%8 = load i32, i32* %6
%9 = load i32, i32* %7
%10 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %8, i32 %9)
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %11, i32 %12)
%14 = load i32, i32* %6
%15 = load i32, i32* %7
%16 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %14, i32 %15)
%17 = load i32, i32* %6
%18 = load i32, i32* %7
%19 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 %17, i32 %18)
%20 = load i32, i32* %6
%21 = load i32, i32* %7
%22 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i32 %20, i32 %21)
%23 = load i32, i32* %6
%24 = load i32, i32* %7
%25 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 %23, i32 %24)
ret i32 316227766
}

LLVM IR (-O2):
@.str = [20 x i8] c"a = %lld, b = %lld\0A\00"
@.str.1 = [24 x i8] c"a = 0x%llX, b = 0x%llX\0A\00"
@.str.2 = [31 x i8] c"Unified >> a = %lld, b = %lld\0A\00"
@.str.3 = [31 x i8] c"Unified >> a = %llx, b = %llx\0A\00"
@.str.4 = [35 x i8] c"Unified >> a = %15llx, b = %15llx\0A\00"
@.str.5 = [37 x i8] c"Unified >> a = %-15llx, b = %-15llx\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 -2023406815, i32 878082202)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 -2023406815, i32 878082202)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 -2023406815, i32 878082202)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 -2023406815, i32 878082202)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i32 -2023406815, i32 878082202)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 -2023406815, i32 878082202)
ret i32 316227766
}