; LLVM IR from Eclipse-SDV-Hackathon-Chapter-Two/challenge-threadx-and-beyond :: shared/lib/jsmn/src/example (jsondump)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdin = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 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 uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca [8192 x i8], align 16
  %7 = alloca %struct.jsmn_parser, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store ptr null, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8192, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 2, ptr %9, align 8, !tbaa !11
  call void @jsmn_init(ptr noundef %7)
  %11 = load i64, ptr %9, align 8, !tbaa !11
  %12 = mul i64 16, %11
  %13 = call noalias ptr @malloc(i64 noundef %12) #8
  store ptr %13, ptr %8, align 8, !tbaa !9
  %14 = load ptr, ptr %8, align 8, !tbaa !9
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %21

16:                                               ; preds = %0
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  %18 = call ptr @__errno_location() #9
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef @.str, i32 noundef %19) #7
  store i32 3, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %100

21:                                               ; preds = %0
  br label %22

22:                                               ; preds = %99, %21
  %23 = getelementptr inbounds [8192 x i8], ptr %6, i64 0, i64 0
  %24 = load ptr, ptr @stdin, align 8, !tbaa !9
  %25 = call i64 @fread(ptr noundef %23, i64 noundef 1, i64 noundef 8192, ptr noundef %24)
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %2, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %29, label %35

29:                                               ; preds = %22
  %30 = load ptr, ptr @stderr, align 8, !tbaa !9
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = call ptr @__errno_location() #9
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.1, i32 noundef %31, i32 noundef %33) #7
  store i32 1, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %100

35:                                               ; preds = %22
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %45

38:                                               ; preds = %35
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %100

42:                                               ; preds = %38
  %43 = load ptr, ptr @stderr, align 8, !tbaa !9
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.2) #7
  store i32 2, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %100

45:                                               ; preds = %35
  %46 = load ptr, ptr %4, align 8, !tbaa !9
  %47 = load i64, ptr %5, align 8, !tbaa !11
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = add i64 %47, %49
  %51 = add i64 %50, 1
  %52 = call ptr @realloc_it(ptr noundef %46, i64 noundef %51)
  store ptr %52, ptr %4, align 8, !tbaa !9
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %45
  store i32 3, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %100

56:                                               ; preds = %45
  %57 = load ptr, ptr %4, align 8, !tbaa !9
  %58 = load i64, ptr %5, align 8, !tbaa !11
  %59 = getelementptr inbounds i8, ptr %57, i64 %58
  %60 = getelementptr inbounds [8192 x i8], ptr %6, i64 0, i64 0
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = call ptr @strncpy(ptr noundef %59, ptr noundef %60, i64 noundef %62) #7
  %64 = load i64, ptr %5, align 8, !tbaa !11
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = add i64 %64, %66
  store i64 %67, ptr %5, align 8, !tbaa !11
  br label %68

68:                                               ; preds = %90, %56
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = load i64, ptr %5, align 8, !tbaa !11
  %71 = load ptr, ptr %8, align 8, !tbaa !9
  %72 = load i64, ptr %9, align 8, !tbaa !11
  %73 = trunc i64 %72 to i32
  %74 = call i32 @jsmn_parse(ptr noundef %7, ptr noundef %69, i64 noundef %70, ptr noundef %71, i32 noundef %73)
  store i32 %74, ptr %2, align 4, !tbaa !5
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = icmp slt i32 %75, 0
  br i1 %76, label %77, label %92

77:                                               ; preds = %68
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = icmp eq i32 %78, -1
  br i1 %79, label %80, label %91

80:                                               ; preds = %77
  %81 = load i64, ptr %9, align 8, !tbaa !11
  %82 = mul i64 %81, 2
  store i64 %82, ptr %9, align 8, !tbaa !11
  %83 = load ptr, ptr %8, align 8, !tbaa !9
  %84 = load i64, ptr %9, align 8, !tbaa !11
  %85 = mul i64 16, %84
  %86 = call ptr @realloc_it(ptr noundef %83, i64 noundef %85)
  store ptr %86, ptr %8, align 8, !tbaa !9
  %87 = load ptr, ptr %8, align 8, !tbaa !9
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %90

89:                                               ; preds = %80
  store i32 3, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %100

90:                                               ; preds = %80
  br label %68

91:                                               ; preds = %77
  br label %99

92:                                               ; preds = %68
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  %94 = load ptr, ptr %8, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.jsmn_parser, ptr %7, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = zext i32 %96 to i64
  %98 = call i32 @dump(ptr noundef %93, ptr noundef %94, i64 noundef %97, i32 noundef 0)
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %92, %91
  br label %22

100:                                              ; preds = %89, %55, %42, %41, %29, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8192, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %101 = load i32, ptr %1, align 4
  ret i32 %101
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #4

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @realloc_it(ptr noundef, i64 noundef) #6

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

; Function Attrs: nounwind uwtable
declare hidden i32 @dump(ptr noundef, ptr noundef, i64 noundef, i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 = { 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 willreturn memory(none) "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 = { "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 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind willreturn memory(none) }

!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 = !{!14, !6, i64 4}
!14 = !{!"jsmn_parser", !6, i64 0, !6, i64 4, !6, i64 8}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 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: nounwind uwtable
define dso_local range(i32 0, 4) i32 @main() local_unnamed_addr #0 {
  %1 = alloca [8192 x i8], align 16
  %2 = alloca %struct.jsmn_parser, align 4
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #7
  call void @jsmn_init(ptr noundef nonnull %2)
  %3 = call noalias dereferenceable_or_null(32) ptr @malloc(i64 noundef 32) #8
  %4 = icmp eq ptr %3, null
  br i1 %4, label %10, label %.preheader

.preheader:                                       ; preds = %0
  %5 = load ptr, ptr @stdin, align 8, !tbaa !5
  %6 = call i64 @fread(ptr noundef nonnull %1, i64 noundef 1, i64 noundef 8192, ptr noundef %5)
  %7 = trunc i64 %6 to i32
  %8 = icmp slt i32 %7, 0
  br i1 %8, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %9 = getelementptr inbounds i8, ptr %2, i64 4
  br label %19

10:                                               ; preds = %0
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call ptr @__errno_location() #9
  %13 = load i32, ptr %12, align 4, !tbaa !9
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str, i32 noundef %13) #10
  br label %.loopexit40

._crit_edge:                                      ; preds = %.loopexit, %.preheader
  %.lcssa = phi i32 [ %7, %.preheader ], [ %53, %.loopexit ]
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call ptr @__errno_location() #9
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.1, i32 noundef %.lcssa, i32 noundef %17) #10
  br label %.loopexit40

19:                                               ; preds = %.lr.ph, %.loopexit
  %20 = phi i32 [ %7, %.lr.ph ], [ %53, %.loopexit ]
  %21 = phi i64 [ %6, %.lr.ph ], [ %52, %.loopexit ]
  %.058 = phi i64 [ 2, %.lr.ph ], [ %.1, %.loopexit ]
  %.02757 = phi ptr [ %3, %.lr.ph ], [ %.128, %.loopexit ]
  %.02956 = phi i64 [ 0, %.lr.ph ], [ %29, %.loopexit ]
  %.03055 = phi ptr [ null, %.lr.ph ], [ %31, %.loopexit ]
  %.03154 = phi i32 [ 0, %.lr.ph ], [ %.132, %.loopexit ]
  %22 = icmp eq i32 %20, 0
  br i1 %22, label %23, label %27

23:                                               ; preds = %19
  %.not = icmp eq i32 %.03154, 0
  br i1 %.not, label %24, label %.loopexit40

24:                                               ; preds = %23
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.2) #10
  br label %.loopexit40

27:                                               ; preds = %19
  %28 = and i64 %21, 2147483647
  %29 = add i64 %28, %.02956
  %30 = add i64 %29, 1
  %31 = call ptr @realloc_it(ptr noundef %.03055, i64 noundef %30)
  %32 = icmp eq ptr %31, null
  br i1 %32, label %.loopexit40, label %33

33:                                               ; preds = %27
  %34 = getelementptr inbounds i8, ptr %31, i64 %.02956
  %35 = call ptr @strncpy(ptr noundef nonnull %34, ptr noundef nonnull %1, i64 noundef %28) #7
  br label %36

36:                                               ; preds = %42, %33
  %.128 = phi ptr [ %.02757, %33 ], [ %45, %42 ]
  %.1 = phi i64 [ %.058, %33 ], [ %43, %42 ]
  %37 = trunc i64 %.1 to i32
  %38 = call i32 @jsmn_parse(ptr noundef nonnull %2, ptr noundef nonnull %31, i64 noundef %29, ptr noundef %.128, i32 noundef %37)
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %40, label %47

40:                                               ; preds = %36
  %41 = icmp eq i32 %38, -1
  br i1 %41, label %42, label %.loopexit

42:                                               ; preds = %40
  %43 = shl i64 %.1, 1
  %44 = shl i64 %.1, 5
  %45 = call ptr @realloc_it(ptr noundef %.128, i64 noundef %44)
  %46 = icmp eq ptr %45, null
  br i1 %46, label %.loopexit40, label %36

47:                                               ; preds = %36
  %48 = load i32, ptr %9, align 4, !tbaa !11
  %49 = zext i32 %48 to i64
  %50 = call i32 @dump(ptr noundef nonnull %31, ptr noundef %.128, i64 noundef %49, i32 noundef 0)
  br label %.loopexit

.loopexit:                                        ; preds = %40, %47
  %.132 = phi i32 [ 1, %47 ], [ %.03154, %40 ]
  %51 = load ptr, ptr @stdin, align 8, !tbaa !5
  %52 = call i64 @fread(ptr noundef nonnull %1, i64 noundef 1, i64 noundef 8192, ptr noundef %51)
  %53 = trunc i64 %52 to i32
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %._crit_edge, label %19

.loopexit40:                                      ; preds = %27, %42, %23, %24, %._crit_edge, %10
  %.033 = phi i32 [ 3, %10 ], [ 1, %._crit_edge ], [ 2, %24 ], [ 0, %23 ], [ 3, %42 ], [ 3, %27 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %1) #7
  ret i32 %.033
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @realloc_it(ptr noundef, i64 noundef) local_unnamed_addr #5

; 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 #6

; Function Attrs: nounwind uwtable
declare hidden i32 @dump(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #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 allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #4 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { cold nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass