#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 *, float, float);
int main(void) {
  float e = 2.0;
  float f = 0.5;
  float *g = NULL;
  float *h = NULL;
  float *i = NULL;
  float **v = NULL;
  float **w = NULL;
  int j;
  v = &g;
  w = &h;
  *v = &e;
  *w = &f;
  i = *v;
  for (j = 0; j < **w; j++) {
    *i = -*i;
  }
  **w = -**v;
  printf("\nE = %f; F = %f; \n", e, f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xedd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xecc(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
lea    -0x8(%rbp),%rcx
mov    %rcx,(%rax)
mov    -0x38(%rbp),%rax
lea    -0xc(%rbp),%rcx
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x3c(%rbp)
cvtsi2ssl -0x3c(%rbp),%xmm1
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
movss  (%rax),%xmm0
ucomiss %xmm1,%xmm0
jbe    11dd <main+0xcd>
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1199 <main+0x89>
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
movss  (%rax),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
movss  %xmm0,(%rax)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
lea    0xdf7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
movss  0xee0(%rip),%xmm0
movss  0xedc(%rip),%xmm1
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"\0AE = %f; F = %f; \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca float**
%8 = alloca float**
%9 = alloca i32
store i32 0, i32* %1
store float 2.000000e+00, float* %2
store float 5.000000e-01, float* %3
store float* null, float** %4
store float* null, float** %5
store float* null, float** %6
store float** null, float*** %7
store float** null, float*** %8
store float** %4, float*** %7
store float** %5, float*** %8
%10 = load float**, float*** %7
store float* %2, float** %10
%11 = load float**, float*** %8
store float* %3, float** %11
%12 = load float**, float*** %7
%13 = load float*, float** %12
store float* %13, float** %6
store i32 0, i32* %9
br label %14
14: ; preds = %26, %0
%15 = load i32, i32* %9
%16 = sitofp i32 %15 to float
%17 = load float**, float*** %8
%18 = load float*, float** %17
%19 = load float, float* %18
%20 = fcmp olt float %16, %19
br i1 %20, label %21, label %29
21: ; preds = %14
%22 = load float*, float** %6
%23 = load float, float* %22
%24 = fneg float %23
%25 = load float*, float** %6
store float %24, float* %25
br label %26
26: ; preds = %21
%27 = load i32, i32* %9
%28 = add nsw i32 %27, 1
store i32 %28, i32* %9
br label %14
29: ; preds = %14
%30 = load float**, float*** %7
%31 = load float*, float** %30
%32 = load float, float* %31
%33 = fneg float %32
%34 = load float**, float*** %8
%35 = load float*, float** %34
store float %33, float* %35
%36 = load float, float* %2
%37 = load float, float* %3
%38 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), float %36, float %37)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"\0AE = %f; F = %f; \0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), float -2.000000e+00, float 2.000000e+00)
ret i32 0
}