#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 argc, char *argv[], char *envp[]) {
  int eax;
  int local0;
  unsigned int local1;
  scanf("%d", &local0);
  scanf("%d", &local1);
  if (local0 == 5) {
    printf("Equal\n");
  }
  if (local0 == 5) {
  L19:
    printf("Less or Equal\n");
    if (local0 > 5) {
    L15:
      printf("Less\n");
    } else {
    L17:
      printf("Greater or Equal\n");
      if (local0 > 5) {
        goto L15;
      }
    }
  } else {
    printf("Not Equal\n");
    if (local0 >= 5) {
      goto L19;
    } else {
      printf("Greater\n");
      if (local0 < 5) {
        goto L17;
      } else {
        goto L19;
      }
    }
  }
  if (local1 >= 5) {
  L10:
    printf("Less or Equal Unsigned\n");
    if (local1 > 5) {
    L6:
      printf("Carry Set\n");
    } else {
    L8:
      printf("Carry Clear\n");
      if (local1 > 5) {
        goto L6;
      }
    }
  } else {
    printf("Greater Unsigned\n");
    if (local1 < 5) {
      goto L8;
    } else {
      goto L10;
    }
  }
  eax = 5 - local0;
  if (eax < 0) {
  L1:
    printf("Plus\n");
  } else {
    printf("Minus\n");
    eax = 5 - local0;
    if (eax < 0) {
      goto L1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xebf(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xead(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x5,-0x20(%rbp)
jne    1174 <main+0x54>
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x20(%rbp)
jne    11d9 <main+0xb9>
jmp    1183 <main+0x63>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x20(%rbp)
jle    11af <main+0x8f>
jmp    119e <main+0x7e>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xb4>
jmp    11b4 <main+0x94>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x20(%rbp)
jle    11cf <main+0xaf>
jmp    119e <main+0x7e>
jmp    11d4 <main+0xb4>
jmp    1214 <main+0xf4>
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x20(%rbp)
jl     11f4 <main+0xd4>
jmp    1183 <main+0x63>
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x20(%rbp)
jge    120f <main+0xef>
jmp    11b4 <main+0x94>
jmp    1183 <main+0x63>
cmpl   $0x5,-0x24(%rbp)
jb     1279 <main+0x159>
jmp    1223 <main+0x103>
lea    0xe14(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x24(%rbp)
jbe    124f <main+0x12f>
jmp    123e <main+0x11e>
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
jmp    1274 <main+0x154>
jmp    1254 <main+0x134>
lea    0xe06(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x24(%rbp)
jbe    126f <main+0x14f>
jmp    123e <main+0x11e>
jmp    1274 <main+0x154>
jmp    1299 <main+0x179>
lea    0xdee(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x24(%rbp)
jae    1294 <main+0x174>
jmp    1254 <main+0x134>
jmp    1223 <main+0x103>
mov    $0x5,%eax
sub    -0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    12c4 <main+0x1a4>
jmp    12b3 <main+0x193>
lea    0xdc6(%rip),%rdi
call   1030 <printf@plt>
jmp    12ef <main+0x1cf>
lea    0xdbb(%rip),%rdi
call   1030 <printf@plt>
mov    $0x5,%eax
sub    -0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    12ea <main+0x1ca>
jmp    12b3 <main+0x193>
jmp    12ef <main+0x1cf>
xor    %eax,%eax
add    $0x30,%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    0xed6(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0x8(%rsp)
je     118a <main+0x6a>
lea    0xe98(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x4,0x8(%rsp)
jg     118a <main+0x6a>
lea    0xe8f(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0x8(%rsp)
jl     119d <main+0x7d>
lea    0xe84(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x6,0x8(%rsp)
jge    11b0 <main+0x90>
lea    0xe7f(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0x8(%rsp)
jle    11bc <main+0x9c>
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0xc(%rsp)
jae    11d6 <main+0xb6>
lea    0xe6a(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0xc(%rsp)
jb     11e9 <main+0xc9>
lea    0xe68(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x6,0xc(%rsp)
jae    11fc <main+0xdc>
lea    0xe6c(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0xc(%rsp)
jbe    1208 <main+0xe8>
lea    0xe70(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x6,0x8(%rsp)
jge    1222 <main+0x102>
lea    0xe52(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x5,0x8(%rsp)
jle    122e <main+0x10e>
lea    0xe45(%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 = [15 x i8] c"Less or Equal\0A\00"
@.str.3 = [6 x i8] c"Less\0A\00"
@.str.4 = [18 x i8] c"Greater or Equal\0A\00"
@.str.5 = [11 x i8] c"Not Equal\0A\00"
@.str.6 = [9 x i8] c"Greater\0A\00"
@.str.7 = [24 x i8] c"Less or Equal Unsigned\0A\00"
@.str.8 = [11 x i8] c"Carry Set\0A\00"
@.str.9 = [13 x i8] c"Carry Clear\0A\00"
@.str.10 = [18 x i8] c"Greater Unsigned\0A\00"
@.str.11 = [6 x i8] c"Plus\0A\00"
@.str.12 = [7 x i8] c"Minus\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %10)
%13 = load i32, i32* %9
%14 = icmp eq i32 %13, 5
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %17
17: ; preds = %15, %3
%18 = load i32, i32* %9
%19 = icmp eq i32 %18, 5
br i1 %19, label %20, label %36
20: ; preds = %17
br label %21
21: ; preds = %46, %40, %20
%22 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%23 = load i32, i32* %9
%24 = icmp sgt i32 %23, 5
br i1 %24, label %25, label %28
25: ; preds = %21
br label %26
26: ; preds = %33, %25
%27 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %35
28: ; preds = %21
br label %29
29: ; preds = %45, %28
%30 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%31 = load i32, i32* %9
%32 = icmp sgt i32 %31, 5
br i1 %32, label %33, label %34
33: ; preds = %29
br label %26
34: ; preds = %29
br label %35
35: ; preds = %34, %26
br label %47
36: ; preds = %17
%37 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%38 = load i32, i32* %9
%39 = icmp sge i32 %38, 5
br i1 %39, label %40, label %41
40: ; preds = %36
br label %21
41: ; preds = %36
%42 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%43 = load i32, i32* %9
%44 = icmp slt i32 %43, 5
br i1 %44, label %45, label %46
45: ; preds = %41
br label %29
46: ; preds = %41
br label %21
47: ; preds = %35
%48 = load i32, i32* %10
%49 = icmp uge i32 %48, 5
br i1 %49, label %50, label %66
50: ; preds = %47
br label %51
51: ; preds = %71, %50
%52 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%53 = load i32, i32* %10
%54 = icmp ugt i32 %53, 5
br i1 %54, label %55, label %58
55: ; preds = %51
br label %56
56: ; preds = %63, %55
%57 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
br label %65
58: ; preds = %51
br label %59
59: ; preds = %70, %58
%60 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%61 = load i32, i32* %10
%62 = icmp ugt i32 %61, 5
br i1 %62, label %63, label %64
63: ; preds = %59
br label %56
64: ; preds = %59
br label %65
65: ; preds = %64, %56
br label %72
66: ; preds = %47
%67 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%68 = load i32, i32* %10
%69 = icmp ult i32 %68, 5
br i1 %69, label %70, label %71
70: ; preds = %66
br label %59
71: ; preds = %66
br label %51
72: ; preds = %65
%73 = load i32, i32* %9
%74 = sub nsw i32 5, %73
store i32 %74, i32* %8
%75 = load i32, i32* %8
%76 = icmp slt i32 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %72
br label %78
78: ; preds = %86, %77
%79 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %88
80: ; preds = %72
%81 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%82 = load i32, i32* %9
%83 = sub nsw i32 5, %82
store i32 %83, i32* %8
%84 = load i32, i32* %8
%85 = icmp slt i32 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %80
br label %78
87: ; preds = %80
br label %88
88: ; preds = %87, %78
ret i32 0
}

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