#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 */
char *buildString(char **, int);
char *about() {
  char *str[5] = {"cuda-sak – Credits:",
                  "Daniel Vieira, David Matos, Nelson Nunes, Rafael Costa",
                  "Course of High Performance Computing 2014-15 / Prof. "
                  "Patricio Domingues / Master HPC ",
                  "CAD 2014/2015 – Coding Project 4/7 in Informatics "
                  "Engineering – Mobile Computing",
                  "Polytechnic of Leiria, Portugal"};
  return buildString(str, 5);
}


x86 assembly (clang, -O0):
<about>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
lea    0xec1(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xecc(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xef8(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xf43(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xf8d(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x30(%rbp),%rdi
mov    $0x5,%esi
call   1040 <buildString@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<about>:
sub    $0x28,%rsp
lea    0xee5(%rip),%rax
mov    %rax,(%rsp)
lea    0xef0(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xf1b(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xf65(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xfae(%rip),%rax
mov    %rax,0x20(%rsp)
mov    %rsp,%rdi
mov    $0x5,%esi
call   1030 <buildString@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"cuda-sak \E2\80\93 Credits:\00"
@.str.1 = [55 x i8] c"Daniel Vieira, David Matos, Nelson Nunes, Rafael Costa\00"
@.str.2 = [86 x i8] c"Course of High Performance Computing 2014-15 / Prof. Patricio Domingues / Master HPC \00"
@.str.3 = [85 x i8] c"CAD 2014/2015 \E2\80\93 Coding Project 4/7 in Informatics Engineering \E2\80\93 Mobile Computing\00"
@.str.4 = [32 x i8] c"Polytechnic of Leiria, Portugal\00"
define i8* @about() {
%1 = alloca [5 x i8*]
%2 = bitcast [5 x i8*]* %1 to i8*
%3 = bitcast i8* %2 to [5 x i8*]*
%4 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i32 0, i32 0
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i32 0, i32 0), i8** %4
%5 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i32 0, i32 1
store i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i32 0, i32 0), i8** %5
%6 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i32 0, i32 2
store i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.2, i32 0, i32 0), i8** %6
%7 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i32 0, i32 3
store i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.3, i32 0, i32 0), i8** %7
%8 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i32 0, i32 4
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i32 0, i32 0), i8** %8
%9 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 0
%10 = call i8* @buildString(i8** %9, i32 5)
ret i8* %10
}

LLVM IR (-O2):
@.str = [22 x i8] c"cuda-sak \E2\80\93 Credits:\00"
@.str.1 = [55 x i8] c"Daniel Vieira, David Matos, Nelson Nunes, Rafael Costa\00"
@.str.2 = [86 x i8] c"Course of High Performance Computing 2014-15 / Prof. Patricio Domingues / Master HPC \00"
@.str.3 = [85 x i8] c"CAD 2014/2015 \E2\80\93 Coding Project 4/7 in Informatics Engineering \E2\80\93 Mobile Computing\00"
@.str.4 = [32 x i8] c"Polytechnic of Leiria, Portugal\00"
define i8* @about() {
%1 = alloca [5 x i8*]
%2 = bitcast [5 x i8*]* %1 to i8*
%3 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 0
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 1
store i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 2
store i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.2, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 3
store i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.3, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 4
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8** %7
%8 = call i8* @buildString(i8** %3, i32 5)
ret i8* %8
}