#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_table_name(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, char *, char *,
                           char *, char *, char *, char *, char *);
scalar_t__ system(char *);
void measurement_validation_insert_into_manual_validation_event(
    char *application_name, char *login_name, char *station, char *datatype,
    char *begin_measurement_date, char *end_measurement_date,
    char *validation_date, char *validation_time, char *validation_process) {
  char sys_string[1024];
  char *table_name;
  table_name = get_table_name(application_name, "manual_validation_event");
  sprintf(sys_string,
          "echo \"insert into %s (station,			 "
          "			datatype,			 "
          "			login_name,			 "
          "			validation_date,		 "
          "			validation_time,		 "
          "			begin_measurement_date,		 "
          "			end_measurement_date,		 "
          "			validation_process )		 "
          "values ('%s','%s','%s','%s','%s','%s','%s','%s');\"	|"
          "sql 2>&1						|"
          "html_paragraph_wrapper					 ",
          table_name, station, datatype, login_name, validation_date,
          validation_time, begin_measurement_date, end_measurement_date,
          validation_process);
  if (system(sys_string)) {
  };
}


x86 assembly (clang, -O0):
<measurement_validation_insert_into_manual_validation_event>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x460,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe93(%rip),%rsi
call   1040 <get_table_name@plt>
mov    %rax,-0x448(%rbp)
lea    -0x440(%rbp),%rdi
mov    -0x448(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x20(%rbp),%r9
mov    0x10(%rbp),%r14
mov    0x18(%rbp),%rbx
mov    -0x38(%rbp),%r11
mov    -0x40(%rbp),%r10
mov    0x20(%rbp),%rax
lea    0xe6a(%rip),%rsi
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1050 <sprintf@plt>
lea    -0x440(%rbp),%rdi
call   1030 <system@plt>
cmp    $0x0,%rax
je     11e6 <measurement_validation_insert_into_manual_validation_event+0xb6>
jmp    11e6 <measurement_validation_insert_into_manual_validation_event+0xb6>
add    $0x460,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<measurement_validation_insert_into_manual_validation_event>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
mov    %r9,%rbx
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    0x480(%rsp),%rbp
lea    0xea1(%rip),%rsi
call   1040 <get_table_name@plt>
mov    %rbp,0x20(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r14,0x10(%rsp)
movaps 0x470(%rsp),%xmm0
movups %xmm0,(%rsp)
lea    0xe92(%rip),%rsi
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
mov    %rax,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r13,%r9
call   1050 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
add    $0x438,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"manual_validation_event\00"
@.str.1 = [290 x i8] c"echo \22insert into %s (station,\09\09\09 \09\09\09datatype,\09\09\09 \09\09\09login_name,\09\09\09 \09\09\09validation_date,\09\09 \09\09\09validation_time,\09\09 \09\09\09begin_measurement_date,\09\09 \09\09\09end_measurement_date,\09\09 \09\09\09validation_process )\09\09 values ('%s','%s','%s','%s','%s','%s','%s','%s');\22\09|sql 2>&1\09\09\09\09\09\09|html_paragraph_wrapper\09\09\09\09\09 \00"
define void @measurement_validation_insert_into_manual_validation_event(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8) {
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca [1024 x i8]
%20 = alloca i8*
store i8* %0, i8** %10
store i8* %1, i8** %11
store i8* %2, i8** %12
store i8* %3, i8** %13
store i8* %4, i8** %14
store i8* %5, i8** %15
store i8* %6, i8** %16
store i8* %7, i8** %17
store i8* %8, i8** %18
%21 = load i8*, i8** %10
%22 = call i8* @get_table_name(i8* %21, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
store i8* %22, i8** %20
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %19, i64 0, i64 0
%24 = load i8*, i8** %20
%25 = load i8*, i8** %12
%26 = load i8*, i8** %13
%27 = load i8*, i8** %11
%28 = load i8*, i8** %16
%29 = load i8*, i8** %17
%30 = load i8*, i8** %14
%31 = load i8*, i8** %15
%32 = load i8*, i8** %18
%33 = call i32 @sprintf(i8* %23, i8* getelementptr inbounds ([290 x i8], [290 x i8]* @.str.1, i64 0, i64 0), i8* %24, i8* %25, i8* %26, i8* %27, i8* %28, i8* %29, i8* %30, i8* %31, i8* %32)
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %19, i64 0, i64 0
%35 = call i64 @system(i8* %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %9
br label %38
38: ; preds = %37, %9
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"manual_validation_event\00"
@.str.1 = [290 x i8] c"echo \22insert into %s (station,\09\09\09 \09\09\09datatype,\09\09\09 \09\09\09login_name,\09\09\09 \09\09\09validation_date,\09\09 \09\09\09validation_time,\09\09 \09\09\09begin_measurement_date,\09\09 \09\09\09end_measurement_date,\09\09 \09\09\09validation_process )\09\09 values ('%s','%s','%s','%s','%s','%s','%s','%s');\22\09|sql 2>&1\09\09\09\09\09\09|html_paragraph_wrapper\09\09\09\09\09 \00"
define void @measurement_validation_insert_into_manual_validation_event(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8) {
%10 = alloca [1024 x i8]
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%12 = tail call i8* @get_table_name(i8* %0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([290 x i8], [290 x i8]* @.str.1, i64 0, i64 0), i8* %12, i8* %2, i8* %3, i8* %1, i8* %6, i8* %7, i8* %4, i8* %5, i8* %8)
%14 = call i64 @system(i8* %11)
ret void
}