; LLVM IR from billziss-gh/imap :: tlib (testsuite)

; 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.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.test = type { [64 x i8], ptr, i32, ptr }

@test_suite_tail = external hidden global ptr, align 8
@test_tail = external hidden global ptr, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@assert_buf = external hidden global [256 x i8], align 16
@test_jmp_buf = external hidden global [1 x %struct.__jmp_buf_tag], align 16
@test_jmp = external hidden global ptr, align 8

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

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

; Function Attrs: nounwind uwtable
define dso_local void @tlib_run_tests(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr %3, align 4, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i32 1
  store ptr %25, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr @do_test_default, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 1, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %26, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %27 = load ptr, ptr %9, align 8, !tbaa !9
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds ptr, ptr %27, i64 %29
  store ptr %30, ptr %10, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %81, %2
  %32 = load ptr, ptr %10, align 8, !tbaa !9
  %33 = load ptr, ptr %9, align 8, !tbaa !9
  %34 = icmp ugt ptr %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %84

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %37 = load ptr, ptr %9, align 8, !tbaa !9
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  store ptr %38, ptr %11, align 8, !tbaa !9
  %39 = load ptr, ptr %11, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %39, i64 0
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 45, %42
  br i1 %43, label %44, label %79

44:                                               ; preds = %36
  %45 = load ptr, ptr %11, align 8, !tbaa !9
  %46 = call i32 @strcmp(ptr noundef @.str, ptr noundef %45) #7
  %47 = icmp eq i32 0, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %44
  store ptr @do_test_list, ptr %5, align 8, !tbaa !9
  br label %78

49:                                               ; preds = %44
  %50 = load ptr, ptr %11, align 8, !tbaa !9
  %51 = call i32 @strcmp(ptr noundef @.str.1, ptr noundef %50) #7
  %52 = icmp eq i32 0, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  store ptr @do_test_tap, ptr %5, align 8, !tbaa !9
  br label %77

54:                                               ; preds = %49
  %55 = load ptr, ptr %11, align 8, !tbaa !9
  %56 = call i32 @strcmp(ptr noundef @.str.2, ptr noundef %55) #7
  %57 = icmp eq i32 0, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %76

59:                                               ; preds = %54
  %60 = load ptr, ptr %11, align 8, !tbaa !9
  %61 = call i32 @strcmp(ptr noundef @.str.3, ptr noundef %60) #7
  %62 = icmp eq i32 0, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  store i64 -1, ptr %8, align 8, !tbaa !11
  br label %75

64:                                               ; preds = %59
  %65 = load ptr, ptr %11, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %65, i64 1
  %67 = load i8, ptr %66, align 1, !tbaa !13
  %68 = sext i8 %67 to i32
  %69 = icmp eq i32 45, %68
  br i1 %69, label %70, label %74

70:                                               ; preds = %64
  %71 = load ptr, ptr @stderr, align 8, !tbaa !9
  %72 = load ptr, ptr %11, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.4, ptr noundef %72) #6
  call void @exit(i32 noundef 2) #8
  unreachable

74:                                               ; preds = %64
  br label %75

75:                                               ; preds = %74, %63
  br label %76

76:                                               ; preds = %75, %58
  br label %77

77:                                               ; preds = %76, %53
  br label %78

78:                                               ; preds = %77, %48
  br label %80

79:                                               ; preds = %36
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %79, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %81

81:                                               ; preds = %80
  %82 = load ptr, ptr %9, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %82, i32 1
  store ptr %83, ptr %9, align 8, !tbaa !9
  br label %31, !llvm.loop !14

84:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %85 = load ptr, ptr @test_suite_tail, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.test, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = getelementptr inbounds %struct.test, ptr %87, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  store ptr %89, ptr %12, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %100, %84
  %91 = load ptr, ptr %12, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.test, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !18
  %94 = icmp ne ptr null, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %104

96:                                               ; preds = %90
  %97 = load ptr, ptr %12, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.test, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  call void %99()
  br label %100

100:                                              ; preds = %96
  %101 = load ptr, ptr %12, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.test, ptr %101, i32 0, i32 3
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  store ptr %103, ptr %12, align 8, !tbaa !9
  br label %90, !llvm.loop !19

104:                                              ; preds = %95
  br label %105

