; LLVM IR from nsccgz-storage/nvlsm :: db (c_test)

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

@phase = external dso_local global ptr, align 8
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [66 x i8], align 1
@fake_filter_result = external hidden global i8, align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [18 x i8], align 1
@__const.main.start = external hidden unnamed_addr constant [2 x ptr], align 16
@__const.main.start_len = external hidden unnamed_addr constant [2 x i64], align 16
@__const.main.limit = external hidden unnamed_addr constant [2 x ptr], align 16
@__const.main.limit_len = external hidden unnamed_addr constant [2 x i64], align 16
@.str.33 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @FilterKeyMatch(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

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

; Function Attrs: noreturn nounwind
declare void @abort() #2

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %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 ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca [100 x i8], align 16
  %23 = alloca [100 x i8], align 16
  %24 = alloca [2 x i64], align 16
  %25 = alloca [2 x ptr], align 16
  %26 = alloca [2 x i64], align 16
  %27 = alloca [2 x ptr], align 16
  %28 = alloca [2 x i64], align 16
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store ptr null, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 -1, ptr %15, align 4, !tbaa !5
  %32 = call i32 @leveldb_major_version()
  %33 = icmp sge i32 %32, 1
  br i1 %33, label %38, label %34

34:                                               ; preds = %2
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = load ptr, ptr @phase, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 157, ptr noundef %36, ptr noundef @.str.6) #7
  call void @abort() #8
  unreachable

38:                                               ; preds = %2
  %39 = call i32 @leveldb_minor_version()
  %40 = icmp sge i32 %39, 1
  br i1 %40, label %45, label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = load ptr, ptr @phase, align 8, !tbaa !9
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 158, ptr noundef %43, ptr noundef @.str.7) #7
  call void @abort() #8
  unreachable

45:                                               ; preds = %38
  call void @StartPhase(ptr noundef @.str.8)
  %46 = call ptr @leveldb_comparator_create(ptr noundef null, ptr noundef @CmpDestroy, ptr noundef @CmpCompare, ptr noundef @CmpName)
  store ptr %46, ptr %7, align 8, !tbaa !9
  %47 = call ptr @leveldb_create_default_env()
  store ptr %47, ptr %9, align 8, !tbaa !9
  %48 = call ptr @leveldb_cache_create_lru(i64 noundef 100000)
  store ptr %48, ptr %8, align 8, !tbaa !9
  %49 = load ptr, ptr %9, align 8, !tbaa !9
  %50 = call ptr @leveldb_env_get_test_directory(ptr noundef %49)
  store ptr %50, ptr %13, align 8, !tbaa !9
  %51 = load ptr, ptr %13, align 8, !tbaa !9
  %52 = icmp ne ptr %51, null
  br i1 %52, label %57, label %53

53:                                               ; preds = %45
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = load ptr, ptr @phase, align 8, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 165, ptr noundef %55, ptr noundef @.str.9) #7
  call void @abort() #8
  unreachable

57:                                               ; preds = %45
  %58 = call ptr @leveldb_options_create()
  store ptr %58, ptr %10, align 8, !tbaa !9
  %59 = load ptr, ptr %10, align 8, !tbaa !9
  %60 = load ptr, ptr %7, align 8, !tbaa !9
  call void @leveldb_options_set_comparator(ptr noundef %59, ptr noundef %60)
  %61 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_error_if_exists(ptr noundef %61, i8 noundef zeroext 1)
  %62 = load ptr, ptr %10, align 8, !tbaa !9
  %63 = load ptr, ptr %8, align 8, !tbaa !9
  call void @leveldb_options_set_cache(ptr noundef %62, ptr noundef %63)
  %64 = load ptr, ptr %10, align 8, !tbaa !9
  %65 = load ptr, ptr %9, align 8, !tbaa !9
  call void @leveldb_options_set_env(ptr noundef %64, ptr noundef %65)
  %66 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_info_log(ptr noundef %66, ptr noundef null)
  %67 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_write_buffer_size(ptr noundef %67, i64 noundef 100000)
  %68 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_paranoid_checks(ptr noundef %68, i8 noundef zeroext 1)
  %69 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_max_open_files(ptr noundef %69, i32 noundef 10)
  %70 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_block_size(ptr noundef %70, i64 noundef 1024)
  %71 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_block_restart_interval(ptr noundef %71, i32 noundef 8)
  %72 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_max_file_size(ptr noundef %72, i64 noundef 3145728)
  %73 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_compression(ptr noundef %73, i32 noundef 0)
  %74 = call ptr @leveldb_readoptions_create()
  store ptr %74, ptr %11, align 8, !tbaa !9
  %75 = load ptr, ptr %11, align 8, !tbaa !9
  call void @leveldb_readoptions_set_verify_checksums(ptr noundef %75, i8 noundef zeroext 1)
  %76 = load ptr, ptr %11, align 8, !tbaa !9
  call void @leveldb_readoptions_set_fill_cache(ptr noundef %76, i8 noundef zeroext 0)
  %77 = call ptr @leveldb_writeoptions_create()
  store ptr %77, ptr %12, align 8, !tbaa !9
  %78 = load ptr, ptr %12, align 8, !tbaa !9
  call void @leveldb_writeoptions_set_sync(ptr noundef %78, i8 noundef zeroext 1)
  call void @StartPhase(ptr noundef @.str.10)
  %79 = load ptr, ptr %10, align 8, !tbaa !9
  %80 = load ptr, ptr %13, align 8, !tbaa !9
  call void @leveldb_destroy_db(ptr noundef %79, ptr noundef %80, ptr noundef %14)
  call void @Free(ptr noundef %14)
  call void @StartPhase(ptr noundef @.str.11)
  %81 = load ptr, ptr %10, align 8, !tbaa !9
  %82 = load ptr, ptr %13, align 8, !tbaa !9
  %83 = call ptr @leveldb_open(ptr noundef %81, ptr noundef %82, ptr noundef %14)
  store ptr %83, ptr %6, align 8, !tbaa !9
  %84 = load ptr, ptr %14, align 8, !tbaa !9
  %85 = icmp ne ptr %84, null
  br i1 %85, label %90, label %86

86:                                               ; preds = %57
  %87 = load ptr, ptr @stderr, align 8, !tbaa !9
  %88 = load ptr, ptr @phase, align 8, !tbaa !9
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 194, ptr noundef %88, ptr noundef @.str.12) #7
  call void @abort() #8
  unreachable

90:                                               ; preds = %57
  call void @Free(ptr noundef %14)
  call void @StartPhase(ptr noundef @.str.13)
  %91 = load ptr, ptr %10, align 8, !tbaa !9
  %92 = load ptr, ptr %13, align 8, !tbaa !9
  %93 = call ptr @leveldb_open(ptr noundef %91, ptr noundef %92, ptr noundef %14)
  store ptr %93, ptr %6, align 8, !tbaa !9
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = icmp ne ptr %94, null
  br i1 %95, label %100, label %96

96:                                               ; preds = %90
  %97 = load ptr, ptr @stderr, align 8, !tbaa !9
  %98 = load ptr, ptr @phase, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 199, ptr noundef %98, ptr noundef @.str.12) #7
  call void @abort() #8
  unreachable

100:                                              ; preds = %90
  %101 = load ptr, ptr %14, align 8, !tbaa !9
  call void @leveldb_free(ptr noundef %101)
  store ptr null, ptr %14, align 8, !tbaa !9
  call void @StartPhase(ptr noundef @.str.14)
  %102 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_create_if_missing(ptr noundef %102, i8 noundef zeroext 1)
  %103 = load ptr, ptr %10, align 8, !tbaa !9
  %104 = load ptr, ptr %13, align 8, !tbaa !9
  %105 = call ptr @leveldb_open(ptr noundef %103, ptr noundef %104, ptr noundef %14)
  store ptr %105, ptr %6, align 8, !tbaa !9
  %106 = load ptr, ptr %14, align 8, !tbaa !9
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %113

108:                                              ; preds = %100
  %109 = load ptr, ptr @stderr, align 8, !tbaa !9
  %110 = load ptr, ptr @phase, align 8, !tbaa !9
  %111 = load ptr, ptr %14, align 8, !tbaa !9
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 206, ptr noundef %110, ptr noundef %111) #7
  call void @abort() #8
  unreachable

113:                                              ; preds = %100
  %114 = load ptr, ptr %6, align 8, !tbaa !9
  %115 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %114, ptr noundef %115, ptr noundef @.str.15, ptr noundef null)
  call void @StartPhase(ptr noundef @.str.16)
  %116 = load ptr, ptr %6, align 8, !tbaa !9
  %117 = load ptr, ptr %12, align 8, !tbaa !9
  call void @leveldb_put(ptr noundef %116, ptr noundef %117, ptr noundef @.str.15, i64 noundef 3, ptr noundef @.str.17, i64 noundef 5, ptr noundef %14)
  %118 = load ptr, ptr %14, align 8, !tbaa !9
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %125

120:                                              ; preds = %113
  %121 = load ptr, ptr @stderr, align 8, !tbaa !9
  %122 = load ptr, ptr @phase, align 8, !tbaa !9
  %123 = load ptr, ptr %14, align 8, !tbaa !9
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 211, ptr noundef %122, ptr noundef %123) #7
  call void @abort() #8
  unreachable

125:                                              ; preds = %113
  %126 = load ptr, ptr %6, align 8, !tbaa !9
  %127 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %126, ptr noundef %127, ptr noundef @.str.15, ptr noundef @.str.17)
  call void @StartPhase(ptr noundef @.str.18)
  %128 = load ptr, ptr %6, align 8, !tbaa !9
  call void @leveldb_compact_range(ptr noundef %128, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0)
  %129 = load ptr, ptr %6, align 8, !tbaa !9
  %130 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %129, ptr noundef %130, ptr noundef @.str.15, ptr noundef @.str.17)
  call void @StartPhase(ptr noundef @.str.19)
  %131 = load ptr, ptr %6, align 8, !tbaa !9
  call void @leveldb_compact_range(ptr noundef %131, ptr noundef @.str.20, i64 noundef 1, ptr noundef @.str.21, i64 noundef 1)
  %132 = load ptr, ptr %6, align 8, !tbaa !9
  %133 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %132, ptr noundef %133, ptr noundef @.str.15, ptr noundef @.str.17)
  call void @StartPhase(ptr noundef @.str.22)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %134 = call ptr @leveldb_writebatch_create()
  store ptr %134, ptr %16, align 8, !tbaa !9
  %135 = load ptr, ptr %16, align 8, !tbaa !9
  call void @leveldb_writebatch_put(ptr noundef %135, ptr noundef @.str.15, i64 noundef 3, ptr noundef @.str.20, i64 noundef 1)
  %136 = load ptr, ptr %16, align 8, !tbaa !9
  call void @leveldb_writebatch_clear(ptr noundef %136)
  %137 = load ptr, ptr %16, align 8, !tbaa !9
  call void @leveldb_writebatch_put(ptr noundef %137, ptr noundef @.str.23, i64 noundef 3, ptr noundef @.str.24, i64 noundef 1)
  %138 = load ptr, ptr %16, align 8, !tbaa !9
  call void @leveldb_writebatch_put(ptr noundef %138, ptr noundef @.str.25, i64 noundef 3, ptr noundef @.str.26, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %139 = call ptr @leveldb_writebatch_create()
  store ptr %139, ptr %17, align 8, !tbaa !9
  %140 = load ptr, ptr %17, align 8, !tbaa !9
  call void @leveldb_writebatch_delete(ptr noundef %140, ptr noundef @.str.23, i64 noundef 3)
  %141 = load ptr, ptr %16, align 8, !tbaa !9
  %142 = load ptr, ptr %17, align 8, !tbaa !9
  call void @leveldb_writebatch_append(ptr noundef %141, ptr noundef %142)
  %143 = load ptr, ptr %17, align 8, !tbaa !9
  call void @leveldb_writebatch_destroy(ptr noundef %143)
  %144 = load ptr, ptr %6, align 8, !tbaa !9
  %145 = load ptr, ptr %12, align 8, !tbaa !9
  %146 = load ptr, ptr %16, align 8, !tbaa !9
  call void @leveldb_write(ptr noundef %144, ptr noundef %145, ptr noundef %146, ptr noundef %14)
  %147 = load ptr, ptr %14, align 8, !tbaa !9
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %154

149:                                              ; preds = %125
  %150 = load ptr, ptr @stderr, align 8, !tbaa !9
  %151 = load ptr, ptr @phase, align 8, !tbaa !9
  %152 = load ptr, ptr %14, align 8, !tbaa !9
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 236, ptr noundef %151, ptr noundef %152) #7
  call void @abort() #8
  unreachable

154:                                              ; preds = %125
  %155 = load ptr, ptr %6, align 8, !tbaa !9
  %156 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %155, ptr noundef %156, ptr noundef @.str.15, ptr noundef @.str.17)
  %157 = load ptr, ptr %6, align 8, !tbaa !9
  %158 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %157, ptr noundef %158, ptr noundef @.str.23, ptr noundef null)
  %159 = load ptr, ptr %6, align 8, !tbaa !9
  %160 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %159, ptr noundef %160, ptr noundef @.str.25, ptr noundef @.str.26)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  %161 = load ptr, ptr %16, align 8, !tbaa !9
  call void @leveldb_writebatch_iterate(ptr noundef %161, ptr noundef %18, ptr noundef @CheckPut, ptr noundef @CheckDel)
  %162 = load i32, ptr %18, align 4, !tbaa !5
  %163 = icmp eq i32 %162, 3
  br i1 %163, label %168, label %164

164:                                              ; preds = %154
  %165 = load ptr, ptr @stderr, align 8, !tbaa !9
  %166 = load ptr, ptr @phase, align 8, !tbaa !9
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %165, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 243, ptr noundef %166, ptr noundef @.str.27) #7
  call void @abort() #8
  unreachable

168:                                              ; preds = %154
  %169 = load ptr, ptr %16, align 8, !tbaa !9
  call void @leveldb_writebatch_destroy(ptr noundef %169)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @StartPhase(ptr noundef @.str.28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %170 = load ptr, ptr %6, align 8, !tbaa !9
  %171 = load ptr, ptr %11, align 8, !tbaa !9
  %172 = call ptr @leveldb_create_iterator(ptr noundef %170, ptr noundef %171)
  store ptr %172, ptr %19, align 8, !tbaa !9
  %173 = load ptr, ptr %19, align 8, !tbaa !9
  %174 = call zeroext i8 @leveldb_iter_valid(ptr noundef %173)
  %175 = icmp ne i8 %174, 0
  br i1 %175, label %176, label %180

176:                                              ; preds = %168
  %177 = load ptr, ptr @stderr, align 8, !tbaa !9
  %178 = load ptr, ptr @phase, align 8, !tbaa !9
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 250, ptr noundef %178, ptr noundef @.str.29) #7
  call void @abort() #8
  unreachable

180:                                              ; preds = %168
  %181 = load ptr, ptr %19, align 8, !tbaa !9
  call void @leveldb_iter_seek_to_first(ptr noundef %181)
  %182 = load ptr, ptr %19, align 8, !tbaa !9
  %183 = call zeroext i8 @leveldb_iter_valid(ptr noundef %182)
  %184 = icmp ne i8 %183, 0
  br i1 %184, label %189, label %185

185:                                              ; preds = %180
  %186 = load ptr, ptr @stderr, align 8, !tbaa !9
  %187 = load ptr, ptr @phase, align 8, !tbaa !9
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 252, ptr noundef %187, ptr noundef @.str.30) #7
  call void @abort() #8
  unreachable

189:                                              ; preds = %180
  %190 = load ptr, ptr %19, align 8, !tbaa !9
  call void @CheckIter(ptr noundef %190, ptr noundef @.str.25, ptr noundef @.str.26)
  %191 = load ptr, ptr %19, align 8, !tbaa !9
  call void @leveldb_iter_next(ptr noundef %191)
  %192 = load ptr, ptr %19, align 8, !tbaa !9
  call void @CheckIter(ptr noundef %192, ptr noundef @.str.15, ptr noundef @.str.17)
  %193 = load ptr, ptr %19, align 8, !tbaa !9
  call void @leveldb_iter_prev(ptr noundef %193)
  %194 = load ptr, ptr %19, align 8, !tbaa !9
  call void @CheckIter(ptr noundef %194, ptr noundef @.str.25, ptr noundef @.str.26)
  %195 = load ptr, ptr %19, align 8, !tbaa !9
  call void @leveldb_iter_prev(ptr noundef %195)
  %196 = load ptr, ptr %19, align 8, !tbaa !9
  %197 = call zeroext i8 @leveldb_iter_valid(ptr noundef %196)
  %198 = icmp ne i8 %197, 0
  br i1 %198, label %199, label %203

199:                                              ; preds = %189
  %200 = load ptr, ptr @stderr, align 8, !tbaa !9
  %201 = load ptr, ptr @phase, align 8, !tbaa !9
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 259, ptr noundef %201, ptr noundef @.str.29) #7
  call void @abort() #8
  unreachable

203:                                              ; preds = %189
  %204 = load ptr, ptr %19, align 8, !tbaa !9
  call void @leveldb_iter_seek_to_last(ptr noundef %204)
  %205 = load ptr, ptr %19, align 8, !tbaa !9
  call void @CheckIter(ptr noundef %205, ptr noundef @.str.15, ptr noundef @.str.17)
  %206 = load ptr, ptr %19, align 8, !tbaa !9
  call void @leveldb_iter_seek(ptr noundef %206, ptr noundef @.str.24, i64 noundef 1)
  %207 = load ptr, ptr %19, align 8, !tbaa !9
  call void @CheckIter(ptr noundef %207, ptr noundef @.str.25, ptr noundef @.str.26)
  %208 = load ptr, ptr %19, align 8, !tbaa !9
  call void @leveldb_iter_get_error(ptr noundef %208, ptr noundef %14)
  %209 = load ptr, ptr %14, align 8, !tbaa !9
  %210 = icmp ne ptr %209, null
  br i1 %210, label %211, label %216

