#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 findOddSum(int, int);
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ scanf(char *, int *, ...);
int main() {
  int num;
  scanf("%d", &num);
  if (num < 1 || num > 100)
    return 1;
  int a, b;
  int count = 0;
  while (num--) {
    scanf("%d\n%d", &a, &b);
    if (a < 0 || a > 100 || b < 0 || b > 100 || a > b)
      return 1;
    printf("Case %d: %d\n", ++count, findOddSum(a, b));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cmpl   $0x1,-0x8(%rbp)
jl     1165 <main+0x35>
cmpl   $0x64,-0x8(%rbp)
jle    1171 <main+0x41>
movl   $0x1,-0x4(%rbp)
jmp    1216 <main+0xe6>
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
je     120f <main+0xdf>
lea    0xe6d(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1050 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     11d6 <main+0xa6>
cmpl   $0x64,-0xc(%rbp)
jg     11d6 <main+0xa6>
cmpl   $0x0,-0x10(%rbp)
jl     11d6 <main+0xa6>
cmpl   $0x64,-0x10(%rbp)
jg     11d6 <main+0xa6>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11e2 <main+0xb2>
movl   $0x1,-0x4(%rbp)
jmp    1216 <main+0xe6>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <findOddSum@plt>
mov    -0x18(%rbp),%esi
mov    %eax,%edx
lea    0xe01(%rip),%rdi
call   1030 <printf@plt>
jmp    1178 <main+0x48>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%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    0xebe(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
lea    -0x65(%rax),%ecx
mov    $0x1,%r14d
cmp    $0xffffff9c,%ecx
jb     11d8 <main+0xa8>
add    $0xffffffff,%eax
mov    %eax,0xc(%rsp)
mov    $0x1,%r14d
lea    0xe89(%rip),%r15
lea    0x14(%rsp),%r13
lea    0x10(%rsp),%rbx
lea    0xe7e(%rip),%r12
mov    $0x1,%ebp
nopl   (%rax)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x14(%rsp),%edi
cmp    $0x64,%edi
ja     11d8 <main+0xa8>
mov    0x10(%rsp),%esi
test   %esi,%esi
js     11d8 <main+0xa8>
cmp    $0x64,%esi
jg     11d8 <main+0xa8>
cmp    %esi,%edi
jg     11d8 <main+0xa8>
call   1040 <findOddSum@plt>
mov    %r12,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
add    $0x1,%ebp
subl   $0x1,0xc(%rsp)
jae    1190 <main+0x60>
xor    %r14d,%r14d
mov    %r14d,%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\0A%d\00"
@.str.2 = [13 x i8] c"Case %d: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 1
br i1 %8, label %12, label %9
9: ; preds = %0
%10 = load i32, i32* %2
%11 = icmp sgt i32 %10, 100
br i1 %11, label %12, label %13
12: ; preds = %9, %0
store i32 1, i32* %1
br label %44
13: ; preds = %9
store i32 0, i32* %5
br label %14
14: ; preds = %36, %13
%15 = load i32, i32* %2
%16 = add nsw i32 %15, -1
store i32 %16, i32* %2
%17 = icmp ne i32 %15, 0
br i1 %17, label %18, label %43
18: ; preds = %14
%19 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %4)
%20 = load i32, i32* %3
%21 = icmp slt i32 %20, 0
br i1 %21, label %35, label %22
22: ; preds = %18
%23 = load i32, i32* %3
%24 = icmp sgt i32 %23, 100
br i1 %24, label %35, label %25
25: ; preds = %22
%26 = load i32, i32* %4
%27 = icmp slt i32 %26, 0
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = load i32, i32* %4
%30 = icmp sgt i32 %29, 100
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = load i32, i32* %3
%33 = load i32, i32* %4
%34 = icmp sgt i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31, %28, %25, %22, %18
store i32 1, i32* %1
br label %44
36: ; preds = %31
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
store i32 %38, i32* %5
%39 = load i32, i32* %3
%40 = load i32, i32* %4
%41 = call i32 @findOddSum(i32 %39, i32 %40)
%42 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %38, i32 %41)
br label %14
43: ; preds = %14
store i32 0, i32* %1
br label %44
44: ; preds = %43, %35, %12
%45 = load i32, i32* %1
ret i32 %45
}

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