#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*/ DecreaseButton();
int /*<<< orphan*/ GetTemperature();
int /*<<< orphan*/ IncreaseButton();
int /*<<< orphan*/ InformEverything();
int /*<<< orphan*/ InformTemperature();
int /*<<< orphan*/ LcdWrite();
int /*<<< orphan*/ OnOffButton();
int /*<<< orphan*/ OpenRelay();
int /*<<< orphan*/ PortInitialization();
int /*<<< orphan*/ initNrf(int, int, int, int);
int /*<<< orphan*/ readConfigRegister();
int /*<<< orphan*/ rxPacket();
void main() {
  PortInitialization();
  readConfigRegister();
  initNrf(0x3A, 0x84, 0xB3, 0xE6);
  LcdWrite();
  while (1) {
    GetTemperature();
    IncreaseButton();
    DecreaseButton();
    OnOffButton();
    OpenRelay();
    InformTemperature();
    rxPacket();
    InformEverything();
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10d0 <PortInitialization@plt>
mov    $0x0,%al
call   10c0 <readConfigRegister@plt>
mov    $0x3a,%edi
mov    $0x84,%esi
mov    $0xb3,%edx
mov    $0xe6,%ecx
call   10e0 <initNrf@plt>
mov    $0x0,%al
call   1040 <LcdWrite@plt>
mov    $0x0,%al
call   1070 <GetTemperature@plt>
mov    $0x0,%al
call   10b0 <IncreaseButton@plt>
mov    $0x0,%al
call   1050 <DecreaseButton@plt>
mov    $0x0,%al
call   1080 <OnOffButton@plt>
mov    $0x0,%al
call   1060 <OpenRelay@plt>
mov    $0x0,%al
call   10a0 <InformTemperature@plt>
mov    $0x0,%al
call   1090 <rxPacket@plt>
mov    $0x0,%al
call   1030 <InformEverything@plt>
jmp    11f2 <main+0x32>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10d0 <PortInitialization@plt>
xor    %eax,%eax
call   10c0 <readConfigRegister@plt>
mov    $0x3a,%edi
mov    $0x84,%esi
mov    $0xb3,%edx
mov    $0xe6,%ecx
call   10e0 <initNrf@plt>
xor    %eax,%eax
call   1040 <LcdWrite@plt>
nop
xor    %eax,%eax
call   1070 <GetTemperature@plt>
xor    %eax,%eax
call   10b0 <IncreaseButton@plt>
xor    %eax,%eax
call   1050 <DecreaseButton@plt>
xor    %eax,%eax
call   1080 <OnOffButton@plt>
xor    %eax,%eax
call   1060 <OpenRelay@plt>
xor    %eax,%eax
call   10a0 <InformTemperature@plt>
xor    %eax,%eax
call   1090 <rxPacket@plt>
xor    %eax,%eax
call   1030 <InformEverything@plt>
jmp    11f0 <main+0x30>

LLVM IR (-O0):
define void @main() {
%1 = call i32 (...) @PortInitialization()
%2 = call i32 (...) @readConfigRegister()
%3 = call i32 @initNrf(i32 58, i32 132, i32 179, i32 230)
%4 = call i32 (...) @LcdWrite()
br label %5
5: ; preds = %0, %5
%6 = call i32 (...) @GetTemperature()
%7 = call i32 (...) @IncreaseButton()
%8 = call i32 (...) @DecreaseButton()
%9 = call i32 (...) @OnOffButton()
%10 = call i32 (...) @OpenRelay()
%11 = call i32 (...) @InformTemperature()
%12 = call i32 (...) @rxPacket()
%13 = call i32 (...) @InformEverything()
br label %5
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @PortInitialization()
%2 = tail call i32 (...) @readConfigRegister()
%3 = tail call i32 @initNrf(i32 58, i32 132, i32 179, i32 230)
%4 = tail call i32 (...) @LcdWrite()
br label %5
5: ; preds = %0, %5
%6 = tail call i32 (...) @GetTemperature()
%7 = tail call i32 (...) @IncreaseButton()
%8 = tail call i32 (...) @DecreaseButton()
%9 = tail call i32 (...) @OnOffButton()
%10 = tail call i32 (...) @OpenRelay()
%11 = tail call i32 (...) @InformTemperature()
%12 = tail call i32 (...) @rxPacket()
%13 = tail call i32 (...) @InformEverything()
br label %5
}