#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*/ memcpy(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, float);
int /*<<< orphan*/ strlen(char *);
void foo(char *bar) {
  float Mi_Flotante = 10.5;
  char c[30];
  printf("Flotante = %f\n", Mi_Flotante);
  foo("La cadena Obsenamente enorme !!! XXXXX");
  memcpy(c, bar, strlen(bar));
  printf("Flotante = %f\n", Mi_Flotante);
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movss  0xeac(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
lea    0xe9f(%rip),%rdi
call   1040 <printf@plt>
lea    0xea2(%rip),%rdi
call   1060 <foo@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    %eax,%edx
call   1050 <memcpy@plt>
movss  -0xc(%rbp),%xmm0
lea    0xe5a(%rip),%rdi
call   1040 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%rbx
lea    0xeb3(%rip),%r14
movss  0xea7(%rip),%xmm0
mov    %r14,%rdi
call   1040 <printf@plt>
lea    0xeab(%rip),%rdi
call   1060 <foo@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rsp,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <memcpy@plt>
mov    %r14,%rdi
movss  0xe73(%rip),%xmm0
call   1040 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Flotante = %f\0A\00"
@.str.1 = [39 x i8] c"La cadena Obsenamente enorme !!! XXXXX\00"
define void @foo(i8* %0) {
%2 = alloca i8*
%3 = alloca float
%4 = alloca [30 x i8]
store i8* %0, i8** %2
store float 1.050000e+01, float* %3
%5 = load float, float* %3
%6 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float %5)
%7 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%8 = load i8*, i8** %2
%9 = load i8*, i8** %2
%10 = call i32 @strlen(i8* %9)
%11 = call i32 @memcpy(i8* %7, i8* %8, i32 %10)
%12 = load float, float* %3
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float %12)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"Flotante = %f\0A\00"
@.str.1 = [39 x i8] c"La cadena Obsenamente enorme !!! XXXXX\00"
define void @foo(i8* %0) {
%2 = alloca [30 x i8]
%3 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float 1.050000e+01)
tail call void @foo(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @strlen(i8* %0)
%6 = call i32 @memcpy(i8* %3, i8* %0, i32 %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), float 1.050000e+01)
ret void
}