#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, unsigned int,
                           unsigned int);
void printEdge(FILE *handle, unsigned i, unsigned j) {
  if (i < j) {
    fprintf(handle, "  %u -> %u [label = eps];\n", i, j);
  } else if (i > j) {
    fprintf(handle, "  %u -> %u [label = eps, constraint = false];\n", i, j);
  }
}


x86 assembly (clang, -O0):
<printEdge>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jae    1149 <printEdge+0x39>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xec1(%rip),%rsi
call   1030 <fprintf@plt>
jmp    1170 <printEdge+0x60>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jbe    116b <printEdge+0x5b>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xeb5(%rip),%rsi
call   1030 <fprintf@plt>
jmp    1170 <printEdge+0x60>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printEdge>:
mov    %edx,%ecx
mov    %esi,%edx
cmp    %ecx,%esi
jae    1124 <printEdge+0x14>
lea    0xee1(%rip),%rsi
jmp    1030 <fprintf@plt>
jbe    1132 <printEdge+0x22>
lea    0xeee(%rip),%rsi
jmp    1030 <fprintf@plt>
ret

LLVM IR (-O0):
@.str = [27 x i8] c" %u -> %u [label = eps];\0A\00"
@.str.1 = [47 x i8] c" %u -> %u [label = eps, constraint = false];\0A\00"
define void @printEdge(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %5
%8 = load i32, i32* %6
%9 = icmp ult i32 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %3
%11 = load i32*, i32** %4
%12 = load i32, i32* %5
%13 = load i32, i32* %6
%14 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13)
br label %25
15: ; preds = %3
%16 = load i32, i32* %5
%17 = load i32, i32* %6
%18 = icmp ugt i32 %16, %17
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load i32*, i32** %4
%21 = load i32, i32* %5
%22 = load i32, i32* %6
%23 = call i32 @fprintf(i32* %20, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i32 %21, i32 %22)
br label %24
24: ; preds = %19, %15
br label %25
25: ; preds = %24, %10
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c" %u -> %u [label = eps];\0A\00"
@.str.1 = [47 x i8] c" %u -> %u [label = eps, constraint = false];\0A\00"
define void @printEdge(i32* nocapture %0, i32 %1, i32 %2) {
%4 = icmp ult i32 %1, %2
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = icmp ugt i32 %1, %2
br i1 %6, label %7, label %10
7: ; preds = %5, %3
%8 = phi i8* [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), %3 ], [ getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), %5 ]
%9 = tail call i32 @fprintf(i32* %0, i8* %8, i32 %1, i32 %2)
br label %10
10: ; preds = %7, %5
ret void
}