#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*/ COLOR_PAIR(int);
int /*<<< orphan*/ attroff(int /*<<< orphan*/);
int /*<<< orphan*/ attron(int /*<<< orphan*/);
int /*<<< orphan*/ stampaMuri();
int /*<<< orphan*/ usleep(int);
void fineLivello(void) {
  attron(COLOR_PAIR(5));
  stampaMuri();
  attroff(COLOR_PAIR(5));
  usleep(500000);
  stampaMuri();
  usleep(500000);
  attron(COLOR_PAIR(5));
  stampaMuri();
  attroff(COLOR_PAIR(5));
  usleep(500000);
  stampaMuri();
  usleep(500000);
  attron(COLOR_PAIR(5));
  stampaMuri();
  attroff(COLOR_PAIR(5));
  usleep(500000);
}


x86 assembly (clang, -O0):
<fineLivello>:
push   %rbp
mov    %rsp,%rbp
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1050 <attron@plt>
mov    $0x0,%al
call   1040 <stampaMuri@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
mov    $0x0,%al
call   1040 <stampaMuri@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1050 <attron@plt>
mov    $0x0,%al
call   1040 <stampaMuri@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
mov    $0x0,%al
call   1040 <stampaMuri@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1050 <attron@plt>
mov    $0x0,%al
call   1040 <stampaMuri@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fineLivello>:
push   %rax
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1050 <attron@plt>
xor    %eax,%eax
call   1040 <stampaMuri@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1040 <stampaMuri@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1050 <attron@plt>
xor    %eax,%eax
call   1040 <stampaMuri@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1040 <stampaMuri@plt>
mov    $0x7a120,%edi
call   1070 <usleep@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1050 <attron@plt>
xor    %eax,%eax
call   1040 <stampaMuri@plt>
mov    $0x5,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    $0x7a120,%edi
pop    %rax
jmp    1070 <usleep@plt>

LLVM IR (-O0):
define void @fineLivello() {
%1 = call i32 @COLOR_PAIR(i32 5)
%2 = call i32 @attron(i32 %1)
%3 = call i32 (...) @stampaMuri()
%4 = call i32 @COLOR_PAIR(i32 5)
%5 = call i32 @attroff(i32 %4)
%6 = call i32 @usleep(i32 500000)
%7 = call i32 (...) @stampaMuri()
%8 = call i32 @usleep(i32 500000)
%9 = call i32 @COLOR_PAIR(i32 5)
%10 = call i32 @attron(i32 %9)
%11 = call i32 (...) @stampaMuri()
%12 = call i32 @COLOR_PAIR(i32 5)
%13 = call i32 @attroff(i32 %12)
%14 = call i32 @usleep(i32 500000)
%15 = call i32 (...) @stampaMuri()
%16 = call i32 @usleep(i32 500000)
%17 = call i32 @COLOR_PAIR(i32 5)
%18 = call i32 @attron(i32 %17)
%19 = call i32 (...) @stampaMuri()
%20 = call i32 @COLOR_PAIR(i32 5)
%21 = call i32 @attroff(i32 %20)
%22 = call i32 @usleep(i32 500000)
ret void
}

LLVM IR (-O2):
define void @fineLivello() {
%1 = tail call i32 @COLOR_PAIR(i32 5)
%2 = tail call i32 @attron(i32 %1)
%3 = tail call i32 (...) @stampaMuri()
%4 = tail call i32 @COLOR_PAIR(i32 5)
%5 = tail call i32 @attroff(i32 %4)
%6 = tail call i32 @usleep(i32 500000)
%7 = tail call i32 (...) @stampaMuri()
%8 = tail call i32 @usleep(i32 500000)
%9 = tail call i32 @COLOR_PAIR(i32 5)
%10 = tail call i32 @attron(i32 %9)
%11 = tail call i32 (...) @stampaMuri()
%12 = tail call i32 @COLOR_PAIR(i32 5)
%13 = tail call i32 @attroff(i32 %12)
%14 = tail call i32 @usleep(i32 500000)
%15 = tail call i32 (...) @stampaMuri()
%16 = tail call i32 @usleep(i32 500000)
%17 = tail call i32 @COLOR_PAIR(i32 5)
%18 = tail call i32 @attron(i32 %17)
%19 = tail call i32 (...) @stampaMuri()
%20 = tail call i32 @COLOR_PAIR(i32 5)
%21 = tail call i32 @attroff(i32 %20)
%22 = tail call i32 @usleep(i32 500000)
ret void
}