; LLVM IR from ryanlayer/giggle :: src (index)

; 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.cache_def = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external global ptr, align 8
@optopt = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@cache = external dso_local global %struct.cache_def, align 8

; Function Attrs: nounwind uwtable
declare dso_local i32 @index_help(i32 noundef) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @index_main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [4096 x i8], align 16
  %21 = alloca [4096 x i8], align 16
  %22 = alloca [4096 x i8], align 16
  %23 = alloca [4096 x i8], align 16
  %24 = alloca [4096 x i8], align 16
  %25 = alloca [4096 x i8], align 16
  %26 = alloca [4096 x i8], align 16
  %27 = alloca [4096 x i8], align 16
  %28 = alloca [4096 x i8], align 16
  %29 = alloca ptr, align 8
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 2
  br i1 %33, label %34, label %36

34:                                               ; preds = %3
  %35 = call i32 @index_help(i32 noundef 0)
  store i32 %35, ptr %4, align 4
  br label %181

36:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 100, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store ptr @.str.3, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %90, %36
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !9
  %40 = call i32 @getopt(i32 noundef %38, ptr noundef %39, ptr noundef @.str.4) #8
  store i32 %40, ptr %9, align 4, !tbaa !5
  %41 = icmp ne i32 %40, -1
  br i1 %41, label %42, label %91

42:                                               ; preds = %37
  %43 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %43, label %88 [
    i32 105, label %44
    i32 111, label %46
    i32 109, label %48
    i32 102, label %50
    i32 115, label %51
    i32 104, label %52
    i32 63, label %54
  ]

44:                                               ; preds = %42
  store i32 1, ptr %14, align 4, !tbaa !5
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %45, ptr %10, align 8, !tbaa !9
  br label %90

46:                                               ; preds = %42
  store i32 1, ptr %15, align 4, !tbaa !5
  %47 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %47, ptr %11, align 8, !tbaa !9
  br label %90

48:                                               ; preds = %42
  store i32 1, ptr %18, align 4, !tbaa !5
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %49, ptr %12, align 8, !tbaa !9
  br label %90

50:                                               ; preds = %42
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %90

51:                                               ; preds = %42
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %90

52:                                               ; preds = %42
  %53 = call i32 @index_help(i32 noundef 0)
  store i32 %53, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %180

54:                                               ; preds = %42
  %55 = load i32, ptr @optopt, align 4, !tbaa !5
  %56 = icmp eq i32 %55, 105
  br i1 %56, label %63, label %57

57:                                               ; preds = %54
  %58 = load i32, ptr @optopt, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 111
  br i1 %59, label %63, label %60

60:                                               ; preds = %57
  %61 = load i32, ptr @optopt, align 4, !tbaa !5
  %62 = icmp eq i32 %61, 109
  br i1 %62, label %63, label %67

63:                                               ; preds = %60, %57, %54
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = load i32, ptr @optopt, align 4, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.5, i32 noundef %65) #8
  br label %86

67:                                               ; preds = %60
  %68 = call ptr @__ctype_b_loc() #9
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = load i32, ptr @optopt, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i16, ptr %69, i64 %71
  %73 = load i16, ptr %72, align 2, !tbaa !11
  %74 = zext i16 %73 to i32
  %75 = and i32 %74, 16384
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %81

77:                                               ; preds = %67
  %78 = load ptr, ptr @stderr, align 8, !tbaa !9
  %79 = load i32, ptr @optopt, align 4, !tbaa !5
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.6, i32 noundef %79) #8
  br label %85

81:                                               ; preds = %67
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = load i32, ptr @optopt, align 4, !tbaa !5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.7, i32 noundef %83) #8
  br label %85

85:                                               ; preds = %81, %77
  br label %86

86:                                               ; preds = %85, %63
  %87 = call i32 @index_help(i32 noundef 64)
  store i32 %87, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %180

88:                                               ; preds = %42
  %89 = call i32 @index_help(i32 noundef 0)
  store i32 %89, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %180

90:                                               ; preds = %51, %50, %48, %46, %44
  br label %37, !llvm.loop !13

91:                                               ; preds = %37
  %92 = load i32, ptr %14, align 4, !tbaa !5
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = load ptr, ptr @stderr, align 8, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.8) #8
  %97 = call i32 @index_help(i32 noundef 64)
  store i32 %97, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %180

98:                                               ; preds = %91
  %99 = load i32, ptr %15, align 4, !tbaa !5
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %105

101:                                              ; preds = %98
  %102 = load ptr, ptr @stderr, align 8, !tbaa !9
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.9) #8
  %104 = call i32 @index_help(i32 noundef 64)
  store i32 %104, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %180

105:                                              ; preds = %98
  br label %106

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4096, ptr %20) #8
  %107 = load ptr, ptr %10, align 8, !tbaa !9
  %108 = getelementptr inbounds [4096 x i8], ptr %20, i64 0, i64 0
  call void @abs_path_of_glob(ptr noundef %107, ptr noundef %108)
  call void @llvm.lifetime.start.p0(i64 4096, ptr %21) #8
  %109 = load ptr, ptr %10, align 8, !tbaa !9
  %110 = getelementptr inbounds [4096 x i8], ptr %21, i64 0, i64 0
  call void @safe_basename(ptr noundef %109, ptr noundef %110)
  call void @llvm.lifetime.start.p0(i64 4096, ptr %22) #8
  %111 = getelementptr inbounds [4096 x i8], ptr %20, i64 0, i64 0
  %112 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 0
  call void @safe_dirname(ptr noundef %111, ptr noundef %112)
  call void @llvm.lifetime.start.p0(i64 4096, ptr %23) #8
  %113 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 0
  %114 = getelementptr inbounds [4096 x i8], ptr %23, i64 0, i64 0
  call void @safe_dirname(ptr noundef %113, ptr noundef %114)
  call void @llvm.lifetime.start.p0(i64 4096, ptr %24) #8
  %115 = load ptr, ptr %11, align 8, !tbaa !9
  %116 = getelementptr inbounds [4096 x i8], ptr %24, i64 0, i64 0
  call void @safe_dirname(ptr noundef %115, ptr noundef %116)
  call void @llvm.lifetime.start.p0(i64 4096, ptr %25) #8
  %117 = getelementptr inbounds [4096 x i8], ptr %24, i64 0, i64 0
  %118 = getelementptr inbounds [4096 x i8], ptr %25, i64 0, i64 0
  %119 = call ptr @realpath(ptr noundef %117, ptr noundef %118) #8
  %120 = icmp eq ptr %119, null
  br i1 %120, label %121, label %125

121:                                              ; preds = %106
  %122 = load ptr, ptr @stderr, align 8, !tbaa !9
  %123 = getelementptr inbounds [4096 x i8], ptr %24, i64 0, i64 0
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.10, ptr noundef %123) #8
  call void @exit(i32 noundef 1) #10
  unreachable

125:                                              ; preds = %106
  %126 = getelementptr inbounds [4096 x i8], ptr %23, i64 0, i64 0
  %127 = getelementptr inbounds [4096 x i8], ptr %25, i64 0, i64 0
  %128 = call i32 @strcmp(ptr noundef %126, ptr noundef %127) #11
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %133

130:                                              ; preds = %125
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.11) #8
  call void @exit(i32 noundef 1) #10
  unreachable

133:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4096, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4096, ptr %27) #8
  %134 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 0
  %135 = getelementptr inbounds [4096 x i8], ptr %26, i64 0, i64 0
  call void @safe_basename(ptr noundef %134, ptr noundef %135)
  %136 = load ptr, ptr %11, align 8, !tbaa !9
  %137 = getelementptr inbounds [4096 x i8], ptr %27, i64 0, i64 0
  call void @safe_basename(ptr noundef %136, ptr noundef %137)
  call void @llvm.lifetime.start.p0(i64 4096, ptr %28) #8
  %138 = getelementptr inbounds [4096 x i8], ptr %28, i64 0, i64 0
  %139 = getelementptr inbounds [4096 x i8], ptr %26, i64 0, i64 0
  %140 = getelementptr inbounds [4096 x i8], ptr %21, i64 0, i64 0
  %141 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %138, i64 noundef 4096, ptr noundef @.str.12, ptr noundef %139, ptr noundef %140) #8
  %142 = getelementptr inbounds [4096 x i8], ptr %23, i64 0, i64 0
  %143 = call i32 @chdir(ptr noundef %142) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %144 = load i32, ptr %16, align 4, !tbaa !5
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %146, label %155

146:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %147 = getelementptr inbounds [4096 x i8], ptr %28, i64 0, i64 0
  %148 = getelementptr inbounds [4096 x i8], ptr %27, i64 0, i64 0
  %149 = load ptr, ptr %12, align 8, !tbaa !9
  %150 = load i32, ptr %17, align 4, !tbaa !5
  %151 = call i64 @giggle_bulk_insert_with_metadata(ptr noundef %147, ptr noundef %148, ptr noundef %149, i32 noundef %150)
  store i64 %151, ptr %30, align 8, !tbaa !15
  %152 = load ptr, ptr @stderr, align 8, !tbaa !9
  %153 = load i64, ptr %30, align 8, !tbaa !15
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.13, i64 noundef %153) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %178

155:                                              ; preds = %133
  %156 = load i32, ptr %8, align 4, !tbaa !5
  %157 = getelementptr inbounds [4096 x i8], ptr %27, i64 0, i64 0
  %158 = load ptr, ptr %12, align 8, !tbaa !9
  %159 = load i32, ptr %17, align 4, !tbaa !5
  %160 = call ptr @giggle_init_with_metadata(i32 noundef %156, ptr noundef %157, ptr noundef %158, i32 noundef %159, ptr noundef @uint64_t_ll_giggle_set_data_handler)
  store ptr %160, ptr %29, align 8, !tbaa !9
  %161 = load ptr, ptr %29, align 8, !tbaa !9
  %162 = icmp eq ptr %161, null
  br i1 %162, label %163, label %164

163:                                              ; preds = %155
  store i32 65, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %179

164:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %165 = load ptr, ptr %29, align 8, !tbaa !9
  %166 = getelementptr inbounds [4096 x i8], ptr %28, i64 0, i64 0
  %167 = call i32 @giggle_index_directory(ptr noundef %165, ptr noundef %166, i32 noundef 0)
  store i32 %167, ptr %31, align 4, !tbaa !5
  %168 = load ptr, ptr @stderr, align 8, !tbaa !9
  %169 = load i32, ptr %31, align 4, !tbaa !5
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.14, i32 noundef %169) #8
  %171 = load ptr, ptr %29, align 8, !tbaa !9
  %172 = call i32 @giggle_store(ptr noundef %171)
  store i32 %172, ptr %31, align 4, !tbaa !5
  %173 = load i32, ptr %31, align 4, !tbaa !5
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %164
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.15) #12
  unreachable

176:                                              ; preds = %164
  call void @giggle_index_destroy(ptr noundef %29)
  %177 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 6), align 8, !tbaa !17
  call void (...) %177()
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %178

178:                                              ; preds = %176, %146
  store i32 0, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %179

179:                                              ; preds = %178, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %20) #8
  br label %180

180:                                              ; preds = %179, %101, %94, %88, %86, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %181

181:                                              ; preds = %180, %34
  %182 = load i32, ptr %4, align 4
  ret i32 %182
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #3

declare void @abs_path_of_glob(ptr noundef, ptr noundef) #4

declare void @safe_basename(ptr noundef, ptr noundef) #4

declare void @safe_dirname(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare ptr @realpath(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #1

; Function Attrs: nounwind
declare i32 @chdir(ptr noundef) #1

declare i64 @giggle_bulk_insert_with_metadata(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #4

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

declare ptr @giggle_init_with_metadata(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

declare void @uint64_t_ll_giggle_set_data_handler(...) #4

declare i32 @giggle_index_directory(ptr noundef, ptr noundef, i32 noundef) #4

declare i32 @giggle_store(ptr noundef) #4

; Function Attrs: noreturn
declare void @errx(i32 noundef, ptr noundef, ...) #7

declare void @giggle_index_destroy(ptr noundef) #4

attributes #0 = { 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 #1 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind willreturn memory(none) "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 = { "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 = { 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 #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 = { noreturn "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 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { noreturn }

!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, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !10, i64 48}
!18 = !{!"cache_def", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}


; 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"

%struct.cache_def = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@optopt = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@cache = external dso_local local_unnamed_addr global %struct.cache_def, align 8

; Function Attrs: nounwind uwtable
declare dso_local i32 @index_help(i32 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @index_main(i32 noundef %0, ptr noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #0 {
  %4 = alloca [4096 x i8], align 16
  %5 = alloca [4096 x i8], align 16
  %6 = alloca [4096 x i8], align 16
  %7 = alloca [4096 x i8], align 16
  %8 = alloca [4096 x i8], align 16
  %9 = alloca [4096 x i8], align 16
  %10 = alloca [4096 x i8], align 16
  %11 = alloca [4096 x i8], align 16
  %12 = alloca [4096 x i8], align 16
  %13 = alloca ptr, align 8
  %14 = icmp slt i32 %0, 2
  br i1 %14, label %15, label %.preheader.outer

15:                                               ; preds = %3
  %16 = tail call i32 @index_help(i32 noundef 0)
  br label %83

.preheader:                                       ; preds = %.preheader.outer140, %.preheader
  %17 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4) #9
  switch i32 %17, label %.loopexit [
    i32 -1, label %.loopexit179
    i32 105, label %.loopexit180
    i32 111, label %.loopexit181
    i32 109, label %.loopexit182
    i32 102, label %.preheader
    i32 115, label %.loopexit183
    i32 104, label %.loopexit184
    i32 63, label %.loopexit185
  ], !llvm.loop !5

.loopexit180:                                     ; preds = %.preheader.outer140, %.preheader
  %.024.lcssa145 = phi i32 [ 1, %.preheader ], [ %.024.ph142, %.preheader.outer140 ]
  %18 = load ptr, ptr @optarg, align 8, !tbaa !8
  br label %.preheader.outer134, !llvm.loop !12

.loopexit181:                                     ; preds = %.preheader.outer140, %.preheader
  %.024.lcssa146 = phi i32 [ 1, %.preheader ], [ %.024.ph142, %.preheader.outer140 ]
  %19 = load ptr, ptr @optarg, align 8, !tbaa !8
  br label %.preheader.outer127, !llvm.loop !12

.loopexit182:                                     ; preds = %.preheader.outer140, %.preheader
  %.024.lcssa147 = phi i32 [ 1, %.preheader ], [ %.024.ph142, %.preheader.outer140 ]
  %20 = load ptr, ptr @optarg, align 8, !tbaa !8
  br label %.preheader.outer, !llvm.loop !12

.preheader.outer:                                 ; preds = %3, %.loopexit182
  %.034.ph = phi ptr [ %20, %.loopexit182 ], [ null, %3 ]
  %.032.ph = phi ptr [ %.032.ph128, %.loopexit182 ], [ null, %3 ]
  %.030.ph = phi i32 [ %.030.ph135, %.loopexit182 ], [ 0, %3 ]
  %.028.ph = phi i32 [ %.028.ph130, %.loopexit182 ], [ 0, %3 ]
  %.026.ph = phi i32 [ %.026.ph141, %.loopexit182 ], [ 0, %3 ]
  %.024.ph = phi i32 [ %.024.lcssa147, %.loopexit182 ], [ 0, %3 ]
  %.022.ph = phi ptr [ %.022.ph139, %.loopexit182 ], [ null, %3 ]
  br label %.preheader.outer127

.preheader.outer127:                              ; preds = %.preheader.outer, %.loopexit181
  %.032.ph128 = phi ptr [ %.032.ph, %.preheader.outer ], [ %19, %.loopexit181 ]
  %.030.ph129 = phi i32 [ %.030.ph, %.preheader.outer ], [ %.030.ph135, %.loopexit181 ]
  %.028.ph130 = phi i32 [ %.028.ph, %.preheader.outer ], [ 1, %.loopexit181 ]
  %.026.ph131 = phi i32 [ %.026.ph, %.preheader.outer ], [ %.026.ph141, %.loopexit181 ]
  %.024.ph132 = phi i32 [ %.024.ph, %.preheader.outer ], [ %.024.lcssa146, %.loopexit181 ]
  %.022.ph133 = phi ptr [ %.022.ph, %.preheader.outer ], [ %.022.ph139, %.loopexit181 ]
  br label %.preheader.outer134

.preheader.outer134:                              ; preds = %.preheader.outer127, %.loopexit180
  %.030.ph135 = phi i32 [ %.030.ph129, %.preheader.outer127 ], [ 1, %.loopexit180 ]
  %.026.ph137 = phi i32 [ %.026.ph131, %.preheader.outer127 ], [ %.026.ph141, %.loopexit180 ]
  %.024.ph138 = phi i32 [ %.024.ph132, %.preheader.outer127 ], [ %.024.lcssa145, %.loopexit180 ]
  %.022.ph139 = phi ptr [ %.022.ph133, %.preheader.outer127 ], [ %18, %.loopexit180 ]
  br label %.preheader.outer140

.preheader.outer140:                              ; preds = %.preheader.outer134, %.loopexit183
  %.026.ph141 = phi i32 [ %.026.ph137, %.preheader.outer134 ], [ 1, %.loopexit183 ]
  %.024.ph142 = phi i32 [ %.024.ph138, %.preheader.outer134 ], [ %.024.lcssa148, %.loopexit183 ]
  %21 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4) #9
  switch i32 %21, label %.loopexit [
    i32 -1, label %.loopexit179
    i32 105, label %.loopexit180
    i32 111, label %.loopexit181
    i32 109, label %.loopexit182
    i32 102, label %.preheader
    i32 115, label %.loopexit183
    i32 104, label %.loopexit184
    i32 63, label %.loopexit185
  ]

.loopexit183:                                     ; preds = %.preheader, %.preheader.outer140
  %.024.lcssa148 = phi i32 [ %.024.ph142, %.preheader.outer140 ], [ 1, %.preheader ]
  br label %.preheader.outer140, !llvm.loop !12

.loopexit184:                                     ; preds = %.preheader.outer140, %.preheader
  %22 = tail call i32 @index_help(i32 noundef 0)
  br label %83

.loopexit185:                                     ; preds = %.preheader.outer140, %.preheader
  %23 = load i32, ptr @optopt, align 4
  switch i32 %23, label %27 [
    i32 111, label %24
    i32 109, label %24
    i32 105, label %24
  ]

24:                                               ; preds = %.loopexit185, %.loopexit185, %.loopexit185
  %25 = load ptr, ptr @stderr, align 8, !tbaa !8
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.5, i32 noundef %23) #10
  br label %39

27:                                               ; preds = %.loopexit185
  %28 = tail call ptr @__ctype_b_loc() #11
  %29 = load ptr, ptr %28, align 8, !tbaa !8
  %30 = sext i32 %23 to i64
  %31 = getelementptr inbounds i16, ptr %29, i64 %30
  %32 = load i16, ptr %31, align 2, !tbaa !13
  %33 = and i16 %32, 16384
  %.not42 = icmp eq i16 %33, 0
  %34 = load ptr, ptr @stderr, align 8, !tbaa !8
  br i1 %.not42, label %37, label %35

35:                                               ; preds = %27
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.6, i32 noundef %23) #10
  br label %39

37:                                               ; preds = %27
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.7, i32 noundef %23) #10
  br label %39

39:                                               ; preds = %35, %37, %24
  %40 = tail call i32 @index_help(i32 noundef 64)
  br label %83

.loopexit:                                        ; preds = %.preheader.outer140, %.preheader
  %41 = tail call i32 @index_help(i32 noundef 0)
  br label %83

.loopexit179:                                     ; preds = %.preheader.outer140, %.preheader
  %.024.lcssa144 = phi i32 [ 1, %.preheader ], [ %.024.ph142, %.preheader.outer140 ]
  %42 = icmp eq i32 %.030.ph135, 0
  br i1 %42, label %43, label %47

43:                                               ; preds = %.loopexit179
  %44 = load ptr, ptr @stderr, align 8, !tbaa !8
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.8) #10
  %46 = tail call i32 @index_help(i32 noundef 64)
  br label %83

47:                                               ; preds = %.loopexit179
  %48 = icmp eq i32 %.028.ph130, 0
  br i1 %48, label %49, label %53

49:                                               ; preds = %47
  %50 = load ptr, ptr @stderr, align 8, !tbaa !8
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.9) #10
  %52 = tail call i32 @index_help(i32 noundef 64)
  br label %83

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %4) #9
  call void @abs_path_of_glob(ptr noundef %.022.ph139, ptr noundef nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %5) #9
  call void @safe_basename(ptr noundef %.022.ph139, ptr noundef nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %6) #9
  call void @safe_dirname(ptr noundef nonnull %4, ptr noundef nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %7) #9
  call void @safe_dirname(ptr noundef nonnull %6, ptr noundef nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %8) #9
  call void @safe_dirname(ptr noundef %.032.ph128, ptr noundef nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %9) #9
  %54 = call ptr @realpath(ptr noundef nonnull %8, ptr noundef nonnull %9) #9
  %55 = icmp eq ptr %54, null
  br i1 %55, label %56, label %59

56:                                               ; preds = %53
  %57 = load ptr, ptr @stderr, align 8, !tbaa !8
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.10, ptr noundef nonnull %8) #10
  call void @exit(i32 noundef 1) #12
  unreachable

59:                                               ; preds = %53
  %60 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %9) #13
  %.not40 = icmp eq i32 %60, 0
  br i1 %.not40, label %64, label %61

61:                                               ; preds = %59
  %62 = load ptr, ptr @stderr, align 8, !tbaa !8
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.11) #10
  call void @exit(i32 noundef 1) #12
  unreachable

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %11) #9
  call void @safe_basename(ptr noundef nonnull %6, ptr noundef nonnull %10) #9
  call void @safe_basename(ptr noundef %.032.ph128, ptr noundef nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %12) #9
  %65 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 4096, ptr noundef nonnull @.str.12, ptr noundef nonnull %10, ptr noundef nonnull %5) #9
  %66 = call i32 @chdir(ptr noundef nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %.not = icmp eq i32 %.026.ph141, 0
  br i1 %.not, label %71, label %67

67:                                               ; preds = %64
  %68 = call i64 @giggle_bulk_insert_with_metadata(ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef %.034.ph, i32 noundef %.024.lcssa144) #9
  %69 = load ptr, ptr @stderr, align 8, !tbaa !8
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.13, i64 noundef %68) #10
  br label %82

71:                                               ; preds = %64
  %72 = call ptr @giggle_init_with_metadata(i32 noundef 100, ptr noundef nonnull %11, ptr noundef %.034.ph, i32 noundef %.024.lcssa144, ptr noundef nonnull @uint64_t_ll_giggle_set_data_handler) #9
  store ptr %72, ptr %13, align 8, !tbaa !8
  %73 = icmp eq ptr %72, null
  br i1 %73, label %82, label %74

74:                                               ; preds = %71
  %75 = call i32 @giggle_index_directory(ptr noundef nonnull %72, ptr noundef nonnull %12, i32 noundef 0) #9
  %76 = load ptr, ptr @stderr, align 8, !tbaa !8
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.14, i32 noundef %75) #10
  %78 = call i32 @giggle_store(ptr noundef nonnull %72) #9
  %.not41 = icmp eq i32 %78, 0
  br i1 %.not41, label %80, label %79

79:                                               ; preds = %74
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.15) #12
  unreachable

80:                                               ; preds = %74
  call void @giggle_index_destroy(ptr noundef nonnull %13) #9
  %81 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 48), align 8, !tbaa !15
  call void (...) %81() #9
  br label %82

82:                                               ; preds = %67, %80, %71
  %.0 = phi i32 [ 65, %71 ], [ 0, %80 ], [ 0, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #9
  br label %83

83:                                               ; preds = %.loopexit184, %39, %.loopexit, %43, %49, %82, %15
  %.2 = phi i32 [ %16, %15 ], [ %41, %.loopexit ], [ %40, %39 ], [ %22, %.loopexit184 ], [ %46, %43 ], [ %52, %49 ], [ %.0, %82 ]
  ret i32 %.2
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #4

declare void @abs_path_of_glob(ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @safe_basename(ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @safe_dirname(ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

declare i64 @giggle_bulk_insert_with_metadata(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

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

declare ptr @giggle_init_with_metadata(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare void @uint64_t_ll_giggle_set_data_handler(...) #5

declare i32 @giggle_index_directory(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @giggle_store(ptr noundef) local_unnamed_addr #5

; Function Attrs: noreturn
declare void @errx(i32 noundef, ptr noundef, ...) local_unnamed_addr #8

declare void @giggle_index_destroy(ptr noundef) local_unnamed_addr #5

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { "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 = { 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 #7 = { 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 #8 = { noreturn "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 = { nounwind }
attributes #10 = { cold nounwind }
attributes #11 = { nounwind willreturn memory(none) }
attributes #12 = { noreturn nounwind }
attributes #13 = { nounwind willreturn memory(read) }

!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 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.peeled.count", i32 1}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = distinct !{!12, !6}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !10, i64 0}
!15 = !{!16, !9, i64 48}
!16 = !{!"cache_def", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass