#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*/ dolower(int, float);
int /*<<< orphan*/ doupper(int /*<<< orphan*/, int);
float calldoupper(int x, char y, float f, int a, int b, char *c, int *d,
                  char e) {
  doupper(dolower(a + b, calldoupper(x, 'c', x * 0.03f, 0xffffffff, 234, "asdf",
                                     &x, 'e')),
          3);
  f = (float)(x / (int)y);
  return f;
}


x86 assembly (clang, -O0):
<calldoupper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %sil,%al
mov    0x10(%rbp),%sil
mov    %edi,-0x4(%rbp)
mov    %al,-0x5(%rbp)
movss  %xmm0,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x4(%rbp),%edi
cvtsi2ssl -0x4(%rbp),%xmm0
movss  0xe8f(%rip),%xmm1
mulss  %xmm1,%xmm0
mov    $0x63,%esi
mov    $0xffffffff,%edx
mov    $0xea,%ecx
lea    0xe79(%rip),%r8
lea    -0x4(%rbp),%r9
movl   $0x65,(%rsp)
call   1040 <calldoupper@plt>
mov    -0x2c(%rbp),%edi
call   1030 <dolower@plt>
mov    %eax,%edi
mov    $0x3,%esi
call   1050 <doupper@plt>
mov    -0x4(%rbp),%eax
movsbl -0x5(%rbp),%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calldoupper>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %esi,%r14d
mov    %edi,%ebp
lea    (%rdx,%rcx,1),%ebx
movl   $0x0,(%rsp)
mov    $0x63,%esi
mov    $0xffffffff,%edx
mov    $0xea,%ecx
call   1040 <calldoupper@plt>
mov    %ebx,%edi
call   1030 <dolower@plt>
mov    %eax,%edi
mov    $0x3,%esi
call   1050 <doupper@plt>
mov    %ebp,%eax
cltd
idiv   %r14d
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"asdf\00"
define float @calldoupper(i32 %0, i8 signext %1, float %2, i32 %3, i32 %4, i8* %5, i32* %6, i8 signext %7) {
%9 = alloca i32
%10 = alloca i8
%11 = alloca float
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i32*
%16 = alloca i8
store i32 %0, i32* %9
store i8 %1, i8* %10
store float %2, float* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i8* %5, i8** %14
store i32* %6, i32** %15
store i8 %7, i8* %16
%17 = load i32, i32* %12
%18 = load i32, i32* %13
%19 = add nsw i32 %17, %18
%20 = load i32, i32* %9
%21 = load i32, i32* %9
%22 = sitofp i32 %21 to float
%23 = fmul float %22, 0x3F9EB851E0000000
%24 = call float @calldoupper(i32 %20, i8 signext 99, float %23, i32 -1, i32 234, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %9, i8 signext 101)
%25 = call i32 @dolower(i32 %19, float %24)
%26 = call i32 @doupper(i32 %25, i32 3)
%27 = load i32, i32* %9
%28 = load i8, i8* %10
%29 = sext i8 %28 to i32
%30 = sdiv i32 %27, %29
%31 = sitofp i32 %30 to float
store float %31, float* %11
%32 = load float, float* %11
ret float %32
}

LLVM IR (-O2):
define float @calldoupper(i32 %0, i8 signext %1, float %2, i32 %3, i32 %4, i8* nocapture readnone %5, i32* nocapture readnone %6, i8 signext %7) {
%9 = add nsw i32 %4, %3
%10 = tail call float @calldoupper(i32 %0, i8 signext 99, float undef, i32 -1, i32 234, i8* undef, i32* undef, i8 signext undef)
%11 = tail call i32 @dolower(i32 %9, float %10)
%12 = tail call i32 @doupper(i32 %11, i32 3)
%13 = sext i8 %1 to i32
%14 = sdiv i32 %0, %13
%15 = sitofp i32 %14 to float
ret float %15
}