#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 *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a, b, c;
  printf("dame el valor de a=");
  scanf("%d", &a);
  printf("dame el valor de b=");
  scanf("%d", &b);
  printf("dame el valor de c=");
  scanf("%d", &c);
  printf("hemos obtenido %d == %d = %d \n", a, b, a == b);
  printf("%d == %d = %d \n", a, c, a == c);
  printf("%d > %d = %d \n", a, b, a > b);
  printf("%d > %d = %d \n", a, c, a > c);
  printf("%d < %d = %d \n", a, b, a < b);
  printf("%d < %d = %d \n", a, c, a < c);
  printf("%d != %d = %d \n", a, b, a != b);
  printf("%d != %d = %d \n", a, c, a != c);
  printf("%d >= %d = %d \n", a, b, a >= b);
  printf("%d >= %d = %d \n", a, c, a >= c);
  printf("%d <= %d = %d \n", a, b, a <= b);
  printf("%d <= %d = %d \n", a, c, a <= c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeda(%rip),%rbx
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xec2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x4(%rsp),%esi
mov    0xc(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
sete   %cl
lea    0xeac(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
sete   %cl
lea    0xe9e(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0xc(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setg   %cl
lea    0xe91(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setg   %cl
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0xc(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setl   %cl
lea    0xe67(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setl   %cl
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0xc(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setne  %cl
lea    0xe3d(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setne  %cl
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0xc(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setge  %cl
lea    0xe14(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setge  %cl
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0xc(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setle  %cl
lea    0xdeb(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setle  %cl
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"dame el valor de a=\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [20 x i8] c"dame el valor de b=\00"
@.str.3 = [20 x i8] c"dame el valor de c=\00"
@.str.4 = [31 x i8] c"hemos obtenido %d == %d = %d \0A\00"
@.str.5 = [16 x i8] c"%d == %d = %d \0A\00"
@.str.6 = [15 x i8] c"%d > %d = %d \0A\00"
@.str.7 = [15 x i8] c"%d < %d = %d \0A\00"
@.str.8 = [16 x i8] c"%d != %d = %d \0A\00"
@.str.9 = [16 x i8] c"%d >= %d = %d \0A\00"
@.str.10 = [16 x i8] c"%d <= %d = %d \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = icmp eq i32 %13, %14
%16 = zext i1 %15 to i32
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %11, i32 %12, i32 %16)
%18 = load i32, i32* %2
%19 = load i32, i32* %4
%20 = load i32, i32* %2
%21 = load i32, i32* %4
%22 = icmp eq i32 %20, %21
%23 = zext i1 %22 to i32
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %18, i32 %19, i32 %23)
%25 = load i32, i32* %2
%26 = load i32, i32* %3
%27 = load i32, i32* %2
%28 = load i32, i32* %3
%29 = icmp sgt i32 %27, %28
%30 = zext i1 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %25, i32 %26, i32 %30)
%32 = load i32, i32* %2
%33 = load i32, i32* %4
%34 = load i32, i32* %2
%35 = load i32, i32* %4
%36 = icmp sgt i32 %34, %35
%37 = zext i1 %36 to i32
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %32, i32 %33, i32 %37)
%39 = load i32, i32* %2
%40 = load i32, i32* %3
%41 = load i32, i32* %2
%42 = load i32, i32* %3
%43 = icmp slt i32 %41, %42
%44 = zext i1 %43 to i32
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %39, i32 %40, i32 %44)
%46 = load i32, i32* %2
%47 = load i32, i32* %4
%48 = load i32, i32* %2
%49 = load i32, i32* %4
%50 = icmp slt i32 %48, %49
%51 = zext i1 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %46, i32 %47, i32 %51)
%53 = load i32, i32* %2
%54 = load i32, i32* %3
%55 = load i32, i32* %2
%56 = load i32, i32* %3
%57 = icmp ne i32 %55, %56
%58 = zext i1 %57 to i32
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %53, i32 %54, i32 %58)
%60 = load i32, i32* %2
%61 = load i32, i32* %4
%62 = load i32, i32* %2
%63 = load i32, i32* %4
%64 = icmp ne i32 %62, %63
%65 = zext i1 %64 to i32
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %60, i32 %61, i32 %65)
%67 = load i32, i32* %2
%68 = load i32, i32* %3
%69 = load i32, i32* %2
%70 = load i32, i32* %3
%71 = icmp sge i32 %69, %70
%72 = zext i1 %71 to i32
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %67, i32 %68, i32 %72)
%74 = load i32, i32* %2
%75 = load i32, i32* %4
%76 = load i32, i32* %2
%77 = load i32, i32* %4
%78 = icmp sge i32 %76, %77
%79 = zext i1 %78 to i32
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %74, i32 %75, i32 %79)
%81 = load i32, i32* %2
%82 = load i32, i32* %3
%83 = load i32, i32* %2
%84 = load i32, i32* %3
%85 = icmp sle i32 %83, %84
%86 = zext i1 %85 to i32
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %81, i32 %82, i32 %86)
%88 = load i32, i32* %2
%89 = load i32, i32* %4
%90 = load i32, i32* %2
%91 = load i32, i32* %4
%92 = icmp sle i32 %90, %91
%93 = zext i1 %92 to i32
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %88, i32 %89, i32 %93)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"dame el valor de a=\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [20 x i8] c"dame el valor de b=\00"
@.str.3 = [20 x i8] c"dame el valor de c=\00"
@.str.4 = [31 x i8] c"hemos obtenido %d == %d = %d \0A\00"
@.str.5 = [16 x i8] c"%d == %d = %d \0A\00"
@.str.6 = [15 x i8] c"%d > %d = %d \0A\00"
@.str.7 = [15 x i8] c"%d < %d = %d \0A\00"
@.str.8 = [16 x i8] c"%d != %d = %d \0A\00"
@.str.9 = [16 x i8] c"%d >= %d = %d \0A\00"
@.str.10 = [16 x i8] c"%d <= %d = %d \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%13 = load i32, i32* %1
%14 = load i32, i32* %2
%15 = icmp eq i32 %13, %14
%16 = zext i1 %15 to i32
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %13, i32 %14, i32 %16)
%18 = load i32, i32* %1
%19 = load i32, i32* %3
%20 = icmp eq i32 %18, %19
%21 = zext i1 %20 to i32
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %18, i32 %19, i32 %21)
%23 = load i32, i32* %1
%24 = load i32, i32* %2
%25 = icmp sgt i32 %23, %24
%26 = zext i1 %25 to i32
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %23, i32 %24, i32 %26)
%28 = load i32, i32* %1
%29 = load i32, i32* %3
%30 = icmp sgt i32 %28, %29
%31 = zext i1 %30 to i32
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %28, i32 %29, i32 %31)
%33 = load i32, i32* %1
%34 = load i32, i32* %2
%35 = icmp slt i32 %33, %34
%36 = zext i1 %35 to i32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %33, i32 %34, i32 %36)
%38 = load i32, i32* %1
%39 = load i32, i32* %3
%40 = icmp slt i32 %38, %39
%41 = zext i1 %40 to i32
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %38, i32 %39, i32 %41)
%43 = load i32, i32* %1
%44 = load i32, i32* %2
%45 = icmp ne i32 %43, %44
%46 = zext i1 %45 to i32
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %43, i32 %44, i32 %46)
%48 = load i32, i32* %1
%49 = load i32, i32* %3
%50 = icmp ne i32 %48, %49
%51 = zext i1 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %48, i32 %49, i32 %51)
%53 = load i32, i32* %1
%54 = load i32, i32* %2
%55 = icmp sge i32 %53, %54
%56 = zext i1 %55 to i32
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %53, i32 %54, i32 %56)
%58 = load i32, i32* %1
%59 = load i32, i32* %3
%60 = icmp sge i32 %58, %59
%61 = zext i1 %60 to i32
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %58, i32 %59, i32 %61)
%63 = load i32, i32* %1
%64 = load i32, i32* %2
%65 = icmp sle i32 %63, %64
%66 = zext i1 %65 to i32
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %63, i32 %64, i32 %66)
%68 = load i32, i32* %1
%69 = load i32, i32* %3
%70 = icmp sle i32 %68, %69
%71 = zext i1 %70 to i32
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %68, i32 %69, i32 %71)
ret i32 0
}