211:                                              ; preds = %203
  %212 = load ptr, ptr @stderr, align 8, !tbaa !9
  %213 = load ptr, ptr @phase, align 8, !tbaa !9
  %214 = load ptr, ptr %14, align 8, !tbaa !9
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 265, ptr noundef %213, ptr noundef %214) #7
  call void @abort() #8
  unreachable

216:                                              ; preds = %203
  %217 = load ptr, ptr %19, align 8, !tbaa !9
  call void @leveldb_iter_destroy(ptr noundef %217)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @StartPhase(ptr noundef @.str.31)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 20000, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 100, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 @__const.main.start, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 @__const.main.start_len, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 @__const.main.limit, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 @__const.main.limit_len, i64 16, i1 false)
  %218 = load ptr, ptr %12, align 8, !tbaa !9
  call void @leveldb_writeoptions_set_sync(ptr noundef %218, i8 noundef zeroext 0)
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %246, %216
  %220 = load i32, ptr %20, align 4, !tbaa !5
  %221 = load i32, ptr %21, align 4, !tbaa !5
  %222 = icmp slt i32 %220, %221
  br i1 %222, label %223, label %249

223:                                              ; preds = %219
  %224 = getelementptr inbounds [100 x i8], ptr %22, i64 0, i64 0
  %225 = load i32, ptr %20, align 4, !tbaa !5
  %226 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %224, i64 noundef 100, ptr noundef @.str.33, i32 noundef %225) #7
  %227 = getelementptr inbounds [100 x i8], ptr %23, i64 0, i64 0
  %228 = load i32, ptr %20, align 4, !tbaa !5
  %229 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %227, i64 noundef 100, ptr noundef @.str.34, i32 noundef %228) #7
  %230 = load ptr, ptr %6, align 8, !tbaa !9
  %231 = load ptr, ptr %12, align 8, !tbaa !9
  %232 = getelementptr inbounds [100 x i8], ptr %22, i64 0, i64 0
  %233 = getelementptr inbounds [100 x i8], ptr %22, i64 0, i64 0
  %234 = call i64 @strlen(ptr noundef %233) #9
  %235 = getelementptr inbounds [100 x i8], ptr %23, i64 0, i64 0
  %236 = getelementptr inbounds [100 x i8], ptr %23, i64 0, i64 0
  %237 = call i64 @strlen(ptr noundef %236) #9
  call void @leveldb_put(ptr noundef %230, ptr noundef %231, ptr noundef %232, i64 noundef %234, ptr noundef %235, i64 noundef %237, ptr noundef %14)
  %238 = load ptr, ptr %14, align 8, !tbaa !9
  %239 = icmp ne ptr %238, null
  br i1 %239, label %240, label %245

240:                                              ; preds = %223
  %241 = load ptr, ptr @stderr, align 8, !tbaa !9
  %242 = load ptr, ptr @phase, align 8, !tbaa !9
  %243 = load ptr, ptr %14, align 8, !tbaa !9
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 286, ptr noundef %242, ptr noundef %243) #7
  call void @abort() #8
  unreachable

245:                                              ; preds = %223
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %20, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %20, align 4, !tbaa !5
  br label %219, !llvm.loop !11

249:                                              ; preds = %219
  %250 = load ptr, ptr %6, align 8, !tbaa !9
  %251 = getelementptr inbounds [2 x ptr], ptr %25, i64 0, i64 0
  %252 = getelementptr inbounds [2 x i64], ptr %26, i64 0, i64 0
  %253 = getelementptr inbounds [2 x ptr], ptr %27, i64 0, i64 0
  %254 = getelementptr inbounds [2 x i64], ptr %28, i64 0, i64 0
  %255 = getelementptr inbounds [2 x i64], ptr %24, i64 0, i64 0
  call void @leveldb_approximate_sizes(ptr noundef %250, i32 noundef 2, ptr noundef %251, ptr noundef %252, ptr noundef %253, ptr noundef %254, ptr noundef %255)
  %256 = getelementptr inbounds [2 x i64], ptr %24, i64 0, i64 0
  %257 = load i64, ptr %256, align 16, !tbaa !13
  %258 = icmp ugt i64 %257, 0
  br i1 %258, label %263, label %259

259:                                              ; preds = %249
  %260 = load ptr, ptr @stderr, align 8, !tbaa !9
  %261 = load ptr, ptr @phase, align 8, !tbaa !9
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 289, ptr noundef %261, ptr noundef @.str.35) #7
  call void @abort() #8
  unreachable

263:                                              ; preds = %249
  %264 = getelementptr inbounds [2 x i64], ptr %24, i64 0, i64 1
  %265 = load i64, ptr %264, align 8, !tbaa !13
  %266 = icmp ugt i64 %265, 0
  br i1 %266, label %271, label %267

267:                                              ; preds = %263
  %268 = load ptr, ptr @stderr, align 8, !tbaa !9
  %269 = load ptr, ptr @phase, align 8, !tbaa !9
  %270 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %268, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 290, ptr noundef %269, ptr noundef @.str.36) #7
  call void @abort() #8
  unreachable

271:                                              ; preds = %263
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @StartPhase(ptr noundef @.str.37)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %272 = load ptr, ptr %6, align 8, !tbaa !9
  %273 = call ptr @leveldb_property_value(ptr noundef %272, ptr noundef @.str.38)
  store ptr %273, ptr %29, align 8, !tbaa !9
  %274 = load ptr, ptr %29, align 8, !tbaa !9
  %275 = icmp eq ptr %274, null
  br i1 %275, label %280, label %276

276:                                              ; preds = %271
  %277 = load ptr, ptr @stderr, align 8, !tbaa !9
  %278 = load ptr, ptr @phase, align 8, !tbaa !9
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %277, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 296, ptr noundef %278, ptr noundef @.str.39) #7
  call void @abort() #8
  unreachable

280:                                              ; preds = %271
  %281 = load ptr, ptr %6, align 8, !tbaa !9
  %282 = call ptr @leveldb_property_value(ptr noundef %281, ptr noundef @.str.40)
  store ptr %282, ptr %29, align 8, !tbaa !9
  %283 = load ptr, ptr %29, align 8, !tbaa !9
  %284 = icmp ne ptr %283, null
  br i1 %284, label %289, label %285

285:                                              ; preds = %280
  %286 = load ptr, ptr @stderr, align 8, !tbaa !9
  %287 = load ptr, ptr @phase, align 8, !tbaa !9
  %288 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %286, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 298, ptr noundef %287, ptr noundef @.str.41) #7
  call void @abort() #8
  unreachable

289:                                              ; preds = %280
  call void @Free(ptr noundef %29)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @StartPhase(ptr noundef @.str.42)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %290 = load ptr, ptr %6, align 8, !tbaa !9
  %291 = call ptr @leveldb_create_snapshot(ptr noundef %290)
  store ptr %291, ptr %30, align 8, !tbaa !9
  %292 = load ptr, ptr %6, align 8, !tbaa !9
  %293 = load ptr, ptr %12, align 8, !tbaa !9
  call void @leveldb_delete(ptr noundef %292, ptr noundef %293, ptr noundef @.str.15, i64 noundef 3, ptr noundef %14)
  %294 = load ptr, ptr %14, align 8, !tbaa !9
  %295 = icmp ne ptr %294, null
  br i1 %295, label %296, label %301

296:                                              ; preds = %289
  %297 = load ptr, ptr @stderr, align 8, !tbaa !9
  %298 = load ptr, ptr @phase, align 8, !tbaa !9
  %299 = load ptr, ptr %14, align 8, !tbaa !9
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %297, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 307, ptr noundef %298, ptr noundef %299) #7
  call void @abort() #8
  unreachable

301:                                              ; preds = %289
  %302 = load ptr, ptr %11, align 8, !tbaa !9
  %303 = load ptr, ptr %30, align 8, !tbaa !9
  call void @leveldb_readoptions_set_snapshot(ptr noundef %302, ptr noundef %303)
  %304 = load ptr, ptr %6, align 8, !tbaa !9
  %305 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %304, ptr noundef %305, ptr noundef @.str.15, ptr noundef @.str.17)
  %306 = load ptr, ptr %11, align 8, !tbaa !9
  call void @leveldb_readoptions_set_snapshot(ptr noundef %306, ptr noundef null)
  %307 = load ptr, ptr %6, align 8, !tbaa !9
  %308 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %307, ptr noundef %308, ptr noundef @.str.15, ptr noundef null)
  %309 = load ptr, ptr %6, align 8, !tbaa !9
  %310 = load ptr, ptr %30, align 8, !tbaa !9
  call void @leveldb_release_snapshot(ptr noundef %309, ptr noundef %310)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @StartPhase(ptr noundef @.str.43)
  %311 = load ptr, ptr %6, align 8, !tbaa !9
  call void @leveldb_close(ptr noundef %311)
  %312 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_create_if_missing(ptr noundef %312, i8 noundef zeroext 0)
  %313 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_error_if_exists(ptr noundef %313, i8 noundef zeroext 0)
  %314 = load ptr, ptr %10, align 8, !tbaa !9
  %315 = load ptr, ptr %13, align 8, !tbaa !9
  call void @leveldb_repair_db(ptr noundef %314, ptr noundef %315, ptr noundef %14)
  %316 = load ptr, ptr %14, align 8, !tbaa !9
  %317 = icmp ne ptr %316, null
  br i1 %317, label %318, label %323

318:                                              ; preds = %301
  %319 = load ptr, ptr @stderr, align 8, !tbaa !9
  %320 = load ptr, ptr @phase, align 8, !tbaa !9
  %321 = load ptr, ptr %14, align 8, !tbaa !9
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %319, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 321, ptr noundef %320, ptr noundef %321) #7
  call void @abort() #8
  unreachable

323:                                              ; preds = %301
  %324 = load ptr, ptr %10, align 8, !tbaa !9
  %325 = load ptr, ptr %13, align 8, !tbaa !9
  %326 = call ptr @leveldb_open(ptr noundef %324, ptr noundef %325, ptr noundef %14)
  store ptr %326, ptr %6, align 8, !tbaa !9
  %327 = load ptr, ptr %14, align 8, !tbaa !9
  %328 = icmp ne ptr %327, null
  br i1 %328, label %329, label %334

329:                                              ; preds = %323
  %330 = load ptr, ptr @stderr, align 8, !tbaa !9
  %331 = load ptr, ptr @phase, align 8, !tbaa !9
  %332 = load ptr, ptr %14, align 8, !tbaa !9
  %333 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %330, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 323, ptr noundef %331, ptr noundef %332) #7
  call void @abort() #8
  unreachable

334:                                              ; preds = %323
  %335 = load ptr, ptr %6, align 8, !tbaa !9
  %336 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %335, ptr noundef %336, ptr noundef @.str.15, ptr noundef null)
  %337 = load ptr, ptr %6, align 8, !tbaa !9
  %338 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %337, ptr noundef %338, ptr noundef @.str.23, ptr noundef null)
  %339 = load ptr, ptr %6, align 8, !tbaa !9
  %340 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %339, ptr noundef %340, ptr noundef @.str.25, ptr noundef @.str.26)
  %341 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_create_if_missing(ptr noundef %341, i8 noundef zeroext 1)
  %342 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_error_if_exists(ptr noundef %342, i8 noundef zeroext 1)
  call void @StartPhase(ptr noundef @.str.44)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %343

343:                                              ; preds = %417, %334
  %344 = load i32, ptr %15, align 4, !tbaa !5
  %345 = icmp slt i32 %344, 2
  br i1 %345, label %346, label %420

346:                                              ; preds = %343
  %347 = load ptr, ptr %14, align 8, !tbaa !9
  %348 = icmp ne ptr %347, null
  br i1 %348, label %349, label %354

349:                                              ; preds = %346
  %350 = load ptr, ptr @stderr, align 8, !tbaa !9
  %351 = load ptr, ptr @phase, align 8, !tbaa !9
  %352 = load ptr, ptr %14, align 8, !tbaa !9
  %353 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %350, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 334, ptr noundef %351, ptr noundef %352) #7
  call void @abort() #8
  unreachable

354:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %355 = load i32, ptr %15, align 4, !tbaa !5
  %356 = icmp eq i32 %355, 0
  br i1 %356, label %357, label %359

357:                                              ; preds = %354
  %358 = call ptr @leveldb_filterpolicy_create(ptr noundef null, ptr noundef @FilterDestroy, ptr noundef @FilterCreate, ptr noundef @FilterKeyMatch, ptr noundef @FilterName)
  store ptr %358, ptr %31, align 8, !tbaa !9
  br label %361

359:                                              ; preds = %354
  %360 = call ptr @leveldb_filterpolicy_create_bloom(i32 noundef 10)
  store ptr %360, ptr %31, align 8, !tbaa !9
  br label %361

361:                                              ; preds = %359, %357
  %362 = load ptr, ptr %6, align 8, !tbaa !9
  call void @leveldb_close(ptr noundef %362)
  %363 = load ptr, ptr %10, align 8, !tbaa !9
  %364 = load ptr, ptr %13, align 8, !tbaa !9
  call void @leveldb_destroy_db(ptr noundef %363, ptr noundef %364, ptr noundef %14)
  %365 = load ptr, ptr %10, align 8, !tbaa !9
  %366 = load ptr, ptr %31, align 8, !tbaa !9
  call void @leveldb_options_set_filter_policy(ptr noundef %365, ptr noundef %366)
  %367 = load ptr, ptr %10, align 8, !tbaa !9
  %368 = load ptr, ptr %13, align 8, !tbaa !9
  %369 = call ptr @leveldb_open(ptr noundef %367, ptr noundef %368, ptr noundef %14)
  store ptr %369, ptr %6, align 8, !tbaa !9
  %370 = load ptr, ptr %14, align 8, !tbaa !9
  %371 = icmp ne ptr %370, null
  br i1 %371, label %372, label %377

372:                                              ; preds = %361
  %373 = load ptr, ptr @stderr, align 8, !tbaa !9
  %374 = load ptr, ptr @phase, align 8, !tbaa !9
  %375 = load ptr, ptr %14, align 8, !tbaa !9
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %373, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 348, ptr noundef %374, ptr noundef %375) #7
  call void @abort() #8
  unreachable

377:                                              ; preds = %361
  %378 = load ptr, ptr %6, align 8, !tbaa !9
  %379 = load ptr, ptr %12, align 8, !tbaa !9
  call void @leveldb_put(ptr noundef %378, ptr noundef %379, ptr noundef @.str.15, i64 noundef 3, ptr noundef @.str.45, i64 noundef 8, ptr noundef %14)
  %380 = load ptr, ptr %14, align 8, !tbaa !9
  %381 = icmp ne ptr %380, null
  br i1 %381, label %382, label %387

382:                                              ; preds = %377
  %383 = load ptr, ptr @stderr, align 8, !tbaa !9
  %384 = load ptr, ptr @phase, align 8, !tbaa !9
  %385 = load ptr, ptr %14, align 8, !tbaa !9
  %386 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %383, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 350, ptr noundef %384, ptr noundef %385) #7
  call void @abort() #8
  unreachable

387:                                              ; preds = %377
  %388 = load ptr, ptr %6, align 8, !tbaa !9
  %389 = load ptr, ptr %12, align 8, !tbaa !9
  call void @leveldb_put(ptr noundef %388, ptr noundef %389, ptr noundef @.str.23, i64 noundef 3, ptr noundef @.str.46, i64 noundef 8, ptr noundef %14)
  %390 = load ptr, ptr %14, align 8, !tbaa !9
  %391 = icmp ne ptr %390, null
  br i1 %391, label %392, label %397

392:                                              ; preds = %387
  %393 = load ptr, ptr @stderr, align 8, !tbaa !9
  %394 = load ptr, ptr @phase, align 8, !tbaa !9
  %395 = load ptr, ptr %14, align 8, !tbaa !9
  %396 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %393, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 352, ptr noundef %394, ptr noundef %395) #7
  call void @abort() #8
  unreachable

397:                                              ; preds = %387
  %398 = load ptr, ptr %6, align 8, !tbaa !9
  call void @leveldb_compact_range(ptr noundef %398, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0)
  store i8 1, ptr @fake_filter_result, align 1, !tbaa !15
  %399 = load ptr, ptr %6, align 8, !tbaa !9
  %400 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %399, ptr noundef %400, ptr noundef @.str.15, ptr noundef @.str.45)
  %401 = load ptr, ptr %6, align 8, !tbaa !9
  %402 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %401, ptr noundef %402, ptr noundef @.str.23, ptr noundef @.str.46)
  %403 = load ptr, ptr @phase, align 8, !tbaa !9
  %404 = icmp eq ptr %403, null
  br i1 %404, label %405, label %414

405:                                              ; preds = %397
  store i8 0, ptr @fake_filter_result, align 1, !tbaa !15
  %406 = load ptr, ptr %6, align 8, !tbaa !9
  %407 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %406, ptr noundef %407, ptr noundef @.str.15, ptr noundef null)
  %408 = load ptr, ptr %6, align 8, !tbaa !9
  %409 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %408, ptr noundef %409, ptr noundef @.str.23, ptr noundef null)
  store i8 1, ptr @fake_filter_result, align 1, !tbaa !15
  %410 = load ptr, ptr %6, align 8, !tbaa !9
  %411 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %410, ptr noundef %411, ptr noundef @.str.15, ptr noundef @.str.45)
  %412 = load ptr, ptr %6, align 8, !tbaa !9
  %413 = load ptr, ptr %11, align 8, !tbaa !9
  call void @CheckGet(ptr noundef %412, ptr noundef %413, ptr noundef @.str.23, ptr noundef @.str.46)
  br label %414

414:                                              ; preds = %405, %397
  %415 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_set_filter_policy(ptr noundef %415, ptr noundef null)
  %416 = load ptr, ptr %31, align 8, !tbaa !9
  call void @leveldb_filterpolicy_destroy(ptr noundef %416)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %417

417:                                              ; preds = %414
  %418 = load i32, ptr %15, align 4, !tbaa !5
  %419 = add nsw i32 %418, 1
  store i32 %419, ptr %15, align 4, !tbaa !5
  br label %343, !llvm.loop !16

420:                                              ; preds = %343
  call void @StartPhase(ptr noundef @.str.47)
  %421 = load ptr, ptr %6, align 8, !tbaa !9
  call void @leveldb_close(ptr noundef %421)
  %422 = load ptr, ptr %10, align 8, !tbaa !9
  call void @leveldb_options_destroy(ptr noundef %422)
  %423 = load ptr, ptr %11, align 8, !tbaa !9
  call void @leveldb_readoptions_destroy(ptr noundef %423)
  %424 = load ptr, ptr %12, align 8, !tbaa !9
  call void @leveldb_writeoptions_destroy(ptr noundef %424)
  %425 = load ptr, ptr %13, align 8, !tbaa !9
  call void @leveldb_free(ptr noundef %425)
  %426 = load ptr, ptr %8, align 8, !tbaa !9
  call void @leveldb_cache_destroy(ptr noundef %426)
  %427 = load ptr, ptr %7, align 8, !tbaa !9
  call void @leveldb_comparator_destroy(ptr noundef %427)
  %428 = load ptr, ptr %9, align 8, !tbaa !9
  call void @leveldb_env_destroy(ptr noundef %428)
  %429 = load ptr, ptr @stderr, align 8, !tbaa !9
  %430 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %429, ptr noundef @.str.48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  ret i32 0
}

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

declare i32 @leveldb_major_version() #4

declare i32 @leveldb_minor_version() #4

; Function Attrs: nounwind uwtable
declare hidden void @StartPhase(ptr noundef) #0

declare ptr @leveldb_comparator_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @CmpDestroy(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @CmpCompare(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @CmpName(ptr noundef) #0

declare ptr @leveldb_create_default_env() #4

declare ptr @leveldb_cache_create_lru(i64 noundef) #4

declare ptr @leveldb_env_get_test_directory(ptr noundef) #4

declare ptr @leveldb_options_create() #4

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

declare void @leveldb_options_set_error_if_exists(ptr noundef, i8 noundef zeroext) #4

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

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

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

declare void @leveldb_options_set_write_buffer_size(ptr noundef, i64 noundef) #4

declare void @leveldb_options_set_paranoid_checks(ptr noundef, i8 noundef zeroext) #4

declare void @leveldb_options_set_max_open_files(ptr noundef, i32 noundef) #4

declare void @leveldb_options_set_block_size(ptr noundef, i64 noundef) #4

declare void @leveldb_options_set_block_restart_interval(ptr noundef, i32 noundef) #4

declare void @leveldb_options_set_max_file_size(ptr noundef, i64 noundef) #4

declare void @leveldb_options_set_compression(ptr noundef, i32 noundef) #4

declare ptr @leveldb_readoptions_create() #4

declare void @leveldb_readoptions_set_verify_checksums(ptr noundef, i8 noundef zeroext) #4

declare void @leveldb_readoptions_set_fill_cache(ptr noundef, i8 noundef zeroext) #4

declare ptr @leveldb_writeoptions_create() #4

declare void @leveldb_writeoptions_set_sync(ptr noundef, i8 noundef zeroext) #4

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

; Function Attrs: nounwind uwtable
declare hidden void @Free(ptr noundef) #0

declare ptr @leveldb_open(ptr noundef, ptr noundef, ptr noundef) #4

declare void @leveldb_free(ptr noundef) #4

declare void @leveldb_options_set_create_if_missing(ptr noundef, i8 noundef zeroext) #4

; Function Attrs: nounwind uwtable
declare hidden void @CheckGet(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare void @leveldb_put(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #4

declare void @leveldb_compact_range(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #4

declare ptr @leveldb_writebatch_create() #4

declare void @leveldb_writebatch_put(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #4

declare void @leveldb_writebatch_clear(ptr noundef) #4

declare void @leveldb_writebatch_delete(ptr noundef, ptr noundef, i64 noundef) #4

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

declare void @leveldb_writebatch_destroy(ptr noundef) #4

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

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

; Function Attrs: nounwind uwtable
declare hidden void @CheckPut(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @CheckDel(ptr noundef, ptr noundef, i64 noundef) #0

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

declare ptr @leveldb_create_iterator(ptr noundef, ptr noundef) #4

declare zeroext i8 @leveldb_iter_valid(ptr noundef) #4

declare void @leveldb_iter_seek_to_first(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @CheckIter(ptr noundef, ptr noundef, ptr noundef) #0

declare void @leveldb_iter_next(ptr noundef) #4

declare void @leveldb_iter_prev(ptr noundef) #4

declare void @leveldb_iter_seek_to_last(ptr noundef) #4

declare void @leveldb_iter_seek(ptr noundef, ptr noundef, i64 noundef) #4

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

declare void @leveldb_iter_destroy(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) #5

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

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

declare void @leveldb_approximate_sizes(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare ptr @leveldb_property_value(ptr noundef, ptr noundef) #4

declare ptr @leveldb_create_snapshot(ptr noundef) #4

declare void @leveldb_delete(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #4

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

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

declare void @leveldb_close(ptr noundef) #4

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

declare ptr @leveldb_filterpolicy_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @FilterDestroy(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @FilterCreate(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @FilterName(ptr noundef) #0

declare ptr @leveldb_filterpolicy_create_bloom(i32 noundef) #4

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

declare void @leveldb_filterpolicy_destroy(ptr noundef) #4

declare void @leveldb_options_destroy(ptr noundef) #4

declare void @leveldb_readoptions_destroy(ptr noundef) #4

declare void @leveldb_writeoptions_destroy(ptr noundef) #4

declare void @leveldb_cache_destroy(ptr noundef) #4

declare void @leveldb_comparator_destroy(ptr noundef) #4

declare void @leveldb_env_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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !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"

@phase = external dso_local local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [66 x i8], align 1
@fake_filter_result = external hidden local_unnamed_addr global i8, align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [18 x i8], align 1
@__const.main.start = external hidden unnamed_addr constant [2 x ptr], align 16
@__const.main.start_len = external hidden unnamed_addr constant [2 x i64], align 16
@__const.main.limit = external hidden unnamed_addr constant [2 x ptr], align 16
@__const.main.limit_len = external hidden unnamed_addr constant [2 x i64], align 16
@.str.33 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @FilterKeyMatch(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

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

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [100 x i8], align 16
  %6 = alloca [100 x i8], align 16
  %7 = alloca [2 x i64], align 16
  %8 = alloca [2 x ptr], align 16
  %9 = alloca [2 x i64], align 16
  %10 = alloca [2 x ptr], align 16
  %11 = alloca [2 x i64], align 16
  %12 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store ptr null, ptr %3, align 8, !tbaa !5
  %13 = tail call i32 @leveldb_major_version() #7
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %19, label %15

15:                                               ; preds = %2
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = load ptr, ptr @phase, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 157, ptr noundef %17, ptr noundef nonnull @.str.6) #8
  tail call void @abort() #9
  unreachable

19:                                               ; preds = %2
  %20 = tail call i32 @leveldb_minor_version() #7
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %26, label %22

22:                                               ; preds = %19
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = load ptr, ptr @phase, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 158, ptr noundef %24, ptr noundef nonnull @.str.7) #8
  tail call void @abort() #9
  unreachable

26:                                               ; preds = %19
  tail call void @StartPhase(ptr noundef nonnull @.str.8)
  %27 = tail call ptr @leveldb_comparator_create(ptr noundef null, ptr noundef nonnull @CmpDestroy, ptr noundef nonnull @CmpCompare, ptr noundef nonnull @CmpName) #7
  %28 = tail call ptr @leveldb_create_default_env() #7
  %29 = tail call ptr @leveldb_cache_create_lru(i64 noundef 100000) #7
  %30 = tail call ptr @leveldb_env_get_test_directory(ptr noundef %28) #7
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %31, label %35

31:                                               ; preds = %26
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = load ptr, ptr @phase, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 165, ptr noundef %33, ptr noundef nonnull @.str.9) #8
  tail call void @abort() #9
  unreachable

35:                                               ; preds = %26
  %36 = tail call ptr @leveldb_options_create() #7
  tail call void @leveldb_options_set_comparator(ptr noundef %36, ptr noundef %27) #7
  tail call void @leveldb_options_set_error_if_exists(ptr noundef %36, i8 noundef zeroext 1) #7
  tail call void @leveldb_options_set_cache(ptr noundef %36, ptr noundef %29) #7
  tail call void @leveldb_options_set_env(ptr noundef %36, ptr noundef %28) #7
  tail call void @leveldb_options_set_info_log(ptr noundef %36, ptr noundef null) #7
  tail call void @leveldb_options_set_write_buffer_size(ptr noundef %36, i64 noundef 100000) #7
  tail call void @leveldb_options_set_paranoid_checks(ptr noundef %36, i8 noundef zeroext 1) #7
  tail call void @leveldb_options_set_max_open_files(ptr noundef %36, i32 noundef 10) #7
  tail call void @leveldb_options_set_block_size(ptr noundef %36, i64 noundef 1024) #7
  tail call void @leveldb_options_set_block_restart_interval(ptr noundef %36, i32 noundef 8) #7
  tail call void @leveldb_options_set_max_file_size(ptr noundef %36, i64 noundef 3145728) #7
  tail call void @leveldb_options_set_compression(ptr noundef %36, i32 noundef 0) #7
  %37 = tail call ptr @leveldb_readoptions_create() #7
  tail call void @leveldb_readoptions_set_verify_checksums(ptr noundef %37, i8 noundef zeroext 1) #7
  tail call void @leveldb_readoptions_set_fill_cache(ptr noundef %37, i8 noundef zeroext 0) #7
  %38 = tail call ptr @leveldb_writeoptions_create() #7
  tail call void @leveldb_writeoptions_set_sync(ptr noundef %38, i8 noundef zeroext 1) #7
  tail call void @StartPhase(ptr noundef nonnull @.str.10)
  call void @leveldb_destroy_db(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  call void @Free(ptr noundef nonnull %3)
  call void @StartPhase(ptr noundef nonnull @.str.11)
  %39 = call ptr @leveldb_open(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %.not169 = icmp eq ptr %40, null
  br i1 %.not169, label %41, label %45

41:                                               ; preds = %35
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = load ptr, ptr @phase, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 194, ptr noundef %43, ptr noundef nonnull @.str.12) #8
  call void @abort() #9
  unreachable

45:                                               ; preds = %35
  call void @Free(ptr noundef nonnull %3)
  call void @StartPhase(ptr noundef nonnull @.str.13)
  %46 = call ptr @leveldb_open(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %.not170 = icmp eq ptr %47, null
  br i1 %.not170, label %48, label %52

48:                                               ; preds = %45
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = load ptr, ptr @phase, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 199, ptr noundef %50, ptr noundef nonnull @.str.12) #8
  call void @abort() #9
  unreachable

52:                                               ; preds = %45
  call void @leveldb_free(ptr noundef nonnull %47) #7
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @StartPhase(ptr noundef nonnull @.str.14)
  call void @leveldb_options_set_create_if_missing(ptr noundef %36, i8 noundef zeroext 1) #7
  %53 = call ptr @leveldb_open(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %.not171 = icmp eq ptr %54, null
  br i1 %.not171, label %59, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = load ptr, ptr @phase, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 206, ptr noundef %57, ptr noundef nonnull %54) #8
  call void @abort() #9
  unreachable

59:                                               ; preds = %52
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef null)
  call void @StartPhase(ptr noundef nonnull @.str.16)
  call void @leveldb_put(ptr noundef %53, ptr noundef %38, ptr noundef nonnull @.str.15, i64 noundef 3, ptr noundef nonnull @.str.17, i64 noundef 5, ptr noundef nonnull %3) #7
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %.not172 = icmp eq ptr %60, null
  br i1 %.not172, label %65, label %61

61:                                               ; preds = %59
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = load ptr, ptr @phase, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 211, ptr noundef %63, ptr noundef nonnull %60) #8
  call void @abort() #9
  unreachable

65:                                               ; preds = %59
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.17)
  call void @StartPhase(ptr noundef nonnull @.str.18)
  call void @leveldb_compact_range(ptr noundef %53, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0) #7
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.17)
  call void @StartPhase(ptr noundef nonnull @.str.19)
  call void @leveldb_compact_range(ptr noundef %53, ptr noundef nonnull @.str.20, i64 noundef 1, ptr noundef nonnull @.str.21, i64 noundef 1) #7
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.17)
  call void @StartPhase(ptr noundef nonnull @.str.22)
  %66 = call ptr @leveldb_writebatch_create() #7
  call void @leveldb_writebatch_put(ptr noundef %66, ptr noundef nonnull @.str.15, i64 noundef 3, ptr noundef nonnull @.str.20, i64 noundef 1) #7
  call void @leveldb_writebatch_clear(ptr noundef %66) #7
  call void @leveldb_writebatch_put(ptr noundef %66, ptr noundef nonnull @.str.23, i64 noundef 3, ptr noundef nonnull @.str.24, i64 noundef 1) #7
  call void @leveldb_writebatch_put(ptr noundef %66, ptr noundef nonnull @.str.25, i64 noundef 3, ptr noundef nonnull @.str.26, i64 noundef 1) #7
  %67 = call ptr @leveldb_writebatch_create() #7
  call void @leveldb_writebatch_delete(ptr noundef %67, ptr noundef nonnull @.str.23, i64 noundef 3) #7
  call void @leveldb_writebatch_append(ptr noundef %66, ptr noundef %67) #7
  call void @leveldb_writebatch_destroy(ptr noundef %67) #7
  call void @leveldb_write(ptr noundef %53, ptr noundef %38, ptr noundef %66, ptr noundef nonnull %3) #7
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %.not173 = icmp eq ptr %68, null
  br i1 %.not173, label %73, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = load ptr, ptr @phase, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 236, ptr noundef %71, ptr noundef nonnull %68) #8
  call void @abort() #9
  unreachable

73:                                               ; preds = %65
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.17)
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.23, ptr noundef null)
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.26)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @leveldb_writebatch_iterate(ptr noundef %66, ptr noundef nonnull %4, ptr noundef nonnull @CheckPut, ptr noundef nonnull @CheckDel) #7
  %74 = load i32, ptr %4, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 3
  br i1 %75, label %80, label %76

76:                                               ; preds = %73
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = load ptr, ptr @phase, align 8, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 243, ptr noundef %78, ptr noundef nonnull @.str.27) #8
  call void @abort() #9
  unreachable

80:                                               ; preds = %73
  call void @leveldb_writebatch_destroy(ptr noundef %66) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @StartPhase(ptr noundef nonnull @.str.28)
  %81 = call ptr @leveldb_create_iterator(ptr noundef %53, ptr noundef %37) #7
  %82 = call zeroext i8 @leveldb_iter_valid(ptr noundef %81) #7
  %.not174 = icmp eq i8 %82, 0
  br i1 %.not174, label %87, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = load ptr, ptr @phase, align 8, !tbaa !5
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 250, ptr noundef %85, ptr noundef nonnull @.str.29) #8
  call void @abort() #9
  unreachable

87:                                               ; preds = %80
  call void @leveldb_iter_seek_to_first(ptr noundef %81) #7
  %88 = call zeroext i8 @leveldb_iter_valid(ptr noundef %81) #7
  %.not175 = icmp eq i8 %88, 0
  br i1 %.not175, label %89, label %93

89:                                               ; preds = %87
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = load ptr, ptr @phase, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 252, ptr noundef %91, ptr noundef nonnull @.str.30) #8
  call void @abort() #9
  unreachable

93:                                               ; preds = %87
  call void @CheckIter(ptr noundef %81, ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.26)
  call void @leveldb_iter_next(ptr noundef %81) #7
  call void @CheckIter(ptr noundef %81, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.17)
  call void @leveldb_iter_prev(ptr noundef %81) #7
  call void @CheckIter(ptr noundef %81, ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.26)
  call void @leveldb_iter_prev(ptr noundef %81) #7
  %94 = call zeroext i8 @leveldb_iter_valid(ptr noundef %81) #7
  %.not176 = icmp eq i8 %94, 0
  br i1 %.not176, label %99, label %95

95:                                               ; preds = %93
  %96 = load ptr, ptr @stderr, align 8, !tbaa !5
  %97 = load ptr, ptr @phase, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 259, ptr noundef %97, ptr noundef nonnull @.str.29) #8
  call void @abort() #9
  unreachable

99:                                               ; preds = %93
  call void @leveldb_iter_seek_to_last(ptr noundef %81) #7
  call void @CheckIter(ptr noundef %81, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.17)
  call void @leveldb_iter_seek(ptr noundef %81, ptr noundef nonnull @.str.24, i64 noundef 1) #7
  call void @CheckIter(ptr noundef %81, ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.26)
  call void @leveldb_iter_get_error(ptr noundef %81, ptr noundef nonnull %3) #7
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %.not177 = icmp eq ptr %100, null
  br i1 %.not177, label %105, label %101

101:                                              ; preds = %99
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = load ptr, ptr @phase, align 8, !tbaa !5
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 265, ptr noundef %103, ptr noundef nonnull %100) #8
  call void @abort() #9
  unreachable

105:                                              ; preds = %99
  call void @leveldb_iter_destroy(ptr noundef %81) #7
  call void @StartPhase(ptr noundef nonnull @.str.31)
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.start, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.start_len, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.limit, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.limit_len, i64 16, i1 false)
  call void @leveldb_writeoptions_set_sync(ptr noundef %38, i8 noundef zeroext 0) #7
  br label %108

106:                                              ; preds = %108
  %107 = add nuw nsw i32 %.0154203, 1
  %exitcond.not = icmp eq i32 %107, 20000
  br i1 %exitcond.not, label %118, label %108, !llvm.loop !11

