#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*/ affiche_resultats(unsigned char *, unsigned char *, int);
int main(void) {
  unsigned char bloc_1[4] = {0x01, 0x02, 0x03, 0x04};
  unsigned char bloc_2[4] = {0x01, 0x02, 0x08, 0x04};
  unsigned char bloc_3[4] = {0x01, 0x00, 0x03, 0x04};
  affiche_resultats(bloc_1, bloc_1, 4);
  affiche_resultats(bloc_1, bloc_2, 4);
  affiche_resultats(bloc_1, bloc_3, 4);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xedb(%rip),%eax
mov    %eax,-0x8(%rbp)
mov    0xed6(%rip),%eax
mov    %eax,-0xc(%rbp)
mov    0xed1(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1030 <affiche_resultats@plt>
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x4,%edx
call   1030 <affiche_resultats@plt>
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1030 <affiche_resultats@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x4030201,0xc(%rsp)
04
movl   $0x4080201,0x8(%rsp)
04
movl   $0x4030001,0x4(%rsp)
04
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    $0x4,%edx
call   1030 <affiche_resultats@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <affiche_resultats@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <affiche_resultats@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.bloc_1 = [4 x i8] c"\01\02\03\04"
@__const.main.bloc_2 = [4 x i8] c"\01\02\08\04"
@__const.main.bloc_3 = [4 x i8] c"\01\00\03\04"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i8]
%3 = alloca [4 x i8]
%4 = alloca [4 x i8]
store i32 0, i32* %1
%5 = bitcast [4 x i8]* %2 to i8*
%6 = bitcast [4 x i8]* %3 to i8*
%7 = bitcast [4 x i8]* %4 to i8*
%8 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%10 = call i32 @affiche_resultats(i8* %8, i8* %9, i32 4)
%11 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%13 = call i32 @affiche_resultats(i8* %11, i8* %12, i32 4)
%14 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%15 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%16 = call i32 @affiche_resultats(i8* %14, i8* %15, i32 4)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
store i32 67305985, i32* %1
%5 = bitcast i32* %2 to i8*
store i32 67633665, i32* %2
%6 = bitcast i32* %3 to i8*
store i32 67305473, i32* %3
%7 = call i32 @affiche_resultats(i8* %4, i8* %4, i32 4)
%8 = call i32 @affiche_resultats(i8* %4, i8* %5, i32 4)
%9 = call i32 @affiche_resultats(i8* %4, i8* %6, i32 4)
ret i32 0
}