#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(void) {
  printf("Integer Literal(Decimal) %d = %d\n", 123, 123);
  printf("Integer Literal(Octal) %d = 0%o\n", 0173, 0173);
  printf("Integer Literal(Hexadecimal) %d = 0x%x\n", 0x7b, 0x7b);
  printf("Float Literal %f = %f\n", 0.00025, 0.00025);
  printf("Float Literal(Scientific notation) %f = %e\n", 2.5e-4, 2.5e-4);
  printf("Char Literal %c = %c\n", 'A', 'A');
  printf("Char Literal(Byte value) %c = 0x%x\n", 0x41, 0x41);
  printf("String Literal %s\n", "ABC");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
mov    $0x7b,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x7b,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x7b,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
movsd  0xe93(%rip),%xmm1
movaps %xmm1,%xmm0
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
movsd  0xe7a(%rip),%xmm1
movaps %xmm1,%xmm0
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0x41,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
mov    $0x41,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
lea    0xf3b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
mov    $0x7b,%esi
mov    $0x7b,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x7b,%esi
mov    $0x7b,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x7b,%esi
mov    $0x7b,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
movsd  0xe98(%rip),%xmm0
movaps %xmm0,%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
movsd  0xe7f(%rip),%xmm0
movaps %xmm0,%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
mov    $0x41,%esi
mov    $0x41,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x41,%esi
mov    $0x41,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
lea    0xf3a(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [34 x i8] c"Integer Literal(Decimal) %d = %d\0A\00"
@.str.1 = [33 x i8] c"Integer Literal(Octal) %d = 0%o\0A\00"
@.str.2 = [40 x i8] c"Integer Literal(Hexadecimal) %d = 0x%x\0A\00"
@.str.3 = [23 x i8] c"Float Literal %f = %f\0A\00"
@.str.4 = [44 x i8] c"Float Literal(Scientific notation) %f = %e\0A\00"
@.str.5 = [22 x i8] c"Char Literal %c = %c\0A\00"
@.str.6 = [36 x i8] c"Char Literal(Byte value) %c = 0x%x\0A\00"
@.str.7 = [19 x i8] c"String Literal %s\0A\00"
@.str.8 = [4 x i8] c"ABC\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 123, i32 123)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 123, i32 123)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 123, i32 123)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), double 2.500000e-04, double 2.500000e-04)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), double 2.500000e-04, double 2.500000e-04)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 65, i32 65)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i32 65, i32 65)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [34 x i8] c"Integer Literal(Decimal) %d = %d\0A\00"
@.str.1 = [33 x i8] c"Integer Literal(Octal) %d = 0%o\0A\00"
@.str.2 = [40 x i8] c"Integer Literal(Hexadecimal) %d = 0x%x\0A\00"
@.str.3 = [23 x i8] c"Float Literal %f = %f\0A\00"
@.str.4 = [44 x i8] c"Float Literal(Scientific notation) %f = %e\0A\00"
@.str.5 = [22 x i8] c"Char Literal %c = %c\0A\00"
@.str.6 = [36 x i8] c"Char Literal(Byte value) %c = 0x%x\0A\00"
@.str.7 = [19 x i8] c"String Literal %s\0A\00"
@.str.8 = [4 x i8] c"ABC\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 123, i32 123)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 123, i32 123)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 123, i32 123)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), double 2.500000e-04, double 2.500000e-04)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), double 2.500000e-04, double 2.500000e-04)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 65, i32 65)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i32 65, i32 65)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}