#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*/ fn1();
int fn3();
int fn4(int, int);
int expr(int a, int b, int c, int d, float fa, float fb, float fc) {
  int i, j, k, l;
  float fi = 1.0, fj = 2.0, fk = 3.0, fl = 4.0;
  fi = 1.2 * fi + -fj * (fl - fk * fn3());
  fi = -fn3() - (-(-(4)));
  fi = !fn3() - (!(!(4)));
  i = !fn1();
  i = 1 < 2;
  i = 1 > 2;
  i = 1 >= 2;
  i = 1 <= 2;
  i = 1 != 2;
  i = 1 == 2;
  i = fn4(1 + 3 * 4 * fn4(2, 3), 3);
  return 1;
}


x86 assembly (clang, -O0):
<expr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
movss  %xmm2,-0x1c(%rbp)
movss  0xeb9(%rip),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  0xea8(%rip),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  0xe97(%rip),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  0xe86(%rip),%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movss  -0x34(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
mov    $0x0,%al
call   1040 <fn3@plt>
movss  -0x54(%rbp),%xmm2
movss  -0x50(%rbp),%xmm3
movss  -0x4c(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
cvtsi2ss %eax,%xmm4
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm4,%xmm2
addss  %xmm3,%xmm2
mulss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xdfc(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
mov    $0x0,%al
call   1040 <fn3@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
sub    $0x4,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x30(%rbp)
mov    $0x0,%al
call   1040 <fn3@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x30(%rbp)
mov    $0x0,%al
call   1030 <fn1@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x20(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x0,-0x20(%rbp)
mov    $0x2,%edi
mov    $0x3,%esi
call   1050 <fn4@plt>
imul   $0xc,%eax,%edi
add    $0x1,%edi
mov    $0x3,%esi
call   1050 <fn4@plt>
mov    %eax,-0x20(%rbp)
mov    $0x1,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<expr>:
push   %rax
xor    %eax,%eax
call   1040 <fn3@plt>
xor    %eax,%eax
call   1040 <fn3@plt>
xor    %eax,%eax
call   1040 <fn3@plt>
xor    %eax,%eax
call   1030 <fn1@plt>
mov    $0x2,%edi
mov    $0x3,%esi
call   1050 <fn4@plt>
shl    $0x2,%eax
lea    (%rax,%rax,2),%edi
or     $0x1,%edi
mov    $0x3,%esi
call   1050 <fn4@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @expr(i32 %0, i32 %1, i32 %2, i32 %3, float %4, float %5, float %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store float %4, float* %12
store float %5, float* %13
store float %6, float* %14
store float 1.000000e+00, float* %19
store float 2.000000e+00, float* %20
store float 3.000000e+00, float* %21
store float 4.000000e+00, float* %22
%23 = load float, float* %19
%24 = fpext float %23 to double
%25 = load float, float* %20
%26 = fneg float %25
%27 = load float, float* %22
%28 = load float, float* %21
%29 = call i32 (...) @fn3()
%30 = sitofp i32 %29 to float
%31 = fneg float %28
%32 = call float @llvm.fmuladd.f32(float %31, float %30, float %27)
%33 = fmul float %26, %32
%34 = fpext float %33 to double
%35 = call double @llvm.fmuladd.f64(double 1.200000e+00, double %24, double %34)
%36 = fptrunc double %35 to float
store float %36, float* %19
%37 = call i32 (...) @fn3()
%38 = sub nsw i32 0, %37
%39 = sub nsw i32 %38, 4
%40 = sitofp i32 %39 to float
store float %40, float* %19
%41 = call i32 (...) @fn3()
%42 = icmp ne i32 %41, 0
%43 = xor i1 %42, true
%44 = zext i1 %43 to i32
%45 = sub nsw i32 %44, 1
%46 = sitofp i32 %45 to float
store float %46, float* %19
%47 = call i32 (...) @fn1()
%48 = icmp ne i32 %47, 0
%49 = xor i1 %48, true
%50 = zext i1 %49 to i32
store i32 %50, i32* %15
store i32 1, i32* %15
store i32 0, i32* %15
store i32 0, i32* %15
store i32 1, i32* %15
store i32 1, i32* %15
store i32 0, i32* %15
%51 = call i32 @fn4(i32 2, i32 3)
%52 = mul nsw i32 12, %51
%53 = add nsw i32 1, %52
%54 = call i32 @fn4(i32 %53, i32 3)
store i32 %54, i32* %15
ret i32 1
}

LLVM IR (-O2):
define i32 @expr(i32 %0, i32 %1, i32 %2, i32 %3, float %4, float %5, float %6) {
%8 = tail call i32 (...) @fn3()
%9 = tail call i32 (...) @fn3()
%10 = tail call i32 (...) @fn3()
%11 = tail call i32 (...) @fn1()
%12 = tail call i32 @fn4(i32 2, i32 3)
%13 = mul nsw i32 %12, 12
%14 = or i32 %13, 1
%15 = tail call i32 @fn4(i32 %14, i32 3)
ret i32 1
}