#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_full_attribute_name(char *, char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, char *, ...);
scalar_t__ strcmp(char *, char *);
char *strdup(char *);
char *query_get_between_date_time_where(char *date_column_name,
                                        char *time_column_name,
                                        char *begin_date, char *begin_time,
                                        char *end_date, char *end_time,
                                        char *application_name,
                                        char *folder_name) {
  char where_clause[4066];
  char *where_ptr;
  char *start_end_time, *finish_begin_time;
  if (strcmp(begin_date, end_date) != 0) {
    start_end_time = "2359";
    finish_begin_time = "0000";
  } else {
    start_end_time = end_time;
    finish_begin_time = begin_time;
  }
  where_ptr = where_clause;
  where_ptr += sprintf(
      where_ptr, " ( ( %s = '%s' and %s >= '%s' and %s <= '%s' )",
      get_full_attribute_name(application_name, folder_name, date_column_name),
      begin_date,
      get_full_attribute_name(application_name, folder_name, time_column_name),
      begin_time,
      get_full_attribute_name(application_name, folder_name, time_column_name),
      start_end_time);
  where_ptr += sprintf(
      where_ptr, " or ( %s = '%s' and %s = 'null' )",
      get_full_attribute_name(application_name, folder_name, date_column_name),
      begin_date,
      get_full_attribute_name(application_name, folder_name, time_column_name));
  where_ptr += sprintf(
      where_ptr, " or ( %s = '%s' and %s = 'null' )",
      get_full_attribute_name(application_name, folder_name, date_column_name),
      end_date,
      get_full_attribute_name(application_name, folder_name, time_column_name));
  where_ptr += sprintf(
      where_ptr, " or ( %s > '%s' and %s < '%s' )",
      get_full_attribute_name(application_name, folder_name, date_column_name),
      begin_date,
      get_full_attribute_name(application_name, folder_name, date_column_name),
      end_date);
  where_ptr += sprintf(
      where_ptr, " or ( %s = '%s' and %s >= '%s' and %s <= '%s' ) )",
      get_full_attribute_name(application_name, folder_name, date_column_name),
      end_date,
      get_full_attribute_name(application_name, folder_name, time_column_name),
      finish_begin_time,
      get_full_attribute_name(application_name, folder_name, time_column_name),
      end_time);
  return strdup(where_clause);
}


x86 assembly (clang, -O0):
<query_get_between_date_time_where>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10e0,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     11a3 <query_get_between_date_time_where+0x63>
lea    0xe77(%rip),%rax
mov    %rax,-0x1030(%rbp)
lea    0xe6e(%rip),%rax
mov    %rax,-0x1038(%rbp)
jmp    11b9 <query_get_between_date_time_where+0x79>
mov    -0x30(%rbp),%rax
mov    %rax,-0x1030(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x1038(%rbp)
lea    -0x1020(%rbp),%rax
mov    %rax,-0x1028(%rbp)
mov    -0x1028(%rbp),%rax
mov    %rax,-0x10d0(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x8(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,-0x10c8(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x10c0(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,-0x10b8(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x10b0(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    -0x10d0(%rbp),%rdi
mov    -0x10c8(%rbp),%rdx
mov    -0x10c0(%rbp),%rcx
mov    -0x10b8(%rbp),%r8
mov    -0x10b0(%rbp),%r9
mov    %rax,%r10
mov    -0x1030(%rbp),%rax
lea    0xdaa(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    %eax,%ecx
mov    -0x1028(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x1028(%rbp)
mov    -0x1028(%rbp),%rax
mov    %rax,-0x10a8(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x8(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,-0x10a0(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x1098(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    -0x10a8(%rbp),%rdi
mov    -0x10a0(%rbp),%rdx
mov    -0x1098(%rbp),%rcx
mov    %rax,%r8
lea    0xd52(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    %eax,%ecx
mov    -0x1028(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x1028(%rbp)
mov    -0x1028(%rbp),%rax
mov    %rax,-0x1090(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x8(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,-0x1088(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x1080(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    -0x1090(%rbp),%rdi
mov    -0x1088(%rbp),%rdx
mov    -0x1080(%rbp),%rcx
mov    %rax,%r8
lea    0xcd4(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    %eax,%ecx
mov    -0x1028(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x1028(%rbp)
mov    -0x1028(%rbp),%rax
mov    %rax,-0x1078(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x8(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,-0x1070(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x1068(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x8(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    -0x1078(%rbp),%rdi
mov    -0x1070(%rbp),%rdx
mov    -0x1068(%rbp),%rcx
mov    %rax,%r8
mov    -0x28(%rbp),%r9
lea    0xc74(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    %eax,%ecx
mov    -0x1028(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x1028(%rbp)
mov    -0x1028(%rbp),%rax
mov    %rax,-0x1060(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x8(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,-0x1058(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x1050(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,-0x1048(%rbp)
mov    -0x1038(%rbp),%rax
mov    %rax,-0x1040(%rbp)
mov    0x10(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <get_full_attribute_name@plt>
mov    -0x1060(%rbp),%rdi
mov    -0x1058(%rbp),%rdx
mov    -0x1050(%rbp),%rcx
mov    -0x1048(%rbp),%r8
mov    -0x1040(%rbp),%r9
mov    %rax,%r10
mov    -0x30(%rbp),%rax
lea    0xbde(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    %eax,%ecx
mov    -0x1028(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x1028(%rbp)
lea    -0x1020(%rbp),%rdi
call   1060 <strdup@plt>
add    $0x10e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<query_get_between_date_time_where>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1028,%rsp
mov    %r9,%rbx
mov    %r9,0x38(%rsp)
mov    %r8,0x28(%rsp)
mov    %rcx,%rbp
mov    %rcx,0x8(%rsp)
mov    %rdx,0x10(%rsp)
mov    %rsi,%r12
mov    %rdi,%r15
mov    %rdi,0x20(%rsp)
mov    0x1060(%rsp),%r14
mov    %rdx,%rdi
mov    %r8,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
lea    0xe6d(%rip),%r13
cmove  %rbx,%r13
lea    0xe67(%rip),%rax
cmove  %rbp,%rax
mov    %rax,0x30(%rsp)
mov    %r14,%rdi
mov    0x1068(%rsp),%rbx
mov    %rbx,%rsi
mov    %r15,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,%rbp
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%r15
mov    %r12,%rbx
mov    %r12,0x18(%rsp)
mov    %r12,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,%r12
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r15,%r14
mov    %rbx,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,%rbx
lea    0xe13(%rip),%rsi
lea    0x40(%rsp),%rdi
mov    %rbp,%rdx
mov    0x10(%rsp),%r15
mov    %r15,%rcx
mov    %r12,%r8
mov    0x8(%rsp),%r9
xor    %eax,%eax
push   %r13
push   %rbx
call   1050 <sprintf@plt>
add    $0x10,%rsp
cltq
lea    (%rsp,%rax,1),%r12
add    $0x40,%r12
mov    0x1060(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%r13
mov    %r14,%rsi
mov    0x20(%rsp),%r14
mov    %r14,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,0x8(%rsp)
mov    %rbx,%rdi
mov    %r13,%rsi
mov    0x18(%rsp),%rbp
mov    %rbp,%rdx
call   1040 <get_full_attribute_name@plt>
lea    0xdd5(%rip),%rsi
mov    %r12,%rdi
mov    0x8(%rsp),%rdx
mov    %r15,%rcx
mov    %rax,%r8
xor    %eax,%eax
call   1050 <sprintf@plt>
movslq %eax,%rbx
add    %r12,%rbx
mov    0x1060(%rsp),%r12
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,%r15
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rbx,%rdi
lea    0xd89(%rip),%rsi
mov    %r15,%rdx
mov    0x28(%rsp),%r12
mov    %r12,%rcx
mov    %rax,%r8
xor    %eax,%eax
call   1050 <sprintf@plt>
movslq %eax,%rbp
add    %rbx,%rbp
mov    0x1060(%rsp),%rbx
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,%r15
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1040 <get_full_attribute_name@plt>
lea    0xd62(%rip),%rsi
mov    %rbp,%rdi
mov    %r15,%rdx
mov    0x10(%rsp),%rcx
mov    %rax,%r8
mov    %r12,%r9
xor    %eax,%eax
call   1050 <sprintf@plt>
movslq %eax,%rbx
add    %rbp,%rbx
mov    0x1060(%rsp),%rbp
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,%r14
mov    %rbp,%rdi
mov    %r13,%rsi
mov    0x18(%rsp),%rbp
mov    %rbp,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,%r15
mov    0x1060(%rsp),%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   1040 <get_full_attribute_name@plt>
mov    %rax,%rbp
lea    0xd18(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    0x30(%rsp),%r9
xor    %eax,%eax
push   0x38(%rsp)
push   %rbp
call   1050 <sprintf@plt>
add    $0x10,%rsp
lea    0x40(%rsp),%rdi
call   1060 <strdup@plt>
add    $0x1028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"2359\00"
@.str.1 = [5 x i8] c"0000\00"
@.str.2 = [47 x i8] c" ( ( %s = '%s' and %s >= '%s' and %s <= '%s' )\00"
@.str.3 = [34 x i8] c" or ( %s = '%s' and %s = 'null' )\00"
@.str.4 = [32 x i8] c" or ( %s > '%s' and %s < '%s' )\00"
@.str.5 = [50 x i8] c" or ( %s = '%s' and %s >= '%s' and %s <= '%s' ) )\00"
define i8* @query_get_between_date_time_where(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca [4066 x i8]
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i8* %7, i8** %16
%21 = load i8*, i8** %11
%22 = load i8*, i8** %13
%23 = call i64 @strcmp(i8* %21, i8* %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %8
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %19
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %20
br label %29
26: ; preds = %8
%27 = load i8*, i8** %14
store i8* %27, i8** %19
%28 = load i8*, i8** %12
store i8* %28, i8** %20
br label %29
29: ; preds = %26, %25
%30 = getelementptr inbounds [4066 x i8], [4066 x i8]* %17, i64 0, i64 0
store i8* %30, i8** %18
%31 = load i8*, i8** %18
%32 = load i8*, i8** %15
%33 = load i8*, i8** %16
%34 = load i8*, i8** %9
%35 = call i8* @get_full_attribute_name(i8* %32, i8* %33, i8* %34)
%36 = load i8*, i8** %11
%37 = load i8*, i8** %15
%38 = load i8*, i8** %16
%39 = load i8*, i8** %10
%40 = call i8* @get_full_attribute_name(i8* %37, i8* %38, i8* %39)
%41 = load i8*, i8** %12
%42 = load i8*, i8** %15
%43 = load i8*, i8** %16
%44 = load i8*, i8** %10
%45 = call i8* @get_full_attribute_name(i8* %42, i8* %43, i8* %44)
%46 = load i8*, i8** %19
%47 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %31, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i8* %35, i8* %36, i8* %40, i8* %41, i8* %45, i8* %46)
%48 = load i8*, i8** %18
%49 = sext i32 %47 to i64
%50 = getelementptr inbounds i8, i8* %48, i64 %49
store i8* %50, i8** %18
%51 = load i8*, i8** %18
%52 = load i8*, i8** %15
%53 = load i8*, i8** %16
%54 = load i8*, i8** %9
%55 = call i8* @get_full_attribute_name(i8* %52, i8* %53, i8* %54)
%56 = load i8*, i8** %11
%57 = load i8*, i8** %15
%58 = load i8*, i8** %16
%59 = load i8*, i8** %10
%60 = call i8* @get_full_attribute_name(i8* %57, i8* %58, i8* %59)
%61 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %51, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %55, i8* %56, i8* %60)
%62 = load i8*, i8** %18
%63 = sext i32 %61 to i64
%64 = getelementptr inbounds i8, i8* %62, i64 %63
store i8* %64, i8** %18
%65 = load i8*, i8** %18
%66 = load i8*, i8** %15
%67 = load i8*, i8** %16
%68 = load i8*, i8** %9
%69 = call i8* @get_full_attribute_name(i8* %66, i8* %67, i8* %68)
%70 = load i8*, i8** %13
%71 = load i8*, i8** %15
%72 = load i8*, i8** %16
%73 = load i8*, i8** %10
%74 = call i8* @get_full_attribute_name(i8* %71, i8* %72, i8* %73)
%75 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %65, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %69, i8* %70, i8* %74)
%76 = load i8*, i8** %18
%77 = sext i32 %75 to i64
%78 = getelementptr inbounds i8, i8* %76, i64 %77
store i8* %78, i8** %18
%79 = load i8*, i8** %18
%80 = load i8*, i8** %15
%81 = load i8*, i8** %16
%82 = load i8*, i8** %9
%83 = call i8* @get_full_attribute_name(i8* %80, i8* %81, i8* %82)
%84 = load i8*, i8** %11
%85 = load i8*, i8** %15
%86 = load i8*, i8** %16
%87 = load i8*, i8** %9
%88 = call i8* @get_full_attribute_name(i8* %85, i8* %86, i8* %87)
%89 = load i8*, i8** %13
%90 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %79, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %83, i8* %84, i8* %88, i8* %89)
%91 = load i8*, i8** %18
%92 = sext i32 %90 to i64
%93 = getelementptr inbounds i8, i8* %91, i64 %92
store i8* %93, i8** %18
%94 = load i8*, i8** %18
%95 = load i8*, i8** %15
%96 = load i8*, i8** %16
%97 = load i8*, i8** %9
%98 = call i8* @get_full_attribute_name(i8* %95, i8* %96, i8* %97)
%99 = load i8*, i8** %13
%100 = load i8*, i8** %15
%101 = load i8*, i8** %16
%102 = load i8*, i8** %10
%103 = call i8* @get_full_attribute_name(i8* %100, i8* %101, i8* %102)
%104 = load i8*, i8** %20
%105 = load i8*, i8** %15
%106 = load i8*, i8** %16
%107 = load i8*, i8** %10
%108 = call i8* @get_full_attribute_name(i8* %105, i8* %106, i8* %107)
%109 = load i8*, i8** %14
%110 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %94, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0), i8* %98, i8* %99, i8* %103, i8* %104, i8* %108, i8* %109)
%111 = load i8*, i8** %18
%112 = sext i32 %110 to i64
%113 = getelementptr inbounds i8, i8* %111, i64 %112
store i8* %113, i8** %18
%114 = getelementptr inbounds [4066 x i8], [4066 x i8]* %17, i64 0, i64 0
%115 = call i8* @strdup(i8* %114)
ret i8* %115
}

LLVM IR (-O2):
@.str = [5 x i8] c"2359\00"
@.str.1 = [5 x i8] c"0000\00"
@.str.2 = [47 x i8] c" ( ( %s = '%s' and %s >= '%s' and %s <= '%s' )\00"
@.str.3 = [34 x i8] c" or ( %s = '%s' and %s = 'null' )\00"
@.str.4 = [32 x i8] c" or ( %s > '%s' and %s < '%s' )\00"
@.str.5 = [50 x i8] c" or ( %s = '%s' and %s >= '%s' and %s <= '%s' ) )\00"
define noalias i8* @query_get_between_date_time_where(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca [4066 x i8]
%10 = getelementptr inbounds [4066 x i8], [4066 x i8]* %9, i64 0, i64 0
%11 = tail call i64 @strcmp(i8* %2, i8* %4)
%12 = icmp eq i64 %11, 0
%13 = select i1 %12, i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%14 = select i1 %12, i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%15 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %0)
%16 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %1)
%17 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %1)
%18 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i8* %15, i8* %2, i8* %16, i8* %3, i8* %17, i8* %13)
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4066 x i8], [4066 x i8]* %9, i64 0, i64 %19
%21 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %0)
%22 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %1)
%23 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %20, i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %21, i8* %2, i8* %22)
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, i8* %20, i64 %24
%26 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %0)
%27 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %1)
%28 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %25, i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %26, i8* %4, i8* %27)
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, i8* %25, i64 %29
%31 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %0)
%32 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %0)
%33 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %30, i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %31, i8* %2, i8* %32, i8* %4)
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, i8* %30, i64 %34
%36 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %0)
%37 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %1)
%38 = tail call i8* @get_full_attribute_name(i8* %6, i8* %7, i8* %1)
%39 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @sprintf(i8* %35, i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0), i8* %36, i8* %4, i8* %37, i8* %14, i8* %38, i8* %5)
%40 = call i8* @strdup(i8* %10)
ret i8* %40
}