#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 */
typedef int /*<<< orphan*/ time_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
double difftime(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *);
int getchar();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(void) {
  FILE *scores;
  int s[10];
  int x;
  time_t then;
  scores = fopen("scores.dat", "r");
  if (!scores) {
    puts("Error opening file");
    return 1;
  }
  for (x = 0; x < 10; x++)
    fscanf(scores, "%d", &s[x]);
  fclose(scores);
  then = time(NULL);
  while (difftime(time(NULL), then) < 1.3)
    ;
  puts("\t...");
  time(&then);
  while (difftime(time(NULL), then) < 1.2)
    ;
  printf("Top 10 Highscores %c\n", 25);
  for (x = 0; x < 10; x++)
    printf("\t%d\n", s[x]);
  printf("\nDo you want to clear the highscore? Y/N %c ", 16);
  x = getchar();
  switch (x) {
  case 'y':
  case 'Y':
    system("del scores.dat");
    then = time(NULL);
    while (difftime(time(NULL), then) < 1.3)
      ;
    puts("\t...");
    time(&then);
    while (difftime(time(NULL), then) < 1.3)
      ;
    puts("\tscores.dat successfully deleted");
    return 0;
  case 'n':
  case 'N':
    puts("\tOk... ");
    return 0;
  default:
    puts("Guess pressing Y or N is too much of a hassle for you..");
    time(&then);
    while (difftime(time(NULL), then) < 1.2)
      ;
    puts("\t Bye!");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed3(%rip),%rdi
lea    0xe63(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11d9 <main+0x49>
lea    0xe4a(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    144d <main+0x2bd>
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    1217 <main+0x87>
mov    -0x10(%rbp),%rdi
movslq -0x44(%rbp),%rax
lea    -0x40(%rbp),%rdx
shl    $0x2,%rax
add    %rax,%rdx
lea    0xe21(%rip),%rsi
call   1080 <fscanf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11e0 <main+0x50>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,-0x48(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,%edi
mov    -0x48(%rbp),%esi
call   1070 <difftime@plt>
movaps %xmm0,%xmm1
movsd  0xdb6(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1259 <main+0xc9>
jmp    122c <main+0x9c>
lea    0xdc8(%rip),%rdi
call   1030 <puts@plt>
lea    -0x48(%rbp),%rdi
call   10a0 <time@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,%edi
mov    -0x48(%rbp),%esi
call   1070 <difftime@plt>
movaps %xmm0,%xmm1
movsd  0xd7c(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    129b <main+0x10b>
jmp    126e <main+0xde>
lea    0xd8b(%rip),%rdi
mov    $0x19,%esi
call   1060 <printf@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    12df <main+0x14f>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%esi
lea    0xd77(%rip),%rdi
call   1060 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12b3 <main+0x123>
lea    0xd62(%rip),%rdi
mov    $0x10,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   1090 <getchar@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x4c(%rbp)
sub    $0x4e,%eax
je     13e0 <main+0x250>
jmp    130e <main+0x17e>
mov    -0x4c(%rbp),%eax
sub    $0x59,%eax
je     1341 <main+0x1b1>
jmp    131f <main+0x18f>
mov    -0x4c(%rbp),%eax
sub    $0x6e,%eax
je     13e0 <main+0x250>
jmp    1330 <main+0x1a0>
mov    -0x4c(%rbp),%eax
sub    $0x79,%eax
jne    13f8 <main+0x268>
jmp    1341 <main+0x1b1>
lea    0xd2d(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,-0x48(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,%edi
mov    -0x48(%rbp),%esi
call   1070 <difftime@plt>
movaps %xmm0,%xmm1
movsd  0xc89(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1386 <main+0x1f6>
jmp    1359 <main+0x1c9>
lea    0xc9b(%rip),%rdi
call   1030 <puts@plt>
lea    -0x48(%rbp),%rdi
call   10a0 <time@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,%edi
mov    -0x48(%rbp),%esi
call   1070 <difftime@plt>
movaps %xmm0,%xmm1
movsd  0xc47(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13c8 <main+0x238>
jmp    139b <main+0x20b>
lea    0xcb5(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0x4(%rbp)
jmp    144d <main+0x2bd>
lea    0xcbe(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0x4(%rbp)
jmp    144d <main+0x2bd>
lea    0xcae(%rip),%rdi
call   1030 <puts@plt>
lea    -0x48(%rbp),%rdi
call   10a0 <time@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,%edi
mov    -0x48(%rbp),%esi
call   1070 <difftime@plt>
movaps %xmm0,%xmm1
movsd  0xbdd(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    143a <main+0x2aa>
jmp    140d <main+0x27d>
lea    0xca4(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
lea    0xedb(%rip),%rdi
lea    0xe6b(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     13ec <main+0x25c>
mov    %rax,%rbx
lea    0xe68(%rip),%r14
lea    0x10(%rsp),%rdx
mov    %rax,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x14(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x18(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x1c(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x20(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x24(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x28(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x2c(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x30(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
lea    0x34(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <fscanf@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,%ebx
mov    %eax,0xc(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1070 <difftime@plt>
movsd  0xd68(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     1280 <main+0xf0>
lea    0xd83(%rip),%rdi
call   1030 <puts@plt>
lea    0xc(%rsp),%rdi
call   10a0 <time@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %edi,%edi
call   10a0 <time@plt>
mov    0xc(%rsp),%esi
mov    %eax,%edi
call   1070 <difftime@plt>
movsd  0xd2e(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     12c0 <main+0x130>
lea    0xd46(%rip),%rdi
mov    $0x19,%esi
call   1060 <printf@plt>
mov    0x10(%rsp),%esi
lea    0xd47(%rip),%rbx
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
lea    0xcd1(%rip),%rdi
mov    $0x10,%esi
call   1060 <printf@plt>
xor    %eax,%eax
call   1090 <getchar@plt>
cmp    $0x6d,%eax
jg     1402 <main+0x272>
cmp    $0x4e,%eax
je     1499 <main+0x309>
cmp    $0x59,%eax
je     1410 <main+0x280>
lea    0xd0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xc(%rsp),%rdi
call   10a0 <time@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
call   10a0 <time@plt>
mov    0xc(%rsp),%esi
mov    %eax,%edi
call   1070 <difftime@plt>
movsd  0xc2e(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     13c0 <main+0x230>
lea    0xcfe(%rip),%rdi
jmp    14a0 <main+0x310>
lea    0xc1f(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
jmp    14a7 <main+0x317>
cmp    $0x6e,%eax
je     1499 <main+0x309>
cmp    $0x79,%eax
jne    139b <main+0x20b>
lea    0xc5e(%rip),%rdi
call   1050 <system@plt>
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,0xc(%rsp)
nopw   0x0(%rax,%rax,1)
xor    %edi,%edi
call   10a0 <time@plt>
mov    0xc(%rsp),%esi
mov    %eax,%edi
call   1070 <difftime@plt>
movsd  0xbb6(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     1430 <main+0x2a0>
lea    0xbd1(%rip),%rdi
call   1030 <puts@plt>
lea    0xc(%rsp),%rdi
call   10a0 <time@plt>
cs nopw 0x0(%rax,%rax,1)
xor    %edi,%edi
call   10a0 <time@plt>
mov    0xc(%rsp),%esi
mov    %eax,%edi
call   1070 <difftime@plt>
movsd  0xb76(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     1470 <main+0x2e0>
lea    0xbed(%rip),%rdi
jmp    14a0 <main+0x310>
lea    0xc05(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [11 x i8] c"scores.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [19 x i8] c"Error opening file\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [5 x i8] c"\09...\00"
@.str.5 = [22 x i8] c"Top 10 Highscores %c\0A\00"
@.str.6 = [5 x i8] c"\09%d\0A\00"
@.str.7 = [45 x i8] c"\0ADo you want to clear the highscore? Y/N %c \00"
@.str.8 = [15 x i8] c"del scores.dat\00"
@.str.9 = [33 x i8] c"\09scores.dat successfully deleted\00"
@.str.10 = [8 x i8] c"\09Ok... \00"
@.str.11 = [56 x i8] c"Guess pressing Y or N is too much of a hassle for you..\00"
@.str.12 = [7 x i8] c"\09 Bye!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [10 x i32]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %6, i32** %2
%7 = load i32*, i32** %2
%8 = icmp ne i32* %7, null
br i1 %8, label %11, label %9
9: ; preds = %0
%10 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %95
11: ; preds = %0
store i32 0, i32* %4
br label %12
12: ; preds = %21, %11
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 10
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load i32*, i32** %2
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %18
%20 = call i32 @fscanf(i32* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %19)
br label %21
21: ; preds = %15
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 1
store i32 %23, i32* %4
br label %12
24: ; preds = %12
%25 = load i32*, i32** %2
%26 = call i32 @fclose(i32* %25)
%27 = call i32 @time(i32* null)
store i32 %27, i32* %5
br label %28
28: ; preds = %33, %24
%29 = call i32 @time(i32* null)
%30 = load i32, i32* %5
%31 = call double @difftime(i32 %29, i32 %30)
%32 = fcmp olt double %31, 1.300000e+00
br i1 %32, label %33, label %34
33: ; preds = %28
br label %28
34: ; preds = %28
%35 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%36 = call i32 @time(i32* %5)
br label %37
37: ; preds = %42, %34
%38 = call i32 @time(i32* null)
%39 = load i32, i32* %5
%40 = call double @difftime(i32 %38, i32 %39)
%41 = fcmp olt double %40, 1.200000e+00
br i1 %41, label %42, label %43
42: ; preds = %37
br label %37
43: ; preds = %37
%44 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 25)
store i32 0, i32* %4
br label %45
45: ; preds = %54, %43
%46 = load i32, i32* %4
%47 = icmp slt i32 %46, 10
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = load i32, i32* %4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %50
%52 = load i32, i32* %51
%53 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %52)
br label %54
54: ; preds = %48
%55 = load i32, i32* %4
%56 = add nsw i32 %55, 1
store i32 %56, i32* %4
br label %45
57: ; preds = %45
%58 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0), i32 16)
%59 = call i32 (...) @getchar()
store i32 %59, i32* %4
%60 = load i32, i32* %4
switch i32 %60, label %83 [
i32 121, label %61
i32 89, label %61
i32 110, label %81
i32 78, label %81
]
61: ; preds = %57, %57
%62 = call i32 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%63 = call i32 @time(i32* null)
store i32 %63, i32* %5
br label %64
64: ; preds = %69, %61
%65 = call i32 @time(i32* null)
%66 = load i32, i32* %5
%67 = call double @difftime(i32 %65, i32 %66)
%68 = fcmp olt double %67, 1.300000e+00
br i1 %68, label %69, label %70
69: ; preds = %64
br label %64
70: ; preds = %64
%71 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%72 = call i32 @time(i32* %5)
br label %73
73: ; preds = %78, %70
%74 = call i32 @time(i32* null)
%75 = load i32, i32* %5
%76 = call double @difftime(i32 %74, i32 %75)
%77 = fcmp olt double %76, 1.300000e+00
br i1 %77, label %78, label %79
78: ; preds = %73
br label %73
79: ; preds = %73
%80 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %1
br label %95
81: ; preds = %57, %57
%82 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %1
br label %95
83: ; preds = %57
%84 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.11, i64 0, i64 0))
%85 = call i32 @time(i32* %5)
br label %86
86: ; preds = %91, %83
%87 = call i32 @time(i32* null)
%88 = load i32, i32* %5
%89 = call double @difftime(i32 %87, i32 %88)
%90 = fcmp olt double %89, 1.200000e+00
br i1 %90, label %91, label %92
91: ; preds = %86
br label %86
92: ; preds = %86
%93 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
br label %94
94: ; preds = %92
store i32 0, i32* %1
br label %95
95: ; preds = %94, %81, %79, %9
%96 = load i32, i32* %1
ret i32 %96
}

LLVM IR (-O2):
@.str = [11 x i8] c"scores.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [19 x i8] c"Error opening file\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [5 x i8] c"\09...\00"
@.str.5 = [22 x i8] c"Top 10 Highscores %c\0A\00"
@.str.6 = [5 x i8] c"\09%d\0A\00"
@.str.7 = [45 x i8] c"\0ADo you want to clear the highscore? Y/N %c \00"
@.str.8 = [15 x i8] c"del scores.dat\00"
@.str.9 = [33 x i8] c"\09scores.dat successfully deleted\00"
@.str.10 = [8 x i8] c"\09Ok... \00"
@.str.11 = [56 x i8] c"Guess pressing Y or N is too much of a hassle for you..\00"
@.str.12 = [7 x i8] c"\09 Bye!\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = bitcast [10 x i32]* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %30, label %7
7: ; preds = %0
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%9 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%11 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %10)
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%13 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %12)
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%15 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%17 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%19 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%21 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %20)
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%23 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %22)
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%25 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %24)
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%27 = call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %26)
%28 = call i32 @fclose(i32* %5)
%29 = call i32 @time(i32* null)
store i32 %29, i32* %2
br label %32
30: ; preds = %0
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %98
32: ; preds = %32, %7
%33 = call i32 @time(i32* null)
%34 = call double @difftime(i32 %33, i32 %29)
%35 = fcmp olt double %34, 1.300000e+00
br i1 %35, label %32, label %36
36: ; preds = %32
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%38 = call i32 @time(i32* %2)
br label %39
39: ; preds = %39, %36
%40 = call i32 @time(i32* null)
%41 = load i32, i32* %2
%42 = call double @difftime(i32 %40, i32 %41)
%43 = fcmp olt double %42, 1.200000e+00
br i1 %43, label %39, label %44
44: ; preds = %39
%45 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 25)
%46 = load i32, i32* %8
%47 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %10
%49 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %12
%51 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %14
%53 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %16
%55 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %54)
%56 = load i32, i32* %18
%57 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %20
%59 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %22
%61 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %24
%63 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %62)
%64 = load i32, i32* %26
%65 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %64)
%66 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0), i32 16)
%67 = call i32 (...) @getchar()
switch i32 %67, label %88 [
i32 121, label %68
i32 89, label %68
i32 110, label %86
i32 78, label %86
]
68: ; preds = %44, %44
%69 = call i32 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%70 = call i32 @time(i32* null)
store i32 %70, i32* %2
br label %71
71: ; preds = %71, %68
%72 = call i32 @time(i32* null)
%73 = load i32, i32* %2
%74 = call double @difftime(i32 %72, i32 %73)
%75 = fcmp olt double %74, 1.300000e+00
br i1 %75, label %71, label %76
76: ; preds = %71
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%78 = call i32 @time(i32* %2)
br label %79
79: ; preds = %79, %76
%80 = call i32 @time(i32* null)
%81 = load i32, i32* %2
%82 = call double @difftime(i32 %80, i32 %81)
%83 = fcmp olt double %82, 1.300000e+00
br i1 %83, label %79, label %84
84: ; preds = %79
%85 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
br label %98
86: ; preds = %44, %44
%87 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %98
88: ; preds = %44
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.11, i64 0, i64 0))
%90 = call i32 @time(i32* %2)
br label %91
91: ; preds = %91, %88
%92 = call i32 @time(i32* null)
%93 = load i32, i32* %2
%94 = call double @difftime(i32 %92, i32 %93)
%95 = fcmp olt double %94, 1.200000e+00
br i1 %95, label %91, label %96
96: ; preds = %91
%97 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
br label %98
98: ; preds = %96, %86, %84, %30
%99 = phi i32 [ 0, %96 ], [ 0, %86 ], [ 0, %84 ], [ 1, %30 ]
ret i32 %99
}