#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  float f = -317.125;
  int i = -1013018624;
  printf("valore di f: %f\nValore di i: %d\n", f, i);
  printf("Indirizzo di f: %p\nIndirizzo di i: %p\n", (void *)&f, (void *)&i);
  if (i == f)
    printf("i and f are equals\n");
  else
    printf("i and f are not equals\n");
  float *pf = &f;
  int *pi = &i;
  printf("*pf = %p\n*pi = %p\n", (void *)pf, (void *)pi);
  if (*pi == *pf)
    printf("*pi and *ipf are equals\n");
  else
    printf("*pi and *pf are not equals\n");
  void *vpf = &f;
  void *vpi = &f;
  printf("*vpf = %p\n*vpi = %p\n", vpf, vpi);
  unsigned int *ipf = (unsigned int *)vpf;
  unsigned int *ipi = (unsigned int *)vpi;
  if (*ipi == *ipf) {
    printf("*ipi and *ipf are equals\n");
    printf("valore di *ipf: %u\nValore di *ipi: %u\n", *ipf, *ipi);
    printf("valore di *ipf: %08x (hex)\nValore di *ipi: %08x (hex)\n", *ipf,
           *ipi);
  } else
    printf("*ipi and *ipf are not equals\n");
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movl   $0xc39e9000,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0xc(%rbp),%esi
lea    0xebe(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cvtsi2ssl -0xc(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jne    118b <main+0x7b>
jp     118b <main+0x7b>
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1199 <main+0x89>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0xc(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
mov    -0x18(%rbp),%rax
ucomiss (%rax),%xmm0
jne    11ed <main+0xdd>
jp     11ed <main+0xdd>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11fb <main+0xeb>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    (%rax),%eax
mov    -0x38(%rbp),%rcx
cmp    (%rcx),%eax
jne    128a <main+0x17a>
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
mov    -0x40(%rbp),%rax
mov    (%rax),%edx
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
mov    -0x40(%rbp),%rax
mov    (%rax),%edx
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1298 <main+0x188>
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d41(%rip),%rax
mov    (%rax),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
movl   $0xc39e9000,(%rsp)
movl   $0xc39e9000,0x4(%rsp)
c3
lea    0xece(%rip),%rdi
movsd  0xebe(%rip),%xmm0
mov    $0xc39e9000,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xed4(%rip),%rdi
mov    %rsp,%rbx
lea    0x4(%rsp),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ssl 0x4(%rsp),%xmm0
ucomiss (%rsp),%xmm0
lea    0xf58(%rip),%rax
lea    0xfb4(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
call   1030 <puts@plt>
lea    0xeb7(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ssl 0x4(%rsp),%xmm0
ucomiss (%rsp),%xmm0
lea    0xf33(%rip),%rax
lea    0xf60(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
call   1030 <puts@plt>
lea    0xe8e(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%edx
lea    0xe80(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%edx
lea    0xe94(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [33 x i8] c"valore di f: %f\0AValore di i: %d\0A\00"
@.str.1 = [39 x i8] c"Indirizzo di f: %p\0AIndirizzo di i: %p\0A\00"
@.str.2 = [20 x i8] c"i and f are equals\0A\00"
@.str.3 = [24 x i8] c"i and f are not equals\0A\00"
@.str.4 = [19 x i8] c"*pf = %p\0A*pi = %p\0A\00"
@.str.5 = [25 x i8] c"*pi and *ipf are equals\0A\00"
@.str.6 = [28 x i8] c"*pi and *pf are not equals\0A\00"
@.str.7 = [21 x i8] c"*vpf = %p\0A*vpi = %p\0A\00"
@.str.8 = [26 x i8] c"*ipi and *ipf are equals\0A\00"
@.str.9 = [39 x i8] c"valore di *ipf: %u\0AValore di *ipi: %u\0A\00"
@.str.10 = [55 x i8] c"valore di *ipf: %08x (hex)\0AValore di *ipi: %08x (hex)\0A\00"
@.str.11 = [30 x i8] c"*ipi and *ipf are not equals\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
%4 = alloca float*
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32*
store i32 0, i32* %1
store float -3.171250e+02, float* %2
store i32 -1013018624, i32* %3
%10 = load float, float* %2
%11 = fpext float %10 to double
%12 = load i32, i32* %3
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), double %11, i32 %12)
%14 = bitcast float* %2 to i8*
%15 = bitcast i32* %3 to i8*
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %14, i8* %15)
%17 = load i32, i32* %3
%18 = sitofp i32 %17 to float
%19 = load float, float* %2
%20 = fcmp oeq float %18, %19
br i1 %20, label %21, label %23
21: ; preds = %0
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %25
23: ; preds = %0
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %25
25: ; preds = %23, %21
store float* %2, float** %4
store i32* %3, i32** %5
%26 = load float*, float** %4
%27 = bitcast float* %26 to i8*
%28 = load i32*, i32** %5
%29 = bitcast i32* %28 to i8*
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %27, i8* %29)
%31 = load i32*, i32** %5
%32 = load i32, i32* %31
%33 = sitofp i32 %32 to float
%34 = load float*, float** %4
%35 = load float, float* %34
%36 = fcmp oeq float %33, %35
br i1 %36, label %37, label %39
37: ; preds = %25
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %41
39: ; preds = %25
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
br label %41
41: ; preds = %39, %37
%42 = bitcast float* %2 to i8*
store i8* %42, i8** %6
%43 = bitcast float* %2 to i8*
store i8* %43, i8** %7
%44 = load i8*, i8** %6
%45 = load i8*, i8** %7
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i8* %44, i8* %45)
%47 = load i8*, i8** %6
%48 = bitcast i8* %47 to i32*
store i32* %48, i32** %8
%49 = load i8*, i8** %7
%50 = bitcast i8* %49 to i32*
store i32* %50, i32** %9
%51 = load i32*, i32** %9
%52 = load i32, i32* %51
%53 = load i32*, i32** %8
%54 = load i32, i32* %53
%55 = icmp eq i32 %52, %54
br i1 %55, label %56, label %68
56: ; preds = %41
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
%58 = load i32*, i32** %8
%59 = load i32, i32* %58
%60 = load i32*, i32** %9
%61 = load i32, i32* %60
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %59, i32 %61)
%63 = load i32*, i32** %8
%64 = load i32, i32* %63
%65 = load i32*, i32** %9
%66 = load i32, i32* %65
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0), i32 %64, i32 %66)
br label %70
68: ; preds = %41
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
br label %70
70: ; preds = %68, %56
%71 = load i32, i32* @EXIT_SUCCESS
ret i32 %71
}

LLVM IR (-O2):
@.str = [33 x i8] c"valore di f: %f\0AValore di i: %d\0A\00"
@.str.1 = [39 x i8] c"Indirizzo di f: %p\0AIndirizzo di i: %p\0A\00"
@.str.4 = [19 x i8] c"*pf = %p\0A*pi = %p\0A\00"
@.str.7 = [21 x i8] c"*vpf = %p\0A*vpi = %p\0A\00"
@.str.9 = [39 x i8] c"valore di *ipf: %u\0AValore di *ipi: %u\0A\00"
@.str.10 = [55 x i8] c"valore di *ipf: %08x (hex)\0AValore di *ipi: %08x (hex)\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [23 x i8] c"i and f are not equals\00"
@str.12 = [27 x i8] c"*pi and *pf are not equals\00"
@str.13 = [25 x i8] c"*ipi and *ipf are equals\00"
@str.14 = [24 x i8] c"*pi and *ipf are equals\00"
@str.15 = [19 x i8] c"i and f are equals\00"
define i32 @main() {
%1 = alloca float
%2 = alloca i32
%3 = bitcast float* %1 to i8*
store float -3.171250e+02, float* %1
%4 = bitcast i32* %2 to i8*
store i32 -1013018624, i32* %2
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), double -3.171250e+02, i32 -1013018624)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), float* %1, i32* %2)
%7 = load i32, i32* %2
%8 = sitofp i32 %7 to float
%9 = load float, float* %1
%10 = fcmp oeq float %9, %8
%11 = select i1 %10, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @str.15, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0)
%12 = call i32 @puts(i8* dereferenceable(1) %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), float* %1, i32* %2)
%14 = load i32, i32* %2
%15 = sitofp i32 %14 to float
%16 = load float, float* %1
%17 = fcmp oeq float %16, %15
%18 = select i1 %17, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @str.14, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @str.12, i64 0, i64 0)
%19 = call i32 @puts(i8* dereferenceable(1) %18)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), float* %1, float* %1)
%21 = bitcast float* %1 to i32*
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.13, i64 0, i64 0))
%23 = load i32, i32* %21
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %23, i32 %23)
%25 = load i32, i32* %21
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0), i32 %25, i32 %25)
%27 = load i32, i32* @EXIT_SUCCESS
ret i32 %27
}