#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 /*<<< orphan*/ abs(long long);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
scalar_t__ scanf(char *, long long *, long long *);
int main(int argc, char *argv[]) {
  long long int warrior1, warrior2;
  while (scanf("%lld %lld", &warrior1, &warrior2) != EOF) {
    if (warrior1 > 4294967296 || warrior2 > 4294967296)
      exit(1);
    printf("%lld\n", abs(warrior1 - warrior2));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea3(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1050 <scanf@plt>
mov    0x2e77(%rip),%rcx
cmp    (%rcx),%rax
je     11cc <main+0x8c>
movabs $0x100000000,%rax
cmp    %rax,-0x18(%rbp)
jg     11a2 <main+0x62>
movabs $0x100000000,%rax
cmp    %rax,-0x20(%rbp)
jle    11ac <main+0x6c>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x18(%rbp),%rdi
sub    -0x20(%rbp),%rdi
call   1030 <abs@plt>
mov    %eax,%esi
lea    0xe48(%rip),%rdi
call   1040 <printf@plt>
jmp    1156 <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
lea    0xeab(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
mov    0x2e7d(%rip),%r13
cmp    0x0(%r13),%rax
je     11e4 <main+0xa4>
movabs $0x100000001,%rbp
lea    0xe88(%rip),%r14
lea    0xe77(%rip),%r15
lea    0x10(%rsp),%r12
lea    0x8(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x10(%rsp),%rdi
movabs $0x100000000,%rax
cmp    %rax,%rdi
jg     11f5 <main+0xb5>
mov    0x8(%rsp),%rax
cmp    %rbp,%rax
jge    11f5 <main+0xb5>
sub    %rax,%rdi
call   1030 <abs@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
cmp    0x0(%r13),%rax
jne    11a0 <main+0x60>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%edi
call   1060 <exit@plt>

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

LLVM IR (-O2):
@.str = [10 x i8] c"%lld %lld\00"
@EOF = global i64 0
@.str.1 = [6 x i8] c"%lld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i64
%4 = alloca i64
%5 = bitcast i64* %3 to i8*
%6 = bitcast i64* %4 to i8*
%7 = call i64 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64* %3, i64* %4)
%8 = load i64, i64* @EOF
%9 = icmp eq i64 %7, %8
br i1 %9, label %25, label %10
10: ; preds = %2, %18
%11 = load i64, i64* %3
%12 = icmp sgt i64 %11, 4294967296
%13 = load i64, i64* %4
%14 = icmp sgt i64 %13, 4294967296
%15 = select i1 %12, i1 true, i1 %14
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = call i32 @exit(i32 1)
unreachable
18: ; preds = %10
%19 = sub nsw i64 %11, %13
%20 = call i32 @abs(i64 %19)
%21 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = call i64 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i64* %3, i64* %4)
%23 = load i64, i64* @EOF
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %10
25: ; preds = %18, %2
ret i32 0
}