#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*/ acende_p0();
int /*<<< orphan*/ acende_p1();
int /*<<< orphan*/ acende_p2();
int /*<<< orphan*/ acende_p3();
int /*<<< orphan*/ apaga_p0();
int /*<<< orphan*/ apaga_p1();
int /*<<< orphan*/ apaga_p2();
int /*<<< orphan*/ apaga_p3();
int /*<<< orphan*/ espera();
void main(void) {
  while (1) {
    acende_p0();
    espera();
    apaga_p0();
    acende_p1();
    espera();
    apaga_p1();
    acende_p2();
    espera();
    apaga_p2();
    acende_p3();
    espera();
    apaga_p3();
    acende_p2();
    espera();
    apaga_p2();
    acende_p1();
    espera();
    apaga_p1();
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
jmp    1199 <main+0x9>
mov    $0x0,%al
call   10a0 <acende_p0@plt>
mov    $0x0,%al
call   1090 <espera@plt>
mov    $0x0,%al
call   1070 <apaga_p0@plt>
mov    $0x0,%al
call   1050 <acende_p1@plt>
mov    $0x0,%al
call   1090 <espera@plt>
mov    $0x0,%al
call   1030 <apaga_p1@plt>
mov    $0x0,%al
call   10b0 <acende_p2@plt>
mov    $0x0,%al
call   1090 <espera@plt>
mov    $0x0,%al
call   1080 <apaga_p2@plt>
mov    $0x0,%al
call   1060 <acende_p3@plt>
mov    $0x0,%al
call   1090 <espera@plt>
mov    $0x0,%al
call   1040 <apaga_p3@plt>
mov    $0x0,%al
call   10b0 <acende_p2@plt>
mov    $0x0,%al
call   1090 <espera@plt>
mov    $0x0,%al
call   1080 <apaga_p2@plt>
mov    $0x0,%al
call   1050 <acende_p1@plt>
mov    $0x0,%al
call   1090 <espera@plt>
mov    $0x0,%al
call   1030 <apaga_p1@plt>
jmp    1199 <main+0x9>

x86 assembly (clang, -O2):
<main>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10a0 <acende_p0@plt>
xor    %eax,%eax
call   1090 <espera@plt>
xor    %eax,%eax
call   1070 <apaga_p0@plt>
xor    %eax,%eax
call   1050 <acende_p1@plt>
xor    %eax,%eax
call   1090 <espera@plt>
xor    %eax,%eax
call   1030 <apaga_p1@plt>
xor    %eax,%eax
call   10b0 <acende_p2@plt>
xor    %eax,%eax
call   1090 <espera@plt>
xor    %eax,%eax
call   1080 <apaga_p2@plt>
xor    %eax,%eax
call   1060 <acende_p3@plt>
xor    %eax,%eax
call   1090 <espera@plt>
xor    %eax,%eax
call   1040 <apaga_p3@plt>
xor    %eax,%eax
call   10b0 <acende_p2@plt>
xor    %eax,%eax
call   1090 <espera@plt>
xor    %eax,%eax
call   1080 <apaga_p2@plt>
xor    %eax,%eax
call   1050 <acende_p1@plt>
xor    %eax,%eax
call   1090 <espera@plt>
xor    %eax,%eax
call   1030 <apaga_p1@plt>
jmp    11a0 <main+0x10>

LLVM IR (-O0):
define void @main() {
br label %1
1: ; preds = %0, %1
%2 = call i32 (...) @acende_p0()
%3 = call i32 (...) @espera()
%4 = call i32 (...) @apaga_p0()
%5 = call i32 (...) @acende_p1()
%6 = call i32 (...) @espera()
%7 = call i32 (...) @apaga_p1()
%8 = call i32 (...) @acende_p2()
%9 = call i32 (...) @espera()
%10 = call i32 (...) @apaga_p2()
%11 = call i32 (...) @acende_p3()
%12 = call i32 (...) @espera()
%13 = call i32 (...) @apaga_p3()
%14 = call i32 (...) @acende_p2()
%15 = call i32 (...) @espera()
%16 = call i32 (...) @apaga_p2()
%17 = call i32 (...) @acende_p1()
%18 = call i32 (...) @espera()
%19 = call i32 (...) @apaga_p1()
br label %1
}

LLVM IR (-O2):
define void @main() {
br label %1
1: ; preds = %0, %1
%2 = tail call i32 (...) @acende_p0()
%3 = tail call i32 (...) @espera()
%4 = tail call i32 (...) @apaga_p0()
%5 = tail call i32 (...) @acende_p1()
%6 = tail call i32 (...) @espera()
%7 = tail call i32 (...) @apaga_p1()
%8 = tail call i32 (...) @acende_p2()
%9 = tail call i32 (...) @espera()
%10 = tail call i32 (...) @apaga_p2()
%11 = tail call i32 (...) @acende_p3()
%12 = tail call i32 (...) @espera()
%13 = tail call i32 (...) @apaga_p3()
%14 = tail call i32 (...) @acende_p2()
%15 = tail call i32 (...) @espera()
%16 = tail call i32 (...) @apaga_p2()
%17 = tail call i32 (...) @acende_p1()
%18 = tail call i32 (...) @espera()
%19 = tail call i32 (...) @apaga_p1()
br label %1
}