#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*/ sleep(int);
int /*<<< orphan*/ system(char *);
int main(void) {
  while (1) {
    system("clear");
    system("echo \" [ mactable_3.log || mac -- nodeid ]\"");
    system("echo +----------------------------------------------------------+");
    system("cat mactable_3.log");
    system("echo +----------------------------------------------------------+");
    sleep(1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <system@plt>
lea    0xec4(%rip),%rdi
call   1030 <system@plt>
lea    0xee4(%rip),%rdi
call   1030 <system@plt>
lea    0xf1a(%rip),%rdi
call   1030 <system@plt>
lea    0xecc(%rip),%rdi
call   1030 <system@plt>
mov    $0x1,%edi
call   1040 <sleep@plt>
jmp    112f <main+0xf>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xed1(%rip),%r14
lea    0xed0(%rip),%r15
lea    0xef5(%rip),%rbx
lea    0xf30(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
call   1030 <system@plt>
mov    %r15,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %r12,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x1,%edi
call   1040 <sleep@plt>
jmp    1150 <main+0x30>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [44 x i8] c"echo \22 [ mactable_3.log || mac -- nodeid ]\22\00"
@.str.2 = [66 x i8] c"echo +----------------------------------------------------------+\00"
@.str.3 = [19 x i8] c"cat mactable_3.log\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0, %2
%3 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @system(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @system(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @system(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @system(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @sleep(i32 1)
br label %2
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [44 x i8] c"echo \22 [ mactable_3.log || mac -- nodeid ]\22\00"
@.str.2 = [66 x i8] c"echo +----------------------------------------------------------+\00"
@.str.3 = [19 x i8] c"cat mactable_3.log\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @system(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @system(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @system(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @system(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @sleep(i32 1)
br label %1
}