#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 */
scalar_t__ EOF;
int compareVersion(char *, char *);
int /*<<< orphan*/ printf(char *, char *, char *);
scalar_t__ scanf(char *, char *, char *);
int main(int argc, char **argv) {
  char s1[20], s2[20];
  while (scanf("%s%s", s1, s2) != EOF) {
    switch (compareVersion(s1, s2)) {
    case 1:
      printf("%s > %s\n", s1, s2);
      break;
    case -1:
      printf("%s < %s\n", s1, s2);
      break;
    default:
      printf("%s == %s\n", s1, s2);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    0xeab(%rip),%rdi
call   1050 <scanf@plt>
mov    0x2e87(%rip),%rcx
cmp    (%rcx),%rax
je     11e6 <main+0xb6>
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <compareVersion@plt>
mov    %eax,%ecx
mov    %ecx,-0x54(%rbp)
sub    $0xffffffff,%eax
je     11b4 <main+0x84>
jmp    118a <main+0x5a>
mov    -0x54(%rbp),%eax
sub    $0x1,%eax
jne    11cd <main+0x9d>
jmp    119b <main+0x6b>
lea    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    0xe5b(%rip),%rdi
call   1040 <printf@plt>
jmp    11e1 <main+0xb1>
lea    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    0xe4b(%rip),%rdi
call   1040 <printf@plt>
jmp    11e1 <main+0xb1>
lea    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    0xe3b(%rip),%rdi
call   1040 <printf@plt>
jmp    1146 <main+0x16>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xebb(%rip),%rdi
lea    0x20(%rsp),%rsi
mov    %rsp,%rdx
call   1050 <scanf@plt>
mov    0x2e8f(%rip),%r13
cmp    0x0(%r13),%rax
je     11c2 <main+0x92>
lea    0x20(%rsp),%r14
mov    %rsp,%rbx
lea    0xea9(%rip),%rbp
lea    0xe90(%rip),%r12
lea    0xe84(%rip),%r15
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <compareVersion@plt>
cmp    $0xffffffff,%eax
mov    %rbp,%rdi
lea    0xe76(%rip),%rcx
cmove  %rcx,%rdi
cmp    $0x1,%eax
cmove  %r12,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
cmp    0x0(%r13),%rax
jne    1180 <main+0x50>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%s%s\00"
@EOF = global i64 0
@.str.1 = [9 x i8] c"%s > %s\0A\00"
@.str.2 = [9 x i8] c"%s < %s\0A\00"
@.str.3 = [10 x i8] c"%s == %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [20 x i8]
%7 = alloca [20 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %8
8: ; preds = %30, %2
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%11 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %9, i8* %10)
%12 = load i64, i64* @EOF
%13 = icmp ne i64 %11, %12
br i1 %13, label %14, label %31
14: ; preds = %8
%15 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%17 = call i32 @compareVersion(i8* %15, i8* %16)
switch i32 %17, label %26 [
i32 1, label %18
i32 -1, label %22
]
18: ; preds = %14
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%20 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%21 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %19, i8* %20)
br label %30
22: ; preds = %14
%23 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%24 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%25 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* %23, i8* %24)
br label %30
26: ; preds = %14
%27 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%28 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%29 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %27, i8* %28)
br label %30
30: ; preds = %26, %22, %18
br label %8
31: ; preds = %8
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%s%s\00"
@EOF = global i64 0
@.str.1 = [9 x i8] c"%s > %s\0A\00"
@.str.2 = [9 x i8] c"%s < %s\0A\00"
@.str.3 = [10 x i8] c"%s == %s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [20 x i8]
%4 = alloca [20 x i8]
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%7 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
%8 = load i64, i64* @EOF
%9 = icmp eq i64 %7, %8
br i1 %9, label %20, label %10
10: ; preds = %2, %10
%11 = call i32 @compareVersion(i8* %5, i8* %6)
%12 = icmp eq i32 %11, -1
%13 = select i1 %12, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%14 = icmp eq i32 %11, 1
%15 = select i1 %14, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %13
%16 = call i32 @printf(i8* %15, i8* %5, i8* %6)
%17 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
%18 = load i64, i64* @EOF
%19 = icmp eq i64 %17, %18
br i1 %19, label %20, label %10
20: ; preds = %10, %2
ret i32 0
}