#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 main() {
  int a = 5;
  int b;
  unsigned u = 5;
  unsigned v;
  scanf("%d", &b);
  scanf("%d", &v);
  if (a == b)
    printf("Equal\n");
  if (a != b)
    printf("Not Equal\n");
  if (a > b)
    printf("Greater\n");
  if (a <= b)
    printf("Less or Equal\n");
  if (a >= b)
    printf("Greater or Equal\n");
  if (a < b)
    printf("Less\n");
  if (u > v)
    printf("Greater Unsigned\n");
  if (u <= v)
    printf("Less or Equal Unsigned\n");
  if (u >= v)
    printf("Carry Clear\n");
  if (u < v)
    printf("Carry Set\n");
  if ((a - b) >= 0)
    printf("Minus\n");
  if ((a - b) < 0)
    printf("Plus\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
movl   $0x5,-0x10(%rbp)
lea    0xebc(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeaa(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1179 <main+0x59>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     1191 <main+0x71>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    11a9 <main+0x89>
lea    0xe6a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11c1 <main+0xa1>
lea    0xe5b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     11d9 <main+0xb9>
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11f1 <main+0xd1>
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jbe    1209 <main+0xe9>
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
ja     1221 <main+0x101>
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jb     1239 <main+0x119>
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1251 <main+0x131>
lea    0xe29(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
cmp    $0x0,%eax
jl     126c <main+0x14c>
lea    0xe19(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
cmp    $0x0,%eax
jge    1287 <main+0x167>
lea    0xe05(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x5,0x8(%rsp)
jne    1164 <main+0x44>
lea    0xf04(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0x8(%rsp)
je     118a <main+0x6a>
lea    0xf0d(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x4,0x8(%rsp)
jg     118a <main+0x6a>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0x8(%rsp)
jl     119d <main+0x7d>
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0x8(%rsp)
jg     11b0 <main+0x90>
lea    0xead(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x6,0x8(%rsp)
jl     11bc <main+0x9c>
lea    0xe95(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x4,0xc(%rsp)
ja     11d6 <main+0xb6>
lea    0xe71(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0xc(%rsp)
jb     11e9 <main+0xc9>
lea    0xe47(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0xc(%rsp)
ja     11fc <main+0xdc>
lea    0xe28(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x6,0xc(%rsp)
jb     1208 <main+0xe8>
lea    0xe0b(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0x8(%rsp)
jg     1222 <main+0x102>
lea    0xdf2(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x6,0x8(%rsp)
jl     122e <main+0x10e>
lea    0xdda(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [7 x i8] c"Equal\0A\00"
@.str.2 = [11 x i8] c"Not Equal\0A\00"
@.str.3 = [9 x i8] c"Greater\0A\00"
@.str.4 = [15 x i8] c"Less or Equal\0A\00"
@.str.5 = [18 x i8] c"Greater or Equal\0A\00"
@.str.6 = [6 x i8] c"Less\0A\00"
@.str.7 = [18 x i8] c"Greater Unsigned\0A\00"
@.str.8 = [24 x i8] c"Less or Equal Unsigned\0A\00"
@.str.9 = [13 x i8] c"Carry Clear\0A\00"
@.str.10 = [11 x i8] c"Carry Set\0A\00"
@.str.11 = [7 x i8] c"Minus\0A\00"
@.str.12 = [6 x i8] c"Plus\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %2
store i32 5, i32* %4
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %0
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = icmp ne i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %19
19: ; preds = %17, %13
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = icmp sgt i32 %20, %21
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %25
25: ; preds = %23, %19
%26 = load i32, i32* %2
%27 = load i32, i32* %3
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %31
31: ; preds = %29, %25
%32 = load i32, i32* %2
%33 = load i32, i32* %3
%34 = icmp sge i32 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
br label %37
37: ; preds = %35, %31
%38 = load i32, i32* %2
%39 = load i32, i32* %3
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %43
43: ; preds = %41, %37
%44 = load i32, i32* %4
%45 = load i32, i32* %5
%46 = icmp ugt i32 %44, %45
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
br label %49
49: ; preds = %47, %43
%50 = load i32, i32* %4
%51 = load i32, i32* %5
%52 = icmp ule i32 %50, %51
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
br label %55
55: ; preds = %53, %49
%56 = load i32, i32* %4
%57 = load i32, i32* %5
%58 = icmp uge i32 %56, %57
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
br label %61
61: ; preds = %59, %55
%62 = load i32, i32* %4
%63 = load i32, i32* %5
%64 = icmp ult i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
br label %67
67: ; preds = %65, %61
%68 = load i32, i32* %2
%69 = load i32, i32* %3
%70 = sub nsw i32 %68, %69
%71 = icmp sge i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %67
%73 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %74
74: ; preds = %72, %67
%75 = load i32, i32* %2
%76 = load i32, i32* %3
%77 = sub nsw i32 %75, %76
%78 = icmp slt i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %74
%80 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
br label %81
81: ; preds = %79, %74
%82 = load i32, i32* %1
ret i32 %82
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [5 x i8] c"Plus\00"
@str.13 = [6 x i8] c"Minus\00"
@str.14 = [10 x i8] c"Carry Set\00"
@str.15 = [12 x i8] c"Carry Clear\00"
@str.16 = [23 x i8] c"Less or Equal Unsigned\00"
@str.17 = [17 x i8] c"Greater Unsigned\00"
@str.18 = [5 x i8] c"Less\00"
@str.19 = [17 x i8] c"Greater or Equal\00"
@str.20 = [14 x i8] c"Less or Equal\00"
@str.21 = [8 x i8] c"Greater\00"
@str.22 = [10 x i8] c"Not Equal\00"
@str.23 = [6 x i8] c"Equal\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %1
%8 = icmp eq i32 %7, 5
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.23, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = icmp eq i32 %11, 5
br i1 %12, label %21, label %13
13: ; preds = %0, %9
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.22, i64 0, i64 0))
%15 = load i32, i32* %1
%16 = icmp slt i32 %15, 5
br i1 %16, label %17, label %21
17: ; preds = %13
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.21, i64 0, i64 0))
%19 = load i32, i32* %1
%20 = icmp sgt i32 %19, 4
br i1 %20, label %21, label %25
21: ; preds = %9, %13, %17
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.20, i64 0, i64 0))
%23 = load i32, i32* %1
%24 = icmp slt i32 %23, 6
br i1 %24, label %25, label %29
25: ; preds = %17, %21
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.19, i64 0, i64 0))
%27 = load i32, i32* %1
%28 = icmp sgt i32 %27, 5
br i1 %28, label %29, label %31
29: ; preds = %21, %25
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.18, i64 0, i64 0))
br label %31
31: ; preds = %29, %25
%32 = load i32, i32* %2
%33 = icmp ult i32 %32, 5
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.17, i64 0, i64 0))
%36 = load i32, i32* %2
%37 = icmp ugt i32 %36, 4
br i1 %37, label %38, label %42
38: ; preds = %31, %34
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.16, i64 0, i64 0))
%40 = load i32, i32* %2
%41 = icmp ult i32 %40, 6
br i1 %41, label %42, label %46
42: ; preds = %34, %38
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.15, i64 0, i64 0))
%44 = load i32, i32* %2
%45 = icmp ugt i32 %44, 5
br i1 %45, label %46, label %48
46: ; preds = %38, %42
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.14, i64 0, i64 0))
br label %48
48: ; preds = %46, %42
%49 = load i32, i32* %1
%50 = icmp slt i32 %49, 6
br i1 %50, label %51, label %55
51: ; preds = %48
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.13, i64 0, i64 0))
%53 = load i32, i32* %1
%54 = icmp sgt i32 %53, 5
br i1 %54, label %55, label %57
55: ; preds = %48, %51
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
br label %57
57: ; preds = %55, %51
ret i32 0
}