#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*/ puts(char *);
void SetupTable(int mobile) {
  puts("<table border=\"1\" cellpadding=\"5\" cellspacing=\"5\" "
       "width=\"100%\">\n");
  if (!mobile) {
    puts("<tr>\n"
         "<th>Time Discovered</th>\n"
         "<th>MAC Address</th>\n"
         "<th>Device Name</th>\n"
         "<th>Device Class</th>\n"
         "<th>Capabilities</th>\n"
         "</tr>\n");
  } else {
    puts("<tr>\n"
         "<th>Time</th>\n"
         "<th>MAC</th>\n"
         "<th>Name</th>\n"
         "<th>Class</th>\n"
         "</tr>\n");
  }
}


x86 assembly (clang, -O0):
<SetupTable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xede(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,-0x4(%rbp)
jne    1142 <SetupTable+0x32>
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
jmp    114e <SetupTable+0x3e>
lea    0xf73(%rip),%rdi
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SetupTable>:
push   %rbx
mov    %edi,%ebx
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
test   %ebx,%ebx
lea    0xf19(%rip),%rax
lea    0xf8d(%rip),%rdi
cmove  %rax,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [65 x i8] c"<table border=\221\22 cellpadding=\225\22 cellspacing=\225\22 width=\22100%\22>\0A\00"
@.str.1 = [123 x i8] c"<tr>\0A<th>Time Discovered</th>\0A<th>MAC Address</th>\0A<th>Device Name</th>\0A<th>Device Class</th>\0A<th>Capabilities</th>\0A</tr>\0A\00"
@.str.2 = [68 x i8] c"<tr>\0A<th>Time</th>\0A<th>MAC</th>\0A<th>Name</th>\0A<th>Class</th>\0A</tr>\0A\00"
define void @SetupTable(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @puts(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = call i32 @puts(i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.1, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = call i32 @puts(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
br label %10
10: ; preds = %8, %6
ret void
}

LLVM IR (-O2):
@.str = [65 x i8] c"<table border=\221\22 cellpadding=\225\22 cellspacing=\225\22 width=\22100%\22>\0A\00"
@.str.1 = [123 x i8] c"<tr>\0A<th>Time Discovered</th>\0A<th>MAC Address</th>\0A<th>Device Name</th>\0A<th>Device Class</th>\0A<th>Capabilities</th>\0A</tr>\0A\00"
@.str.2 = [68 x i8] c"<tr>\0A<th>Time</th>\0A<th>MAC</th>\0A<th>Name</th>\0A<th>Class</th>\0A</tr>\0A\00"
define void @SetupTable(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %0, 0
%4 = select i1 %3, i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0)
%5 = tail call i32 @puts(i8* dereferenceable(1) %4)
ret void
}