#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 scanf(char *, int *, ...);
int main() {
  int t, a, b, i;
  int c = 1;
  while (scanf("%d", &t) == 1) {
    for (i = 1; i <= t; i++) {
      scanf("%d %d", &a, &b);
      if (a < b)
        printf("<\n");
      else if (a > b)
        printf(">\n");
      else
        printf("=\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x18(%rbp)
lea    0xec6(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11dd <main+0xbd>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11d8 <main+0xb8>
lea    0xe95(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1197 <main+0x77>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
jmp    11c5 <main+0xa5>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11b4 <main+0x94>
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
jmp    11c0 <main+0xa0>
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
jmp    11c5 <main+0xa5>
jmp    11ca <main+0xaa>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1158 <main+0x38>
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xchg   %ax,%ax
lea    0xecc(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11cb <main+0xab>
cmpl   $0x0,0xc(%rsp)
lea    0xea8(%rip),%rax
lea    0x14(%rsp),%rcx
lea    0x10(%rsp),%r14
lea    0xe9d(%rip),%r15
lea    0xe9a(%rip),%r13
jle    1130 <main+0x10>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rax,%rbx
mov    %rax,%rdi
mov    %rcx,%rbp
mov    %rcx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
cmp    0x10(%rsp),%eax
mov    %r15,%rdi
lea    0xe60(%rip),%rax
cmovg  %rax,%rdi
cmovl  %r13,%rdi
call   1030 <puts@plt>
mov    %rbp,%rcx
mov    %rbx,%rax
add    $0x1,%r12d
cmp    0xc(%rsp),%r12d
jl     1180 <main+0x60>
jmp    1130 <main+0x10>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%d %d\00"
@str = [2 x i8] c"=\00"
@str.5 = [2 x i8] c">\00"
@str.6 = [2 x i8] c"<\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 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%8 = icmp eq i32 %7, 1
br i1 %8, label %12, label %28
9: ; preds = %15, %12
%10 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %28
12: ; preds = %0, %9
%13 = load i32, i32* %1
%14 = icmp slt i32 %13, 1
br i1 %14, label %9, label %15
15: ; preds = %12, %15
%16 = phi i32 [ %25, %15 ], [ 1, %12 ]
%17 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3)
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = icmp slt i32 %18, %19
%21 = icmp sgt i32 %18, %19
%22 = select i1 %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0)
%23 = select i1 %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.6, i64 0, i64 0), i8* %22
%24 = call i32 @puts(i8* dereferenceable(1) %23)
%25 = add nuw nsw i32 %16, 1
%26 = load i32, i32* %1
%27 = icmp slt i32 %16, %26
br i1 %27, label %15, label %9
28: ; preds = %9, %0
ret i32 0
}