108:                                              ; preds = %105, %106
  %.0154203 = phi i32 [ 0, %105 ], [ %107, %106 ]
  %109 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 100, ptr noundef nonnull @.str.33, i32 noundef %.0154203) #7
  %110 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 100, ptr noundef nonnull @.str.34, i32 noundef %.0154203) #7
  %111 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #10
  %112 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #10
  call void @leveldb_put(ptr noundef %53, ptr noundef %38, ptr noundef nonnull %5, i64 noundef %111, ptr noundef nonnull %6, i64 noundef %112, ptr noundef nonnull %3) #7
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %.not188 = icmp eq ptr %113, null
  br i1 %.not188, label %106, label %114

114:                                              ; preds = %108
  %115 = load ptr, ptr @stderr, align 8, !tbaa !5
  %116 = load ptr, ptr @phase, align 8, !tbaa !5
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 286, ptr noundef %116, ptr noundef nonnull %113) #8
  call void @abort() #9
  unreachable

118:                                              ; preds = %106
  call void @leveldb_approximate_sizes(ptr noundef %53, i32 noundef 2, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %7) #7
  %119 = load i64, ptr %7, align 16, !tbaa !13
  %.not178 = icmp eq i64 %119, 0
  br i1 %.not178, label %120, label %124

120:                                              ; preds = %118
  %121 = load ptr, ptr @stderr, align 8, !tbaa !5
  %122 = load ptr, ptr @phase, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 289, ptr noundef %122, ptr noundef nonnull @.str.35) #8
  call void @abort() #9
  unreachable

124:                                              ; preds = %118
  %125 = getelementptr inbounds i8, ptr %7, i64 8
  %126 = load i64, ptr %125, align 8, !tbaa !13
  %.not179 = icmp eq i64 %126, 0
  br i1 %.not179, label %127, label %131

127:                                              ; preds = %124
  %128 = load ptr, ptr @stderr, align 8, !tbaa !5
  %129 = load ptr, ptr @phase, align 8, !tbaa !5
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 290, ptr noundef %129, ptr noundef nonnull @.str.36) #8
  call void @abort() #9
  unreachable

131:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %5) #7
  call void @StartPhase(ptr noundef nonnull @.str.37)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %132 = call ptr @leveldb_property_value(ptr noundef %53, ptr noundef nonnull @.str.38) #7
  %133 = icmp eq ptr %132, null
  br i1 %133, label %138, label %134

134:                                              ; preds = %131
  %135 = load ptr, ptr @stderr, align 8, !tbaa !5
  %136 = load ptr, ptr @phase, align 8, !tbaa !5
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 296, ptr noundef %136, ptr noundef nonnull @.str.39) #8
  call void @abort() #9
  unreachable

138:                                              ; preds = %131
  %139 = call ptr @leveldb_property_value(ptr noundef %53, ptr noundef nonnull @.str.40) #7
  store ptr %139, ptr %12, align 8, !tbaa !5
  %.not180 = icmp eq ptr %139, null
  br i1 %.not180, label %140, label %144

140:                                              ; preds = %138
  %141 = load ptr, ptr @stderr, align 8, !tbaa !5
  %142 = load ptr, ptr @phase, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 298, ptr noundef %142, ptr noundef nonnull @.str.41) #8
  call void @abort() #9
  unreachable

144:                                              ; preds = %138
  call void @Free(ptr noundef nonnull %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @StartPhase(ptr noundef nonnull @.str.42)
  %145 = call ptr @leveldb_create_snapshot(ptr noundef %53) #7
  call void @leveldb_delete(ptr noundef %53, ptr noundef %38, ptr noundef nonnull @.str.15, i64 noundef 3, ptr noundef nonnull %3) #7
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %.not181 = icmp eq ptr %146, null
  br i1 %.not181, label %151, label %147

147:                                              ; preds = %144
  %148 = load ptr, ptr @stderr, align 8, !tbaa !5
  %149 = load ptr, ptr @phase, align 8, !tbaa !5
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 307, ptr noundef %149, ptr noundef nonnull %146) #8
  call void @abort() #9
  unreachable

151:                                              ; preds = %144
  call void @leveldb_readoptions_set_snapshot(ptr noundef %37, ptr noundef %145) #7
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.17)
  call void @leveldb_readoptions_set_snapshot(ptr noundef %37, ptr noundef null) #7
  call void @CheckGet(ptr noundef %53, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef null)
  call void @leveldb_release_snapshot(ptr noundef %53, ptr noundef %145) #7
  call void @StartPhase(ptr noundef nonnull @.str.43)
  call void @leveldb_close(ptr noundef %53) #7
  call void @leveldb_options_set_create_if_missing(ptr noundef %36, i8 noundef zeroext 0) #7
  call void @leveldb_options_set_error_if_exists(ptr noundef %36, i8 noundef zeroext 0) #7
  call void @leveldb_repair_db(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %.not182 = icmp eq ptr %152, null
  br i1 %.not182, label %157, label %153

153:                                              ; preds = %151
  %154 = load ptr, ptr @stderr, align 8, !tbaa !5
  %155 = load ptr, ptr @phase, align 8, !tbaa !5
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 321, ptr noundef %155, ptr noundef nonnull %152) #8
  call void @abort() #9
  unreachable

157:                                              ; preds = %151
  %158 = call ptr @leveldb_open(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %.not183 = icmp eq ptr %159, null
  br i1 %.not183, label %164, label %160

160:                                              ; preds = %157
  %161 = load ptr, ptr @stderr, align 8, !tbaa !5
  %162 = load ptr, ptr @phase, align 8, !tbaa !5
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 323, ptr noundef %162, ptr noundef nonnull %159) #8
  call void @abort() #9
  unreachable

164:                                              ; preds = %157
  call void @CheckGet(ptr noundef %158, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef null)
  call void @CheckGet(ptr noundef %158, ptr noundef %37, ptr noundef nonnull @.str.23, ptr noundef null)
  call void @CheckGet(ptr noundef %158, ptr noundef %37, ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.26)
  call void @leveldb_options_set_create_if_missing(ptr noundef %36, i8 noundef zeroext 1) #7
  call void @leveldb_options_set_error_if_exists(ptr noundef %36, i8 noundef zeroext 1) #7
  call void @StartPhase(ptr noundef nonnull @.str.44)
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %.not184 = icmp eq ptr %165, null
  br i1 %.not184, label %170, label %166

166:                                              ; preds = %194, %164
  %.lcssa = phi ptr [ %165, %164 ], [ %195, %194 ]
  %167 = load ptr, ptr @stderr, align 8, !tbaa !5
  %168 = load ptr, ptr @phase, align 8, !tbaa !5
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 334, ptr noundef %168, ptr noundef nonnull %.lcssa) #8
  call void @abort() #9
  unreachable

170:                                              ; preds = %164
  %171 = call ptr @leveldb_filterpolicy_create(ptr noundef null, ptr noundef nonnull @FilterDestroy, ptr noundef nonnull @FilterCreate, ptr noundef nonnull @FilterKeyMatch, ptr noundef nonnull @FilterName) #7
  call void @leveldb_close(ptr noundef %158) #7
  call void @leveldb_destroy_db(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  call void @leveldb_options_set_filter_policy(ptr noundef %36, ptr noundef %171) #7
  %172 = call ptr @leveldb_open(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %.not185 = icmp eq ptr %173, null
  br i1 %.not185, label %178, label %174

174:                                              ; preds = %196, %170
  %.lcssa210 = phi ptr [ %173, %170 ], [ %199, %196 ]
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = load ptr, ptr @phase, align 8, !tbaa !5
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 348, ptr noundef %176, ptr noundef nonnull %.lcssa210) #8
  call void @abort() #9
  unreachable

178:                                              ; preds = %170
  call void @leveldb_put(ptr noundef %172, ptr noundef %38, ptr noundef nonnull @.str.15, i64 noundef 3, ptr noundef nonnull @.str.45, i64 noundef 8, ptr noundef nonnull %3) #7
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %.not186 = icmp eq ptr %179, null
  br i1 %.not186, label %184, label %180

180:                                              ; preds = %200, %178
  %.lcssa218 = phi ptr [ %179, %178 ], [ %201, %200 ]
  %181 = load ptr, ptr @stderr, align 8, !tbaa !5
  %182 = load ptr, ptr @phase, align 8, !tbaa !5
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 350, ptr noundef %182, ptr noundef nonnull %.lcssa218) #8
  call void @abort() #9
  unreachable

184:                                              ; preds = %178
  call void @leveldb_put(ptr noundef %172, ptr noundef %38, ptr noundef nonnull @.str.23, i64 noundef 3, ptr noundef nonnull @.str.46, i64 noundef 8, ptr noundef nonnull %3) #7
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %.not187 = icmp eq ptr %185, null
  br i1 %.not187, label %190, label %186

186:                                              ; preds = %202, %184
  %.lcssa221 = phi ptr [ %185, %184 ], [ %203, %202 ]
  %187 = load ptr, ptr @stderr, align 8, !tbaa !5
  %188 = load ptr, ptr @phase, align 8, !tbaa !5
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 352, ptr noundef %188, ptr noundef nonnull %.lcssa221) #8
  call void @abort() #9
  unreachable

190:                                              ; preds = %184
  call void @leveldb_compact_range(ptr noundef %172, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0) #7
  store i8 1, ptr @fake_filter_result, align 1, !tbaa !15
  call void @CheckGet(ptr noundef %172, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.45)
  call void @CheckGet(ptr noundef %172, ptr noundef %37, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.46)
  %191 = load ptr, ptr @phase, align 8, !tbaa !5
  %192 = icmp eq ptr %191, null
  br i1 %192, label %193, label %194

193:                                              ; preds = %190
  store i8 0, ptr @fake_filter_result, align 1, !tbaa !15
  call void @CheckGet(ptr noundef %172, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef null)
  call void @CheckGet(ptr noundef %172, ptr noundef %37, ptr noundef nonnull @.str.23, ptr noundef null)
  store i8 1, ptr @fake_filter_result, align 1, !tbaa !15
  call void @CheckGet(ptr noundef %172, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.45)
  call void @CheckGet(ptr noundef %172, ptr noundef %37, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.46)
  br label %194

194:                                              ; preds = %193, %190
  call void @leveldb_options_set_filter_policy(ptr noundef %36, ptr noundef null) #7
  call void @leveldb_filterpolicy_destroy(ptr noundef %171) #7
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %.not184.1 = icmp eq ptr %195, null
  br i1 %.not184.1, label %196, label %166

196:                                              ; preds = %194
  %197 = call ptr @leveldb_filterpolicy_create_bloom(i32 noundef 10) #7
  call void @leveldb_close(ptr noundef %172) #7
  call void @leveldb_destroy_db(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  call void @leveldb_options_set_filter_policy(ptr noundef %36, ptr noundef %197) #7
  %198 = call ptr @leveldb_open(ptr noundef %36, ptr noundef nonnull %30, ptr noundef nonnull %3) #7
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %.not185.1 = icmp eq ptr %199, null
  br i1 %.not185.1, label %200, label %174

200:                                              ; preds = %196
  call void @leveldb_put(ptr noundef %198, ptr noundef %38, ptr noundef nonnull @.str.15, i64 noundef 3, ptr noundef nonnull @.str.45, i64 noundef 8, ptr noundef nonnull %3) #7
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %.not186.1 = icmp eq ptr %201, null
  br i1 %.not186.1, label %202, label %180

202:                                              ; preds = %200
  call void @leveldb_put(ptr noundef %198, ptr noundef %38, ptr noundef nonnull @.str.23, i64 noundef 3, ptr noundef nonnull @.str.46, i64 noundef 8, ptr noundef nonnull %3) #7
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %.not187.1 = icmp eq ptr %203, null
  br i1 %.not187.1, label %204, label %186

204:                                              ; preds = %202
  call void @leveldb_compact_range(ptr noundef %198, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0) #7
  store i8 1, ptr @fake_filter_result, align 1, !tbaa !15
  call void @CheckGet(ptr noundef %198, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.45)
  call void @CheckGet(ptr noundef %198, ptr noundef %37, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.46)
  %205 = load ptr, ptr @phase, align 8, !tbaa !5
  %206 = icmp eq ptr %205, null
  br i1 %206, label %207, label %208

207:                                              ; preds = %204
  store i8 0, ptr @fake_filter_result, align 1, !tbaa !15
  call void @CheckGet(ptr noundef %198, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef null)
  call void @CheckGet(ptr noundef %198, ptr noundef %37, ptr noundef nonnull @.str.23, ptr noundef null)
  store i8 1, ptr @fake_filter_result, align 1, !tbaa !15
  call void @CheckGet(ptr noundef %198, ptr noundef %37, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.45)
  call void @CheckGet(ptr noundef %198, ptr noundef %37, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.46)
  br label %208

208:                                              ; preds = %207, %204
  call void @leveldb_options_set_filter_policy(ptr noundef %36, ptr noundef null) #7
  call void @leveldb_filterpolicy_destroy(ptr noundef %197) #7
  call void @StartPhase(ptr noundef nonnull @.str.47)
  call void @leveldb_close(ptr noundef %198) #7
  call void @leveldb_options_destroy(ptr noundef %36) #7
  call void @leveldb_readoptions_destroy(ptr noundef %37) #7
  call void @leveldb_writeoptions_destroy(ptr noundef %38) #7
  call void @leveldb_free(ptr noundef nonnull %30) #7
  call void @leveldb_cache_destroy(ptr noundef %29) #7
  call void @leveldb_comparator_destroy(ptr noundef %27) #7
  call void @leveldb_env_destroy(ptr noundef %28) #7
  %209 = load ptr, ptr @stderr, align 8, !tbaa !5
  %210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef nonnull @.str.48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret i32 0
}

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

declare i32 @leveldb_major_version() local_unnamed_addr #4

declare i32 @leveldb_minor_version() local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @StartPhase(ptr noundef) local_unnamed_addr #0

declare ptr @leveldb_comparator_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @CmpDestroy(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @CmpCompare(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @CmpName(ptr noundef) #0

declare ptr @leveldb_create_default_env() local_unnamed_addr #4

declare ptr @leveldb_cache_create_lru(i64 noundef) local_unnamed_addr #4

declare ptr @leveldb_env_get_test_directory(ptr noundef) local_unnamed_addr #4

declare ptr @leveldb_options_create() local_unnamed_addr #4

declare void @leveldb_options_set_comparator(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_options_set_error_if_exists(ptr noundef, i8 noundef zeroext) local_unnamed_addr #4

declare void @leveldb_options_set_cache(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_options_set_env(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_options_set_info_log(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_options_set_write_buffer_size(ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @leveldb_options_set_paranoid_checks(ptr noundef, i8 noundef zeroext) local_unnamed_addr #4

declare void @leveldb_options_set_max_open_files(ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @leveldb_options_set_block_size(ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @leveldb_options_set_block_restart_interval(ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @leveldb_options_set_max_file_size(ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @leveldb_options_set_compression(ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @leveldb_readoptions_create() local_unnamed_addr #4

declare void @leveldb_readoptions_set_verify_checksums(ptr noundef, i8 noundef zeroext) local_unnamed_addr #4

declare void @leveldb_readoptions_set_fill_cache(ptr noundef, i8 noundef zeroext) local_unnamed_addr #4

declare ptr @leveldb_writeoptions_create() local_unnamed_addr #4

declare void @leveldb_writeoptions_set_sync(ptr noundef, i8 noundef zeroext) local_unnamed_addr #4

declare void @leveldb_destroy_db(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @Free(ptr noundef) local_unnamed_addr #0

declare ptr @leveldb_open(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_free(ptr noundef) local_unnamed_addr #4

declare void @leveldb_options_set_create_if_missing(ptr noundef, i8 noundef zeroext) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @CheckGet(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @leveldb_put(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_compact_range(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare ptr @leveldb_writebatch_create() local_unnamed_addr #4

declare void @leveldb_writebatch_put(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @leveldb_writebatch_clear(ptr noundef) local_unnamed_addr #4

declare void @leveldb_writebatch_delete(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @leveldb_writebatch_append(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_writebatch_destroy(ptr noundef) local_unnamed_addr #4

declare void @leveldb_write(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_writebatch_iterate(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @CheckPut(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @CheckDel(ptr noundef, ptr noundef, i64 noundef) #0

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

declare ptr @leveldb_create_iterator(ptr noundef, ptr noundef) local_unnamed_addr #4

declare zeroext i8 @leveldb_iter_valid(ptr noundef) local_unnamed_addr #4

declare void @leveldb_iter_seek_to_first(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @CheckIter(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @leveldb_iter_next(ptr noundef) local_unnamed_addr #4

declare void @leveldb_iter_prev(ptr noundef) local_unnamed_addr #4

declare void @leveldb_iter_seek_to_last(ptr noundef) local_unnamed_addr #4

declare void @leveldb_iter_seek(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @leveldb_iter_get_error(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_iter_destroy(ptr noundef) local_unnamed_addr #4

; 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) #5

; 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: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #6

declare void @leveldb_approximate_sizes(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @leveldb_property_value(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @leveldb_create_snapshot(ptr noundef) local_unnamed_addr #4

declare void @leveldb_delete(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_readoptions_set_snapshot(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_release_snapshot(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_close(ptr noundef) local_unnamed_addr #4

declare void @leveldb_repair_db(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @leveldb_filterpolicy_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @FilterDestroy(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @FilterCreate(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @FilterName(ptr noundef) #0

declare ptr @leveldb_filterpolicy_create_bloom(i32 noundef) local_unnamed_addr #4

declare void @leveldb_options_set_filter_policy(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @leveldb_filterpolicy_destroy(ptr noundef) local_unnamed_addr #4

declare void @leveldb_options_destroy(ptr noundef) local_unnamed_addr #4

declare void @leveldb_readoptions_destroy(ptr noundef) local_unnamed_addr #4

declare void @leveldb_writeoptions_destroy(ptr noundef) local_unnamed_addr #4

declare void @leveldb_cache_destroy(ptr noundef) local_unnamed_addr #4

declare void @leveldb_comparator_destroy(ptr noundef) local_unnamed_addr #4

declare void @leveldb_env_destroy(ptr noundef) local_unnamed_addr #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 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass