; LLVM IR from ryanlayer/giggle :: test/unit (test_lists)

; 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.ordered_set = type { ptr, i32, i32, ptr, ptr, ptr }
%struct.str_uint_pair = type { ptr, i32 }

@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [32 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 @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) #1

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

; Function Attrs: nounwind
declare i32 @remove(ptr noundef) #3

declare ptr @ordered_set_init(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @str_uint_pair_sort_element_cmp(ptr noundef, ptr noundef) #1

declare i32 @str_uint_pair_search_element_cmp(ptr noundef, ptr noundef) #1

declare i32 @str_uint_pair_search_key_cmp(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #3

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

declare void @str_uint_pair_free(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_ordered_set_store_load() #4 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %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 ptr, align 8
  %11 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  %12 = call ptr @ordered_set_init(i32 noundef 3, ptr noundef @str_uint_pair_sort_element_cmp, ptr noundef @str_uint_pair_search_element_cmp, ptr noundef @str_uint_pair_search_key_cmp)
  store ptr %12, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %13 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %13, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ordered_set, ptr %14, i32 0, i32 1
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.str_uint_pair, ptr %17, i32 0, i32 1
  store i32 %16, ptr %18, align 8, !tbaa !12
  %19 = call noalias ptr @strdup(ptr noundef @.str.4) #5
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.str_uint_pair, ptr %20, i32 0, i32 0
  store ptr %19, ptr %21, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = call ptr @ordered_set_add(ptr noundef %22, ptr noundef %23)
  store ptr %24, ptr %3, align 8, !tbaa !5
  %25 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %25, ptr %2, align 8, !tbaa !5
  %26 = load ptr, ptr %1, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ordered_set, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.str_uint_pair, ptr %29, i32 0, i32 1
  store i32 %28, ptr %30, align 8, !tbaa !12
  %31 = call noalias ptr @strdup(ptr noundef @.str.6) #5
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.str_uint_pair, ptr %32, i32 0, i32 0
  store ptr %31, ptr %33, align 8, !tbaa !14
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = call ptr @ordered_set_add(ptr noundef %34, ptr noundef %35)
  store ptr %36, ptr %3, align 8, !tbaa !5
  %37 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %37, ptr %2, align 8, !tbaa !5
  %38 = load ptr, ptr %1, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ordered_set, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !9
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.str_uint_pair, ptr %41, i32 0, i32 1
  store i32 %40, ptr %42, align 8, !tbaa !12
  %43 = call noalias ptr @strdup(ptr noundef @.str.7) #5
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.str_uint_pair, ptr %44, i32 0, i32 0
  store ptr %43, ptr %45, align 8, !tbaa !14
  %46 = load ptr, ptr %1, align 8, !tbaa !5
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = call ptr @ordered_set_add(ptr noundef %46, ptr noundef %47)
  store ptr %48, ptr %3, align 8, !tbaa !5
  %49 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %49, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %1, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ordered_set, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !9
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.str_uint_pair, ptr %53, i32 0, i32 1
  store i32 %52, ptr %54, align 8, !tbaa !12
  %55 = call noalias ptr @strdup(ptr noundef @.str.5) #5
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.str_uint_pair, ptr %56, i32 0, i32 0
  store ptr %55, ptr %57, align 8, !tbaa !14
  %58 = load ptr, ptr %1, align 8, !tbaa !5
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = call ptr @ordered_set_add(ptr noundef %58, ptr noundef %59)
  store ptr %60, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store ptr @.str.15, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = call noalias ptr @fopen(ptr noundef %61, ptr noundef @.str.1)
  store ptr %62, ptr %5, align 8, !tbaa !5
  %63 = load ptr, ptr %1, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ordered_set_store(ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef @str_uint_pair_store)
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call i32 @fclose(ptr noundef %66)
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = call noalias ptr @fopen(ptr noundef %68, ptr noundef @.str.2)
  store ptr %69, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = call ptr @ordered_set_load(ptr noundef %70, ptr noundef %71, ptr noundef @str_uint_pair_load, ptr noundef @str_uint_pair_sort_element_cmp, ptr noundef @str_uint_pair_search_element_cmp, ptr noundef @str_uint_pair_search_key_cmp)
  store ptr %72, ptr %6, align 8, !tbaa !5
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = call i32 @fclose(ptr noundef %73)
  %75 = load ptr, ptr %1, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ordered_set, ptr %75, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ordered_set, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !9
  %82 = zext i32 %81 to i64
  call void @UnityAssertEqualNumber(i64 noundef %78, i64 noundef %82, ptr noundef null, i64 noundef 336, i32 noundef 148)
  %83 = load ptr, ptr %1, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ordered_set, ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 4, !tbaa !15
  %86 = zext i32 %85 to i64
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ordered_set, ptr %87, i32 0, i32 2
  %89 = load i32, ptr %88, align 4, !tbaa !15
  %90 = zext i32 %89 to i64
  call void @UnityAssertEqualNumber(i64 noundef %86, i64 noundef %90, ptr noundef null, i64 noundef 337, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr @.str.4, ptr %8, align 8, !tbaa !5
  %91 = load ptr, ptr %1, align 8, !tbaa !5
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = call ptr @ordered_set_get(ptr noundef %91, ptr noundef %92)
  store ptr %93, ptr %3, align 8, !tbaa !5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = call ptr @ordered_set_get(ptr noundef %94, ptr noundef %95)
  store ptr %96, ptr %7, align 8, !tbaa !5
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.str_uint_pair, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !12
  %100 = zext i32 %99 to i64
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.str_uint_pair, ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 8, !tbaa !12
  %104 = zext i32 %103 to i64
  call void @UnityAssertEqualNumber(i64 noundef %100, i64 noundef %104, ptr noundef null, i64 noundef 344, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr @.str.5, ptr %9, align 8, !tbaa !5
  %105 = load ptr, ptr %1, align 8, !tbaa !5
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = call ptr @ordered_set_get(ptr noundef %105, ptr noundef %106)
  store ptr %107, ptr %3, align 8, !tbaa !5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = call ptr @ordered_set_get(ptr noundef %108, ptr noundef %109)
  store ptr %110, ptr %7, align 8, !tbaa !5
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.str_uint_pair, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !12
  %114 = zext i32 %113 to i64
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.str_uint_pair, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !12
  %118 = zext i32 %117 to i64
  call void @UnityAssertEqualNumber(i64 noundef %114, i64 noundef %118, ptr noundef null, i64 noundef 349, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store ptr @.str.6, ptr %10, align 8, !tbaa !5
  %119 = load ptr, ptr %1, align 8, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = call ptr @ordered_set_get(ptr noundef %119, ptr noundef %120)
  store ptr %121, ptr %3, align 8, !tbaa !5
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = call ptr @ordered_set_get(ptr noundef %122, ptr noundef %123)
  store ptr %124, ptr %7, align 8, !tbaa !5
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.str_uint_pair, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !12
  %128 = zext i32 %127 to i64
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.str_uint_pair, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 8, !tbaa !12
  %132 = zext i32 %131 to i64
  call void @UnityAssertEqualNumber(i64 noundef %128, i64 noundef %132, ptr noundef null, i64 noundef 354, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr @.str.7, ptr %11, align 8, !tbaa !5
  %133 = load ptr, ptr %1, align 8, !tbaa !5
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = call ptr @ordered_set_get(ptr noundef %133, ptr noundef %134)
  store ptr %135, ptr %3, align 8, !tbaa !5
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = call ptr @ordered_set_get(ptr noundef %136, ptr noundef %137)
  store ptr %138, ptr %7, align 8, !tbaa !5
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.str_uint_pair, ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 8, !tbaa !12
  %142 = zext i32 %141 to i64
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.str_uint_pair, ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 8, !tbaa !12
  %146 = zext i32 %145 to i64
  call void @UnityAssertEqualNumber(i64 noundef %142, i64 noundef %146, ptr noundef null, i64 noundef 359, i32 noundef 148)
  call void @ordered_set_destroy(ptr noundef %1, ptr noundef @str_uint_pair_free)
  call void @ordered_set_destroy(ptr noundef %6, ptr noundef @str_uint_pair_free)
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = call i32 @remove(ptr noundef %147) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

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

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

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

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

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 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"ordered_set", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"str_uint_pair", !6, i64 0, !11, i64 8}
!14 = !{!13, !6, i64 0}
!15 = !{!10, !11, i64 12}


; 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.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [32 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

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @remove(ptr nocapture noundef readonly) local_unnamed_addr #3

declare ptr @ordered_set_init(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @str_uint_pair_sort_element_cmp(ptr noundef, ptr noundef) #1

declare i32 @str_uint_pair_search_element_cmp(ptr noundef, ptr noundef) #1

declare i32 @str_uint_pair_search_key_cmp(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #4

declare ptr @ordered_set_add(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @str_uint_pair_free(ptr noundef) #1

declare void @ordered_set_destroy(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @ordered_set_get(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @test_ordered_set_store_load() local_unnamed_addr #5 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %3 = tail call ptr @ordered_set_init(i32 noundef 3, ptr noundef nonnull @str_uint_pair_sort_element_cmp, ptr noundef nonnull @str_uint_pair_search_element_cmp, ptr noundef nonnull @str_uint_pair_search_key_cmp) #6
  store ptr %3, ptr %1, align 8, !tbaa !5
  %4 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  %6 = load i32, ptr %5, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %6, ptr %7, align 8, !tbaa !12
  %8 = tail call noalias ptr @strdup(ptr noundef nonnull @.str.4) #6
  store ptr %8, ptr %4, align 8, !tbaa !14
  %9 = tail call ptr @ordered_set_add(ptr noundef %3, ptr noundef nonnull %4) #6
  %10 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %11 = load i32, ptr %5, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %11, ptr %12, align 8, !tbaa !12
  %13 = tail call noalias ptr @strdup(ptr noundef nonnull @.str.6) #6
  store ptr %13, ptr %10, align 8, !tbaa !14
  %14 = tail call ptr @ordered_set_add(ptr noundef %3, ptr noundef nonnull %10) #6
  %15 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %16 = load i32, ptr %5, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %15, i64 8
  store i32 %16, ptr %17, align 8, !tbaa !12
  %18 = tail call noalias ptr @strdup(ptr noundef nonnull @.str.7) #6
  store ptr %18, ptr %15, align 8, !tbaa !14
  %19 = tail call ptr @ordered_set_add(ptr noundef %3, ptr noundef nonnull %15) #6
  %20 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %21 = load i32, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %20, i64 8
  store i32 %21, ptr %22, align 8, !tbaa !12
  %23 = tail call noalias ptr @strdup(ptr noundef nonnull @.str.5) #6
  store ptr %23, ptr %20, align 8, !tbaa !14
  %24 = tail call ptr @ordered_set_add(ptr noundef %3, ptr noundef nonnull %20) #6
  %25 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1)
  tail call void @ordered_set_store(ptr noundef %3, ptr noundef %25, ptr noundef nonnull @.str.15, ptr noundef nonnull @str_uint_pair_store) #6
  %26 = tail call i32 @fclose(ptr noundef %25)
  %27 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %28 = tail call ptr @ordered_set_load(ptr noundef %27, ptr noundef nonnull @.str.15, ptr noundef nonnull @str_uint_pair_load, ptr noundef nonnull @str_uint_pair_sort_element_cmp, ptr noundef nonnull @str_uint_pair_search_element_cmp, ptr noundef nonnull @str_uint_pair_search_key_cmp) #6
  store ptr %28, ptr %2, align 8, !tbaa !5
  %29 = tail call i32 @fclose(ptr noundef %27)
  %30 = load i32, ptr %5, align 8, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %28, i64 8
  %33 = load i32, ptr %32, align 8, !tbaa !9
  %34 = zext i32 %33 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef %31, i64 noundef %34, ptr noundef null, i64 noundef 336, i32 noundef 148) #6
  %35 = getelementptr inbounds i8, ptr %3, i64 12
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds i8, ptr %28, i64 12
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = zext i32 %39 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef %37, i64 noundef %40, ptr noundef null, i64 noundef 337, i32 noundef 148) #6
  %41 = tail call ptr @ordered_set_get(ptr noundef %3, ptr noundef nonnull @.str.4) #6
  %42 = tail call ptr @ordered_set_get(ptr noundef %28, ptr noundef nonnull @.str.4) #6
  %43 = getelementptr inbounds i8, ptr %41, i64 8
  %44 = load i32, ptr %43, align 8, !tbaa !12
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %42, i64 8
  %47 = load i32, ptr %46, align 8, !tbaa !12
  %48 = zext i32 %47 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef %45, i64 noundef %48, ptr noundef null, i64 noundef 344, i32 noundef 148) #6
  %49 = tail call ptr @ordered_set_get(ptr noundef %3, ptr noundef nonnull @.str.5) #6
  %50 = tail call ptr @ordered_set_get(ptr noundef %28, ptr noundef nonnull @.str.5) #6
  %51 = getelementptr inbounds i8, ptr %49, i64 8
  %52 = load i32, ptr %51, align 8, !tbaa !12
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %50, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !12
  %56 = zext i32 %55 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef %53, i64 noundef %56, ptr noundef null, i64 noundef 349, i32 noundef 148) #6
  %57 = tail call ptr @ordered_set_get(ptr noundef %3, ptr noundef nonnull @.str.6) #6
  %58 = tail call ptr @ordered_set_get(ptr noundef %28, ptr noundef nonnull @.str.6) #6
  %59 = getelementptr inbounds i8, ptr %57, i64 8
  %60 = load i32, ptr %59, align 8, !tbaa !12
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i8, ptr %58, i64 8
  %63 = load i32, ptr %62, align 8, !tbaa !12
  %64 = zext i32 %63 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef %61, i64 noundef %64, ptr noundef null, i64 noundef 354, i32 noundef 148) #6
  %65 = tail call ptr @ordered_set_get(ptr noundef %3, ptr noundef nonnull @.str.7) #6
  %66 = tail call ptr @ordered_set_get(ptr noundef %28, ptr noundef nonnull @.str.7) #6
  %67 = getelementptr inbounds i8, ptr %65, i64 8
  %68 = load i32, ptr %67, align 8, !tbaa !12
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds i8, ptr %66, i64 8
  %71 = load i32, ptr %70, align 8, !tbaa !12
  %72 = zext i32 %71 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef %69, i64 noundef %72, ptr noundef null, i64 noundef 359, i32 noundef 148) #6
  call void @ordered_set_destroy(ptr noundef nonnull %1, ptr noundef nonnull @str_uint_pair_free) #6
  call void @ordered_set_destroy(ptr noundef nonnull %2, ptr noundef nonnull @str_uint_pair_free) #6
  %73 = call i32 @remove(ptr noundef nonnull @.str.15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret void
}

declare void @ordered_set_store(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare ptr @ordered_set_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress 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 = { 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 #3 = { 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 #4 = { mustprogress nofree nounwind willreturn 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 #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 }
attributes #7 = { nounwind allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"ordered_set", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"str_uint_pair", !6, i64 0, !11, i64 8}
!14 = !{!13, !6, i64 0}
!15 = !{!10, !11, i64 12}


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