105:                                              ; preds = %257, %104
  %106 = load i64, ptr %8, align 8, !tbaa !11
  %107 = add i64 %106, -1
  store i64 %107, ptr %8, align 8, !tbaa !11
  %108 = icmp ne i64 %106, 0
  br i1 %108, label %109, label %260

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %110 = load ptr, ptr @test_tail, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.test, ptr %110, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !16
  %113 = getelementptr inbounds %struct.test, ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !16
  store ptr %114, ptr %14, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %253, %109
  %116 = load ptr, ptr %14, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.test, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !18
  %119 = icmp ne ptr null, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %115
  store i32 10, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %257

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %130

124:                                              ; preds = %121
  %125 = load ptr, ptr %14, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.test, ptr %125, i32 0, i32 2
  %127 = load i32, ptr %126, align 8, !tbaa !20
  %128 = icmp ne i32 %127, 0
  %129 = xor i1 %128, true
  br label %130

130:                                              ; preds = %124, %121
  %131 = phi i1 [ false, %121 ], [ %129, %124 ]
  %132 = zext i1 %131 to i32
  store i32 %132, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %133 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %133, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %134 = load ptr, ptr %17, align 8, !tbaa !9
  %135 = load i32, ptr %3, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %134, i64 %136
  store ptr %137, ptr %18, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %222, %130
  %139 = load ptr, ptr %18, align 8, !tbaa !9
  %140 = load ptr, ptr %17, align 8, !tbaa !9
  %141 = icmp ugt ptr %139, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %138
  store i32 13, ptr %15, align 4
  br label %225

143:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %144 = load ptr, ptr %18, align 8, !tbaa !9
  %145 = getelementptr inbounds ptr, ptr %144, i64 -1
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  store ptr %146, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %147 = load ptr, ptr %19, align 8, !tbaa !9
  %148 = getelementptr inbounds i8, ptr %147, i64 0
  %149 = load i8, ptr %148, align 1, !tbaa !13
  %150 = sext i8 %149 to i32
  store i32 %150, ptr %20, align 4, !tbaa !5
  %151 = load i32, ptr %20, align 4, !tbaa !5
  %152 = icmp eq i32 43, %151
  br i1 %152, label %153, label %156

153:                                              ; preds = %143
  %154 = load ptr, ptr %19, align 8, !tbaa !9
  %155 = getelementptr inbounds i8, ptr %154, i32 1
  store ptr %155, ptr %19, align 8, !tbaa !9
  br label %170

156:                                              ; preds = %143
  %157 = load i32, ptr %20, align 4, !tbaa !5
  %158 = icmp eq i32 45, %157
  br i1 %158, label %159, label %169

159:                                              ; preds = %156
  %160 = load ptr, ptr %19, align 8, !tbaa !9
  %161 = getelementptr inbounds i8, ptr %160, i64 1
  %162 = load i8, ptr %161, align 1, !tbaa !13
  %163 = sext i8 %162 to i32
  %164 = icmp eq i32 45, %163
  br i1 %164, label %165, label %166

165:                                              ; preds = %159
  store i32 15, ptr %15, align 4
  br label %219

166:                                              ; preds = %159
  %167 = load ptr, ptr %19, align 8, !tbaa !9
  %168 = getelementptr inbounds i8, ptr %167, i32 1
  store ptr %168, ptr %19, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %166, %156
  br label %170

170:                                              ; preds = %169, %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %171 = load ptr, ptr %19, align 8, !tbaa !9
  %172 = call i64 @strlen(ptr noundef %171) #7
  store i64 %172, ptr %21, align 8, !tbaa !11
  %173 = load i64, ptr %21, align 8, !tbaa !11
  %174 = icmp ult i64 0, %173
  br i1 %174, label %175, label %191

175:                                              ; preds = %170
  %176 = load ptr, ptr %19, align 8, !tbaa !9
  %177 = load i64, ptr %21, align 8, !tbaa !11
  %178 = sub i64 %177, 1
  %179 = getelementptr inbounds i8, ptr %176, i64 %178
  %180 = load i8, ptr %179, align 1, !tbaa !13
  %181 = sext i8 %180 to i32
  %182 = icmp eq i32 42, %181
  br i1 %182, label %183, label %191

183:                                              ; preds = %175
  %184 = load ptr, ptr %14, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.test, ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds [64 x i8], ptr %185, i64 0, i64 0
  %187 = load ptr, ptr %19, align 8, !tbaa !9
  %188 = load i64, ptr %21, align 8, !tbaa !11
  %189 = sub i64 %188, 1
  %190 = call i32 @strncmp(ptr noundef %186, ptr noundef %187, i64 noundef %189) #7
  br label %197

191:                                              ; preds = %175, %170
  %192 = load ptr, ptr %14, align 8, !tbaa !9
  %193 = getelementptr inbounds %struct.test, ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds [64 x i8], ptr %193, i64 0, i64 0
  %195 = load ptr, ptr %19, align 8, !tbaa !9
  %196 = call i32 @strcmp(ptr noundef %194, ptr noundef %195) #7
  br label %197

197:                                              ; preds = %191, %183
  %198 = phi i32 [ %190, %183 ], [ %196, %191 ]
  %199 = icmp eq i32 0, %198
  br i1 %199, label %200, label %217

200:                                              ; preds = %197
  %201 = load i32, ptr %20, align 4, !tbaa !5
  %202 = icmp eq i32 43, %201
  br i1 %202, label %203, label %204

203:                                              ; preds = %200
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %216

204:                                              ; preds = %200
  %205 = load i32, ptr %20, align 4, !tbaa !5
  %206 = icmp eq i32 45, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %204
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %215

208:                                              ; preds = %204
  %209 = load ptr, ptr %14, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.test, ptr %209, i32 0, i32 2
  %211 = load i32, ptr %210, align 8, !tbaa !20
  %212 = icmp ne i32 %211, 0
  %213 = xor i1 %212, true
  %214 = zext i1 %213 to i32
  store i32 %214, ptr %16, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %208, %207
  br label %216

216:                                              ; preds = %215, %203
  store i32 13, ptr %15, align 4
  br label %218

217:                                              ; preds = %197
  store i32 0, ptr %15, align 4
  br label %218

218:                                              ; preds = %217, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %219

219:                                              ; preds = %218, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %220 = load i32, ptr %15, align 4
  switch i32 %220, label %225 [
    i32 0, label %221
    i32 15, label %222
  ]

221:                                              ; preds = %219
  br label %222

222:                                              ; preds = %221, %219
  %223 = load ptr, ptr %18, align 8, !tbaa !9
  %224 = getelementptr inbounds ptr, ptr %223, i32 -1
  store ptr %224, ptr %18, align 8, !tbaa !9
  br label %138, !llvm.loop !21

225:                                              ; preds = %219, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %16, align 4, !tbaa !5
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %230, label %229

229:                                              ; preds = %226
  store i32 12, ptr %15, align 4
  br label %250

230:                                              ; preds = %226
  store i8 0, ptr @assert_buf, align 16, !tbaa !13
  %231 = load i32, ptr %7, align 4, !tbaa !5
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %243

233:                                              ; preds = %230
  store ptr @test_jmp_buf, ptr @test_jmp, align 8, !tbaa !9
  %234 = load ptr, ptr @test_jmp, align 8, !tbaa !9
  %235 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], ptr %234, i64 0, i64 0
  %236 = call i32 @_setjmp(ptr noundef %235) #9
  %237 = icmp eq i32 0, %236
  br i1 %237, label %238, label %242

238:                                              ; preds = %233
  %239 = load ptr, ptr %5, align 8, !tbaa !9
  %240 = load ptr, ptr %14, align 8, !tbaa !9
  %241 = load i32, ptr %13, align 4, !tbaa !5
  call void %239(ptr noundef %240, i32 noundef %241)
  br label %242

242:                                              ; preds = %238, %233
  store ptr null, ptr @test_jmp, align 8, !tbaa !9
  br label %247

243:                                              ; preds = %230
  %244 = load ptr, ptr %5, align 8, !tbaa !9
  %245 = load ptr, ptr %14, align 8, !tbaa !9
  %246 = load i32, ptr %13, align 4, !tbaa !5
  call void %244(ptr noundef %245, i32 noundef %246)
  br label %247

247:                                              ; preds = %243, %242
  %248 = load i32, ptr %13, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %15, align 4
  br label %250

250:                                              ; preds = %247, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %251 = load i32, ptr %15, align 4
  switch i32 %251, label %261 [
    i32 0, label %252
    i32 12, label %253
  ]

252:                                              ; preds = %250
  br label %253

