#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 */
scalar_t__ estDehorsMap(unsigned int const, int);
scalar_t__ estEndroitImpossible(unsigned int const, unsigned int const);
scalar_t__ estMur(unsigned int const, unsigned int const);
unsigned int testerDeplacementJoueur(const unsigned int lig,
                                     const unsigned int col) {
  return !(estDehorsMap(lig, 40) || estDehorsMap(col, 80) || estMur(lig, col) ||
           estEndroitImpossible(lig, col));
}


x86 assembly (clang, -O0):
<testerDeplacementJoueur>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x28,%esi
call   1050 <estDehorsMap@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    11ae <testerDeplacementJoueur+0x7e>
mov    -0x8(%rbp),%edi
mov    $0x50,%esi
call   1050 <estDehorsMap@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    11ae <testerDeplacementJoueur+0x7e>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <estMur@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    11ae <testerDeplacementJoueur+0x7e>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <estEndroitImpossible@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testerDeplacementJoueur>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %edi,%ebp
mov    $0x28,%esi
call   1050 <estDehorsMap@plt>
xor    %ebx,%ebx
test   %rax,%rax
jne    117d <testerDeplacementJoueur+0x4d>
mov    %r14d,%edi
mov    $0x50,%esi
call   1050 <estDehorsMap@plt>
test   %rax,%rax
jne    117d <testerDeplacementJoueur+0x4d>
mov    %ebp,%edi
mov    %r14d,%esi
call   1040 <estMur@plt>
test   %rax,%rax
jne    117d <testerDeplacementJoueur+0x4d>
mov    %ebp,%edi
mov    %r14d,%esi
call   1030 <estEndroitImpossible@plt>
xor    %ebx,%ebx
test   %rax,%rax
sete   %bl
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @testerDeplacementJoueur(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = call i64 @estDehorsMap(i32 %5, i32 40)
%7 = icmp ne i64 %6, 0
br i1 %7, label %22, label %8
8: ; preds = %2
%9 = load i32, i32* %4
%10 = call i64 @estDehorsMap(i32 %9, i32 80)
%11 = icmp ne i64 %10, 0
br i1 %11, label %22, label %12
12: ; preds = %8
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = call i64 @estMur(i32 %13, i32 %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %12
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = call i64 @estEndroitImpossible(i32 %18, i32 %19)
%21 = icmp ne i64 %20, 0
br label %22
22: ; preds = %17, %12, %8, %2
%23 = phi i1 [ true, %12 ], [ true, %8 ], [ true, %2 ], [ %21, %17 ]
%24 = xor i1 %23, true
%25 = zext i1 %24 to i32
ret i32 %25
}

LLVM IR (-O2):
define i32 @testerDeplacementJoueur(i32 %0, i32 %1) {
%3 = tail call i64 @estDehorsMap(i32 %0, i32 40)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %15
5: ; preds = %2
%6 = tail call i64 @estDehorsMap(i32 %1, i32 80)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = tail call i64 @estMur(i32 %0, i32 %1)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = tail call i64 @estEndroitImpossible(i32 %0, i32 %1)
%13 = icmp eq i64 %12, 0
%14 = zext i1 %13 to i32
br label %15
15: ; preds = %11, %8, %5, %2
%16 = phi i32 [ 0, %8 ], [ 0, %5 ], [ 0, %2 ], [ %14, %11 ]
ret i32 %16
}