; LLVM IR from adventure-db/adventure :: lib/jsmn (jsmn_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.jsmn_parser = type { i32, i32, i32 }
%struct.jsmntok_t = type { i32, i32, i32, i32 }

@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @jsmn_init(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @test_simple() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %struct.jsmn_parser, align 4
  %5 = alloca [10 x %struct.jsmntok_t], align 16
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 160, ptr %5) #3
  store ptr @.str.4, ptr %2, align 8, !tbaa !5
  call void @jsmn_init(ptr noundef %4)
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = call i64 @strlen(ptr noundef %8) #4
  %10 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %11 = call i32 @jsmn_parse(ptr noundef %4, ptr noundef %7, i64 noundef %9, ptr noundef %10, i32 noundef 10)
  store i32 %11, ptr %3, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %0
  %13 = load i32, ptr %3, align 4, !tbaa !9
  %14 = icmp sge i32 %13, 0
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  store i32 92, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

16:                                               ; preds = %12
  br label %17

17:                                               ; preds = %16
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  %20 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %21 = getelementptr inbounds %struct.jsmntok_t, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %34

24:                                               ; preds = %19
  %25 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %26 = getelementptr inbounds %struct.jsmntok_t, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 8, !tbaa !13
  %28 = icmp eq i32 %27, 8
  br i1 %28, label %29, label %34

29:                                               ; preds = %24
  %30 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %31 = getelementptr inbounds %struct.jsmntok_t, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 16, !tbaa !14
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %35, label %34

34:                                               ; preds = %29, %24, %19
  store i32 93, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

35:                                               ; preds = %29
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  %39 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 1
  %40 = getelementptr inbounds %struct.jsmntok_t, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = icmp eq i32 %41, 2
  br i1 %42, label %43, label %53

43:                                               ; preds = %38
  %44 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 1
  %45 = getelementptr inbounds %struct.jsmntok_t, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !13
  %47 = icmp eq i32 %46, 3
  br i1 %47, label %48, label %53

48:                                               ; preds = %43
  %49 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 1
  %50 = getelementptr inbounds %struct.jsmntok_t, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 16, !tbaa !14
  %52 = icmp eq i32 %51, 3
  br i1 %52, label %54, label %53

53:                                               ; preds = %48, %43, %38
  store i32 94, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

54:                                               ; preds = %48
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 2
  %59 = getelementptr inbounds %struct.jsmntok_t, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !11
  %61 = icmp eq i32 %60, 6
  br i1 %61, label %62, label %72

62:                                               ; preds = %57
  %63 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 2
  %64 = getelementptr inbounds %struct.jsmntok_t, ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !13
  %66 = icmp eq i32 %65, 7
  br i1 %66, label %67, label %72

67:                                               ; preds = %62
  %68 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 2
  %69 = getelementptr inbounds %struct.jsmntok_t, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 16, !tbaa !14
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %73, label %72

72:                                               ; preds = %67, %62, %57
  store i32 95, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

73:                                               ; preds = %67
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %79 = getelementptr inbounds %struct.jsmntok_t, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !11
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i8, ptr %77, i64 %81
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %85 = getelementptr inbounds %struct.jsmntok_t, ptr %84, i32 0, i32 2
  %86 = load i32, ptr %85, align 8, !tbaa !13
  %87 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %88 = getelementptr inbounds %struct.jsmntok_t, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !11
  %90 = sub nsw i32 %86, %89
  %91 = sext i32 %90 to i64
  %92 = call i32 @strncmp(ptr noundef %82, ptr noundef %83, i64 noundef %91) #4
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %106

94:                                               ; preds = %76
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = call i64 @strlen(ptr noundef %95) #4
  %97 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %98 = getelementptr inbounds %struct.jsmntok_t, ptr %97, i32 0, i32 2
  %99 = load i32, ptr %98, align 8, !tbaa !13
  %100 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %101 = getelementptr inbounds %struct.jsmntok_t, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = sub nsw i32 %99, %102
  %104 = sext i32 %103 to i64
  %105 = icmp eq i64 %96, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %94, %76
  store i32 97, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

107:                                              ; preds = %94
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 1
  %113 = getelementptr inbounds %struct.jsmntok_t, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i8, ptr %111, i64 %115
  %117 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 1
  %118 = getelementptr inbounds %struct.jsmntok_t, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %118, align 8, !tbaa !13
  %120 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 1
  %121 = getelementptr inbounds %struct.jsmntok_t, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 4, !tbaa !11
  %123 = sub nsw i32 %119, %122
  %124 = sext i32 %123 to i64
  %125 = call i32 @strncmp(ptr noundef %116, ptr noundef @.str.5, i64 noundef %124) #4
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %137

127:                                              ; preds = %110
  %128 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 1
  %129 = getelementptr inbounds %struct.jsmntok_t, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %129, align 8, !tbaa !13
  %131 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 1
  %132 = getelementptr inbounds %struct.jsmntok_t, ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 4, !tbaa !11
  %134 = sub nsw i32 %130, %133
  %135 = sext i32 %134 to i64
  %136 = icmp eq i64 1, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %127, %110
  store i32 98, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

138:                                              ; preds = %127
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 2
  %144 = getelementptr inbounds %struct.jsmntok_t, ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 4, !tbaa !11
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i8, ptr %142, i64 %146
  %148 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 2
  %149 = getelementptr inbounds %struct.jsmntok_t, ptr %148, i32 0, i32 2
  %150 = load i32, ptr %149, align 8, !tbaa !13
  %151 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 2
  %152 = getelementptr inbounds %struct.jsmntok_t, ptr %151, i32 0, i32 1
  %153 = load i32, ptr %152, align 4, !tbaa !11
  %154 = sub nsw i32 %150, %153
  %155 = sext i32 %154 to i64
  %156 = call i32 @strncmp(ptr noundef %147, ptr noundef @.str.6, i64 noundef %155) #4
  %157 = icmp eq i32 %156, 0
  br i1 %157, label %158, label %168

158:                                              ; preds = %141
  %159 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 2
  %160 = getelementptr inbounds %struct.jsmntok_t, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 8, !tbaa !13
  %162 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 2
  %163 = getelementptr inbounds %struct.jsmntok_t, ptr %162, i32 0, i32 1
  %164 = load i32, ptr %163, align 4, !tbaa !11
  %165 = sub nsw i32 %161, %164
  %166 = sext i32 %165 to i64
  %167 = icmp eq i64 1, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %158, %141
  store i32 99, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

169:                                              ; preds = %158
  br label %170

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170
  call void @jsmn_init(ptr noundef %4)
  store ptr @.str.7, ptr %2, align 8, !tbaa !5
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  %174 = call i64 @strlen(ptr noundef %173) #4
  %175 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %176 = call i32 @jsmn_parse(ptr noundef %4, ptr noundef %172, i64 noundef %174, ptr noundef %175, i32 noundef 10)
  store i32 %176, ptr %3, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %171
  %178 = load i32, ptr %3, align 4, !tbaa !9
  %179 = icmp sge i32 %178, 0
  br i1 %179, label %181, label %180

180:                                              ; preds = %177
  store i32 104, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

181:                                              ; preds = %177
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  call void @jsmn_init(ptr noundef %4)
  store ptr @.str.8, ptr %2, align 8, !tbaa !5
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = load ptr, ptr %2, align 8, !tbaa !5
  %186 = call i64 @strlen(ptr noundef %185) #4
  %187 = getelementptr inbounds [10 x %struct.jsmntok_t], ptr %5, i64 0, i64 0
  %188 = call i32 @jsmn_parse(ptr noundef %4, ptr noundef %184, i64 noundef %186, ptr noundef %187, i32 noundef 10)
  store i32 %188, ptr %3, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %183
  %190 = load i32, ptr %3, align 4, !tbaa !9
  %191 = icmp sge i32 %190, 0
  br i1 %191, label %193, label %192

192:                                              ; preds = %189
  store i32 109, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

193:                                              ; preds = %189
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %196

196:                                              ; preds = %195, %192, %180, %168, %137, %106, %72, %53, %34, %15
  call void @llvm.lifetime.end.p0(i64 160, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  %197 = load i32, ptr %1, align 4
  ret i32 %197
}

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
attributes #4 = { nounwind willreturn memory(read) }

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

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


; 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.jsmn_parser = type { i32, i32, i32 }
%struct.jsmntok_t = type { i32, i32, i32, i32 }

@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @jsmn_parse(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 110) i32 @test_simple() local_unnamed_addr #0 {
  %1 = alloca %struct.jsmn_parser, align 4
  %2 = alloca [10 x %struct.jsmntok_t], align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %2) #3
  call void @jsmn_init(ptr noundef nonnull %1)
  %3 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.4) #4
  %4 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.4, i64 noundef %3, ptr noundef nonnull %2, i32 noundef 10)
  %5 = icmp sgt i32 %4, -1
  br i1 %5, label %6, label %48

6:                                                ; preds = %0
  %7 = getelementptr inbounds i8, ptr %2, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = icmp eq i32 %8, 0
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  %11 = load i32, ptr %10, align 8
  %12 = icmp eq i32 %11, 8
  %or.cond = select i1 %9, i1 %12, i1 false
  %13 = load i32, ptr %2, align 16
  %14 = icmp eq i32 %13, 1
  %or.cond7 = select i1 %or.cond, i1 %14, i1 false
  br i1 %or.cond7, label %15, label %48

15:                                               ; preds = %6
  %16 = getelementptr inbounds i8, ptr %2, i64 16
  %17 = getelementptr inbounds i8, ptr %2, i64 20
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 2
  %20 = getelementptr inbounds i8, ptr %2, i64 24
  %21 = load i32, ptr %20, align 8
  %22 = icmp eq i32 %21, 3
  %or.cond11 = select i1 %19, i1 %22, i1 false
  %23 = load i32, ptr %16, align 16
  %24 = icmp eq i32 %23, 3
  %or.cond15 = select i1 %or.cond11, i1 %24, i1 false
  br i1 %or.cond15, label %25, label %48

25:                                               ; preds = %15
  %26 = getelementptr inbounds i8, ptr %2, i64 32
  %27 = getelementptr inbounds i8, ptr %2, i64 36
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp eq i32 %28, 6
  %30 = getelementptr inbounds i8, ptr %2, i64 40
  %31 = load i32, ptr %30, align 8
  %32 = icmp eq i32 %31, 7
  %or.cond19 = select i1 %29, i1 %32, i1 false
  %33 = load i32, ptr %26, align 16
  %34 = icmp eq i32 %33, 0
  %or.cond23 = select i1 %or.cond19, i1 %34, i1 false
  br i1 %or.cond23, label %35, label %48

35:                                               ; preds = %25
  %36 = icmp eq i64 %3, 8
  br i1 %36, label %37, label %48

37:                                               ; preds = %35
  %lhsc = load i8, ptr getelementptr inbounds (i8, ptr @.str.4, i64 2), align 1
  %rhsc = load i8, ptr @.str.5, align 1
  %38 = icmp eq i8 %lhsc, %rhsc
  br i1 %38, label %39, label %48

39:                                               ; preds = %37
  %lhsc43 = load i8, ptr getelementptr inbounds (i8, ptr @.str.4, i64 6), align 1
  %rhsc44 = load i8, ptr @.str.6, align 1
  %40 = icmp eq i8 %lhsc43, %rhsc44
  br i1 %40, label %41, label %48

41:                                               ; preds = %39
  call void @jsmn_init(ptr noundef nonnull %1)
  %42 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.7) #4
  %43 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.7, i64 noundef %42, ptr noundef nonnull %2, i32 noundef 10)
  %44 = icmp sgt i32 %43, -1
  br i1 %44, label %45, label %48

45:                                               ; preds = %41
  call void @jsmn_init(ptr noundef nonnull %1)
  %46 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.8) #4
  %47 = call i32 @jsmn_parse(ptr noundef nonnull %1, ptr noundef nonnull @.str.8, i64 noundef %46, ptr noundef nonnull %2, i32 noundef 10)
  %.inv = icmp slt i32 %47, 0
  %. = select i1 %.inv, i32 109, i32 0
  br label %48

48:                                               ; preds = %45, %41, %39, %37, %35, %25, %15, %6, %0
  %.0 = phi i32 [ 92, %0 ], [ 93, %6 ], [ 94, %15 ], [ 95, %25 ], [ 97, %35 ], [ 98, %37 ], [ 99, %39 ], [ 104, %41 ], [ %., %45 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #3
  ret i32 %.0
}

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind }
attributes #4 = { 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, !7, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass