#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);
void main() {
  printf("The square of x is %d.\n", ((8) * (8)));
  ;
  printf("The square of #x is %d.\n", ((8) * (8)));
  ;
  printf("The square of "
         "8"
         " is %d.\n",
         ((8) * (8)));
  ;
  int x8 = 5;
  int xn = 5;
  printf("\nXNAME(8) = %d\n", x8);
  printf("NNAME(8) = %d\n", xn);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
movl   $0x5,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x5,%esi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"The square of x is %d.\0A\00"
@.str.1 = [25 x i8] c"The square of #x is %d.\0A\00"
@.str.2 = [24 x i8] c"The square of 8 is %d.\0A\00"
@.str.3 = [16 x i8] c"\0AXNAME(8) = %d\0A\00"
@.str.4 = [15 x i8] c"NNAME(8) = %d\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 64)
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 64)
%5 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 64)
store i32 5, i32* %1
store i32 5, i32* %2
%6 = load i32, i32* %1
%7 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %2
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %8)
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"The square of x is %d.\0A\00"
@.str.1 = [25 x i8] c"The square of #x is %d.\0A\00"
@.str.2 = [24 x i8] c"The square of 8 is %d.\0A\00"
@.str.3 = [16 x i8] c"\0AXNAME(8) = %d\0A\00"
@.str.4 = [15 x i8] c"NNAME(8) = %d\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 64)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 64)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 64)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 5)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 5)
ret void
}