#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 *get_images_tag(char *, char *);
char *pipe2string(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, char *, char *,
                           char *, char *, char *, char *, char *, char *,
                           char *, char *);
char *get_placemark_description(char *station, char *latitude,
                                char *longitude) {
  static char placemark_description[2048];
  char *uname;
  char *images_tag;
  uname = pipe2string("uname -n");
  images_tag = get_images_tag(station, uname);
  sprintf(
      placemark_description,
      "<table align=center border=0 cellpadding=0 cellspacing=0>\n"
      "<tr><td align=center><big><big><big><bold>%s</bold></big></big></big>\n"
      "%s\n"
      "<tr><td align=center><a href=http://%s/%s/dailyplots/%s.pdf>\n"
      "<img border=2 src=http://%s/%s/%s/%s.jpg width=400></a>\n"
      "<tr><table align=center border=0 cellpadding=0 cellspacing=0>\n"
      "<tr><td>Station Located at:\n"
      "<tr><td>Latitude<td>%s\n"
      "<tr><td>Longitude<td>%s\n"
      "</table>\n"
      "<tr><td><a href=\"mailto:EVER_data_request@nps.gov?subject=GoogleEarth "
      "Everglades data request for %s\">DataForEVER data request</a>\n"
      "</table>\n",
      station, images_tag, uname, "hydrology", station, uname, "hydrology",
      "station_plots", station, latitude, longitude, station);
  return placemark_description;
}


x86 assembly (clang, -O0):
<get_placemark_description>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
lea    0xeac(%rip),%rdi
call   1040 <pipe2string@plt>
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1030 <get_images_tag@plt>
mov    %rax,-0x50(%rbp)
mov    -0x30(%rbp),%rdx
mov    -0x50(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x30(%rbp),%r13
mov    -0x48(%rbp),%r12
mov    -0x30(%rbp),%rbx
mov    -0x38(%rbp),%r11
mov    -0x40(%rbp),%r10
mov    -0x30(%rbp),%rax
lea    0x2eb7(%rip),%rdi
lea    0xe69(%rip),%rsi
lea    0x1079(%rip),%r15
lea    0x107c(%rip),%r14
mov    %r15,%r9
mov    %r13,(%rsp)
mov    %r12,0x8(%rsp)
mov    %r15,0x10(%rsp)
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r11,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x38(%rsp)
call   1050 <sprintf@plt>
lea    0x2e6c(%rip),%rax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_placemark_description>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xeb7(%rip),%rdi
call   1040 <pipe2string@plt>
mov    %rax,%r12
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <get_images_tag@plt>
lea    0x10c7(%rip),%r10
lea    0x10b6(%rip),%r9
lea    0x2edf(%rip),%r13
lea    0xe91(%rip),%rsi
mov    %r13,%rdi
mov    %rbx,%rdx
mov    %rax,%rcx
mov    %r12,%r8
push   %rbx
push   %r14
push   %r15
push   %rbx
push   %r10
push   %r9
push   %r12
push   %rbx
call   1050 <sprintf@plt>
add    $0x40,%rsp
mov    %r13,%rax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@get_placemark_description.placemark_description = internal global [2048 x i8] zeroinitializer
@.str = [9 x i8] c"uname -n\00"
@.str.1 = [535 x i8] c"<table align=center border=0 cellpadding=0 cellspacing=0>\0A<tr><td align=center><big><big><big><bold>%s</bold></big></big></big>\0A%s\0A<tr><td align=center><a href=http://%s/%s/dailyplots/%s.pdf>\0A<img border=2 src=http://%s/%s/%s/%s.jpg width=400></a>\0A<tr><table align=center border=0 cellpadding=0 cellspacing=0>\0A<tr><td>Station Located at:\0A<tr><td>Latitude<td>%s\0A<tr><td>Longitude<td>%s\0A</table>\0A<tr><td><a href=\22mailto:EVER_data_request@nps.gov?subject=GoogleEarth Everglades data request for %s\22>DataForEVER data request</a>\0A</table>\0A\00"
@.str.2 = [10 x i8] c"hydrology\00"
@.str.3 = [14 x i8] c"station_plots\00"
define i8* @get_placemark_description(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%9 = call i8* @pipe2string(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i8* %9, i8** %7
%10 = load i8*, i8** %4
%11 = load i8*, i8** %7
%12 = call i8* @get_images_tag(i8* %10, i8* %11)
store i8* %12, i8** %8
%13 = load i8*, i8** %4
%14 = load i8*, i8** %8
%15 = load i8*, i8** %7
%16 = load i8*, i8** %4
%17 = load i8*, i8** %7
%18 = load i8*, i8** %4
%19 = load i8*, i8** %5
%20 = load i8*, i8** %6
%21 = load i8*, i8** %4
%22 = call i32 @sprintf(i8* getelementptr inbounds ([2048 x i8], [2048 x i8]* @get_placemark_description.placemark_description, i64 0, i64 0), i8* getelementptr inbounds ([535 x i8], [535 x i8]* @.str.1, i64 0, i64 0), i8* %13, i8* %14, i8* %15, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %16, i8* %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %18, i8* %19, i8* %20, i8* %21)
ret i8* getelementptr inbounds ([2048 x i8], [2048 x i8]* @get_placemark_description.placemark_description, i64 0, i64 0)
}

LLVM IR (-O2):
@get_placemark_description.placemark_description = internal global [2048 x i8] zeroinitializer
@.str = [9 x i8] c"uname -n\00"
@.str.1 = [535 x i8] c"<table align=center border=0 cellpadding=0 cellspacing=0>\0A<tr><td align=center><big><big><big><bold>%s</bold></big></big></big>\0A%s\0A<tr><td align=center><a href=http://%s/%s/dailyplots/%s.pdf>\0A<img border=2 src=http://%s/%s/%s/%s.jpg width=400></a>\0A<tr><table align=center border=0 cellpadding=0 cellspacing=0>\0A<tr><td>Station Located at:\0A<tr><td>Latitude<td>%s\0A<tr><td>Longitude<td>%s\0A</table>\0A<tr><td><a href=\22mailto:EVER_data_request@nps.gov?subject=GoogleEarth Everglades data request for %s\22>DataForEVER data request</a>\0A</table>\0A\00"
@.str.2 = [10 x i8] c"hydrology\00"
@.str.3 = [14 x i8] c"station_plots\00"
define i8* @get_placemark_description(i8* %0, i8* %1, i8* %2) {
%4 = tail call i8* @pipe2string(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%5 = tail call i8* @get_images_tag(i8* %0, i8* %4)
%6 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([2048 x i8], [2048 x i8]* @get_placemark_description.placemark_description, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([535 x i8], [535 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %5, i8* %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %0, i8* %1, i8* %2, i8* %0)
ret i8* getelementptr inbounds ([2048 x i8], [2048 x i8]* @get_placemark_description.placemark_description, i64 0, i64 0)
}