#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*/ DispenserManager_add_dispenser(int, char *, int, int);
int /*<<< orphan*/ DispenserManager_init();
int /*<<< orphan*/ Postman_UART_close();
int /*<<< orphan*/ Postman_UART_init();
int /*<<< orphan*/ Postman_destroy();
int /*<<< orphan*/ Postman_init();
int /*<<< orphan*/ Postman_listen_start();
int /*<<< orphan*/ Postman_listen_stop();
int main() {
  DispenserManager_init();
  Postman_init();
  Postman_listen_start();
  Postman_UART_init();
  DispenserManager_add_dispenser(1, "Farine", 40, 80);
  DispenserManager_add_dispenser(2, "Pistaches", 20, 60);
  DispenserManager_add_dispenser(3, "Riz", 50, 10);
  DispenserManager_add_dispenser(4, "Pâtes", 70, 20);
  DispenserManager_add_dispenser(5, "Lentilles", 100, 100);
  DispenserManager_add_dispenser(6, "Millet", 50, 0);
  while (1) {
  }
  Postman_listen_stop();
  Postman_destroy();
  Postman_UART_close();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <DispenserManager_init@plt>
mov    $0x0,%al
call   1070 <Postman_init@plt>
mov    $0x0,%al
call   1040 <Postman_listen_start@plt>
mov    $0x0,%al
call   1030 <Postman_UART_init@plt>
mov    $0x1,%edi
lea    0xe79(%rip),%rsi
mov    $0x28,%edx
mov    $0x50,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
mov    $0x2,%edi
lea    0xe65(%rip),%rsi
mov    $0x14,%edx
mov    $0x3c,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
mov    $0x3,%edi
lea    0xe54(%rip),%rsi
mov    $0x32,%edx
mov    $0xa,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
mov    $0x4,%edi
lea    0xe3d(%rip),%rsi
mov    $0x46,%edx
mov    $0x14,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
mov    $0x5,%edi
lea    0xe29(%rip),%rsi
mov    $0x64,%ecx
mov    %ecx,%edx
call   1060 <DispenserManager_add_dispenser@plt>
mov    $0x6,%edi
lea    0xe1b(%rip),%rsi
mov    $0x32,%edx
xor    %ecx,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
jmp    1217 <main+0xc7>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <DispenserManager_init@plt>
xor    %eax,%eax
call   1070 <Postman_init@plt>
xor    %eax,%eax
call   1040 <Postman_listen_start@plt>
xor    %eax,%eax
call   1030 <Postman_UART_init@plt>
lea    0xe8c(%rip),%rsi
mov    $0x1,%edi
mov    $0x28,%edx
mov    $0x50,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
lea    0xe78(%rip),%rsi
mov    $0x2,%edi
mov    $0x14,%edx
mov    $0x3c,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
lea    0xe67(%rip),%rsi
mov    $0x3,%edi
mov    $0x32,%edx
mov    $0xa,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
lea    0xe50(%rip),%rsi
mov    $0x4,%edi
mov    $0x46,%edx
mov    $0x14,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
lea    0xe3c(%rip),%rsi
mov    $0x5,%edi
mov    $0x64,%edx
mov    $0x64,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
lea    0xe2b(%rip),%rsi
mov    $0x6,%edi
mov    $0x32,%edx
xor    %ecx,%ecx
call   1060 <DispenserManager_add_dispenser@plt>
nopl   0x0(%rax)
jmp    1210 <main+0xc0>

LLVM IR (-O0):
@.str = [7 x i8] c"Farine\00"
@.str.1 = [10 x i8] c"Pistaches\00"
@.str.2 = [4 x i8] c"Riz\00"
@.str.3 = [7 x i8] c"P\C3\A2tes\00"
@.str.4 = [10 x i8] c"Lentilles\00"
@.str.5 = [7 x i8] c"Millet\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @DispenserManager_init()
%3 = call i32 (...) @Postman_init()
%4 = call i32 (...) @Postman_listen_start()
%5 = call i32 (...) @Postman_UART_init()
%6 = call i32 @DispenserManager_add_dispenser(i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 40, i32 80)
%7 = call i32 @DispenserManager_add_dispenser(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 60)
%8 = call i32 @DispenserManager_add_dispenser(i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 50, i32 10)
%9 = call i32 @DispenserManager_add_dispenser(i32 4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 70, i32 20)
%10 = call i32 @DispenserManager_add_dispenser(i32 5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 100, i32 100)
%11 = call i32 @DispenserManager_add_dispenser(i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 50, i32 0)
br label %12
12: ; preds = %0, %12
br label %12
}

LLVM IR (-O2):
@.str = [7 x i8] c"Farine\00"
@.str.1 = [10 x i8] c"Pistaches\00"
@.str.2 = [4 x i8] c"Riz\00"
@.str.3 = [7 x i8] c"P\C3\A2tes\00"
@.str.4 = [10 x i8] c"Lentilles\00"
@.str.5 = [7 x i8] c"Millet\00"
define i32 @main() {
%1 = tail call i32 (...) @DispenserManager_init()
%2 = tail call i32 (...) @Postman_init()
%3 = tail call i32 (...) @Postman_listen_start()
%4 = tail call i32 (...) @Postman_UART_init()
%5 = tail call i32 @DispenserManager_add_dispenser(i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 40, i32 80)
%6 = tail call i32 @DispenserManager_add_dispenser(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 60)
%7 = tail call i32 @DispenserManager_add_dispenser(i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 50, i32 10)
%8 = tail call i32 @DispenserManager_add_dispenser(i32 4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 70, i32 20)
%9 = tail call i32 @DispenserManager_add_dispenser(i32 5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 100, i32 100)
%10 = tail call i32 @DispenserManager_add_dispenser(i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 50, i32 0)
br label %11
11: ; preds = %0, %11
br label %11
}