#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 analog(int);
void capteurs(int *gau, int *mil, int *dro, int *bon1, int *bon2, int *bon3) {
  *gau = analog(27);
  *mil = analog(25);
  *dro = analog(23);
  *bon1 = analog(17);
  *bon2 = analog(16);
  *bon3 = analog(18);
}


x86 assembly (clang, -O0):
<capteurs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    $0x1b,%edi
call   1030 <analog@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x19,%edi
call   1030 <analog@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x17,%edi
call   1030 <analog@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x11,%edi
call   1030 <analog@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x10,%edi
call   1030 <analog@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x12,%edi
call   1030 <analog@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<capteurs>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    $0x1b,%edi
call   1030 <analog@plt>
mov    %eax,0x0(%rbp)
mov    $0x19,%edi
call   1030 <analog@plt>
mov    %eax,(%rbx)
mov    $0x17,%edi
call   1030 <analog@plt>
mov    %eax,0x0(%r13)
mov    $0x11,%edi
call   1030 <analog@plt>
mov    %eax,(%r12)
mov    $0x10,%edi
call   1030 <analog@plt>
mov    %eax,(%r15)
mov    $0x12,%edi
call   1030 <analog@plt>
mov    %eax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @capteurs(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5) {
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%13 = call i32 @analog(i32 27)
%14 = load i32*, i32** %7
store i32 %13, i32* %14
%15 = call i32 @analog(i32 25)
%16 = load i32*, i32** %8
store i32 %15, i32* %16
%17 = call i32 @analog(i32 23)
%18 = load i32*, i32** %9
store i32 %17, i32* %18
%19 = call i32 @analog(i32 17)
%20 = load i32*, i32** %10
store i32 %19, i32* %20
%21 = call i32 @analog(i32 16)
%22 = load i32*, i32** %11
store i32 %21, i32* %22
%23 = call i32 @analog(i32 18)
%24 = load i32*, i32** %12
store i32 %23, i32* %24
ret void
}

LLVM IR (-O2):
define void @capteurs(i32* nocapture writeonly %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5) {
%7 = tail call i32 @analog(i32 27)
store i32 %7, i32* %0
%8 = tail call i32 @analog(i32 25)
store i32 %8, i32* %1
%9 = tail call i32 @analog(i32 23)
store i32 %9, i32* %2
%10 = tail call i32 @analog(i32 17)
store i32 %10, i32* %3
%11 = tail call i32 @analog(i32 16)
store i32 %11, i32* %4
%12 = tail call i32 @analog(i32 18)
store i32 %12, i32* %5
ret void
}