#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) {
  int x = -2;
  x <<= 27;
  printf("Your x value is:%d.\n", x);
  printf("The value of data:%d.\n", x >> 27);
  float a = 1.3;
  double b = 2.2;
  printf("The value of a:%f.\n", a);
  printf("The value of b:%lf.\n", b);
  if (a == (float)1.3)
    printf("a == 1.3\n");
  else
    printf("not equal\n");
  if (b == 2.2)
    printf("b == 2.2\n");
  else
    printf("not equal\n");
  struct node {
    int data;
    char ch;
  } t;
  printf("t.data is:%d, t.ch is:%c.\n", t.data, t.ch);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xfffffffe,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x1b,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
sar    $0x1b,%esi
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xea4(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movsd  0xe9f(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xebe(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
lea    0xebf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
movss  0xe5b(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    11c7 <main+0xb7>
jp     11c7 <main+0xb7>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d5 <main+0xc5>
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  0xe26(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1205 <main+0xf5>
jp     1205 <main+0xf5>
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1213 <main+0x103>
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%esi
movsbl -0x1c(%rbp),%edx
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0xf0000000,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0xfffffffe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeee(%rip),%rdi
movsd  0xeaa(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeec(%rip),%rdi
movsd  0xe9c(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xf03(%rip),%rdi
call   1030 <puts@plt>
lea    0xed3(%rip),%rdi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.node = type { i32, i8 }
@.str = [21 x i8] c"Your x value is:%d.\0A\00"
@.str.1 = [23 x i8] c"The value of data:%d.\0A\00"
@.str.2 = [20 x i8] c"The value of a:%f.\0A\00"
@.str.3 = [21 x i8] c"The value of b:%lf.\0A\00"
@.str.4 = [10 x i8] c"a == 1.3\0A\00"
@.str.5 = [11 x i8] c"not equal\0A\00"
@.str.6 = [10 x i8] c"b == 2.2\0A\00"
@.str.7 = [27 x i8] c"t.data is:%d, t.ch is:%c.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca double
%5 = alloca %struct.node
store i32 0, i32* %1
store i32 -2, i32* %2
%6 = load i32, i32* %2
%7 = shl i32 %6, 27
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = load i32, i32* %2
%11 = ashr i32 %10, 27
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %11)
store float 0x3FF4CCCCC0000000, float* %3
store double 2.200000e+00, double* %4
%13 = load float, float* %3
%14 = fpext float %13 to double
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), double %14)
%16 = load double, double* %4
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), double %16)
%18 = load float, float* %3
%19 = fcmp oeq float %18, 0x3FF4CCCCC0000000
br i1 %19, label %20, label %22
20: ; preds = %0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %24
22: ; preds = %0
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %24
24: ; preds = %22, %20
%25 = load double, double* %4
%26 = fcmp oeq double %25, 2.200000e+00
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %31
29: ; preds = %24
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %31
31: ; preds = %29, %27
%32 = getelementptr inbounds %struct.node, %struct.node* %5, i32 0, i32 0
%33 = load i32, i32* %32
%34 = getelementptr inbounds %struct.node, %struct.node* %5, i32 0, i32 1
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %33, i32 %36)
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"Your x value is:%d.\0A\00"
@.str.1 = [23 x i8] c"The value of data:%d.\0A\00"
@.str.2 = [20 x i8] c"The value of a:%f.\0A\00"
@.str.3 = [21 x i8] c"The value of b:%lf.\0A\00"
@.str.7 = [27 x i8] c"t.data is:%d, t.ch is:%c.\0A\00"
@str = [9 x i8] c"a == 1.3\00"
@str.8 = [9 x i8] c"b == 2.2\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 -268435456)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 -2)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), double 0x3FF4CCCCC0000000)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), double 2.200000e+00)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.8, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 undef, i32 0)
ret i32 0
}