; LLVM IR from tezc/sc :: map (map_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"

%struct.sc_map_str = type { ptr, i32, i32, i32, i32, i8, i8, i8 }

@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.test_str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [27 x i8], align 1

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

declare zeroext i1 @sc_map_init_str(ptr noundef, i32 noundef, i32 noundef) #1

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

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

declare void @sc_map_term_str(ptr noundef) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @test_str() #4 {
  %1 = alloca ptr, align 8
  %2 = alloca %struct.sc_map_str, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @srand(i32 noundef 2132132131) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  store ptr @.str.78, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #5
  %7 = call zeroext i1 @sc_map_init_str(ptr noundef %2, i32 noundef 0, i32 noundef 0)
  br i1 %7, label %8, label %9

8:                                                ; preds = %0
  br label %10

9:                                                ; preds = %0
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str.14, i32 noundef 1191, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

10:                                               ; preds = %8
  call void @sc_map_term_str(ptr noundef %2)
  %11 = call zeroext i1 @sc_map_init_str(ptr noundef %2, i32 noundef 0, i32 noundef 1)
  %12 = zext i1 %11 to i32
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %10
  br label %16

15:                                               ; preds = %10
  call void @__assert_fail(ptr noundef @.str.80, ptr noundef @.str.14, i32 noundef 1193, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

16:                                               ; preds = %14
  %17 = call zeroext i1 @sc_map_init_str(ptr noundef %2, i32 noundef 0, i32 noundef 99)
  %18 = zext i1 %17 to i32
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %16
  br label %22

21:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.81, ptr noundef @.str.14, i32 noundef 1194, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

22:                                               ; preds = %20
  %23 = call zeroext i1 @sc_map_init_str(ptr noundef %2, i32 noundef 16, i32 noundef 94)
  br i1 %23, label %24, label %25

24:                                               ; preds = %22
  br label %26

25:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.82, ptr noundef @.str.14, i32 noundef 1196, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

26:                                               ; preds = %24
  %27 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef null)
  %28 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %29 = load i8, ptr %28, align 2, !tbaa !9, !range !13, !noundef !14
  %30 = trunc i8 %29 to i1
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  br label %33

32:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 1199, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

33:                                               ; preds = %31
  %34 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef @.str.83)
  %35 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %36 = load i8, ptr %35, align 2, !tbaa !9, !range !13, !noundef !14
  %37 = trunc i8 %36 to i1
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  br label %40

39:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 1202, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !15
  br label %41

41:                                               ; preds = %51, %40
  %42 = load i32, ptr %3, align 4, !tbaa !15
  %43 = icmp slt i32 %42, 14
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %54

45:                                               ; preds = %41
  %46 = load ptr, ptr %1, align 8, !tbaa !5
  %47 = load i32, ptr %3, align 4, !tbaa !15
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %46, i64 %48
  %50 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef %49, ptr noundef null)
  br label %51

51:                                               ; preds = %45
  %52 = load i32, ptr %3, align 4, !tbaa !15
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %3, align 4, !tbaa !15
  br label %41, !llvm.loop !16

54:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 15, ptr %4, align 4, !tbaa !15
  br label %55

55:                                               ; preds = %71, %54
  %56 = load i32, ptr %4, align 4, !tbaa !15
  %57 = icmp slt i32 %56, 30
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %74

59:                                               ; preds = %55
  %60 = load ptr, ptr %1, align 8, !tbaa !5
  %61 = load i32, ptr %4, align 4, !tbaa !15
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %60, i64 %62
  %64 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef %63)
  %65 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %66 = load i8, ptr %65, align 2, !tbaa !9, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %69, label %68

68:                                               ; preds = %59
  br label %70

69:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 1210, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

70:                                               ; preds = %68
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %4, align 4, !tbaa !15
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %4, align 4, !tbaa !15
  br label %55, !llvm.loop !18

74:                                               ; preds = %58
  call void @sc_map_clear_str(ptr noundef %2)
  call void @sc_map_clear_str(ptr noundef %2)
  %75 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef @.str.84, ptr noundef null)
  %76 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef @.str.85, ptr noundef null)
  %77 = call ptr @sc_map_get_str(ptr noundef %2, ptr noundef @.str.86)
  %78 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %79 = load i8, ptr %78, align 2, !tbaa !9, !range !13, !noundef !14
  %80 = trunc i8 %79 to i1
  br i1 %80, label %82, label %81

81:                                               ; preds = %74
  br label %83

82:                                               ; preds = %74
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 1219, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

83:                                               ; preds = %81
  %84 = call ptr @sc_map_get_str(ptr noundef %2, ptr noundef null)
  %85 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %86 = load i8, ptr %85, align 2, !tbaa !9, !range !13, !noundef !14
  %87 = trunc i8 %86 to i1
  br i1 %87, label %89, label %88

88:                                               ; preds = %83
  br label %90

89:                                               ; preds = %83
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 1222, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

90:                                               ; preds = %88
  %91 = call ptr @sc_map_get_str(ptr noundef %2, ptr noundef @.str.84)
  %92 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %93 = load i8, ptr %92, align 2, !tbaa !9, !range !13, !noundef !14
  %94 = trunc i8 %93 to i1
  br i1 %94, label %95, label %96

95:                                               ; preds = %90
  br label %97

96:                                               ; preds = %90
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1225, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

97:                                               ; preds = %95
  %98 = call ptr @sc_map_get_str(ptr noundef %2, ptr noundef @.str.85)
  %99 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %100 = load i8, ptr %99, align 2, !tbaa !9, !range !13, !noundef !14
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %103

102:                                              ; preds = %97
  br label %104

103:                                              ; preds = %97
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1228, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

104:                                              ; preds = %102
  %105 = call ptr @sc_map_get_str(ptr noundef %2, ptr noundef @.str.87)
  %106 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %107 = load i8, ptr %106, align 2, !tbaa !9, !range !13, !noundef !14
  %108 = trunc i8 %107 to i1
  br i1 %108, label %110, label %109

109:                                              ; preds = %104
  br label %111

110:                                              ; preds = %104
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 1231, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

111:                                              ; preds = %109
  %112 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef null, ptr noundef null)
  %113 = call ptr @sc_map_get_str(ptr noundef %2, ptr noundef null)
  %114 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %115 = load i8, ptr %114, align 2, !tbaa !9, !range !13, !noundef !14
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %118

117:                                              ; preds = %111
  br label %119

118:                                              ; preds = %111
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1236, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

119:                                              ; preds = %117
  %120 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef null)
  %121 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %122 = load i8, ptr %121, align 2, !tbaa !9, !range !13, !noundef !14
  %123 = trunc i8 %122 to i1
  br i1 %123, label %124, label %125

124:                                              ; preds = %119
  br label %126

125:                                              ; preds = %119
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1239, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

126:                                              ; preds = %124
  %127 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef @.str.84)
  %128 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %129 = load i8, ptr %128, align 2, !tbaa !9, !range !13, !noundef !14
  %130 = trunc i8 %129 to i1
  br i1 %130, label %131, label %132

131:                                              ; preds = %126
  br label %133

132:                                              ; preds = %126
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1242, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

133:                                              ; preds = %131
  %134 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef @.str.86)
  %135 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %136 = load i8, ptr %135, align 2, !tbaa !9, !range !13, !noundef !14
  %137 = trunc i8 %136 to i1
  br i1 %137, label %139, label %138

138:                                              ; preds = %133
  br label %140

139:                                              ; preds = %133
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 1245, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

140:                                              ; preds = %138
  call void @sc_map_clear_str(ptr noundef %2)
  %141 = call i32 @sc_map_size_str(ptr noundef %2)
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %140
  br label %145

144:                                              ; preds = %140
  call void @__assert_fail(ptr noundef @.str.88, ptr noundef @.str.14, i32 noundef 1248, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

145:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !15
  br label %146

146:                                              ; preds = %156, %145
  %147 = load i32, ptr %5, align 4, !tbaa !15
  %148 = icmp slt i32 %147, 5
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %159

150:                                              ; preds = %146
  %151 = load ptr, ptr %1, align 8, !tbaa !5
  %152 = load i32, ptr %5, align 4, !tbaa !15
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i8, ptr %151, i64 %153
  %155 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef %154, ptr noundef null)
  br label %156

