#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*/ print_strings(char **, int);
int main(int argc, char *argv[]) {
  char *message[8] = {"Four",  "score", "and", "seven",
                      "years", "ago,",  "our", "forefathers"};
  print_strings(message, 8);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x50(%rbp),%rdi
lea    0x2c9f(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
lea    -0x50(%rbp),%rdi
mov    $0x8,%esi
call   1040 <print_strings@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movaps 0x2cf5(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2cd9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2cbd(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2ca1(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x8,%esi
call   1030 <print_strings@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"Four\00"
@.str.1 = [6 x i8] c"score\00"
@.str.2 = [4 x i8] c"and\00"
@.str.3 = [6 x i8] c"seven\00"
@.str.4 = [6 x i8] c"years\00"
@.str.5 = [5 x i8] c"ago,\00"
@.str.6 = [4 x i8] c"our\00"
@.str.7 = [12 x i8] c"forefathers\00"
@__const.main.message = [8 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i32 0, i32 0)]
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [8 x i8*]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = bitcast [8 x i8*]* %6 to i8*
%8 = getelementptr inbounds [8 x i8*], [8 x i8*]* %6, i64 0, i64 0
%9 = call i32 @print_strings(i8** %8, i32 8)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"Four\00"
@.str.1 = [6 x i8] c"score\00"
@.str.2 = [4 x i8] c"and\00"
@.str.3 = [6 x i8] c"seven\00"
@.str.4 = [6 x i8] c"years\00"
@.str.5 = [5 x i8] c"ago,\00"
@.str.6 = [4 x i8] c"our\00"
@.str.7 = [12 x i8] c"forefathers\00"
@__const.main.message = [8 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i32 0, i32 0)]
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [8 x i8*]
%4 = bitcast [8 x i8*]* %3 to i8*
%5 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 0
%6 = call i32 @print_strings(i8** %5, i32 8)
ret i32 0
}