#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 banner() {
  puts(" +--------------------------------------------------------------------"
       "+");
  puts(" | +----------------------------------------------------------------+ "
       "|");
  puts(" | |                            simcalc                             | "
       "|");
  puts(" | +----------------------------------------------------------------+ "
       "|");
  puts(" +--------------------------------------------------------------------+"
       "\n");
  puts("* Copyright 2015 Ahmed Mohamed Abd EL-Mawgood "
       "<ahmedsoliman0x666@gmail.com>\n");
  puts("* Licensed under the Apache License, Version 2.0 (the \"License\");");
  puts("  you may not use this file except in compliance with the License.");
  puts("  You may obtain a copy of the License at\n");
  puts("* http://www.apache.org/licenses/LICENSE-2.0\n");
  puts("* Unless required by applicable law or agreed to in writing, software");
  puts("  distributed under the License is distributed on an \"AS IS\" BASIS,");
  puts("  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or "
       "implied.");
  puts("* See the License for the specific language governing permissions and");
  puts("  limitations under the License.");
}


x86 assembly (clang, -O0):
<banner>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf21(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfca(%rip),%rdi
call   1030 <puts@plt>
lea    0x100b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1041(%rip),%rdi
call   1030 <puts@plt>
lea    0x1078(%rip),%rdi
call   1030 <puts@plt>
lea    0x1097(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f3(%rip),%rdi
call   1030 <puts@plt>
lea    0x112b(%rip),%rdi
call   1030 <puts@plt>
lea    0x116a(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a4(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<banner>:
push   %rbx
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf24(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf91(%rip),%rdi
call   1030 <puts@plt>
lea    0xfce(%rip),%rdi
call   1030 <puts@plt>
lea    0x100f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1045(%rip),%rdi
call   1030 <puts@plt>
lea    0x107c(%rip),%rdi
call   1030 <puts@plt>
lea    0x109b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10bd(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f7(%rip),%rdi
call   1030 <puts@plt>
lea    0x112f(%rip),%rdi
call   1030 <puts@plt>
lea    0x116e(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a8(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [72 x i8] c" +--------------------------------------------------------------------+\00"
@.str.1 = [72 x i8] c" | +----------------------------------------------------------------+ |\00"
@.str.2 = [72 x i8] c" | | simcalc | |\00"
@.str.3 = [73 x i8] c" +--------------------------------------------------------------------+\0A\00"
@.str.4 = [77 x i8] c"* Copyright 2015 Ahmed Mohamed Abd EL-Mawgood <ahmedsoliman0x666@gmail.com>\0A\00"
@.str.5 = [66 x i8] c"* Licensed under the Apache License, Version 2.0 (the \22License\22);\00"
@.str.6 = [67 x i8] c" you may not use this file except in compliance with the License.\00"
@.str.7 = [43 x i8] c" You may obtain a copy of the License at\0A\00"
@.str.8 = [46 x i8] c"* http://www.apache.org/licenses/LICENSE-2.0\0A\00"
@.str.9 = [70 x i8] c"* Unless required by applicable law or agreed to in writing, software\00"
@.str.10 = [68 x i8] c" distributed under the License is distributed on an \22AS IS\22 BASIS,\00"
@.str.11 = [75 x i8] c" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\00"
@.str.12 = [70 x i8] c"* See the License for the specific language governing permissions and\00"
@.str.13 = [33 x i8] c" limitations under the License.\00"
define void @banner() {
%1 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [72 x i8] c" +--------------------------------------------------------------------+\00"
@.str.1 = [72 x i8] c" | +----------------------------------------------------------------+ |\00"
@.str.2 = [72 x i8] c" | | simcalc | |\00"
@.str.3 = [73 x i8] c" +--------------------------------------------------------------------+\0A\00"
@.str.4 = [77 x i8] c"* Copyright 2015 Ahmed Mohamed Abd EL-Mawgood <ahmedsoliman0x666@gmail.com>\0A\00"
@.str.5 = [66 x i8] c"* Licensed under the Apache License, Version 2.0 (the \22License\22);\00"
@.str.6 = [67 x i8] c" you may not use this file except in compliance with the License.\00"
@.str.7 = [43 x i8] c" You may obtain a copy of the License at\0A\00"
@.str.8 = [46 x i8] c"* http://www.apache.org/licenses/LICENSE-2.0\0A\00"
@.str.9 = [70 x i8] c"* Unless required by applicable law or agreed to in writing, software\00"
@.str.10 = [68 x i8] c" distributed under the License is distributed on an \22AS IS\22 BASIS,\00"
@.str.11 = [75 x i8] c" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\00"
@.str.12 = [70 x i8] c"* See the License for the specific language governing permissions and\00"
@.str.13 = [33 x i8] c" limitations under the License.\00"
define void @banner() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.11, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.12, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
ret void
}