156:                                              ; preds = %150
  %157 = load i32, ptr %5, align 4, !tbaa !15
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %5, align 4, !tbaa !15
  br label %146, !llvm.loop !19

159:                                              ; preds = %149
  %160 = load ptr, ptr %1, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i64 15
  %162 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef %161, ptr noundef null)
  %163 = load ptr, ptr %1, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %163, i64 7
  %165 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef %164, ptr noundef null)
  %166 = load ptr, ptr %1, align 8, !tbaa !5
  %167 = getelementptr inbounds i8, ptr %166, i64 9
  %168 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef %167, ptr noundef null)
  %169 = load ptr, ptr %1, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 16
  %171 = call ptr @sc_map_get_str(ptr noundef %2, ptr noundef %170)
  %172 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %173 = load i8, ptr %172, align 2, !tbaa !9, !range !13, !noundef !14
  %174 = trunc i8 %173 to i1
  br i1 %174, label %176, label %175

175:                                              ; preds = %159
  br label %177

176:                                              ; preds = %159
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 1258, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

177:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !15
  br label %178

178:                                              ; preds = %191, %177
  %179 = load i32, ptr %6, align 4, !tbaa !15
  %180 = icmp slt i32 %179, 5
  br i1 %180, label %182, label %181

181:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %194

182:                                              ; preds = %178
  %183 = load ptr, ptr %1, align 8, !tbaa !5
  %184 = load i32, ptr %6, align 4, !tbaa !15
  %185 = mul nsw i32 5, %184
  %186 = load i32, ptr %6, align 4, !tbaa !15
  %187 = add nsw i32 %185, %186
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i8, ptr %183, i64 %188
  %190 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef %189, ptr noundef null)
  br label %191

191:                                              ; preds = %182
  %192 = load i32, ptr %6, align 4, !tbaa !15
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %6, align 4, !tbaa !15
  br label %178, !llvm.loop !20

194:                                              ; preds = %181
  %195 = load ptr, ptr %1, align 8, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %195, i64 4
  %197 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef %196)
  %198 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %199 = load i8, ptr %198, align 2, !tbaa !9, !range !13, !noundef !14
  %200 = trunc i8 %199 to i1
  br i1 %200, label %201, label %202

201:                                              ; preds = %194
  br label %203

202:                                              ; preds = %194
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1265, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

203:                                              ; preds = %201
  %204 = load ptr, ptr %1, align 8, !tbaa !5
  %205 = getelementptr inbounds i8, ptr %204, i64 6
  %206 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef %205)
  %207 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %208 = load i8, ptr %207, align 2, !tbaa !9, !range !13, !noundef !14
  %209 = trunc i8 %208 to i1
  br i1 %209, label %210, label %211

210:                                              ; preds = %203
  br label %212

211:                                              ; preds = %203
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1268, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

212:                                              ; preds = %210
  %213 = load ptr, ptr %1, align 8, !tbaa !5
  %214 = getelementptr inbounds i8, ptr %213, i64 15
  %215 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef %214)
  %216 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %217 = load i8, ptr %216, align 2, !tbaa !9, !range !13, !noundef !14
  %218 = trunc i8 %217 to i1
  br i1 %218, label %219, label %220

219:                                              ; preds = %212
  br label %221

220:                                              ; preds = %212
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1271, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

221:                                              ; preds = %219
  call void @sc_map_clear_str(ptr noundef %2)
  %222 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef @.str.84, ptr noundef null)
  %223 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef @.str.85, ptr noundef null)
  %224 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef @.str.84)
  %225 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %226 = load i8, ptr %225, align 2, !tbaa !9, !range !13, !noundef !14
  %227 = trunc i8 %226 to i1
  br i1 %227, label %228, label %229

228:                                              ; preds = %221
  br label %230

229:                                              ; preds = %221
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1277, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

230:                                              ; preds = %228
  call void @sc_map_clear_str(ptr noundef %2)
  %231 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef @.str.84, ptr noundef null)
  %232 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef @.str.85, ptr noundef null)
  %233 = call ptr @sc_map_put_str(ptr noundef %2, ptr noundef @.str.86, ptr noundef null)
  %234 = call ptr @sc_map_del_str(ptr noundef %2, ptr noundef @.str.85)
  %235 = getelementptr inbounds %struct.sc_map_str, ptr %2, i32 0, i32 7
  %236 = load i8, ptr %235, align 2, !tbaa !9, !range !13, !noundef !14
  %237 = trunc i8 %236 to i1
  br i1 %237, label %238, label %239

238:                                              ; preds = %230
  br label %240

239:                                              ; preds = %230
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1285, ptr noundef @__PRETTY_FUNCTION__.test_str) #6
  unreachable

240:                                              ; preds = %238
  call void @sc_map_term_str(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

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

declare void @sc_map_clear_str(ptr noundef) #1

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

declare i32 @sc_map_size_str(ptr noundef) #1

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

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

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


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

%struct.sc_map_str = type { ptr, i32, i32, i32, i32, i8, i8, i8 }

@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.test_str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [27 x i8], align 1

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

declare zeroext i1 @sc_map_init_str(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

declare void @sc_map_term_str(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_str() local_unnamed_addr #4 {
  %1 = alloca %struct.sc_map_str, align 8
  tail call void @srand(i32 noundef 2132132131) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #5
  %2 = call zeroext i1 @sc_map_init_str(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 0) #5
  br i1 %2, label %4, label %3

3:                                                ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.14, i32 noundef 1191, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

4:                                                ; preds = %0
  call void @sc_map_term_str(ptr noundef nonnull %1) #5
  %5 = call zeroext i1 @sc_map_init_str(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 1) #5
  br i1 %5, label %6, label %7

6:                                                ; preds = %4
  call void @__assert_fail(ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.14, i32 noundef 1193, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

7:                                                ; preds = %4
  %8 = call zeroext i1 @sc_map_init_str(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 99) #5
  br i1 %8, label %9, label %10

9:                                                ; preds = %7
  call void @__assert_fail(ptr noundef nonnull @.str.81, ptr noundef nonnull @.str.14, i32 noundef 1194, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

10:                                               ; preds = %7
  %11 = call zeroext i1 @sc_map_init_str(ptr noundef nonnull %1, i32 noundef 16, i32 noundef 94) #5
  br i1 %11, label %13, label %12

12:                                               ; preds = %10
  call void @__assert_fail(ptr noundef nonnull @.str.82, ptr noundef nonnull @.str.14, i32 noundef 1196, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

13:                                               ; preds = %10
  %14 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef null) #5
  %15 = getelementptr inbounds i8, ptr %1, i64 26
  %16 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %18, label %19

18:                                               ; preds = %13
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 1199, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

19:                                               ; preds = %13
  %20 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.83) #5
  %21 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %40, label %.preheader28.preheader

.preheader28.preheader:                           ; preds = %19
  %23 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.78, ptr noundef null) #5
  %24 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 1), ptr noundef null) #5
  %25 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 2), ptr noundef null) #5
  %26 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 3), ptr noundef null) #5
  %27 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 4), ptr noundef null) #5
  %28 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 5), ptr noundef null) #5
  %29 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 6), ptr noundef null) #5
  %30 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 7), ptr noundef null) #5
  %31 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 8), ptr noundef null) #5
  %32 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 9), ptr noundef null) #5
  %33 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 10), ptr noundef null) #5
  %34 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 11), ptr noundef null) #5
  %35 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 12), ptr noundef null) #5
  %36 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 13), ptr noundef null) #5
  %37 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 15)) #5
  %38 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %89, label %.preheader27.1

40:                                               ; preds = %19
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 1202, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

.preheader27.1:                                   ; preds = %.preheader28.preheader
  %41 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 16)) #5
  %42 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %43 = trunc nuw i8 %42 to i1
  br i1 %43, label %89, label %.preheader27.2

.preheader27.2:                                   ; preds = %.preheader27.1
  %44 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 17)) #5
  %45 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %89, label %.preheader27.3

.preheader27.3:                                   ; preds = %.preheader27.2
  %47 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 18)) #5
  %48 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %49 = trunc nuw i8 %48 to i1
  br i1 %49, label %89, label %.preheader27.4

.preheader27.4:                                   ; preds = %.preheader27.3
  %50 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 19)) #5
  %51 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %89, label %.preheader27.5

.preheader27.5:                                   ; preds = %.preheader27.4
  %53 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 20)) #5
  %54 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %55 = trunc nuw i8 %54 to i1
  br i1 %55, label %89, label %.preheader27.6

.preheader27.6:                                   ; preds = %.preheader27.5
  %56 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 21)) #5
  %57 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %58 = trunc nuw i8 %57 to i1
  br i1 %58, label %89, label %.preheader27.7

.preheader27.7:                                   ; preds = %.preheader27.6
  %59 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 22)) #5
  %60 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %89, label %.preheader27.8

.preheader27.8:                                   ; preds = %.preheader27.7
  %62 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 23)) #5
  %63 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %64 = trunc nuw i8 %63 to i1
  br i1 %64, label %89, label %.preheader27.9

.preheader27.9:                                   ; preds = %.preheader27.8
  %65 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 24)) #5
  %66 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %89, label %.preheader27.10

.preheader27.10:                                  ; preds = %.preheader27.9
  %68 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 25)) #5
  %69 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %70 = trunc nuw i8 %69 to i1
  br i1 %70, label %89, label %.preheader27.11

.preheader27.11:                                  ; preds = %.preheader27.10
  %71 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 26)) #5
  %72 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %89, label %.preheader27.12

.preheader27.12:                                  ; preds = %.preheader27.11
  %74 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 27)) #5
  %75 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %89, label %.preheader27.13

.preheader27.13:                                  ; preds = %.preheader27.12
  %77 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 28)) #5
  %78 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %79 = trunc nuw i8 %78 to i1
  br i1 %79, label %89, label %.preheader27.14

.preheader27.14:                                  ; preds = %.preheader27.13
  %80 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 29)) #5
  %81 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %82 = trunc nuw i8 %81 to i1
  br i1 %82, label %89, label %83

83:                                               ; preds = %.preheader27.14
  call void @sc_map_clear_str(ptr noundef nonnull %1) #5
  call void @sc_map_clear_str(ptr noundef nonnull %1) #5
  %84 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.84, ptr noundef null) #5
  %85 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.85, ptr noundef null) #5
  %86 = call ptr @sc_map_get_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.86) #5
  %87 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %90, label %91

89:                                               ; preds = %.preheader27.14, %.preheader27.13, %.preheader27.12, %.preheader27.11, %.preheader27.10, %.preheader27.9, %.preheader27.8, %.preheader27.7, %.preheader27.6, %.preheader27.5, %.preheader27.4, %.preheader27.3, %.preheader27.2, %.preheader27.1, %.preheader28.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 1210, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

90:                                               ; preds = %83
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 1219, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

91:                                               ; preds = %83
  %92 = call ptr @sc_map_get_str(ptr noundef nonnull %1, ptr noundef null) #5
  %93 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %94 = trunc nuw i8 %93 to i1
  br i1 %94, label %95, label %96

95:                                               ; preds = %91
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 1222, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

96:                                               ; preds = %91
  %97 = call ptr @sc_map_get_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.84) #5
  %98 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %99 = trunc nuw i8 %98 to i1
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1225, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

101:                                              ; preds = %96
  %102 = call ptr @sc_map_get_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.85) #5
  %103 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %104 = trunc nuw i8 %103 to i1
  br i1 %104, label %106, label %105

105:                                              ; preds = %101
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1228, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

106:                                              ; preds = %101
  %107 = call ptr @sc_map_get_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.87) #5
  %108 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %109 = trunc nuw i8 %108 to i1
  br i1 %109, label %110, label %111

110:                                              ; preds = %106
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 1231, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

