#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*/ get_update_statement(char *, char *, char *, char *, char *,
                                        char *, char *, char *);
int /*<<< orphan*/ printf(char *, char *);
void output_update_estimation_event_sys_string(char *station, char *datatype,
                                               char *measurement_update_date,
                                               char *measurement_update_time,
                                               char *login_name,
                                               char *new_station) {
  char statement[1024];
  get_update_statement(statement, "estimation_event", station, new_station,
                       datatype, measurement_update_date,
                       measurement_update_time, login_name);
  printf("%s\n", statement);
  get_update_statement(statement, "estimation_event_parameter", station,
                       new_station, datatype, measurement_update_date,
                       measurement_update_time, login_name);
  printf("%s\n", statement);
}


x86 assembly (clang, -O0):
<output_update_estimation_event_sys_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0x430(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
lea    0xe97(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <get_update_statement@plt>
lea    -0x430(%rbp),%rsi
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
lea    -0x430(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
lea    0xe65(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <get_update_statement@plt>
lea    -0x430(%rbp),%rsi
lea    0xe45(%rip),%rdi
call   1030 <printf@plt>
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_update_estimation_event_sys_string>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x408,%rsp
mov    %r9,%r13
mov    %r8,%r12
mov    %rcx,%r15
mov    %rdx,%rbx
mov    %rsi,%rbp
mov    %rdi,%r14
lea    0xeb6(%rip),%rsi
mov    %rsp,%rdi
mov    %r14,%rdx
mov    %r9,%rcx
mov    %rbp,%r8
mov    %rbx,%r9
push   %r12
push   %r15
call   1040 <get_update_statement@plt>
add    $0x10,%rsp
lea    0xea4(%rip),%rdi
mov    %rsp,%rsi
call   1030 <printf@plt>
lea    0xe99(%rip),%rsi
mov    %rsp,%rdi
mov    %r14,%rdx
mov    %r13,%rcx
mov    %rbp,%r8
mov    %rbx,%r9
push   %r12
push   %r15
call   1040 <get_update_statement@plt>
add    $0x10,%rsp
lea    0xe72(%rip),%rdi
mov    %rsp,%rsi
call   1030 <printf@plt>
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"estimation_event\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [27 x i8] c"estimation_event_parameter\00"
define void @output_update_estimation_event_sys_string(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5) {
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca [1024 x i8]
store i8* %0, i8** %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i8* %4, i8** %11
store i8* %5, i8** %12
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%15 = load i8*, i8** %7
%16 = load i8*, i8** %12
%17 = load i8*, i8** %8
%18 = load i8*, i8** %9
%19 = load i8*, i8** %10
%20 = load i8*, i8** %11
%21 = call i32 @get_update_statement(i8* %14, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %15, i8* %16, i8* %17, i8* %18, i8* %19, i8* %20)
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%25 = load i8*, i8** %7
%26 = load i8*, i8** %12
%27 = load i8*, i8** %8
%28 = load i8*, i8** %9
%29 = load i8*, i8** %10
%30 = load i8*, i8** %11
%31 = call i32 @get_update_statement(i8* %24, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %25, i8* %26, i8* %27, i8* %28, i8* %29, i8* %30)
%32 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%33 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %32)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"estimation_event\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [27 x i8] c"estimation_event_parameter\00"
define void @output_update_estimation_event_sys_string(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5) {
%7 = alloca [1024 x i8]
%8 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%9 = call i32 @get_update_statement(i8* %8, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %5, i8* %1, i8* %2, i8* %3, i8* %4)
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%11 = call i32 @get_update_statement(i8* %8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %5, i8* %1, i8* %2, i8* %3, i8* %4)
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %8)
ret void
}