#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*/ FILE;

/* Variables and functions */
int EOF;
int /*<<< orphan*/ debut();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ system(char *);
void high() {
  system("clear");
  printf(
      "Ici sont tous les score des joueurs (dans un ordre aleatoire :/) :\n\n");
  int c;
  FILE *file;
  file = fopen("high.paul", "r");
  if (file) {
    while ((c = getc(file)) != EOF)
      printf("%c", c);
    fclose(file);
  }
  getchar();
  debut();
}


x86 assembly (clang, -O0):
<high>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xe81(%rip),%rdi
call   1040 <system@plt>
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    0xe64(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11f3 <high+0x83>
jmp    11b9 <high+0x49>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %eax,-0x4(%rbp)
mov    0x2e1c(%rip),%rcx
cmp    (%rcx),%eax
je     11ea <high+0x7a>
mov    -0x4(%rbp),%esi
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11b9 <high+0x49>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
mov    $0x0,%al
call   1080 <debut@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<high>:
push   %r14
push   %rbx
push   %rax
lea    0xe75(%rip),%rdi
call   1060 <system@plt>
lea    0xe79(%rip),%rdi
call   1040 <puts@plt>
lea    0xe63(%rip),%rdi
lea    0xe5a(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     11ec <high+0x6c>
mov    %rax,%rbx
mov    %rax,%rdi
call   10a0 <getc@plt>
mov    0x2e22(%rip),%r14
cmp    (%r14),%eax
je     11e4 <high+0x64>
nopl   0x0(%rax,%rax,1)
mov    %eax,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   10a0 <getc@plt>
cmp    (%r14),%eax
jne    11d0 <high+0x50>
mov    %rbx,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1090 <debut@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [69 x i8] c"Ici sont tous les score des joueurs (dans un ordre aleatoire :/) :\0A\0A\00"
@.str.2 = [10 x i8] c"high.paul\00"
@.str.3 = [2 x i8] c"r\00"
@EOF = global i32 0
@.str.4 = [3 x i8] c"%c\00"
define void @high() {
%1 = alloca i32
%2 = alloca i32*
%3 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %5, i32** %2
%6 = load i32*, i32** %2
%7 = icmp ne i32* %6, null
br i1 %7, label %8, label %20
8: ; preds = %0
br label %9
9: ; preds = %14, %8
%10 = load i32*, i32** %2
%11 = call i32 @getc(i32* %10)
store i32 %11, i32* %1
%12 = load i32, i32* @EOF
%13 = icmp ne i32 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = load i32, i32* %1
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %15)
br label %9
17: ; preds = %9
%18 = load i32*, i32** %2
%19 = call i32 @fclose(i32* %18)
br label %20
20: ; preds = %17, %0
%21 = call i32 (...) @getchar()
%22 = call i32 (...) @debut()
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.2 = [10 x i8] c"high.paul\00"
@.str.3 = [2 x i8] c"r\00"
@EOF = global i32 0
@str = [68 x i8] c"Ici sont tous les score des joueurs (dans un ordre aleatoire :/) :\0A\00"
define void @high() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str, i64 0, i64 0))
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%4 = icmp eq i32* %3, null
br i1 %4, label %17, label %5
5: ; preds = %0
%6 = tail call i32 @getc(i32* %3)
%7 = load i32, i32* @EOF
%8 = icmp eq i32 %6, %7
br i1 %8, label %15, label %9
9: ; preds = %5, %9
%10 = phi i32 [ %12, %9 ], [ %6, %5 ]
%11 = tail call i32 @putchar(i32 %10)
%12 = tail call i32 @getc(i32* %3)
%13 = load i32, i32* @EOF
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %9
15: ; preds = %9, %5
%16 = tail call i32 @fclose(i32* %3)
br label %17
17: ; preds = %15, %0
%18 = tail call i32 (...) @getchar()
%19 = tail call i32 (...) @debut()
ret void
}