#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*/ coloration(char *, char *);
int /*<<< orphan*/ systemePoints(int, int, int);
void victoireMastermindSolo(int coups, int modeDeJeux) {
  int nbPoints, nbPointsVIP;
  nbPoints = nbPointsVIP = 0;
  if (coups <= 4) {
    nbPoints = 300;
    nbPointsVIP = 3;
  } else
    nbPoints = 40 / coups * 10;
  coloration("Bravo ! Vous avez gagne.\n", "32");
  systemePoints(nbPoints, nbPointsVIP, modeDeJeux);
}


x86 assembly (clang, -O0):
<victoireMastermindSolo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x4,-0x4(%rbp)
jg     1159 <victoireMastermindSolo+0x39>
movl   $0x12c,-0xc(%rbp)
movl   $0x3,-0x10(%rbp)
jmp    1168 <victoireMastermindSolo+0x48>
mov    $0x28,%eax
cltd
idivl  -0x4(%rbp)
imul   $0xa,%eax,%eax
mov    %eax,-0xc(%rbp)
lea    0xe91(%rip),%rdi
lea    0xea4(%rip),%rsi
call   1030 <coloration@plt>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0x8(%rbp),%edx
call   1040 <systemePoints@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<victoireMastermindSolo>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
cmp    $0x5,%edi
jge    1138 <victoireMastermindSolo+0x18>
mov    $0x3,%ebp
mov    $0x12c,%ebx
jmp    1148 <victoireMastermindSolo+0x28>
xor    %ebp,%ebp
mov    $0x28,%eax
xor    %edx,%edx
div    %edi
add    %eax,%eax
lea    (%rax,%rax,4),%ebx
lea    0xeb1(%rip),%rdi
lea    0xec4(%rip),%rsi
call   1030 <coloration@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r14d,%edx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <systemePoints@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"Bravo ! Vous avez gagne.\0A\00"
@.str.1 = [3 x i8] c"32\00"
define void @victoireMastermindSolo(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %6
store i32 0, i32* %5
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 4
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 300, i32* %5
store i32 3, i32* %6
br label %14
10: ; preds = %2
%11 = load i32, i32* %3
%12 = sdiv i32 40, %11
%13 = mul nsw i32 %12, 10
store i32 %13, i32* %5
br label %14
14: ; preds = %10, %9
%15 = call i32 @coloration(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* %5
%17 = load i32, i32* %6
%18 = load i32, i32* %4
%19 = call i32 @systemePoints(i32 %16, i32 %17, i32 %18)
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"Bravo ! Vous avez gagne.\0A\00"
@.str.1 = [3 x i8] c"32\00"
define void @victoireMastermindSolo(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, 5
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = udiv i32 40, %0
%6 = mul nuw nsw i32 %5, 10
br label %7
7: ; preds = %2, %4
%8 = phi i32 [ %6, %4 ], [ 300, %2 ]
%9 = phi i32 [ 0, %4 ], [ 3, %2 ]
%10 = tail call i32 @coloration(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 @systemePoints(i32 %8, i32 %9, i32 %1)
ret void
}