#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 scalar_t__ time_t;

/* Variables and functions */
char *ctime(scalar_t__ *);
int /*<<< orphan*/ debut();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(int *);
scalar_t__ gagne(int *, int);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ highAdd(char *, int, int, char *, char *);
char lireLettre();
int *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ randMot(char *);
int /*<<< orphan*/ recherche(char, char *, int *);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ stderr;
int strlen(char *);
int /*<<< orphan*/ system(char *);
scalar_t__ time(int /*<<< orphan*/ *);
void play() {
  char lettre = 0;
  char motSecret[100] = {0};
  int *lettreTrouve = NULL;
  int vie = 10;
  int i = 0;
  int tailleMot = 0;
  int rejouer = 0;
  char pseudo[100] = {0};
  int ok = 0;
  int faute = 0;
  system("clear");
  if (!randMot(motSecret)) {
    exit(0);
  }
  tailleMot = strlen(motSecret);
  lettreTrouve = malloc(tailleMot * sizeof(int));
  if (lettreTrouve == NULL) {
    printf("dema2");
    exit(0);
  }
  for (i = 0; i < tailleMot; i++) {
    lettreTrouve[i] = 0;
  }
  do {
    printf("Il te reste %d vie(s)\n", vie);
    for (i = 0; i < tailleMot; i++) {
      if (!lettreTrouve[i]) {
        printf("*");
      } else {
        printf("%c", motSecret[i]);
      }
    }
    printf("\n");
    printf("une lettre : ");
    lettre = lireLettre();
    if (!recherche(lettre, motSecret, lettreTrouve)) {
      vie--;
      faute++;
    } else {
      ok++;
    }
    system("clear");
  } while (vie > 0 && !gagne(lettreTrouve, tailleMot));
  if (gagne(lettreTrouve, tailleMot)) {
    printf("\nWhoo ! TU AS GAGNE. Tu as trouve : %s !\n", motSecret);
  } else {
    printf("\nperdu le mot ete : %s\n\n", motSecret);
  }
  free(lettreTrouve);
  printf("Ton nom : ");
  scanf("%s", pseudo);
  printf("Tu sera sauvgarde dans les score sous le pseudo : %s", pseudo);
  time_t current_time;
  char *c_time_string;
  current_time = time(NULL);
  if (current_time == ((time_t)-1)) {
    (void)fprintf(stderr, "Failure to obtain the current time.\n");
    exit(0);
  }
  c_time_string = ctime(&current_time);
  if (c_time_string == NULL) {
    (void)fprintf(stderr, "Failure to convert the current time.\n");
    exit(0);
  }
  highAdd(pseudo, faute, ok, c_time_string, motSecret);
  getchar();
  system("clear");
  debut();
}


