#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 *, ...);
main() {
  enum boolean { NO, YES };
  long const con = 9293;
  printf("NO is an enum constant, and its value is %d", NO);
  printf(
      "\nValue of this long int constant is %li - It is a read only variable",
      con);
  printf("\nThis line is a string "
         "constant");
  printf(
      "\nDecimal value %d is represented as \'\\37\' in octal number system ",
      '\37');
  printf(
      "\nDecimal value %d is represented as \'\\x1F\' in hexadecimal number \n",
      '\x1F');
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x244d,-0x8(%rbp)
lea    0xed9(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x244d,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf39(%rip),%rdi
mov    $0x1f,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
mov    $0x1f,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x244d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf48(%rip),%rdi
mov    $0x1f,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf77(%rip),%rdi
mov    $0x1f,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [44 x i8] c"NO is an enum constant, and its value is %d\00"
@.str.1 = [69 x i8] c"\0AValue of this long int constant is %li - It is a read only variable\00"
@.str.2 = [32 x i8] c"\0AThis line is a string constant\00"
@.str.3 = [66 x i8] c"\0ADecimal value %d is represented as '\\37' in octal number system \00"
@.str.4 = [67 x i8] c"\0ADecimal value %d is represented as '\\x1F' in hexadecimal number \0A\00"
define i32 @main() {
%1 = alloca i64
store i64 9293, i64* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0), i64 9293)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0), i32 31)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i32 31)
ret i32 0
}

LLVM IR (-O2):
@.str = [44 x i8] c"NO is an enum constant, and its value is %d\00"
@.str.1 = [69 x i8] c"\0AValue of this long int constant is %li - It is a read only variable\00"
@.str.2 = [32 x i8] c"\0AThis line is a string constant\00"
@.str.3 = [66 x i8] c"\0ADecimal value %d is represented as '\\37' in octal number system \00"
@.str.4 = [67 x i8] c"\0ADecimal value %d is represented as '\\x1F' in hexadecimal number \0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0), i64 9293)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0), i32 31)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i32 31)
ret i32 0
}