253:                                              ; preds = %252, %250
  %254 = load ptr, ptr %14, align 8, !tbaa !9
  %255 = getelementptr inbounds %struct.test, ptr %254, i32 0, i32 3
  %256 = load ptr, ptr %255, align 8, !tbaa !16
  store ptr %256, ptr %14, align 8, !tbaa !9
  br label %115, !llvm.loop !22

257:                                              ; preds = %120
  %258 = load ptr, ptr %5, align 8, !tbaa !9
  %259 = load i32, ptr %13, align 4, !tbaa !5
  call void %258(ptr noundef null, i32 noundef %259)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %105, !llvm.loop !23

260:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void

261:                                              ; preds = %250
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden void @do_test_default(ptr noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden void @do_test_list(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @do_test_tap(ptr noundef, i32 noundef) #1

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #5

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

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

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


; 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.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@test_suite_tail = external hidden local_unnamed_addr global ptr, align 8
@test_tail = external hidden local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@assert_buf = external hidden local_unnamed_addr global [256 x i8], align 16
@test_jmp_buf = external hidden global [1 x %struct.__jmp_buf_tag], align 16
@test_jmp = external hidden local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @tlib_run_tests(i32 noundef %0, ptr noundef readonly %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %1, i64 8
  %4 = sext i32 %0 to i64
  %5 = getelementptr ptr, ptr %3, i64 %4
  %6 = getelementptr i8, ptr %5, i64 -8
  %7 = icmp ugt ptr %6, %3
  br i1 %7, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %37
  %8 = icmp eq i32 %.171, 0
  %9 = icmp eq i32 %.173, 0
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %2
  %.075.lcssa = phi i64 [ 1, %2 ], [ %.176, %._crit_edge.loopexit ]
  %.072.lcssa = phi i1 [ true, %2 ], [ %9, %._crit_edge.loopexit ]
  %.070.lcssa = phi i1 [ false, %2 ], [ %8, %._crit_edge.loopexit ]
  %.061.lcssa = phi ptr [ @do_test_default, %2 ], [ %.1, %._crit_edge.loopexit ]
  %10 = load ptr, ptr @test_suite_tail, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 80
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %.069.in114 = getelementptr inbounds i8, ptr %12, i64 80
  %.069115 = load ptr, ptr %.069.in114, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %.069115, i64 64
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  %.not116 = icmp eq ptr %14, null
  br i1 %.not116, label %.preheader, label %.lr.ph119

.lr.ph:                                           ; preds = %2, %37
  %.061110 = phi ptr [ %.1, %37 ], [ @do_test_default, %2 ]
  %.070109 = phi i32 [ %.171, %37 ], [ 1, %2 ]
  %.072108 = phi i32 [ %.173, %37 ], [ 0, %2 ]
  %.074107 = phi ptr [ %38, %37 ], [ %3, %2 ]
  %.075106 = phi i64 [ %.176, %37 ], [ 1, %2 ]
  %15 = load ptr, ptr %.074107, align 8, !tbaa !5
  %16 = load i8, ptr %15, align 1, !tbaa !13
  %17 = icmp eq i8 %16, 45
  br i1 %17, label %18, label %37

18:                                               ; preds = %.lr.ph
  %19 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull dereferenceable(1) %15) #5
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %37, label %21

21:                                               ; preds = %18
  %22 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull dereferenceable(1) %15) #5
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %37, label %24

24:                                               ; preds = %21
  %25 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull dereferenceable(1) %15) #5
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %37, label %27

27:                                               ; preds = %24
  %28 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull dereferenceable(1) %15) #5
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %37, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %15, i64 1
  %32 = load i8, ptr %31, align 1, !tbaa !13
  %33 = icmp eq i8 %32, 45
  br i1 %33, label %34, label %37

34:                                               ; preds = %30
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.4, ptr noundef nonnull %15) #6
  call void @exit(i32 noundef 2) #7
  unreachable

37:                                               ; preds = %.lr.ph, %27, %24, %21, %18, %30
  %.176 = phi i64 [ %.075106, %30 ], [ %.075106, %18 ], [ %.075106, %21 ], [ %.075106, %24 ], [ -1, %27 ], [ %.075106, %.lr.ph ]
  %.173 = phi i32 [ %.072108, %30 ], [ %.072108, %18 ], [ %.072108, %21 ], [ 1, %24 ], [ %.072108, %27 ], [ %.072108, %.lr.ph ]
  %.171 = phi i32 [ %.070109, %30 ], [ %.070109, %18 ], [ %.070109, %21 ], [ %.070109, %24 ], [ %.070109, %27 ], [ 0, %.lr.ph ]
  %.1 = phi ptr [ %.061110, %30 ], [ @do_test_list, %18 ], [ @do_test_tap, %21 ], [ %.061110, %24 ], [ %.061110, %27 ], [ %.061110, %.lr.ph ]
  %38 = getelementptr inbounds i8, ptr %.074107, i64 8
  %39 = icmp ugt ptr %6, %38
  br i1 %39, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

.preheader:                                       ; preds = %.lr.ph119, %._crit_edge
  %40 = add nsw i64 %.075.lcssa, -1
  %.not83150 = icmp eq i64 %.075.lcssa, 0
  br i1 %.not83150, label %._crit_edge152, label %.lr.ph151

.lr.ph151:                                        ; preds = %.preheader
  br i1 %7, label %.lr.ph151.split.us, label %.lr.ph151.split

.lr.ph151.split.us:                               ; preds = %.lr.ph151, %._crit_edge135.split.us.us
  %41 = phi i64 [ %47, %._crit_edge135.split.us.us ], [ %40, %.lr.ph151 ]
  %42 = load ptr, ptr @test_tail, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 80
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %.066.in127.us = getelementptr inbounds i8, ptr %44, i64 80
  %.066128.us = load ptr, ptr %.066.in127.us, align 8, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %.066128.us, i64 64
  %46 = load ptr, ptr %45, align 8, !tbaa !12
  %.not84129.us = icmp eq ptr %46, null
  br i1 %.not84129.us, label %._crit_edge135.split.us.us, label %.lr.ph134.us

._crit_edge135.split.us.us:                       ; preds = %.thread.thread.us.us, %.lr.ph151.split.us
  %.067.lcssa.us = phi i32 [ 0, %.lr.ph151.split.us ], [ %.168.us.us, %.thread.thread.us.us ]
  call void %.061.lcssa(ptr noundef null, i32 noundef %.067.lcssa.us) #8, !callees !16
  %47 = add i64 %41, -1
  %.not83.us = icmp eq i64 %41, 0
  br i1 %.not83.us, label %._crit_edge152, label %.lr.ph151.split.us, !llvm.loop !17

.lr.ph134.us:                                     ; preds = %.lr.ph151.split.us, %.thread.thread.us.us
  %.066132.us.us = phi ptr [ %.066.us.us, %.thread.thread.us.us ], [ %.066128.us, %.lr.ph151.split.us ]
  %.067130.us.us = phi i32 [ %.168.us.us, %.thread.thread.us.us ], [ 0, %.lr.ph151.split.us ]
  br i1 %.070.lcssa, label %.lr.ph123.us.us, label %48

48:                                               ; preds = %.lr.ph134.us
  %49 = getelementptr inbounds i8, ptr %.066132.us.us, i64 72
  %50 = load i32, ptr %49, align 8, !tbaa !18
  %.not86.us.us = icmp eq i32 %50, 0
  br label %.lr.ph123.us.us

.lr.ph123.us.us:                                  ; preds = %48, %.lr.ph134.us
  %51 = phi i1 [ false, %.lr.ph134.us ], [ %.not86.us.us, %48 ]
  br label %52

52:                                               ; preds = %.thread95.us.us, %.lr.ph123.us.us
  %.060121.us.us = phi ptr [ %6, %.lr.ph123.us.us ], [ %53, %.thread95.us.us ]
  %53 = getelementptr inbounds i8, ptr %.060121.us.us, i64 -8
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = load i8, ptr %54, align 1, !tbaa !13
  %56 = icmp eq i8 %55, 43
  br i1 %56, label %63, label %57

57:                                               ; preds = %52
  %58 = icmp eq i8 %55, 45
  br i1 %58, label %59, label %65

59:                                               ; preds = %57
  %60 = getelementptr inbounds i8, ptr %54, i64 1
  %61 = load i8, ptr %60, align 1, !tbaa !13
  %62 = icmp eq i8 %61, 45
  br i1 %62, label %.thread95.us.us, label %65

63:                                               ; preds = %52
  %64 = getelementptr inbounds i8, ptr %54, i64 1
  br label %65

65:                                               ; preds = %63, %59, %57
  %.0.us.us = phi ptr [ %64, %63 ], [ %54, %57 ], [ %60, %59 ]
  %66 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0.us.us) #5
  %.not87.us.us = icmp eq i64 %66, 0
  br i1 %.not87.us.us, label %74, label %67

67:                                               ; preds = %65
  %68 = add i64 %66, -1
  %69 = getelementptr inbounds i8, ptr %.0.us.us, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !13
  %71 = icmp eq i8 %70, 42
  br i1 %71, label %72, label %74

72:                                               ; preds = %67
  %73 = call i32 @strncmp(ptr noundef %.066132.us.us, ptr noundef nonnull %.0.us.us, i64 noundef %68) #5
  br label %76

74:                                               ; preds = %67, %65
  %75 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.066132.us.us, ptr noundef nonnull dereferenceable(1) %.0.us.us) #5
  br label %76

76:                                               ; preds = %74, %72
  %77 = phi i32 [ %73, %72 ], [ %75, %74 ]
  %78 = icmp ne i32 %77, 0
  %brmerge.us.us = or i1 %56, %78
  br i1 %brmerge.us.us, label %84, label %79

79:                                               ; preds = %76
  %80 = icmp eq i8 %55, 45
  br i1 %80, label %.thread.thread.us.us, label %81

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %.066132.us.us, i64 72
  %83 = load i32, ptr %82, align 8, !tbaa !18
  %.not88.us.us = icmp eq i32 %83, 0
  br label %.thread.us.us

84:                                               ; preds = %76
  br i1 %78, label %.thread95.us.us, label %.critedge

.thread.us.us:                                    ; preds = %.thread95.us.us, %81
  %.4.us.us.shrunk = phi i1 [ %.not88.us.us, %81 ], [ %51, %.thread95.us.us ]
  br i1 %.4.us.us.shrunk, label %.critedge, label %.thread.thread.us.us

.critedge:                                        ; preds = %84, %.thread.us.us
  store i8 0, ptr @assert_buf, align 16, !tbaa !13
  br i1 %.072.lcssa, label %90, label %85

85:                                               ; preds = %.critedge
  store ptr @test_jmp_buf, ptr @test_jmp, align 8, !tbaa !5
  %86 = call i32 @_setjmp(ptr noundef nonnull @test_jmp_buf) #9
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %85
  call void %.061.lcssa(ptr noundef %.066132.us.us, i32 noundef %.067130.us.us) #8, !callees !16
  br label %89

89:                                               ; preds = %88, %85
  store ptr null, ptr @test_jmp, align 8, !tbaa !5
  br label %91

90:                                               ; preds = %.critedge
  call void %.061.lcssa(ptr noundef %.066132.us.us, i32 noundef %.067130.us.us) #8, !callees !16
  br label %91

91:                                               ; preds = %90, %89
  %92 = add nsw i32 %.067130.us.us, 1
  br label %.thread.thread.us.us

.thread.thread.us.us:                             ; preds = %91, %.thread.us.us, %79
  %.168.us.us = phi i32 [ %92, %91 ], [ %.067130.us.us, %.thread.us.us ], [ %.067130.us.us, %79 ]
  %.066.in.us.us = getelementptr inbounds i8, ptr %.066132.us.us, i64 80
  %.066.us.us = load ptr, ptr %.066.in.us.us, align 8, !tbaa !9
  %93 = getelementptr inbounds i8, ptr %.066.us.us, i64 64
  %94 = load ptr, ptr %93, align 8, !tbaa !12
  %.not84.us.us = icmp eq ptr %94, null
  br i1 %.not84.us.us, label %._crit_edge135.split.us.us, label %.lr.ph134.us, !llvm.loop !19

.thread95.us.us:                                  ; preds = %84, %59
  %95 = icmp ugt ptr %53, %3
  br i1 %95, label %52, label %.thread.us.us, !llvm.loop !20

.lr.ph151.split:                                  ; preds = %.lr.ph151
  br i1 %.072.lcssa, label %.lr.ph151.split.split.us, label %.lr.ph151.split.split

.lr.ph151.split.split.us:                         ; preds = %.lr.ph151.split
  br i1 %.070.lcssa, label %.lr.ph151.split.split.us.split.us, label %.lr.ph151.split.split.us.split

.lr.ph151.split.split.us.split.us:                ; preds = %.lr.ph151.split.split.us, %.lr.ph151.split.split.us.split.us
  %96 = phi i64 [ %97, %.lr.ph151.split.split.us.split.us ], [ %40, %.lr.ph151.split.split.us ]
  call void %.061.lcssa(ptr noundef null, i32 noundef 0) #8, !callees !16
  %97 = add i64 %96, -1
  %.not83.us157.us = icmp eq i64 %96, 0
  br i1 %.not83.us157.us, label %._crit_edge152, label %.lr.ph151.split.split.us.split.us, !llvm.loop !17

.lr.ph151.split.split.us.split:                   ; preds = %.lr.ph151.split.split.us, %._crit_edge135.split.split.us.split.us164
  %98 = phi i64 [ %104, %._crit_edge135.split.split.us.split.us164 ], [ %40, %.lr.ph151.split.split.us ]
  %99 = load ptr, ptr @test_tail, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 80
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %.066.in127.us153 = getelementptr inbounds i8, ptr %101, i64 80
  %.066128.us154 = load ptr, ptr %.066.in127.us153, align 8, !tbaa !9
  %102 = getelementptr inbounds i8, ptr %.066128.us154, i64 64
  %103 = load ptr, ptr %102, align 8, !tbaa !12
  %.not84129.us155 = icmp eq ptr %103, null
  br i1 %.not84129.us155, label %._crit_edge135.split.split.us.split.us164, label %.thread.loopexit.us140.us159

._crit_edge135.split.split.us.split.us164:        ; preds = %.thread.thread.us142.us, %.lr.ph151.split.split.us.split
  %.067.lcssa.us156 = phi i32 [ 0, %.lr.ph151.split.split.us.split ], [ %.168.us143.us, %.thread.thread.us142.us ]
  call void %.061.lcssa(ptr noundef null, i32 noundef %.067.lcssa.us156) #8, !callees !16
  %104 = add i64 %98, -1
  %.not83.us157 = icmp eq i64 %98, 0
  br i1 %.not83.us157, label %._crit_edge152, label %.lr.ph151.split.split.us.split, !llvm.loop !17

.thread.loopexit.us140.us159:                     ; preds = %.lr.ph151.split.split.us.split, %.thread.thread.us142.us
  %.066132.us137.us160 = phi ptr [ %.066.us145.us162, %.thread.thread.us142.us ], [ %.066128.us154, %.lr.ph151.split.split.us.split ]
  %.067130.us138.us = phi i32 [ %.168.us143.us, %.thread.thread.us142.us ], [ 0, %.lr.ph151.split.split.us.split ]
  %105 = getelementptr inbounds i8, ptr %.066132.us137.us160, i64 72
  %106 = load i32, ptr %105, align 8, !tbaa !18
  %.not86.us139.us.not = icmp eq i32 %106, 0
  br i1 %.not86.us139.us.not, label %107, label %.thread.thread.us142.us

107:                                              ; preds = %.thread.loopexit.us140.us159
  store i8 0, ptr @assert_buf, align 16, !tbaa !13
  call void %.061.lcssa(ptr noundef nonnull %.066132.us137.us160, i32 noundef %.067130.us138.us) #8, !callees !16
  %108 = add nsw i32 %.067130.us138.us, 1
  br label %.thread.thread.us142.us

.thread.thread.us142.us:                          ; preds = %107, %.thread.loopexit.us140.us159
  %.168.us143.us = phi i32 [ %108, %107 ], [ %.067130.us138.us, %.thread.loopexit.us140.us159 ]
  %.066.in.us144.us161 = getelementptr inbounds i8, ptr %.066132.us137.us160, i64 80
  %.066.us145.us162 = load ptr, ptr %.066.in.us144.us161, align 8, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %.066.us145.us162, i64 64
  %110 = load ptr, ptr %109, align 8, !tbaa !12
  %.not84.us146.us163 = icmp eq ptr %110, null
  br i1 %.not84.us146.us163, label %._crit_edge135.split.split.us.split.us164, label %.thread.loopexit.us140.us159, !llvm.loop !19

.lr.ph119:                                        ; preds = %._crit_edge, %.lr.ph119
  %111 = phi ptr [ %113, %.lr.ph119 ], [ %14, %._crit_edge ]
  %.069117 = phi ptr [ %.069, %.lr.ph119 ], [ %.069115, %._crit_edge ]
  call void %111() #8
  %.069.in = getelementptr inbounds i8, ptr %.069117, i64 80
  %.069 = load ptr, ptr %.069.in, align 8, !tbaa !9
  %112 = getelementptr inbounds i8, ptr %.069, i64 64
  %113 = load ptr, ptr %112, align 8, !tbaa !12
  %.not = icmp eq ptr %113, null
  br i1 %.not, label %.preheader, label %.lr.ph119, !llvm.loop !21

.lr.ph151.split.split:                            ; preds = %.lr.ph151.split, %._crit_edge135.split.split
  %114 = phi i64 [ %120, %._crit_edge135.split.split ], [ %40, %.lr.ph151.split ]
  %115 = load ptr, ptr @test_tail, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 80
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  %.066.in127 = getelementptr inbounds i8, ptr %117, i64 80
  %.066128 = load ptr, ptr %.066.in127, align 8, !tbaa !9
  %118 = getelementptr inbounds i8, ptr %.066128, i64 64
  %119 = load ptr, ptr %118, align 8, !tbaa !12
  %.not84129 = icmp eq ptr %119, null
  br i1 %.not84129, label %._crit_edge135.split.split, label %.lr.ph134

._crit_edge135.split.split:                       ; preds = %.thread.thread, %.lr.ph151.split.split
  %.067.lcssa = phi i32 [ 0, %.lr.ph151.split.split ], [ %.168, %.thread.thread ]
  call void %.061.lcssa(ptr noundef null, i32 noundef %.067.lcssa) #8, !callees !16
  %120 = add i64 %114, -1
  %.not83 = icmp eq i64 %114, 0
  br i1 %.not83, label %._crit_edge152, label %.lr.ph151.split.split, !llvm.loop !17

.lr.ph134:                                        ; preds = %.lr.ph151.split.split, %.thread.thread
  %.066132 = phi ptr [ %.066, %.thread.thread ], [ %.066128, %.lr.ph151.split.split ]
  %.067130 = phi i32 [ %.168, %.thread.thread ], [ 0, %.lr.ph151.split.split ]
  br i1 %.070.lcssa, label %.thread.thread, label %.thread.loopexit

.thread.loopexit:                                 ; preds = %.lr.ph134
  %121 = getelementptr inbounds i8, ptr %.066132, i64 72
  %122 = load i32, ptr %121, align 8, !tbaa !18
  %.not86 = icmp eq i32 %122, 0
  br i1 %.not86, label %123, label %.thread.thread

123:                                              ; preds = %.thread.loopexit
  store i8 0, ptr @assert_buf, align 16, !tbaa !13
  store ptr @test_jmp_buf, ptr @test_jmp, align 8, !tbaa !5
  %124 = call i32 @_setjmp(ptr noundef nonnull @test_jmp_buf) #9
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  call void %.061.lcssa(ptr noundef nonnull %.066132, i32 noundef %.067130) #8, !callees !16
  br label %127

127:                                              ; preds = %126, %123
  store ptr null, ptr @test_jmp, align 8, !tbaa !5
  %128 = add nsw i32 %.067130, 1
  br label %.thread.thread

.thread.thread:                                   ; preds = %.lr.ph134, %.thread.loopexit, %127
  %.168 = phi i32 [ %128, %127 ], [ %.067130, %.thread.loopexit ], [ %.067130, %.lr.ph134 ]
  %.066.in = getelementptr inbounds i8, ptr %.066132, i64 80
  %.066 = load ptr, ptr %.066.in, align 8, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %.066, i64 64
  %130 = load ptr, ptr %129, align 8, !tbaa !12
  %.not84 = icmp eq ptr %130, null
  br i1 %.not84, label %._crit_edge135.split.split, label %.lr.ph134, !llvm.loop !19

._crit_edge152:                                   ; preds = %._crit_edge135.split.split, %._crit_edge135.split.split.us.split.us164, %.lr.ph151.split.split.us.split.us, %._crit_edge135.split.us.us, %.preheader
  ret void
}

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

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

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

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

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

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

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

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

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(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 = { 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 #2 = { 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 #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 returns_twice "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 willreturn memory(read) }
attributes #6 = { cold nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind }
attributes #9 = { nounwind returns_twice }

!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, !6, i64 80}
!10 = !{!"test", !7, i64 0, !6, i64 64, !11, i64 72, !6, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 64}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{ptr @do_test_default, ptr @do_test_list, ptr @do_test_tap}
!17 = distinct !{!17, !15}
!18 = !{!10, !11, i64 72}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


; Effective O3 passes: ADCEPass,CalledValuePropagationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass