; LLVM IR from umgefahren/server-language-benchmark :: C (server)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.CompleteCommand = type { i32, ptr, ptr, i32, ptr }
%struct.DelCommand = type { ptr, ptr, ptr }

@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare void @perror(ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @execute_command(i32 noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.CompleteCommand, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !11
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %33

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %25 = load ptr, ptr %6, align 8, !tbaa !9
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.CompleteCommand, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = call ptr @store_get(ptr noundef %25, ptr noundef %28)
  store ptr %29, ptr %7, align 8, !tbaa !9
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !9
  call void @write_record(i32 noundef %30, ptr noundef %31)
  %32 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %211

33:                                               ; preds = %3
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.CompleteCommand, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !11
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %38, label %57

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %39 = load ptr, ptr %6, align 8, !tbaa !9
  %40 = load ptr, ptr %5, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.CompleteCommand, ptr %40, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  %43 = call ptr @store_get(ptr noundef %39, ptr noundef %42)
  store ptr %43, ptr %8, align 8, !tbaa !9
  %44 = load ptr, ptr %6, align 8, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.CompleteCommand, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = load ptr, ptr %5, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.CompleteCommand, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.CompleteCommand, ptr %51, i32 0, i32 3
  %53 = load i32, ptr %52, align 8, !tbaa !15
  call void @store_set(ptr noundef %44, ptr noundef %47, ptr noundef %50, i32 noundef %53)
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = load ptr, ptr %8, align 8, !tbaa !9
  call void @write_record(i32 noundef %54, ptr noundef %55)
  %56 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %210

57:                                               ; preds = %33
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.CompleteCommand, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !11
  %61 = icmp eq i32 %60, 2
  br i1 %61, label %62, label %75

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %63 = load ptr, ptr %6, align 8, !tbaa !9
  %64 = load ptr, ptr %5, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.CompleteCommand, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  %67 = call ptr @store_get(ptr noundef %63, ptr noundef %66)
  store ptr %67, ptr %9, align 8, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !9
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.CompleteCommand, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !13
  call void @store_del(ptr noundef %68, ptr noundef %71)
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !9
  call void @write_record(i32 noundef %72, ptr noundef %73)
  %74 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %74) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %209

75:                                               ; preds = %57
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.CompleteCommand, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 8, !tbaa !11
  %79 = icmp eq i32 %78, 3
  br i1 %79, label %80, label %85

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %81 = load ptr, ptr %6, align 8, !tbaa !9
  %82 = call i64 @store_get_counter(ptr noundef %81)
  store i64 %82, ptr %10, align 8, !tbaa !16
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = load i64, ptr %10, align 8, !tbaa !16
  call void @write_counter(i32 noundef %83, i64 noundef %84)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %208

85:                                               ; preds = %75
  %86 = load ptr, ptr %5, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.CompleteCommand, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !11
  %89 = icmp eq i32 %88, 4
  br i1 %89, label %90, label %95

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  %92 = call i64 @store_set_counter(ptr noundef %91)
  store i64 %92, ptr %11, align 8, !tbaa !16
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = load i64, ptr %11, align 8, !tbaa !16
  call void @write_counter(i32 noundef %93, i64 noundef %94)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %207

95:                                               ; preds = %85
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.CompleteCommand, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 8, !tbaa !11
  %99 = icmp eq i32 %98, 5
  br i1 %99, label %100, label %105

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %101 = load ptr, ptr %6, align 8, !tbaa !9
  %102 = call i64 @store_del_counter(ptr noundef %101)
  store i64 %102, ptr %12, align 8, !tbaa !16
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = load i64, ptr %12, align 8, !tbaa !16
  call void @write_counter(i32 noundef %103, i64 noundef %104)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %206

105:                                              ; preds = %95
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.CompleteCommand, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 8, !tbaa !11
  %109 = icmp eq i32 %108, 7
  br i1 %109, label %110, label %121

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %111 = call noalias ptr @malloc(i64 noundef 2) #9
  store ptr %111, ptr %13, align 8, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !9
  %113 = load ptr, ptr %13, align 8, !tbaa !9
  %114 = call ptr @store_new_dump(ptr noundef %112, ptr noundef %113)
  store ptr %114, ptr %13, align 8, !tbaa !9
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = load ptr, ptr %13, align 8, !tbaa !9
  %117 = load ptr, ptr %13, align 8, !tbaa !9
  %118 = call i64 @strlen(ptr noundef %117) #10
  %119 = call i64 @write(i32 noundef %115, ptr noundef %116, i64 noundef %118)
  %120 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %120) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %205

121:                                              ; preds = %105
  %122 = load ptr, ptr %5, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.CompleteCommand, ptr %122, i32 0, i32 0
  %124 = load i32, ptr %123, align 8, !tbaa !11
  %125 = icmp eq i32 %124, 6
  br i1 %125, label %126, label %135

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %127 = load ptr, ptr %6, align 8, !tbaa !9
  %128 = call ptr @store_get_dump(ptr noundef %127)
  store ptr %128, ptr %14, align 8, !tbaa !9
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = load ptr, ptr %14, align 8, !tbaa !9
  %131 = load ptr, ptr %14, align 8, !tbaa !9
  %132 = call i64 @strlen(ptr noundef %131) #10
  %133 = call i64 @write(i32 noundef %129, ptr noundef %130, i64 noundef %132)
  %134 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %134) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %204

135:                                              ; preds = %121
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.CompleteCommand, ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 8, !tbaa !11
  %139 = icmp eq i32 %138, 8
  br i1 %139, label %140, label %147

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %141 = load ptr, ptr %5, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.CompleteCommand, ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !18
  %144 = call double @convert_to_seconds(ptr noundef %143)
  store double %144, ptr %15, align 8, !tbaa !19
  %145 = load ptr, ptr %6, align 8, !tbaa !9
  %146 = load double, ptr %15, align 8, !tbaa !19
  call void @store_change_interval(ptr noundef %145, double noundef %146)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %203

147:                                              ; preds = %135
  %148 = load ptr, ptr %5, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct.CompleteCommand, ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 8, !tbaa !11
  %151 = icmp eq i32 %150, 9
  br i1 %151, label %152, label %202

152:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %153 = load ptr, ptr %6, align 8, !tbaa !9
  %154 = load ptr, ptr %5, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.CompleteCommand, ptr %154, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !13
  %157 = call ptr @store_get(ptr noundef %153, ptr noundef %156)
  store ptr %157, ptr %16, align 8, !tbaa !9
  %158 = load ptr, ptr %6, align 8, !tbaa !9
  %159 = load ptr, ptr %5, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.CompleteCommand, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !13
  %162 = load ptr, ptr %5, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.CompleteCommand, ptr %162, i32 0, i32 2
  %164 = load ptr, ptr %163, align 8, !tbaa !14
  %165 = load ptr, ptr %5, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.CompleteCommand, ptr %165, i32 0, i32 3
  %167 = load i32, ptr %166, align 8, !tbaa !15
  call void @store_set(ptr noundef %158, ptr noundef %161, ptr noundef %164, i32 noundef %167)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %168 = call noalias ptr @malloc(i64 noundef 24) #9
  store ptr %168, ptr %17, align 8, !tbaa !9
  %169 = load ptr, ptr %5, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.CompleteCommand, ptr %169, i32 0, i32 1
  %171 = load ptr, ptr %170, align 8, !tbaa !13
  %172 = call i64 @strlen(ptr noundef %171) #10
  %173 = mul i64 1, %172
  %174 = call noalias ptr @malloc(i64 noundef %173) #9
  %175 = load ptr, ptr %17, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.DelCommand, ptr %175, i32 0, i32 0
  store ptr %174, ptr %176, align 8, !tbaa !21
  %177 = load ptr, ptr %17, align 8, !tbaa !9
  %178 = getelementptr inbounds %struct.DelCommand, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !21
  %180 = load ptr, ptr %5, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.CompleteCommand, ptr %180, i32 0, i32 1
  %182 = load ptr, ptr %181, align 8, !tbaa !13
  %183 = call ptr @strcpy(ptr noundef %179, ptr noundef %182) #8
  %184 = call noalias ptr @malloc(i64 noundef 56) #9
  %185 = load ptr, ptr %17, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.DelCommand, ptr %185, i32 0, i32 1
  store ptr %184, ptr %186, align 8, !tbaa !23
  %187 = load ptr, ptr %17, align 8, !tbaa !9
  %188 = getelementptr inbounds %struct.DelCommand, ptr %187, i32 0, i32 1
  %189 = load ptr, ptr %188, align 8, !tbaa !23
  %190 = load ptr, ptr %5, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct.CompleteCommand, ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %189, ptr align 8 %192, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %193 = load ptr, ptr %17, align 8, !tbaa !9
  %194 = call i32 @pthread_create(ptr noundef %18, ptr noundef null, ptr noundef @delete_handler, ptr noundef %193) #8
  store i32 %194, ptr %19, align 4, !tbaa !5
  %195 = load i32, ptr %19, align 4, !tbaa !5
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %198

197:                                              ; preds = %152
  call void @perror(ptr noundef @.str.11)
  call void @exit(i32 noundef 1) #11
  unreachable

198:                                              ; preds = %152
  %199 = load i32, ptr %4, align 4, !tbaa !5
  %200 = load ptr, ptr %16, align 8, !tbaa !9
  call void @write_record(i32 noundef %199, ptr noundef %200)
  %201 = load ptr, ptr %16, align 8, !tbaa !9
  call void @free(ptr noundef %201) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %202

202:                                              ; preds = %198, %147
  br label %203

203:                                              ; preds = %202, %140
  br label %204

204:                                              ; preds = %203, %126
  br label %205

205:                                              ; preds = %204, %110
  br label %206

206:                                              ; preds = %205, %100
  br label %207

207:                                              ; preds = %206, %90
  br label %208

208:                                              ; preds = %207, %80
  br label %209

209:                                              ; preds = %208, %62
  br label %210

210:                                              ; preds = %209, %38
  br label %211

211:                                              ; preds = %210, %24
  %212 = load i32, ptr %4, align 4, !tbaa !5
  %213 = call i64 @write(i32 noundef %212, ptr noundef @.str.12, i64 noundef 1)
  ret void
}

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @write_record(i32 noundef, ptr noundef) #5

declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @write_counter(i32 noundef, i64 noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

; Function Attrs: nounwind uwtable
declare dso_local ptr @delete_handler(ptr noundef) #5

declare void @store_del(ptr noundef, ptr noundef) #1

declare ptr @store_get(ptr noundef, ptr noundef) #1

declare void @store_set(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

declare i64 @store_get_counter(ptr noundef) #1

declare i64 @store_set_counter(ptr noundef) #1

declare i64 @store_del_counter(ptr noundef) #1

declare ptr @store_new_dump(ptr noundef, ptr noundef) #1

declare ptr @store_get_dump(ptr noundef) #1

declare double @convert_to_seconds(ptr noundef) #1

declare void @store_change_interval(ptr noundef, double noundef) #1

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"CompleteCommand", !6, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !10, i64 32}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !6, i64 24}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!12, !10, i64 32}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = !{!22, !10, i64 0}
!22 = !{!"DelCommand", !10, i64 0, !10, i64 8, !10, i64 16}
!23 = !{!22, !10, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @execute_command(i32 noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #5 {
  %4 = alloca i64, align 8
  %5 = load i32, ptr %1, align 8, !tbaa !5
  switch i32 %5, label %64 [
    i32 0, label %6
    i32 1, label %10
    i32 2, label %19
    i32 3, label %24
    i32 4, label %26
    i32 5, label %28
    i32 7, label %30
    i32 6, label %35
    i32 8, label %39
    i32 9, label %43
  ]

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = tail call ptr @store_get(ptr noundef %2, ptr noundef %8) #12
  tail call void @write_record(i32 noundef %0, ptr noundef %9)
  tail call void @free(ptr noundef %9) #12
  br label %64

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = tail call ptr @store_get(ptr noundef %2, ptr noundef %12) #12
  %14 = load ptr, ptr %11, align 8, !tbaa !11
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = load i32, ptr %17, align 8, !tbaa !13
  tail call void @store_set(ptr noundef %2, ptr noundef %14, ptr noundef %16, i32 noundef %18) #12
  tail call void @write_record(i32 noundef %0, ptr noundef %13)
  tail call void @free(ptr noundef %13) #12
  br label %64

19:                                               ; preds = %3
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = tail call ptr @store_get(ptr noundef %2, ptr noundef %21) #12
  %23 = load ptr, ptr %20, align 8, !tbaa !11
  tail call void @store_del(ptr noundef %2, ptr noundef %23) #12
  tail call void @write_record(i32 noundef %0, ptr noundef %22)
  tail call void @free(ptr noundef %22) #12
  br label %64

24:                                               ; preds = %3
  %25 = tail call i64 @store_get_counter(ptr noundef %2) #12
  tail call void @write_counter(i32 noundef %0, i64 noundef %25)
  br label %64

26:                                               ; preds = %3
  %27 = tail call i64 @store_set_counter(ptr noundef %2) #12
  tail call void @write_counter(i32 noundef %0, i64 noundef %27)
  br label %64

28:                                               ; preds = %3
  %29 = tail call i64 @store_del_counter(ptr noundef %2) #12
  tail call void @write_counter(i32 noundef %0, i64 noundef %29)
  br label %64

30:                                               ; preds = %3
  %31 = tail call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #13
  %32 = tail call ptr @store_new_dump(ptr noundef %2, ptr noundef %31) #12
  %33 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %32) #14
  %34 = tail call i64 @write(i32 noundef %0, ptr noundef %32, i64 noundef %33) #12
  tail call void @free(ptr noundef %32) #12
  br label %64

35:                                               ; preds = %3
  %36 = tail call ptr @store_get_dump(ptr noundef %2) #12
  %37 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %36) #14
  %38 = tail call i64 @write(i32 noundef %0, ptr noundef %36, i64 noundef %37) #12
  tail call void @free(ptr noundef %36) #12
  br label %64

39:                                               ; preds = %3
  %40 = getelementptr inbounds i8, ptr %1, i64 32
  %41 = load ptr, ptr %40, align 8, !tbaa !14
  %42 = tail call double @convert_to_seconds(ptr noundef %41) #12
  tail call void @store_change_interval(ptr noundef %2, double noundef %42) #12
  br label %64

43:                                               ; preds = %3
  %44 = getelementptr inbounds i8, ptr %1, i64 8
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = tail call ptr @store_get(ptr noundef %2, ptr noundef %45) #12
  %47 = load ptr, ptr %44, align 8, !tbaa !11
  %48 = getelementptr inbounds i8, ptr %1, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !12
  %50 = getelementptr inbounds i8, ptr %1, i64 24
  %51 = load i32, ptr %50, align 8, !tbaa !13
  tail call void @store_set(ptr noundef %2, ptr noundef %47, ptr noundef %49, i32 noundef %51) #12
  %52 = tail call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #13
  %53 = load ptr, ptr %44, align 8, !tbaa !11
  %54 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %53) #14
  %55 = tail call noalias ptr @malloc(i64 noundef %54) #13
  store ptr %55, ptr %52, align 8, !tbaa !15
  %56 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %55, ptr noundef nonnull dereferenceable(1) %53) #12
  %57 = tail call noalias dereferenceable_or_null(56) ptr @malloc(i64 noundef 56) #13
  %58 = getelementptr inbounds i8, ptr %52, i64 8
  store ptr %57, ptr %58, align 8, !tbaa !17
  %59 = getelementptr inbounds i8, ptr %1, i64 32
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %57, ptr noundef nonnull align 8 dereferenceable(56) %60, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #12
  %61 = call i32 @pthread_create(ptr noundef nonnull %4, ptr noundef null, ptr noundef nonnull @delete_handler, ptr noundef nonnull %52) #12
  %.not = icmp eq i32 %61, 0
  br i1 %.not, label %63, label %62

62:                                               ; preds = %43
  call void @perror(ptr noundef nonnull @.str.11) #15
  call void @exit(i32 noundef 1) #16
  unreachable

63:                                               ; preds = %43
  call void @write_record(i32 noundef %0, ptr noundef %46)
  call void @free(ptr noundef %46) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #12
  br label %64

64:                                               ; preds = %3, %10, %24, %28, %35, %63, %39, %30, %26, %19, %6
  %65 = call i64 @write(i32 noundef %0, ptr noundef nonnull @.str.12, i64 noundef 1) #12
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare dso_local void @write_record(i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree
declare noundef i64 @write(i32 noundef, ptr nocapture noundef readonly, i64 noundef) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
declare dso_local void @write_counter(i32 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #8

; Function Attrs: nounwind uwtable
declare dso_local ptr @delete_handler(ptr noundef) #5

declare void @store_del(ptr noundef, ptr noundef) local_unnamed_addr #9

declare ptr @store_get(ptr noundef, ptr noundef) local_unnamed_addr #9

declare void @store_set(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #9

declare i64 @store_get_counter(ptr noundef) local_unnamed_addr #9

declare i64 @store_set_counter(ptr noundef) local_unnamed_addr #9

declare i64 @store_del_counter(ptr noundef) local_unnamed_addr #9

declare ptr @store_new_dump(ptr noundef, ptr noundef) local_unnamed_addr #9

declare ptr @store_get_dump(ptr noundef) local_unnamed_addr #9

declare double @convert_to_seconds(ptr noundef) local_unnamed_addr #9

declare void @store_change_interval(ptr noundef, double noundef) local_unnamed_addr #9

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #10

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #11

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #12 = { nounwind }
attributes #13 = { nounwind allocsize(0) }
attributes #14 = { nounwind willreturn memory(read) }
attributes #15 = { cold }
attributes #16 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"CompleteCommand", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !10, i64 32}
!15 = !{!16, !10, i64 0}
!16 = !{!"DelCommand", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!16, !10, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass