; LLVM IR from theck01/offbrand_lib :: apps/minlog/src/funct (minlog_funct)

; 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.re_pattern_buffer = type { ptr, i64, i64, i64, ptr, ptr, i64, i8 }
%struct.regmatch_t = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [46 x i8], align 1
@__PRETTY_FUNCTION__.parseEqnString = external hidden unnamed_addr constant [70 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 x i8], align 1
@stderr = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @parseEqnString(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef zeroext %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca [1024 x i8], align 16
  %11 = alloca [1024 x i8], align 16
  %12 = alloca ptr, align 8
  %13 = alloca [1024 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i16, align 2
  %17 = alloca i16, align 2
  %18 = alloca %struct.re_pattern_buffer, align 8
  %19 = alloca %struct.re_pattern_buffer, align 8
  %20 = alloca %struct.re_pattern_buffer, align 8
  %21 = alloca %struct.re_pattern_buffer, align 8
  %22 = alloca %struct.regmatch_t, align 4
  %23 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i8 %3, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %24 = call i32 @regcomp(ptr noundef %18, ptr noundef @.str.2, i32 noundef 1)
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %4
  br label %28

27:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 40, ptr noundef @__PRETTY_FUNCTION__.parseEqnString) #7
  unreachable

28:                                               ; preds = %26
  %29 = call i32 @regcomp(ptr noundef %19, ptr noundef @.str.4, i32 noundef 1)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  br label %33

32:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 41, ptr noundef @__PRETTY_FUNCTION__.parseEqnString) #7
  unreachable

33:                                               ; preds = %31
  %34 = call i32 @regcomp(ptr noundef %21, ptr noundef @.str.6, i32 noundef 1)
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  br label %38

37:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 42, ptr noundef @__PRETTY_FUNCTION__.parseEqnString) #7
  unreachable

38:                                               ; preds = %36
  %39 = call i32 @regcomp(ptr noundef %20, ptr noundef @.str.8, i32 noundef 1)
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  br label %43

42:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 43, ptr noundef @__PRETTY_FUNCTION__.parseEqnString) #7
  unreachable

43:                                               ; preds = %41
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  call void @obvector_clear(ptr noundef %44)
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  call void @obvector_clear(ptr noundef %45)
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call i32 @regexec(ptr noundef %18, ptr noundef %46, i64 noundef 1, ptr noundef %22, i32 noundef 3)
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %53, label %49

49:                                               ; preds = %43
  %50 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %51 = load i32, ptr %50, align 4, !tbaa !10
  %52 = trunc i32 %51 to i16
  store i16 %52, ptr %16, align 2, !tbaa !13
  br label %54

53:                                               ; preds = %43
  store i16 -1, ptr %16, align 2, !tbaa !13
  br label %54

54:                                               ; preds = %53, %49
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call i32 @regexec(ptr noundef %21, ptr noundef %55, i64 noundef 1, ptr noundef %22, i32 noundef 3)
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %62, label %58

58:                                               ; preds = %54
  %59 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %60 = load i32, ptr %59, align 4, !tbaa !10
  %61 = trunc i32 %60 to i16
  store i16 %61, ptr %17, align 2, !tbaa !13
  store i8 1, ptr %9, align 1, !tbaa !9
  br label %74

62:                                               ; preds = %54
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call i32 @regexec(ptr noundef %20, ptr noundef %63, i64 noundef 1, ptr noundef %22, i32 noundef 3)
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %70, label %66

66:                                               ; preds = %62
  %67 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !10
  %69 = trunc i32 %68 to i16
  store i16 %69, ptr %17, align 2, !tbaa !13
  store i8 0, ptr %9, align 1, !tbaa !9
  br label %73

70:                                               ; preds = %62
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.10) #6
  call void @exit(i32 noundef 1) #7
  unreachable

73:                                               ; preds = %66
  br label %74

74:                                               ; preds = %73, %58
  %75 = load i16, ptr %16, align 2, !tbaa !13
  %76 = sext i16 %75 to i32
  %77 = icmp eq i32 %76, -1
  br i1 %77, label %78, label %83

78:                                               ; preds = %74
  %79 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = call ptr @strncpy(ptr noundef %79, ptr noundef %80, i64 noundef 1024) #6
  %82 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 1023
  store i8 0, ptr %82, align 1, !tbaa !9
  br label %132

83:                                               ; preds = %74
  %84 = load i16, ptr %16, align 2, !tbaa !13
  %85 = sext i16 %84 to i32
  %86 = load i16, ptr %17, align 2, !tbaa !13
  %87 = sext i16 %86 to i32
  %88 = icmp slt i32 %85, %87
  br i1 %88, label %89, label %110

89:                                               ; preds = %83
  %90 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load i16, ptr %17, align 2, !tbaa !13
  %93 = sext i16 %92 to i64
  %94 = call ptr @strncpy(ptr noundef %90, ptr noundef %91, i64 noundef %93) #6
  %95 = load i16, ptr %17, align 2, !tbaa !13
  %96 = sext i16 %95 to i64
  %97 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 %96
  store i8 0, ptr %97, align 1, !tbaa !9
  %98 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load i16, ptr %17, align 2, !tbaa !13
  %101 = sext i16 %100 to i32
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i8, ptr %99, i64 %102
  %104 = load i16, ptr %17, align 2, !tbaa !13
  %105 = sext i16 %104 to i32
  %106 = sub nsw i32 1024, %105
  %107 = sext i32 %106 to i64
  %108 = call ptr @strncpy(ptr noundef %98, ptr noundef %103, i64 noundef %107) #6
  %109 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 1023
  store i8 0, ptr %109, align 1, !tbaa !9
  br label %131

110:                                              ; preds = %83
  %111 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load i16, ptr %16, align 2, !tbaa !13
  %114 = sext i16 %113 to i64
  %115 = call ptr @strncpy(ptr noundef %111, ptr noundef %112, i64 noundef %114) #6
  %116 = load i16, ptr %16, align 2, !tbaa !13
  %117 = sext i16 %116 to i64
  %118 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %117
  store i8 0, ptr %118, align 1, !tbaa !9
  %119 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load i16, ptr %16, align 2, !tbaa !13
  %122 = sext i16 %121 to i32
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i8, ptr %120, i64 %123
  %125 = load i16, ptr %16, align 2, !tbaa !13
  %126 = sext i16 %125 to i32
  %127 = sub nsw i32 1024, %126
  %128 = sext i32 %127 to i64
  %129 = call ptr @strncpy(ptr noundef %119, ptr noundef %124, i64 noundef %128) #6
  %130 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 1023
  store i8 0, ptr %130, align 1, !tbaa !9
  br label %131

131:                                              ; preds = %110, %89
  br label %132

132:                                              ; preds = %131, %78
  %133 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  store ptr %133, ptr %12, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %139, %132
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = call i32 @regexec(ptr noundef %19, ptr noundef %135, i64 noundef 1, ptr noundef %22, i32 noundef 3)
  %137 = icmp ne i32 %136, 0
  %138 = xor i1 %137, true
  br i1 %138, label %139, label %176

139:                                              ; preds = %134
  %140 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %143 = load i32, ptr %142, align 4, !tbaa !10
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %141, i64 %144
  %146 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 1
  %147 = load i32, ptr %146, align 4, !tbaa !15
  %148 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %149 = load i32, ptr %148, align 4, !tbaa !10
  %150 = sub nsw i32 %147, %149
  %151 = sext i32 %150 to i64
  %152 = call ptr @strncpy(ptr noundef %140, ptr noundef %145, i64 noundef %151) #6
  %153 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !15
  %155 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %156 = load i32, ptr %155, align 4, !tbaa !10
  %157 = sub nsw i32 %154, %156
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 %158
  store i8 0, ptr %159, align 1, !tbaa !9
  %160 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %161 = call i32 @atoi(ptr noundef %160) #8
  store i32 %161, ptr %14, align 4, !tbaa !16
  %162 = load i32, ptr %14, align 4, !tbaa !16
  %163 = call ptr @createTerm(i32 noundef %162)
  store ptr %163, ptr %23, align 8, !tbaa !5
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = load ptr, ptr %23, align 8, !tbaa !5
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = call i32 @obvector_length(ptr noundef %166)
  %168 = zext i32 %167 to i64
  call void @obvector_store_at_index(ptr noundef %164, ptr noundef %165, i64 noundef %168)
  %169 = load ptr, ptr %23, align 8, !tbaa !5
  %170 = call ptr @ob_release(ptr noundef %169)
  %171 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 1
  %172 = load i32, ptr %171, align 4, !tbaa !15
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = sext i32 %172 to i64
  %175 = getelementptr inbounds i8, ptr %173, i64 %174
  store ptr %175, ptr %12, align 8, !tbaa !5
  br label %134, !llvm.loop !17

176:                                              ; preds = %134
  %177 = load i16, ptr %16, align 2, !tbaa !13
  %178 = sext i16 %177 to i32
  %179 = icmp ne i32 %178, -1
  br i1 %179, label %180, label %225

180:                                              ; preds = %176
  %181 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  store ptr %181, ptr %12, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %187, %180
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = call i32 @regexec(ptr noundef %19, ptr noundef %183, i64 noundef 1, ptr noundef %22, i32 noundef 3)
  %185 = icmp ne i32 %184, 0
  %186 = xor i1 %185, true
  br i1 %186, label %187, label %224

187:                                              ; preds = %182
  %188 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %189 = load ptr, ptr %12, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %191 = load i32, ptr %190, align 4, !tbaa !10
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i8, ptr %189, i64 %192
  %194 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 1
  %195 = load i32, ptr %194, align 4, !tbaa !15
  %196 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %197 = load i32, ptr %196, align 4, !tbaa !10
  %198 = sub nsw i32 %195, %197
  %199 = sext i32 %198 to i64
  %200 = call ptr @strncpy(ptr noundef %188, ptr noundef %193, i64 noundef %199) #6
  %201 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !15
  %203 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 0
  %204 = load i32, ptr %203, align 4, !tbaa !10
  %205 = sub nsw i32 %202, %204
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 %206
  store i8 0, ptr %207, align 1, !tbaa !9
  %208 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %209 = call i32 @atoi(ptr noundef %208) #8
  store i32 %209, ptr %14, align 4, !tbaa !16
  %210 = load i32, ptr %14, align 4, !tbaa !16
  %211 = call ptr @createTerm(i32 noundef %210)
  store ptr %211, ptr %23, align 8, !tbaa !5
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = load ptr, ptr %23, align 8, !tbaa !5
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = call i32 @obvector_length(ptr noundef %214)
  %216 = zext i32 %215 to i64
  call void @obvector_store_at_index(ptr noundef %212, ptr noundef %213, i64 noundef %216)
  %217 = load ptr, ptr %23, align 8, !tbaa !5
  %218 = call ptr @ob_release(ptr noundef %217)
  %219 = getelementptr inbounds %struct.regmatch_t, ptr %22, i32 0, i32 1
  %220 = load i32, ptr %219, align 4, !tbaa !15
  %221 = load ptr, ptr %12, align 8, !tbaa !5
  %222 = sext i32 %220 to i64
  %223 = getelementptr inbounds i8, ptr %221, i64 %222
  store ptr %223, ptr %12, align 8, !tbaa !5
  br label %182, !llvm.loop !19

224:                                              ; preds = %182
  br label %225

225:                                              ; preds = %224, %176
  call void @regfree(ptr noundef %19)
  call void @regfree(ptr noundef %18)
  call void @regfree(ptr noundef %21)
  call void @regfree(ptr noundef %20)
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = call i32 @obvector_length(ptr noundef %226)
  %228 = icmp eq i32 %227, 0
  br i1 %228, label %229, label %232

229:                                              ; preds = %225
  %230 = load ptr, ptr @stderr, align 8, !tbaa !5
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.11) #6
  call void @exit(i32 noundef 1) #7
  unreachable

232:                                              ; preds = %225
  %233 = load i8, ptr %8, align 1, !tbaa !9
  %234 = icmp ne i8 %233, 0
  br i1 %234, label %235, label %285

235:                                              ; preds = %232
  %236 = load i8, ptr %9, align 1, !tbaa !9
  %237 = zext i8 %236 to i32
  %238 = icmp eq i32 %237, 0
  br i1 %238, label %239, label %241

239:                                              ; preds = %235
  %240 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  br label %243

241:                                              ; preds = %235
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %243

243:                                              ; preds = %241, %239
  store i32 0, ptr %15, align 4, !tbaa !16
  br label %244

244:                                              ; preds = %256, %243
  %245 = load i32, ptr %15, align 4, !tbaa !16
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = call i32 @obvector_length(ptr noundef %246)
  %248 = icmp ult i32 %245, %247
  br i1 %248, label %249, label %259

249:                                              ; preds = %244
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load i32, ptr %15, align 4, !tbaa !16
  %252 = zext i32 %251 to i64
  %253 = call ptr @obvector_obj_at_index(ptr noundef %250, i64 noundef %252)
  %254 = call i32 @getTermValue(ptr noundef %253)
  %255 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %254)
  br label %256

256:                                              ; preds = %249
  %257 = load i32, ptr %15, align 4, !tbaa !16
  %258 = add i32 %257, 1
  store i32 %258, ptr %15, align 4, !tbaa !16
  br label %244, !llvm.loop !20

259:                                              ; preds = %244
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = call i32 @obvector_length(ptr noundef %261)
  %263 = icmp ugt i32 %262, 0
  br i1 %263, label %264, label %282

264:                                              ; preds = %259
  %265 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  store i32 0, ptr %15, align 4, !tbaa !16
  br label %266

266:                                              ; preds = %278, %264
  %267 = load i32, ptr %15, align 4, !tbaa !16
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = call i32 @obvector_length(ptr noundef %268)
  %270 = icmp ult i32 %267, %269
  br i1 %270, label %271, label %281

271:                                              ; preds = %266
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = load i32, ptr %15, align 4, !tbaa !16
  %274 = zext i32 %273 to i64
  %275 = call ptr @obvector_obj_at_index(ptr noundef %272, i64 noundef %274)
  %276 = call i32 @getTermValue(ptr noundef %275)
  %277 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %276)
  br label %278

278:                                              ; preds = %271
  %279 = load i32, ptr %15, align 4, !tbaa !16
  %280 = add i32 %279, 1
  store i32 %280, ptr %15, align 4, !tbaa !16
  br label %266, !llvm.loop !21

281:                                              ; preds = %266
  br label %284

282:                                              ; preds = %259
  %283 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %284

284:                                              ; preds = %282, %281
  br label %285

285:                                              ; preds = %284, %232
  %286 = load i8, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  ret i8 %286
}

declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #3

declare void @obvector_clear(ptr noundef) #3

declare i32 @regexec(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) #3

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

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

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

declare ptr @createTerm(i32 noundef) #3

declare void @obvector_store_at_index(ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @obvector_length(ptr noundef) #3

declare ptr @ob_release(ptr noundef) #3

declare void @regfree(ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #3

declare i32 @getTermValue(ptr noundef) #3

declare ptr @obvector_obj_at_index(ptr noundef, i64 noundef) #3

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

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

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


; 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.re_pattern_buffer = type { ptr, i64, i64, i64, ptr, ptr, i64, i8 }
%struct.regmatch_t = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [46 x i8], align 1
@__PRETTY_FUNCTION__.parseEqnString = external hidden unnamed_addr constant [70 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @parseEqnString(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef zeroext %3) local_unnamed_addr #2 {
  %5 = alloca [1024 x i8], align 16
  %6 = alloca [1024 x i8], align 16
  %7 = alloca [1024 x i8], align 16
  %8 = alloca %struct.re_pattern_buffer, align 8
  %9 = alloca %struct.re_pattern_buffer, align 8
  %10 = alloca %struct.re_pattern_buffer, align 8
  %11 = alloca %struct.re_pattern_buffer, align 8
  %12 = alloca %struct.regmatch_t, align 4
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %13 = call i32 @regcomp(ptr noundef nonnull %8, ptr noundef nonnull @.str.2, i32 noundef 1) #7
  %14 = icmp eq i32 %13, 0
  %.sink86.sroa.gep = getelementptr inbounds i8, ptr %5, i64 1023
  %.sink86.sroa.gep87 = getelementptr inbounds i8, ptr %6, i64 1023
  %.sink86.sroa.gep88 = getelementptr inbounds i8, ptr %5, i64 1023
  br i1 %14, label %16, label %15

15:                                               ; preds = %4
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 40, ptr noundef nonnull @__PRETTY_FUNCTION__.parseEqnString) #8
  unreachable

16:                                               ; preds = %4
  %17 = call i32 @regcomp(ptr noundef nonnull %9, ptr noundef nonnull @.str.4, i32 noundef 1) #7
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 41, ptr noundef nonnull @__PRETTY_FUNCTION__.parseEqnString) #8
  unreachable

20:                                               ; preds = %16
  %21 = call i32 @regcomp(ptr noundef nonnull %11, ptr noundef nonnull @.str.6, i32 noundef 1) #7
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 42, ptr noundef nonnull @__PRETTY_FUNCTION__.parseEqnString) #8
  unreachable

24:                                               ; preds = %20
  %25 = call i32 @regcomp(ptr noundef nonnull %10, ptr noundef nonnull @.str.8, i32 noundef 1) #7
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 43, ptr noundef nonnull @__PRETTY_FUNCTION__.parseEqnString) #8
  unreachable

28:                                               ; preds = %24
  call void @obvector_clear(ptr noundef %1) #7
  call void @obvector_clear(ptr noundef %2) #7
  %29 = call i32 @regexec(ptr noundef nonnull %8, ptr noundef %0, i64 noundef 1, ptr noundef nonnull %12, i32 noundef 3) #7
  %.not = icmp eq i32 %29, 0
  %30 = load i32, ptr %12, align 4
  %31 = trunc i32 %30 to i16
  %.052 = select i1 %.not, i16 %31, i16 -1
  %32 = call i32 @regexec(ptr noundef nonnull %11, ptr noundef %0, i64 noundef 1, ptr noundef nonnull %12, i32 noundef 3) #7
  %.not59.not = icmp eq i32 %32, 0
  br i1 %.not59.not, label %38, label %33

33:                                               ; preds = %28
  %34 = call i32 @regexec(ptr noundef nonnull %10, ptr noundef %0, i64 noundef 1, ptr noundef nonnull %12, i32 noundef 3) #7
  %.not60 = icmp eq i32 %34, 0
  br i1 %.not60, label %38, label %35

35:                                               ; preds = %33
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.10) #9
  call void @exit(i32 noundef 1) #8
  unreachable

38:                                               ; preds = %33, %28
  %.056 = phi i8 [ 1, %28 ], [ 0, %33 ]
  %.0.in = load i32, ptr %12, align 4, !tbaa !9
  %.0 = zext i32 %.0.in to i64
  %39 = sext i16 %.052 to i32
  %40 = icmp eq i16 %.052, -1
  br i1 %40, label %41, label %43

41:                                               ; preds = %38
  %42 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %0, i64 noundef 1024) #7
  br label %63

43:                                               ; preds = %38
  %sext = shl i32 %.0.in, 16
  %44 = ashr exact i32 %sext, 16
  %45 = icmp sgt i32 %44, %39
  br i1 %45, label %46, label %55

46:                                               ; preds = %43
  %sext61 = shl i64 %.0, 48
  %47 = ashr exact i64 %sext61, 48
  %48 = call ptr @strncpy(ptr noundef nonnull %6, ptr noundef %0, i64 noundef %47) #7
  %49 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %47
  store i8 0, ptr %49, align 1, !tbaa !12
  %50 = sext i32 %44 to i64
  %51 = getelementptr inbounds i8, ptr %0, i64 %50
  %52 = sub nsw i32 1024, %44
  %53 = sext i32 %52 to i64
  %54 = call ptr @strncpy(ptr noundef nonnull %5, ptr noundef %51, i64 noundef %53) #7
  br label %63

55:                                               ; preds = %43
  %56 = sext i16 %.052 to i64
  %57 = call ptr @strncpy(ptr noundef nonnull %5, ptr noundef %0, i64 noundef %56) #7
  %58 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %56
  store i8 0, ptr %58, align 1, !tbaa !12
  %59 = getelementptr inbounds i8, ptr %0, i64 %56
  %60 = sub nsw i32 1024, %39
  %61 = sext i32 %60 to i64
  %62 = call ptr @strncpy(ptr noundef nonnull %6, ptr noundef %59, i64 noundef %61) #7
  br label %63

63:                                               ; preds = %46, %55, %41
  %.sink86.sroa.phi = phi ptr [ %.sink86.sroa.gep, %46 ], [ %.sink86.sroa.gep87, %55 ], [ %.sink86.sroa.gep88, %41 ]
  store i8 0, ptr %.sink86.sroa.phi, align 1, !tbaa !12
  %64 = call i32 @regexec(ptr noundef nonnull %9, ptr noundef nonnull %5, i64 noundef 1, ptr noundef nonnull %12, i32 noundef 3) #7
  %.not6268 = icmp eq i32 %64, 0
  br i1 %.not6268, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %63
  %65 = getelementptr inbounds i8, ptr %12, i64 4
  br label %66

66:                                               ; preds = %.lr.ph, %66
  %.05469 = phi ptr [ %5, %.lr.ph ], [ %82, %66 ]
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i8, ptr %.05469, i64 %68
  %70 = load i32, ptr %65, align 4, !tbaa !13
  %71 = sub nsw i32 %70, %67
  %72 = sext i32 %71 to i64
  %73 = call ptr @strncpy(ptr noundef nonnull %7, ptr noundef %69, i64 noundef %72) #7
  %74 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %72
  store i8 0, ptr %74, align 1, !tbaa !12
  %75 = call i32 @atoi(ptr nocapture noundef %7) #10
  %76 = call ptr @createTerm(i32 noundef %75) #7
  %77 = call i32 @obvector_length(ptr noundef %1) #7
  %78 = zext i32 %77 to i64
  call void @obvector_store_at_index(ptr noundef %1, ptr noundef %76, i64 noundef %78) #7
  %79 = call ptr @ob_release(ptr noundef %76) #7
  %80 = load i32, ptr %65, align 4, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i8, ptr %.05469, i64 %81
  %83 = call i32 @regexec(ptr noundef nonnull %9, ptr noundef %82, i64 noundef 1, ptr noundef nonnull %12, i32 noundef 3) #7
  %.not62 = icmp eq i32 %83, 0
  br i1 %.not62, label %66, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %66, %63
  br i1 %40, label %.loopexit67, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %84 = call i32 @regexec(ptr noundef nonnull %9, ptr noundef nonnull %6, i64 noundef 1, ptr noundef nonnull %12, i32 noundef 3) #7
  %.not6470 = icmp eq i32 %84, 0
  br i1 %.not6470, label %.lr.ph72, label %.loopexit67

.lr.ph72:                                         ; preds = %.preheader
  %85 = getelementptr inbounds i8, ptr %12, i64 4
  br label %86

86:                                               ; preds = %.lr.ph72, %86
  %.15571 = phi ptr [ %6, %.lr.ph72 ], [ %102, %86 ]
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %.15571, i64 %88
  %90 = load i32, ptr %85, align 4, !tbaa !13
  %91 = sub nsw i32 %90, %87
  %92 = sext i32 %91 to i64
  %93 = call ptr @strncpy(ptr noundef nonnull %7, ptr noundef %89, i64 noundef %92) #7
  %94 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %92
  store i8 0, ptr %94, align 1, !tbaa !12
  %95 = call i32 @atoi(ptr nocapture noundef %7) #10
  %96 = call ptr @createTerm(i32 noundef %95) #7
  %97 = call i32 @obvector_length(ptr noundef %2) #7
  %98 = zext i32 %97 to i64
  call void @obvector_store_at_index(ptr noundef %2, ptr noundef %96, i64 noundef %98) #7
  %99 = call ptr @ob_release(ptr noundef %96) #7
  %100 = load i32, ptr %85, align 4, !tbaa !13
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i8, ptr %.15571, i64 %101
  %103 = call i32 @regexec(ptr noundef nonnull %9, ptr noundef %102, i64 noundef 1, ptr noundef nonnull %12, i32 noundef 3) #7
  %.not64 = icmp eq i32 %103, 0
  br i1 %.not64, label %86, label %.loopexit67, !llvm.loop !16

.loopexit67:                                      ; preds = %86, %.preheader, %._crit_edge
  call void @regfree(ptr noundef nonnull %9) #7
  call void @regfree(ptr noundef nonnull %8) #7
  call void @regfree(ptr noundef nonnull %11) #7
  call void @regfree(ptr noundef nonnull %10) #7
  %104 = call i32 @obvector_length(ptr noundef %1) #7
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %109

106:                                              ; preds = %.loopexit67
  %107 = load ptr, ptr @stderr, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.11) #9
  call void @exit(i32 noundef 1) #8
  unreachable

109:                                              ; preds = %.loopexit67
  %.not65 = icmp eq i8 %3, 0
  br i1 %.not65, label %.loopexit, label %110

110:                                              ; preds = %109
  %.str.13..str.12 = select i1 %.not59.not, ptr @.str.13, ptr @.str.12
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.13..str.12)
  %112 = call i32 @obvector_length(ptr noundef %1) #7
  %.not80 = icmp eq i32 %112, 0
  br i1 %.not80, label %._crit_edge76, label %.lr.ph75

.lr.ph75:                                         ; preds = %110, %.lr.ph75
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph75 ], [ 0, %110 ]
  %113 = call ptr @obvector_obj_at_index(ptr noundef %1, i64 noundef %indvars.iv) #7
  %114 = call i32 @getTermValue(ptr noundef %113) #7
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %114)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %116 = call i32 @obvector_length(ptr noundef %1) #7
  %117 = zext i32 %116 to i64
  %118 = icmp ult i64 %indvars.iv.next, %117
  br i1 %118, label %.lr.ph75, label %._crit_edge76, !llvm.loop !17

._crit_edge76:                                    ; preds = %.lr.ph75, %110
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %120 = call i32 @obvector_length(ptr noundef %2) #7
  %.not66 = icmp eq i32 %120, 0
  br i1 %.not66, label %130, label %121

121:                                              ; preds = %._crit_edge76
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %123 = call i32 @obvector_length(ptr noundef %2) #7
  %.not81 = icmp eq i32 %123, 0
  br i1 %.not81, label %.loopexit, label %.lr.ph79

.lr.ph79:                                         ; preds = %121, %.lr.ph79
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %.lr.ph79 ], [ 0, %121 ]
  %124 = call ptr @obvector_obj_at_index(ptr noundef %2, i64 noundef %indvars.iv83) #7
  %125 = call i32 @getTermValue(ptr noundef %124) #7
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %125)
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %127 = call i32 @obvector_length(ptr noundef %2) #7
  %128 = zext i32 %127 to i64
  %129 = icmp ult i64 %indvars.iv.next84, %128
  br i1 %129, label %.lr.ph79, label %.loopexit, !llvm.loop !18

130:                                              ; preds = %._crit_edge76
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph79, %121, %130, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #7
  ret i8 %.056
}

declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @obvector_clear(ptr noundef) local_unnamed_addr #3

declare i32 @regexec(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #6

declare ptr @createTerm(i32 noundef) local_unnamed_addr #3

declare void @obvector_store_at_index(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @obvector_length(ptr noundef) local_unnamed_addr #3

declare ptr @ob_release(ptr noundef) local_unnamed_addr #3

declare void @regfree(ptr noundef) local_unnamed_addr #3

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

declare i32 @getTermValue(ptr noundef) local_unnamed_addr #3

declare ptr @obvector_obj_at_index(ptr noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { nounwind willreturn memory(read) }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass