#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*/ GetLanguage(char *);
int /*<<< orphan*/ *gets(char *);
int /*<<< orphan*/ printf(char *, int);
int strlen(char *);
int main(int argc, char *argv[]) {
  int count;
  char string[14 + 1];
  for (count = 1; count <= 2000 && gets(string) != NULL; count++) {
    if (string[0] == '#' && string[1] == '\0')
      return 0;
    if (strlen(string) > 14)
      return 1;
    printf("Case %d:", count);
    GetLanguage(string);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
xor    %eax,%eax
cmpl   $0x7d0,-0x14(%rbp)
mov    %al,-0x24(%rbp)
jg     1182 <main+0x42>
lea    -0x23(%rbp),%rdi
call   1060 <gets@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x24(%rbp)
mov    -0x24(%rbp),%al
test   $0x1,%al
jne    1192 <main+0x52>
jmp    11fc <main+0xbc>
movsbl -0x23(%rbp),%eax
cmp    $0x23,%eax
jne    11b8 <main+0x78>
movsbl -0x22(%rbp),%eax
cmp    $0x0,%eax
jne    11b8 <main+0x78>
movl   $0x0,-0x4(%rbp)
jmp    1203 <main+0xc3>
lea    -0x23(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0xe,%eax
jle    11d6 <main+0x96>
movl   $0x1,-0x4(%rbp)
jmp    1203 <main+0xc3>
mov    -0x14(%rbp),%esi
lea    0xe20(%rip),%rdi
call   1050 <printf@plt>
lea    -0x23(%rbp),%rdi
call   1030 <GetLanguage@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115d <main+0x1d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    $0x1,%ebx
lea    0x9(%rsp),%r14
lea    0xea5(%rip),%r15
xor    %ebp,%ebp
nopl   (%rax)
mov    %r14,%rdi
call   1060 <gets@plt>
test   %rax,%rax
je     11ac <main+0x6c>
cmpb   $0x23,0x9(%rsp)
jne    117b <main+0x3b>
cmpb   $0x0,0xa(%rsp)
je     11ac <main+0x6c>
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    $0xe,%eax
jg     11a7 <main+0x67>
mov    %r15,%rdi
mov    %ebx,%esi
call   1050 <printf@plt>
mov    %r14,%rdi
call   1030 <GetLanguage@plt>
add    $0x1,%ebx
cmp    $0x7d1,%ebx
jne    1160 <main+0x20>
jmp    11ac <main+0x6c>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Case %d:\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [15 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
br label %8
8: ; preds = %38, %2
%9 = load i32, i32* %6
%10 = icmp sle i32 %9, 2000
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = getelementptr inbounds [15 x i8], [15 x i8]* %7, i64 0, i64 0
%13 = call i32* @gets(i8* %12)
%14 = icmp ne i32* %13, null
br label %15
15: ; preds = %11, %8
%16 = phi i1 [ false, %8 ], [ %14, %11 ]
br i1 %16, label %17, label %41
17: ; preds = %15
%18 = getelementptr inbounds [15 x i8], [15 x i8]* %7, i64 0, i64 0
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 35
br i1 %21, label %22, label %28
22: ; preds = %17
%23 = getelementptr inbounds [15 x i8], [15 x i8]* %7, i64 0, i64 1
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %22
store i32 0, i32* %3
br label %42
28: ; preds = %22, %17
%29 = getelementptr inbounds [15 x i8], [15 x i8]* %7, i64 0, i64 0
%30 = call i32 @strlen(i8* %29)
%31 = icmp sgt i32 %30, 14
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 1, i32* %3
br label %42
33: ; preds = %28
%34 = load i32, i32* %6
%35 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %34)
%36 = getelementptr inbounds [15 x i8], [15 x i8]* %7, i64 0, i64 0
%37 = call i32 @GetLanguage(i8* %36)
br label %38
38: ; preds = %33
%39 = load i32, i32* %6
%40 = add nsw i32 %39, 1
store i32 %40, i32* %6
br label %8
41: ; preds = %15
store i32 0, i32* %3
br label %42
42: ; preds = %41, %32, %27
%43 = load i32, i32* %3
ret i32 %43
}

LLVM IR (-O2):
@.str = [9 x i8] c"Case %d:\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [15 x i8]
%4 = getelementptr inbounds [15 x i8], [15 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds [15 x i8], [15 x i8]* %3, i64 0, i64 1
br label %6
6: ; preds = %2, %19
%7 = phi i32 [ 1, %2 ], [ %22, %19 ]
%8 = call i32* @gets(i8* %4)
%9 = icmp eq i32* %8, null
br i1 %9, label %24, label %10
10: ; preds = %6
%11 = load i8, i8* %4
%12 = icmp eq i8 %11, 35
%13 = load i8, i8* %5
%14 = icmp eq i8 %13, 0
%15 = select i1 %12, i1 %14, i1 false
br i1 %15, label %24, label %16
16: ; preds = %10
%17 = call i32 @strlen(i8* %4)
%18 = icmp sgt i32 %17, 14
br i1 %18, label %24, label %19
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %7)
%21 = call i32 @GetLanguage(i8* %4)
%22 = add nuw nsw i32 %7, 1
%23 = icmp eq i32 %22, 2001
br i1 %23, label %24, label %6
24: ; preds = %6, %19, %16, %10
%25 = phi i32 [ 0, %10 ], [ 1, %16 ], [ 0, %19 ], [ 0, %6 ]
ret i32 %25
}