#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 expx(int, int);
int identity(int);
float init(int x, int y) {
  int x1 = identity(identity(identity(identity(x))));
  int y1 = identity(identity(identity(identity(y))));
  int x2 = expx(x1, 2);
  int y2 = expx(y1, 2);
  return (x2 + y2);
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x2,%esi
call   1030 <expx@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%edi
mov    $0x2,%esi
call   1030 <expx@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
cvtsi2ss %eax,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%edi
call   1040 <identity@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    $0x2,%esi
call   1030 <expx@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x2,%esi
call   1030 <expx@plt>
add    %ebp,%eax
cvtsi2ss %eax,%xmm0
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define float @init(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%9 = load i32, i32* %3
%10 = call i32 @identity(i32 %9)
%11 = call i32 @identity(i32 %10)
%12 = call i32 @identity(i32 %11)
%13 = call i32 @identity(i32 %12)
store i32 %13, i32* %5
%14 = load i32, i32* %4
%15 = call i32 @identity(i32 %14)
%16 = call i32 @identity(i32 %15)
%17 = call i32 @identity(i32 %16)
%18 = call i32 @identity(i32 %17)
store i32 %18, i32* %6
%19 = load i32, i32* %5
%20 = call i32 @expx(i32 %19, i32 2)
store i32 %20, i32* %7
%21 = load i32, i32* %6
%22 = call i32 @expx(i32 %21, i32 2)
store i32 %22, i32* %8
%23 = load i32, i32* %7
%24 = load i32, i32* %8
%25 = add nsw i32 %23, %24
%26 = sitofp i32 %25 to float
ret float %26
}

LLVM IR (-O2):
define float @init(i32 %0, i32 %1) {
%3 = tail call i32 @identity(i32 %0)
%4 = tail call i32 @identity(i32 %3)
%5 = tail call i32 @identity(i32 %4)
%6 = tail call i32 @identity(i32 %5)
%7 = tail call i32 @identity(i32 %1)
%8 = tail call i32 @identity(i32 %7)
%9 = tail call i32 @identity(i32 %8)
%10 = tail call i32 @identity(i32 %9)
%11 = tail call i32 @expx(i32 %6, i32 2)
%12 = tail call i32 @expx(i32 %10, i32 2)
%13 = add nsw i32 %12, %11
%14 = sitofp i32 %13 to float
ret float %14
}