x86 assembly (clang, -O0):
<play>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movb   $0x0,-0x1(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   10a0 <memset@plt>
movq   $0x0,-0x78(%rbp)
movl   $0xa,-0x7c(%rbp)
movl   $0x0,-0x80(%rbp)
movl   $0x0,-0x84(%rbp)
movl   $0x0,-0x88(%rbp)
lea    -0xf0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   10a0 <memset@plt>
movl   $0x0,-0xf4(%rbp)
movl   $0x0,-0xf8(%rbp)
lea    0xd69(%rip),%rdi
call   1080 <system@plt>
lea    -0x70(%rbp),%rdi
call   1140 <randMot@plt>
cmp    $0x0,%eax
jne    12b5 <play+0x95>
xor    %edi,%edi
call   1130 <exit@plt>
lea    -0x70(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x84(%rbp)
movslq -0x84(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1100 <malloc@plt>
mov    %rax,-0x78(%rbp)
cmpq   $0x0,-0x78(%rbp)
jne    12fa <play+0xda>
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
xor    %edi,%edi
call   1130 <exit@plt>
movl   $0x0,-0x80(%rbp)
mov    -0x80(%rbp),%eax
cmp    -0x84(%rbp),%eax
jge    132d <play+0x10d>
mov    -0x78(%rbp),%rax
movslq -0x80(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    1301 <play+0xe1>
jmp    1332 <play+0x112>
mov    -0x7c(%rbp),%esi
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
movl   $0x0,-0x80(%rbp)
mov    -0x80(%rbp),%eax
cmp    -0x84(%rbp),%eax
jge    13a8 <play+0x188>
mov    -0x78(%rbp),%rax
movslq -0x80(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    137e <play+0x15e>
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
jmp    1395 <play+0x175>
movslq -0x80(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%esi
lea    0xc97(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
jmp    139a <play+0x17a>
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    134a <play+0x12a>
lea    0xcc8(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0xc6b(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   10b0 <lireLettre@plt>
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
lea    -0x70(%rbp),%rsi
mov    -0x78(%rbp),%rdx
movsbl %al,%edi
call   1070 <recherche@plt>
cmp    $0x0,%eax
jne    1407 <play+0x1e7>
mov    -0x7c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x7c(%rbp)
mov    -0xf8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf8(%rbp)
jmp    1416 <play+0x1f6>
mov    -0xf4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf4(%rbp)
lea    0xbe3(%rip),%rdi
call   1080 <system@plt>
xor    %eax,%eax
cmpl   $0x0,-0x7c(%rbp)
mov    %al,-0x109(%rbp)
jle    1452 <play+0x232>
mov    -0x78(%rbp),%rdi
mov    -0x84(%rbp),%esi
call   10c0 <gagne@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
mov    %al,-0x109(%rbp)
mov    -0x109(%rbp),%al
test   $0x1,%al
jne    1332 <play+0x112>
mov    -0x78(%rbp),%rdi
mov    -0x84(%rbp),%esi
call   10c0 <gagne@plt>
cmp    $0x0,%rax
je     1490 <play+0x270>
lea    -0x70(%rbp),%rsi
lea    0xbb2(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
jmp    14a2 <play+0x282>
lea    -0x70(%rbp),%rsi
lea    0xbc5(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
lea    0xbc7(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    -0xf0(%rbp),%rsi
lea    0xbef(%rip),%rdi
call   1110 <scanf@plt>
lea    -0xf0(%rbp),%rsi
lea    0xbaa(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <time@plt>
mov    %rax,-0x100(%rbp)
cmpq   $0xffffffffffffffff,-0x100(%rbp)
ff
jne    151b <play+0x2fb>
mov    0x2ada(%rip),%rax
mov    (%rax),%edi
lea    0xbaa(%rip),%rsi
call   10e0 <fprintf@plt>
xor    %edi,%edi
call   1130 <exit@plt>
lea    -0x100(%rbp),%rdi
call   1050 <ctime@plt>
mov    %rax,-0x108(%rbp)
cmpq   $0x0,-0x108(%rbp)
jne    1558 <play+0x338>
mov    0x2a9d(%rip),%rax
mov    (%rax),%edi
lea    0xb92(%rip),%rsi
call   10e0 <fprintf@plt>
xor    %edi,%edi
call   1130 <exit@plt>
lea    -0xf0(%rbp),%rdi
mov    -0xf8(%rbp),%esi
mov    -0xf4(%rbp),%edx
mov    -0x108(%rbp),%rcx
lea    -0x70(%rbp),%r8
call   1040 <highAdd@plt>
mov    $0x0,%al
call   10d0 <getchar@plt>
lea    0xa77(%rip),%rdi
call   1080 <system@plt>
mov    $0x0,%al
call   1120 <debut@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<play>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movl   $0x0,0x70(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movl   $0x0,0xe0(%rsp)
lea    0xd54(%rip),%rdi
call   1090 <system@plt>
lea    0x10(%rsp),%rdi
call   1150 <randMot@plt>
test   %eax,%eax
je     14ad <play+0x27d>
lea    0x10(%rsp),%rdi
call   1070 <strlen@plt>
mov    %eax,%r15d
lea    0x0(,%r15,4),%edi
call   1110 <malloc@plt>
test   %rax,%rax
je     14b4 <play+0x284>
mov    %rax,%rbx
mov    %r15d,%r13d
test   %r15d,%r15d
jle    1303 <play+0xd3>
lea    0x0(,%r13,4),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   10b0 <memset@plt>
mov    $0xa,%r14d
xor    %ebp,%ebp
xor    %r12d,%r12d
mov    %r15,(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xce5(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   10a0 <printf@plt>
test   %r15d,%r15d
jle    1370 <play+0x140>
xor    %r15d,%r15d
jmp    1354 <play+0x124>
nopl   0x0(%rax,%rax,1)
movsbl 0x10(%rsp,%r15,1),%edi
call   1040 <putchar@plt>
add    $0x1,%r15
cmp    %r15,%r13
je     1370 <play+0x140>
cmpl   $0x0,(%rbx,%r15,4)
jne    1340 <play+0x110>
mov    $0x2a,%edi
jmp    1346 <play+0x116>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xca2(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
xor    %eax,%eax
call   10c0 <lireLettre@plt>
movsbl %al,%edi
lea    0x10(%rsp),%rsi
mov    %rbx,%rdx
call   1080 <recherche@plt>
xor    %ecx,%ecx
xor    %edx,%edx
test   %eax,%eax
setne  %cl
sete   %dl
sub    %edx,%r14d
add    %ecx,%ebp
add    %edx,%r12d
lea    0xc46(%rip),%rdi
call   1090 <system@plt>
test   %r14d,%r14d
mov    (%rsp),%r15
jle    13dc <play+0x1ac>
mov    %rbx,%rdi
mov    %r15d,%esi
call   10d0 <gagne@plt>
test   %rax,%rax
je     1320 <play+0xf0>
mov    %rbx,%rdi
mov    %r15d,%esi
call   10d0 <gagne@plt>
test   %rax,%rax
lea    0xc6a(%rip),%rax
lea    0xc39(%rip),%rdi
cmove  %rax,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10a0 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0xc5d(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xc8c(%rip),%rdi
lea    0x80(%rsp),%rbx
mov    %rbx,%rsi
call   1120 <scanf@plt>
lea    0xc43(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10a0 <printf@plt>
xor    %edi,%edi
call   1100 <time@plt>
mov    %rax,0x8(%rsp)
cmp    $0xffffffffffffffff,%rax
je     14c9 <play+0x299>
lea    0x8(%rsp),%rdi
call   1060 <ctime@plt>
test   %rax,%rax
je     14db <play+0x2ab>
lea    0x80(%rsp),%rdi
lea    0x10(%rsp),%r8
mov    %r12d,%esi
mov    %ebp,%edx
mov    %rax,%rcx
call   1050 <highAdd@plt>
xor    %eax,%eax
call   10e0 <getchar@plt>
lea    0xb71(%rip),%rdi
call   1090 <system@plt>
xor    %eax,%eax
call   1130 <debut@plt>
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
call   1140 <exit@plt>
lea    0xb4b(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
xor    %edi,%edi
call   1140 <exit@plt>
mov    0x2b10(%rip),%rax
mov    (%rax),%edi
lea    0xbdb(%rip),%rsi
jmp    14eb <play+0x2bb>
mov    0x2afe(%rip),%rax
mov    (%rax),%edi
lea    0xbee(%rip),%rsi
call   10f0 <fprintf@plt>
xor    %edi,%edi
call   1140 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [6 x i8] c"dema2\00"
@.str.2 = [23 x i8] c"Il te reste %d vie(s)\0A\00"
@.str.3 = [2 x i8] c"*\00"
@.str.4 = [3 x i8] c"%c\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [14 x i8] c"une lettre : \00"
@.str.7 = [42 x i8] c"\0AWhoo ! TU AS GAGNE. Tu as trouve : %s !\0A\00"
@.str.8 = [25 x i8] c"\0Aperdu le mot ete : %s\0A\0A\00"
@.str.9 = [11 x i8] c"Ton nom : \00"
@.str.10 = [3 x i8] c"%s\00"
@.str.11 = [53 x i8] c"Tu sera sauvgarde dans les score sous le pseudo : %s\00"
@stderr = global i32 0
@.str.12 = [37 x i8] c"Failure to obtain the current time.\0A\00"
@.str.13 = [38 x i8] c"Failure to convert the current time.\0A\00"
define void @play() {
%1 = alloca i8
%2 = alloca [100 x i8]
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [100 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i64
%12 = alloca i8*
store i8 0, i8* %1
%13 = bitcast [100 x i8]* %2 to i8*
store i32* null, i32** %3
store i32 10, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
%14 = bitcast [100 x i8]* %8 to i8*
store i32 0, i32* %9
store i32 0, i32* %10
%15 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%17 = call i32 @randMot(i8* %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %0
%20 = call i32 @exit(i32 0)
unreachable
21: ; preds = %0
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%23 = call i32 @strlen(i8* %22)
store i32 %23, i32* %6
%24 = load i32, i32* %6
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 4
%27 = trunc i64 %26 to i32
%28 = call i32* @malloc(i32 %27)
store i32* %28, i32** %3
%29 = load i32*, i32** %3
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %34
31: ; preds = %21
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 @exit(i32 0)
unreachable
34: ; preds = %21
store i32 0, i32* %5
br label %35
35: ; preds = %44, %34
%36 = load i32, i32* %5
%37 = load i32, i32* %6
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %47
39: ; preds = %35
%40 = load i32*, i32** %3
%41 = load i32, i32* %5
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, i32* %40, i64 %42
store i32 0, i32* %43
br label %44
44: ; preds = %39
%45 = load i32, i32* %5
%46 = add nsw i32 %45, 1
store i32 %46, i32* %5
br label %35
47: ; preds = %35
br label %48
48: ; preds = %103, %47
%49 = load i32, i32* %4
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %49)
store i32 0, i32* %5
br label %51
51: ; preds = %72, %48
%52 = load i32, i32* %5
%53 = load i32, i32* %6
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %75
55: ; preds = %51
%56 = load i32*, i32** %3
%57 = load i32, i32* %5
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, i32* %56, i64 %58
%60 = load i32, i32* %59
%61 = icmp ne i32 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %55
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %71
64: ; preds = %55
%65 = load i32, i32* %5
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %66
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %69)
br label %71
71: ; preds = %64, %62
br label %72
72: ; preds = %71
%73 = load i32, i32* %5
%74 = add nsw i32 %73, 1
store i32 %74, i32* %5
br label %51
75: ; preds = %51
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%78 = call signext i8 (...) @lireLettre()
store i8 %78, i8* %1
%79 = load i8, i8* %1
%80 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%81 = load i32*, i32** %3
%82 = call i32 @recherche(i8 signext %79, i8* %80, i32* %81)
%83 = icmp ne i32 %82, 0
br i1 %83, label %89, label %84
84: ; preds = %75
%85 = load i32, i32* %4
%86 = add nsw i32 %85, -1
store i32 %86, i32* %4
%87 = load i32, i32* %10
%88 = add nsw i32 %87, 1
store i32 %88, i32* %10
br label %92
89: ; preds = %75
%90 = load i32, i32* %9
%91 = add nsw i32 %90, 1
store i32 %91, i32* %9
br label %92
92: ; preds = %89, %84
%93 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %94
94: ; preds = %92
%95 = load i32, i32* %4
%96 = icmp sgt i32 %95, 0
br i1 %96, label %97, label %103
97: ; preds = %94
%98 = load i32*, i32** %3
%99 = load i32, i32* %6
%100 = call i64 @gagne(i32* %98, i32 %99)
%101 = icmp ne i64 %100, 0
%102 = xor i1 %101, true
br label %103
103: ; preds = %97, %94
%104 = phi i1 [ false, %94 ], [ %102, %97 ]
br i1 %104, label %48, label %105
105: ; preds = %103
%106 = load i32*, i32** %3
%107 = load i32, i32* %6
%108 = call i64 @gagne(i32* %106, i32 %107)
%109 = icmp ne i64 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %105
%111 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i8* %111)
br label %116
113: ; preds = %105
%114 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i8* %114)
br label %116
116: ; preds = %113, %110
%117 = load i32*, i32** %3
%118 = call i32 @free(i32* %117)
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%120 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%121 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %120)
%122 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0), i8* %122)
%124 = call i64 @time(i32* null)
store i64 %124, i64* %11
%125 = load i64, i64* %11
%126 = icmp eq i64 %125, -1
br i1 %126, label %127, label %131
127: ; preds = %116
%128 = load i32, i32* @stderr
%129 = call i32 @fprintf(i32 %128, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%130 = call i32 @exit(i32 0)
unreachable
131: ; preds = %116
%132 = call i8* @ctime(i64* %11)
store i8* %132, i8** %12
%133 = load i8*, i8** %12
%134 = icmp eq i8* %133, null
br i1 %134, label %135, label %139
135: ; preds = %131
%136 = load i32, i32* @stderr
%137 = call i32 @fprintf(i32 %136, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%138 = call i32 @exit(i32 0)
unreachable
139: ; preds = %131
%140 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%141 = load i32, i32* %10
%142 = load i32, i32* %9
%143 = load i8*, i8** %12
%144 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%145 = call i32 @highAdd(i8* %140, i32 %141, i32 %142, i8* %143, i8* %144)
%146 = call i32 (...) @getchar()
%147 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%148 = call i32 (...) @debut()
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [6 x i8] c"dema2\00"
@.str.2 = [23 x i8] c"Il te reste %d vie(s)\0A\00"
@.str.6 = [14 x i8] c"une lettre : \00"
@.str.7 = [42 x i8] c"\0AWhoo ! TU AS GAGNE. Tu as trouve : %s !\0A\00"
@.str.8 = [25 x i8] c"\0Aperdu le mot ete : %s\0A\0A\00"
@.str.9 = [11 x i8] c"Ton nom : \00"
@.str.10 = [3 x i8] c"%s\00"
@.str.11 = [53 x i8] c"Tu sera sauvgarde dans les score sous le pseudo : %s\00"
@stderr = global i32 0
@.str.12 = [37 x i8] c"Failure to obtain the current time.\0A\00"
@.str.13 = [38 x i8] c"Failure to convert the current time.\0A\00"
define void @play() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = alloca i64
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%6 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @randMot(i8* %4)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @exit(i32 0)
unreachable
11: ; preds = %0
%12 = call i32 @strlen(i8* %4)
%13 = shl i32 %12, 2
%14 = call i32* @malloc(i32 %13)
%15 = bitcast i32* %14 to i8*
%16 = icmp eq i32* %14, null
br i1 %16, label %22, label %17
17: ; preds = %11
%18 = icmp sgt i32 %12, 0
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = zext i32 %12 to i64
%21 = shl nuw nsw i64 %20, 2
br label %25
22: ; preds = %11
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%24 = call i32 @exit(i32 0)
unreachable
25: ; preds = %19, %17
%26 = zext i32 %12 to i64
br label %27
27: ; preds = %25, %61
%28 = phi i32 [ %53, %61 ], [ 10, %25 ]
%29 = phi i32 [ %56, %61 ], [ 0, %25 ]
%30 = phi i32 [ %58, %61 ], [ 0, %25 ]
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %28)
br i1 %18, label %32, label %46
32: ; preds = %27, %41
%33 = phi i64 [ %44, %41 ], [ 0, %27 ]
%34 = getelementptr inbounds i32, i32* %14, i64 %33
%35 = load i32, i32* %34
%36 = icmp eq i32 %35, 0
br i1 %36, label %41, label %37
37: ; preds = %32
%38 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 %33
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
br label %41
41: ; preds = %32, %37
%42 = phi i32 [ %40, %37 ], [ 42, %32 ]
%43 = call i32 @putchar(i32 %42)
%44 = add nuw nsw i64 %33, 1
%45 = icmp eq i64 %44, %26
br i1 %45, label %46, label %32
46: ; preds = %41, %27
%47 = call i32 @putchar(i32 10)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%49 = call signext i8 (...) @lireLettre()
%50 = call i32 @recherche(i8 signext %49, i8* %4, i32* %14)
%51 = icmp eq i32 %50, 0
%52 = sext i1 %51 to i32
%53 = add nsw i32 %28, %52
%54 = xor i1 %51, true
%55 = zext i1 %54 to i32
%56 = add nuw nsw i32 %29, %55
%57 = zext i1 %51 to i32
%58 = add nuw nsw i32 %30, %57
%59 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%60 = icmp sgt i32 %53, 0
br i1 %60, label %61, label %64
61: ; preds = %46
%62 = call i64 @gagne(i32* %14, i32 %12)
%63 = icmp eq i64 %62, 0
br i1 %63, label %27, label %64
64: ; preds = %46, %61
%65 = call i64 @gagne(i32* %14, i32 %12)
%66 = icmp eq i64 %65, 0
%67 = select i1 %66, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %67, i8* %4)
%69 = call i32 @free(i32* %14)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%71 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %5)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0), i8* %5)
%73 = bitcast i64* %3 to i8*
%74 = call i64 @time(i32* null)
store i64 %74, i64* %3
%75 = icmp eq i64 %74, -1
br i1 %75, label %76, label %80
76: ; preds = %64
%77 = load i32, i32* @stderr
%78 = call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%79 = call i32 @exit(i32 0)
unreachable
80: ; preds = %64
%81 = call i8* @ctime(i64* %3)
%82 = icmp eq i8* %81, null
br i1 %82, label %83, label %87
83: ; preds = %80
%84 = load i32, i32* @stderr
%85 = call i32 @fprintf(i32 %84, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%86 = call i32 @exit(i32 0)
unreachable
87: ; preds = %80
%88 = call i32 @highAdd(i8* %5, i32 %58, i32 %56, i8* %81, i8* %4)
%89 = call i32 (...) @getchar()
%90 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%91 = call i32 (...) @debut()
ret void
}