111:                                              ; preds = %106
  %112 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef null, ptr noundef null) #5
  %113 = call ptr @sc_map_get_str(ptr noundef nonnull %1, ptr noundef null) #5
  %114 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %115 = trunc nuw i8 %114 to i1
  br i1 %115, label %117, label %116

116:                                              ; preds = %111
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1236, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

117:                                              ; preds = %111
  %118 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef null) #5
  %119 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %120 = trunc nuw i8 %119 to i1
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1239, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

122:                                              ; preds = %117
  %123 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.84) #5
  %124 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %125 = trunc nuw i8 %124 to i1
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1242, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

127:                                              ; preds = %122
  %128 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.86) #5
  %129 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %130 = trunc nuw i8 %129 to i1
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 1245, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

132:                                              ; preds = %127
  call void @sc_map_clear_str(ptr noundef nonnull %1) #5
  %133 = call i32 @sc_map_size_str(ptr noundef nonnull %1) #5
  %134 = icmp eq i32 %133, 0
  br i1 %134, label %.preheader26.preheader, label %146

.preheader26.preheader:                           ; preds = %132
  %135 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.78, ptr noundef null) #5
  %136 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 1), ptr noundef null) #5
  %137 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 2), ptr noundef null) #5
  %138 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 3), ptr noundef null) #5
  %139 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 4), ptr noundef null) #5
  %140 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 15), ptr noundef null) #5
  %141 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 7), ptr noundef null) #5
  %142 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 9), ptr noundef null) #5
  %143 = call ptr @sc_map_get_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 16)) #5
  %144 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %145 = trunc nuw i8 %144 to i1
  br i1 %145, label %155, label %.preheader.preheader

146:                                              ; preds = %132
  call void @__assert_fail(ptr noundef nonnull @.str.88, ptr noundef nonnull @.str.14, i32 noundef 1248, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

.preheader.preheader:                             ; preds = %.preheader26.preheader
  %147 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.78, ptr noundef null) #5
  %148 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 6), ptr noundef null) #5
  %149 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 12), ptr noundef null) #5
  %150 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 18), ptr noundef null) #5
  %151 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 24), ptr noundef null) #5
  %152 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 4)) #5
  %153 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %154 = trunc nuw i8 %153 to i1
  br i1 %154, label %157, label %156

155:                                              ; preds = %.preheader26.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 1258, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

156:                                              ; preds = %.preheader.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1265, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

157:                                              ; preds = %.preheader.preheader
  %158 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 6)) #5
  %159 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %160 = trunc nuw i8 %159 to i1
  br i1 %160, label %162, label %161

161:                                              ; preds = %157
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1268, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

162:                                              ; preds = %157
  %163 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.78, i64 15)) #5
  %164 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %165 = trunc nuw i8 %164 to i1
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1271, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

167:                                              ; preds = %162
  call void @sc_map_clear_str(ptr noundef nonnull %1) #5
  %168 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.84, ptr noundef null) #5
  %169 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.85, ptr noundef null) #5
  %170 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.84) #5
  %171 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %172 = trunc nuw i8 %171 to i1
  br i1 %172, label %174, label %173

173:                                              ; preds = %167
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1277, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

174:                                              ; preds = %167
  call void @sc_map_clear_str(ptr noundef nonnull %1) #5
  %175 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.84, ptr noundef null) #5
  %176 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.85, ptr noundef null) #5
  %177 = call ptr @sc_map_put_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.86, ptr noundef null) #5
  %178 = call ptr @sc_map_del_str(ptr noundef nonnull %1, ptr noundef nonnull @.str.85) #5
  %179 = load i8, ptr %15, align 2, !tbaa !5, !range !12, !noundef !13
  %180 = trunc nuw i8 %179 to i1
  br i1 %180, label %182, label %181

181:                                              ; preds = %174
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 1285, ptr noundef nonnull @__PRETTY_FUNCTION__.test_str) #6
  unreachable

182:                                              ; preds = %174
  call void @sc_map_term_str(ptr noundef nonnull %1) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #5
  ret void
}

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

declare void @sc_map_clear_str(ptr noundef) local_unnamed_addr #1

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

declare i32 @sc_map_size_str(ptr noundef) local_unnamed_addr #1

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass