#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*/ mvprintw(int, int, char *, char *);
void copyright_notice(int row, int col) {
  char notice0[] = "mazen  Copyright (C) 2006, 2012  Chris Redmon";
  char notice1[] =
      "This program comes with ABSOLUTELY NO WARRANTY. This is free software,";
  char notice2[] =
      "and you are welcome to redistribute it under certain conditions; see";
  char notice3[] =
      "the GNU General Publiic License as published by the Free Software";
  char notice4[] =
      "Foundation - version 3 or (at your option) any later version. For more";
  char notice5[] =
      "information about these matters, see the file named COPYING.";
  mvprintw(row + 0, col, "%s", notice0);
  mvprintw(row + 1, col, "%s", notice1);
  mvprintw(row + 2, col, "%s", notice2);
  mvprintw(row + 3, col, "%s", notice3);
  mvprintw(row + 4, col, "%s", notice4);
  mvprintw(row + 5, col, "%s", notice5);
}


x86 assembly (clang, -O0):
<copyright_notice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xec4(%rip),%rsi
mov    $0x2e,%edx
call   1030 <memcpy@plt>
lea    -0x90(%rbp),%rdi
lea    0xedc(%rip),%rsi
mov    $0x47,%edx
call   1030 <memcpy@plt>
lea    -0xe0(%rbp),%rdi
lea    0xf14(%rip),%rsi
mov    $0x45,%edx
call   1030 <memcpy@plt>
lea    -0x130(%rbp),%rdi
lea    0xf4c(%rip),%rsi
mov    $0x42,%edx
call   1030 <memcpy@plt>
lea    -0x180(%rbp),%rdi
lea    0xf84(%rip),%rsi
mov    $0x47,%edx
call   1030 <memcpy@plt>
lea    -0x1c0(%rbp),%rdi
lea    0xfbc(%rip),%rsi
mov    $0x3d,%edx
call   1030 <memcpy@plt>
mov    -0x4(%rbp),%edi
add    $0x0,%edi
mov    -0x8(%rbp),%esi
lea    -0x40(%rbp),%rcx
lea    0xfdb(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
lea    -0x90(%rbp),%rcx
lea    0xfbf(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x2,%edi
mov    -0x8(%rbp),%esi
lea    -0xe0(%rbp),%rcx
lea    0xfa3(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x3,%edi
mov    -0x8(%rbp),%esi
lea    -0x130(%rbp),%rcx
lea    0xf87(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x4,%edi
mov    -0x8(%rbp),%esi
lea    -0x180(%rbp),%rcx
lea    0xf6b(%rip),%rdx
call   1040 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x5,%edi
mov    -0x8(%rbp),%esi
lea    -0x1c0(%rbp),%rcx
lea    0xf4f(%rip),%rdx
call   1040 <mvprintw@plt>
add    $0x1c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copyright_notice>:
push   %rbp
push   %r14
push   %rbx
sub    $0x1b0,%rsp
mov    %esi,%ebp
mov    %edi,%ebx
movups 0xef8(%rip),%xmm0
movups %xmm0,0xbe(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xebc(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xf0d(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xecf(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xeb0(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movabs $0x2c657261777466,%rax
mov    %rax,0x15f(%rsp)
movabs $0x656573203b736e,%rax
mov    %rax,0x8d(%rsp)
movaps 0xefd(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xec2(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xea6(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xf1a(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xefe(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xec6(%rip),%xmm0
movaps %xmm0,(%rsp)
movw   $0x65,0x40(%rsp)
movabs $0x65726f6d20726f,%rax
mov    %rax,0x10f(%rsp)
movaps 0xf22(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xf03(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xee4(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xec5(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movups 0xf33(%rip),%xmm0
movups %xmm0,0x19d(%rsp)
movaps 0xf17(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
movaps 0xef8(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
lea    0xf07(%rip),%r14
lea    0xa0(%rsp),%rcx
mov    %r14,%rdx
call   1030 <mvprintw@plt>
lea    0x1(%rbx),%edi
lea    0x120(%rsp),%rcx
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
lea    0x2(%rbx),%edi
lea    0x50(%rsp),%rcx
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
lea    0x3(%rbx),%edi
mov    %rsp,%rcx
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
lea    0x4(%rbx),%edi
lea    0xd0(%rsp),%rcx
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
add    $0x5,%ebx
lea    0x170(%rsp),%rcx
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
add    $0x1b0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@__const.copyright_notice.notice0 = [46 x i8] c"mazen Copyright (C) 2006, 2012 Chris Redmon\00"
@__const.copyright_notice.notice1 = [71 x i8] c"This program comes with ABSOLUTELY NO WARRANTY. This is free software,\00"
@__const.copyright_notice.notice2 = [69 x i8] c"and you are welcome to redistribute it under certain conditions; see\00"
@__const.copyright_notice.notice3 = [66 x i8] c"the GNU General Publiic License as published by the Free Software\00"
@__const.copyright_notice.notice4 = [71 x i8] c"Foundation - version 3 or (at your option) any later version. For more\00"
@__const.copyright_notice.notice5 = [61 x i8] c"information about these matters, see the file named COPYING.\00"
@.str = [3 x i8] c"%s\00"
define void @copyright_notice(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [46 x i8]
%6 = alloca [71 x i8]
%7 = alloca [69 x i8]
%8 = alloca [66 x i8]
%9 = alloca [71 x i8]
%10 = alloca [61 x i8]
store i32 %0, i32* %3
store i32 %1, i32* %4
%11 = bitcast [46 x i8]* %5 to i8*
%12 = bitcast [71 x i8]* %6 to i8*
%13 = bitcast [69 x i8]* %7 to i8*
%14 = bitcast [66 x i8]* %8 to i8*
%15 = bitcast [71 x i8]* %9 to i8*
%16 = bitcast [61 x i8]* %10 to i8*
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 0
%19 = load i32, i32* %4
%20 = getelementptr inbounds [46 x i8], [46 x i8]* %5, i64 0, i64 0
%21 = call i32 @mvprintw(i32 %18, i32 %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 1
%24 = load i32, i32* %4
%25 = getelementptr inbounds [71 x i8], [71 x i8]* %6, i64 0, i64 0
%26 = call i32 @mvprintw(i32 %23, i32 %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %25)
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 2
%29 = load i32, i32* %4
%30 = getelementptr inbounds [69 x i8], [69 x i8]* %7, i64 0, i64 0
%31 = call i32 @mvprintw(i32 %28, i32 %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %30)
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 3
%34 = load i32, i32* %4
%35 = getelementptr inbounds [66 x i8], [66 x i8]* %8, i64 0, i64 0
%36 = call i32 @mvprintw(i32 %33, i32 %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %35)
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 4
%39 = load i32, i32* %4
%40 = getelementptr inbounds [71 x i8], [71 x i8]* %9, i64 0, i64 0
%41 = call i32 @mvprintw(i32 %38, i32 %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %40)
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 5
%44 = load i32, i32* %4
%45 = getelementptr inbounds [61 x i8], [61 x i8]* %10, i64 0, i64 0
%46 = call i32 @mvprintw(i32 %43, i32 %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %45)
ret void
}

LLVM IR (-O2):
@__const.copyright_notice.notice0 = [46 x i8] c"mazen Copyright (C) 2006, 2012 Chris Redmon\00"
@__const.copyright_notice.notice1 = [71 x i8] c"This program comes with ABSOLUTELY NO WARRANTY. This is free software,\00"
@__const.copyright_notice.notice2 = [69 x i8] c"and you are welcome to redistribute it under certain conditions; see\00"
@__const.copyright_notice.notice3 = [66 x i8] c"the GNU General Publiic License as published by the Free Software\00"
@__const.copyright_notice.notice4 = [71 x i8] c"Foundation - version 3 or (at your option) any later version. For more\00"
@__const.copyright_notice.notice5 = [61 x i8] c"information about these matters, see the file named COPYING.\00"
@.str = [3 x i8] c"%s\00"
define void @copyright_notice(i32 %0, i32 %1) {
%3 = alloca [46 x i8]
%4 = alloca [71 x i8]
%5 = alloca [69 x i8]
%6 = alloca [66 x i8]
%7 = alloca [71 x i8]
%8 = alloca [61 x i8]
%9 = getelementptr inbounds [46 x i8], [46 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [71 x i8], [71 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [69 x i8], [69 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [66 x i8], [66 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [71 x i8], [71 x i8]* %7, i64 0, i64 0
%14 = getelementptr inbounds [61 x i8], [61 x i8]* %8, i64 0, i64 0
%15 = call i32 @mvprintw(i32 %0, i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %9)
%16 = add nsw i32 %0, 1
%17 = call i32 @mvprintw(i32 %16, i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%18 = add nsw i32 %0, 2
%19 = call i32 @mvprintw(i32 %18, i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %11)
%20 = add nsw i32 %0, 3
%21 = call i32 @mvprintw(i32 %20, i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %12)
%22 = add nsw i32 %0, 4
%23 = call i32 @mvprintw(i32 %22, i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %13)
%24 = add nsw i32 %0, 5
%25 = call i32 @mvprintw(i32 %24, i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %14)
ret void
}