#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*/ about_dialog(char *);
char *roadmap_lang_get(char *);
char *roadmap_start_version();
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, char *, char *);
void roadmap_start_about(void) {
  char about[500];
  sprintf(about, "Release %s\n%s\n%s\n%s", roadmap_start_version(),
          "Freemap-waze-1.2\n"
          "(c) waze inc. and others",
          roadmap_lang_get("www.waze.com"),
          roadmap_lang_get("Licensed under the terms of the\nGPL v2"));
  about_dialog(about);
}


x86 assembly (clang, -O0):
<roadmap_start_about>:
push   %rbp
mov    %rsp,%rbp
sub    $0x220,%rsp
lea    -0x200(%rbp),%rax
mov    %rax,-0x218(%rbp)
mov    $0x0,%al
call   1050 <roadmap_start_version@plt>
mov    %rax,-0x210(%rbp)
lea    0xed0(%rip),%rdi
call   1040 <roadmap_lang_get@plt>
mov    %rax,-0x208(%rbp)
lea    0xeca(%rip),%rdi
call   1040 <roadmap_lang_get@plt>
mov    -0x218(%rbp),%rdi
mov    -0x210(%rbp),%rdx
mov    -0x208(%rbp),%r8
mov    %rax,%r9
lea    0xe5b(%rip),%rsi
lea    0xe68(%rip),%rcx
call   1060 <sprintf@plt>
lea    -0x200(%rbp),%rdi
call   1030 <about_dialog@plt>
add    $0x220,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<roadmap_start_about>:
push   %r15
push   %r14
push   %rbx
sub    $0x200,%rsp
xor    %eax,%eax
call   1050 <roadmap_start_version@plt>
mov    %rax,%r14
lea    0xee1(%rip),%rdi
call   1040 <roadmap_lang_get@plt>
mov    %rax,%rbx
lea    0xedf(%rip),%rdi
call   1040 <roadmap_lang_get@plt>
lea    0xe88(%rip),%rsi
lea    0xe95(%rip),%rcx
mov    %rsp,%r15
mov    %r15,%rdi
mov    %r14,%rdx
mov    %rbx,%r8
mov    %rax,%r9
call   1060 <sprintf@plt>
mov    %r15,%rdi
call   1030 <about_dialog@plt>
add    $0x200,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Release %s\0A%s\0A%s\0A%s\00"
@.str.1 = [42 x i8] c"Freemap-waze-1.2\0A(c) waze inc. and others\00"
@.str.2 = [13 x i8] c"www.waze.com\00"
@.str.3 = [39 x i8] c"Licensed under the terms of the\0AGPL v2\00"
define void @roadmap_start_about() {
%1 = alloca [500 x i8]
%2 = getelementptr inbounds [500 x i8], [500 x i8]* %1, i64 0, i64 0
%3 = call i8* (...) @roadmap_start_version()
%4 = call i8* @roadmap_lang_get(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%5 = call i8* @roadmap_lang_get(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @sprintf(i8* %2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %4, i8* %5)
%7 = getelementptr inbounds [500 x i8], [500 x i8]* %1, i64 0, i64 0
%8 = call i32 @about_dialog(i8* %7)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"Release %s\0A%s\0A%s\0A%s\00"
@.str.1 = [42 x i8] c"Freemap-waze-1.2\0A(c) waze inc. and others\00"
@.str.2 = [13 x i8] c"www.waze.com\00"
@.str.3 = [39 x i8] c"Licensed under the terms of the\0AGPL v2\00"
define void @roadmap_start_about() {
%1 = alloca [500 x i8]
%2 = getelementptr inbounds [500 x i8], [500 x i8]* %1, i64 0, i64 0
%3 = tail call i8* (...) @roadmap_start_version()
%4 = tail call i8* @roadmap_lang_get(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i8* @roadmap_lang_get(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %4, i8* %5)
%7 = call i32 @about_dialog(i8* %2)
ret void
}