#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);
int main() {
  int a = 11;
  int b = 10;
  float c = 10.5;
  float d = 100.5;
  if (a != 11) {
    printf("Algo anda mal a = %d\n", ++a);
  } else {
    printf("Todo bien a = %d\n", ++a);
  };
  if (b != 9) {
    printf("Algo anda mal b = %d\n", --b);
  } else {
    printf("Todo bien b = %d\n", --b);
  };
  if (c != 10.5) {
    printf("Algo anda mal c = %f\n", ++c);
  } else {
    printf("Todo bien c = %f\n", ++c);
  };
  if (d != 99.5) {
    printf("Algo anda mal d = %f\n", --d);
  } else {
    printf("Todo bien d = %f\n", --d);
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xb,-0x8(%rbp)
movl   $0xa,-0xc(%rbp)
movss  0xecf(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xebe(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
cmpl   $0xb,-0x8(%rbp)
je     116f <main+0x5f>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cvtsi2ss %eax,%xmm0
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
jmp    1188 <main+0x78>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cvtsi2ss %eax,%xmm0
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0xc(%rbp)
je     11b0 <main+0xa0>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
cvtsi2ss %eax,%xmm0
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
jmp    11c9 <main+0xb9>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
cvtsi2ss %eax,%xmm0
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe36(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11ef <main+0xdf>
jp     11ef <main+0xdf>
jmp    1212 <main+0x102>
movss  0xe11(%rip),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
jmp    1230 <main+0x120>
movss  0xdee(%rip),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xe5b(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdd7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1256 <main+0x146>
jp     1256 <main+0x146>
jmp    1279 <main+0x169>
movss  0xdae(%rip),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    0xe29(%rip),%rdi
call   1030 <printf@plt>
jmp    1297 <main+0x187>
movss  0xd8b(%rip),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [22 x i8] c"Algo anda mal a = %d\0A\00"
@.str.1 = [18 x i8] c"Todo bien a = %d\0A\00"
@.str.2 = [22 x i8] c"Algo anda mal b = %d\0A\00"
@.str.3 = [18 x i8] c"Todo bien b = %d\0A\00"
@.str.4 = [22 x i8] c"Algo anda mal c = %f\0A\00"
@.str.5 = [18 x i8] c"Todo bien c = %f\0A\00"
@.str.6 = [22 x i8] c"Algo anda mal d = %f\0A\00"
@.str.7 = [18 x i8] c"Todo bien d = %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
store i32 0, i32* %1
store i32 11, i32* %2
store i32 10, i32* %3
store float 1.050000e+01, float* %4
store float 1.005000e+02, float* %5
%6 = load i32, i32* %2
%7 = icmp ne i32 %6, 11
br i1 %7, label %8, label %13
8: ; preds = %0
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
%11 = sitofp i32 %10 to float
%12 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), float %11)
br label %18
13: ; preds = %0
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 1
store i32 %15, i32* %2
%16 = sitofp i32 %15 to float
%17 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), float %16)
br label %18
18: ; preds = %13, %8
%19 = load i32, i32* %3
%20 = icmp ne i32 %19, 9
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load i32, i32* %3
%23 = add nsw i32 %22, -1
store i32 %23, i32* %3
%24 = sitofp i32 %23 to float
%25 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), float %24)
br label %31
26: ; preds = %18
%27 = load i32, i32* %3
%28 = add nsw i32 %27, -1
store i32 %28, i32* %3
%29 = sitofp i32 %28 to float
%30 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), float %29)
br label %31
31: ; preds = %26, %21
%32 = load float, float* %4
%33 = fpext float %32 to double
%34 = fcmp une double %33, 1.050000e+01
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = load float, float* %4
%37 = fadd float %36, 1.000000e+00
store float %37, float* %4
%38 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), float %37)
br label %43
39: ; preds = %31
%40 = load float, float* %4
%41 = fadd float %40, 1.000000e+00
store float %41, float* %4
%42 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), float %41)
br label %43
43: ; preds = %39, %35
%44 = load float, float* %5
%45 = fpext float %44 to double
%46 = fcmp une double %45, 9.950000e+01
br i1 %46, label %47, label %51
47: ; preds = %43
%48 = load float, float* %5
%49 = fadd float %48, -1.000000e+00
store float %49, float* %5
%50 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), float %49)
br label %55
51: ; preds = %43
%52 = load float, float* %5
%53 = fadd float %52, -1.000000e+00
store float %53, float* %5
%54 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), float %53)
br label %55
55: ; preds = %51, %47
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [18 x i8] c"Todo bien a = %d\0A\00"
@.str.2 = [22 x i8] c"Algo anda mal b = %d\0A\00"
@.str.5 = [18 x i8] c"Todo bien c = %f\0A\00"
@.str.6 = [22 x i8] c"Algo anda mal d = %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), float 1.200000e+01)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), float 9.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), float 1.150000e+01)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), float 9.950000e+01)
ret i32 0
}