#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 *, ...);
int main() {
  int i, j, c, len, num, temp, t, res, x, y;
  scanf("%d", &t);
  while (t--) {
    scanf("%d %d", &x, &y);
    if (x == y) {
      if (x & 1)
        printf("%d\n", x * 2 - 1);
      else
        printf("%d\n", x * 2);
    } else if (x - 2 == y) {
      if (y & 1)
        printf("%d\n", y * 2 + 1);
      else
        printf("%d\n", y * 2 + 2);
    } else
      printf("No Number\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xecd(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x20(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x20(%rbp)
cmp    $0x0,%eax
je     1229 <main+0x109>
lea    0xea4(%rip),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    11bb <main+0x9b>
mov    -0x28(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11a2 <main+0x82>
mov    -0x28(%rbp),%esi
shl    $0x1,%esi
sub    $0x1,%esi
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b6 <main+0x96>
mov    -0x28(%rbp),%esi
shl    $0x1,%esi
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1224 <main+0x104>
mov    -0x28(%rbp),%eax
sub    $0x2,%eax
cmp    -0x2c(%rbp),%eax
jne    1211 <main+0xf1>
mov    -0x2c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11f5 <main+0xd5>
mov    -0x2c(%rbp),%esi
shl    $0x1,%esi
add    $0x1,%esi
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    120c <main+0xec>
mov    -0x2c(%rbp),%esi
shl    $0x1,%esi
add    $0x2,%esi
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    121f <main+0xff>
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1224 <main+0x104>
jmp    1141 <main+0x21>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xebf(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
subl   $0x1,0x4(%rsp)
jae    1167 <main+0x37>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
lea    0xe92(%rip),%r14
lea    0xc(%rsp),%r15
lea    0x8(%rsp),%rbx
lea    0xe87(%rip),%r12
lea    0xe84(%rip),%r13
jmp    11a3 <main+0x73>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
subl   $0x1,0x4(%rsp)
jb     1157 <main+0x27>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
mov    0x8(%rsp),%esi
cmp    %esi,%eax
jne    11d0 <main+0xa0>
mov    %eax,%ecx
add    %eax,%eax
test   $0x1,%cl
je     1190 <main+0x60>
add    $0xffffffff,%eax
jmp    1190 <main+0x60>
nopl   (%rax)
add    $0xfffffffe,%eax
cmp    %esi,%eax
jne    11f0 <main+0xc0>
mov    %esi,%eax
add    %esi,%esi
test   $0x1,%al
jne    1204 <main+0xd4>
add    $0x2,%esi
jmp    1207 <main+0xd7>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r13,%rdi
call   1030 <puts@plt>
subl   $0x1,0x4(%rsp)
jae    11a3 <main+0x73>
jmp    1157 <main+0x27>
or     $0x1,%esi
mov    %r12,%rdi
jmp    1195 <main+0x65>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [11 x i8] c"No Number\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
%12 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %8)
br label %13
13: ; preds = %59, %0
%14 = load i32, i32* %8
%15 = add nsw i32 %14, -1
store i32 %15, i32* %8
%16 = icmp ne i32 %14, 0
br i1 %16, label %17, label %60
17: ; preds = %13
%18 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %10, i32* %11)
%19 = load i32, i32* %10
%20 = load i32, i32* %11
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %36
22: ; preds = %17
%23 = load i32, i32* %10
%24 = and i32 %23, 1
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %22
%27 = load i32, i32* %10
%28 = mul nsw i32 %27, 2
%29 = sub nsw i32 %28, 1
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %29)
br label %35
31: ; preds = %22
%32 = load i32, i32* %10
%33 = mul nsw i32 %32, 2
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %33)
br label %35
35: ; preds = %31, %26
br label %59
36: ; preds = %17
%37 = load i32, i32* %10
%38 = sub nsw i32 %37, 2
%39 = load i32, i32* %11
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %56
41: ; preds = %36
%42 = load i32, i32* %11
%43 = and i32 %42, 1
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = load i32, i32* %11
%47 = mul nsw i32 %46, 2
%48 = add nsw i32 %47, 1
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %48)
br label %55
50: ; preds = %41
%51 = load i32, i32* %11
%52 = mul nsw i32 %51, 2
%53 = add nsw i32 %52, 2
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %53)
br label %55
55: ; preds = %50, %45
br label %58
56: ; preds = %36
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %58
58: ; preds = %56, %55
br label %59
59: ; preds = %58, %35
br label %13
60: ; preds = %13
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@str = [10 x i8] c"No Number\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 = load i32, i32* %1
%9 = add nsw i32 %8, -1
store i32 %9, i32* %1
%10 = icmp eq i32 %8, 0
br i1 %10, label %44, label %11
11: ; preds = %0, %40
%12 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3)
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %25
16: ; preds = %11
%17 = and i32 %13, 1
%18 = icmp eq i32 %17, 0
%19 = shl nsw i32 %13, 1
br i1 %18, label %23, label %20
20: ; preds = %16
%21 = add nsw i32 %19, -1
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %21)
br label %40
23: ; preds = %16
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %19)
br label %40
25: ; preds = %11
%26 = add nsw i32 %13, -2
%27 = icmp eq i32 %26, %14
br i1 %27, label %28, label %38
28: ; preds = %25
%29 = and i32 %14, 1
%30 = icmp eq i32 %29, 0
%31 = shl nsw i32 %14, 1
br i1 %30, label %35, label %32
32: ; preds = %28
%33 = or i32 %31, 1
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %33)
br label %40
35: ; preds = %28
%36 = add nsw i32 %31, 2
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %36)
br label %40
38: ; preds = %25
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
br label %40
40: ; preds = %38, %35, %32, %20, %23
%41 = load i32, i32* %1
%42 = add nsw i32 %41, -1
store i32 %42, i32* %1
%43 = icmp eq i32 %41, 0
br i1 %43, label %44, label %11
44: ; preds = %40, %0
ret i32 0
}