; LLVM IR from yinqiwen/ardb :: deps/cJSON (test_utils)

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

@.str = external hidden unnamed_addr constant [102 x i8], align 1
@__const.main.tests = external hidden unnamed_addr constant [12 x ptr], align 16
@__const.main.patches = external hidden unnamed_addr constant [15 x [3 x ptr]], align 16
@__const.main.numbers = external hidden unnamed_addr constant [10 x i32], align 16
@.str.49 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [12 x ptr], align 16
  %6 = alloca [15 x [3 x ptr]], align 16
  %7 = alloca [10 x i32], align 16
  %8 = alloca ptr, align 8
  %9 = alloca [2 x i8], align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  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 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store ptr @.str, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %5) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.tests, i64 96, i1 false)
  call void @llvm.lifetime.start.p0(i64 360, ptr %6) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.patches, i64 360, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.numbers, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store ptr @.str.49, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #7
  call void @llvm.memset.p0.i64(ptr align 1 %9, i8 0, i64 2, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.50)
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call ptr @cJSON_Parse(ptr noundef %28)
  store ptr %29, ptr %3, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %46, %0
  %31 = load i32, ptr %2, align 4, !tbaa !9
  %32 = icmp slt i32 %31, 12
  br i1 %32, label %33, label %49

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [12 x ptr], ptr %5, i64 0, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = call ptr @cJSONUtils_GetPointer(ptr noundef %34, ptr noundef %38)
  %40 = call ptr @cJSON_Print(ptr noundef %39)
  store ptr %40, ptr %16, align 8, !tbaa !5
  %41 = load i32, ptr %2, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.51, i32 noundef %42, ptr noundef %43)
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %46

46:                                               ; preds = %33
  %47 = load i32, ptr %2, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %2, align 4, !tbaa !9
  br label %30, !llvm.loop !11

49:                                               ; preds = %30
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %50)
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.52)
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %81, %49
  %53 = load i32, ptr %2, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 15
  br i1 %54, label %55, label %84

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %56 = load i32, ptr %2, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [15 x [3 x ptr]], ptr %6, i64 0, i64 %57
  %59 = getelementptr inbounds [3 x ptr], ptr %58, i64 0, i64 0
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = call ptr @cJSON_Parse(ptr noundef %60)
  store ptr %61, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %62 = load i32, ptr %2, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [15 x [3 x ptr]], ptr %6, i64 0, i64 %63
  %65 = getelementptr inbounds [3 x ptr], ptr %64, i64 0, i64 1
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = call ptr @cJSON_Parse(ptr noundef %66)
  store ptr %67, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = call i32 @cJSONUtils_ApplyPatches(ptr noundef %68, ptr noundef %69)
  store i32 %70, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = call ptr @cJSON_Print(ptr noundef %71)
  store ptr %72, ptr %20, align 8, !tbaa !5
  %73 = load i32, ptr %2, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = load ptr, ptr %20, align 8, !tbaa !5
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, i32 noundef %74, i32 noundef %75, ptr noundef %76)
  %78 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %78) #7
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %79)
  %80 = load ptr, ptr %18, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %80)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %81

81:                                               ; preds = %55
  %82 = load i32, ptr %2, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %2, align 4, !tbaa !9
  br label %52, !llvm.loop !13

84:                                               ; preds = %52
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.54)
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %132, %84
  %87 = load i32, ptr %2, align 4, !tbaa !9
  %88 = icmp slt i32 %87, 15
  br i1 %88, label %89, label %135

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %90 = load i32, ptr %2, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [15 x [3 x ptr]], ptr %6, i64 0, i64 %91
  %93 = getelementptr inbounds [3 x ptr], ptr %92, i64 0, i64 2
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = call i64 @strlen(ptr noundef %94) #8
  %96 = icmp ne i64 %95, 0
  br i1 %96, label %98, label %97

97:                                               ; preds = %89
  store i32 10, ptr %25, align 4
  br label %129

98:                                               ; preds = %89
  %99 = load i32, ptr %2, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [15 x [3 x ptr]], ptr %6, i64 0, i64 %100
  %102 = getelementptr inbounds [3 x ptr], ptr %101, i64 0, i64 0
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = call ptr @cJSON_Parse(ptr noundef %103)
  store ptr %104, ptr %21, align 8, !tbaa !5
  %105 = load i32, ptr %2, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [15 x [3 x ptr]], ptr %6, i64 0, i64 %106
  %108 = getelementptr inbounds [3 x ptr], ptr %107, i64 0, i64 2
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = call ptr @cJSON_Parse(ptr noundef %109)
  store ptr %110, ptr %22, align 8, !tbaa !5
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = load ptr, ptr %22, align 8, !tbaa !5
  %113 = call ptr @cJSONUtils_GeneratePatches(ptr noundef %111, ptr noundef %112)
  store ptr %113, ptr %23, align 8, !tbaa !5
  %114 = load ptr, ptr %23, align 8, !tbaa !5
  %115 = call ptr @cJSON_Print(ptr noundef %114)
  store ptr %115, ptr %24, align 8, !tbaa !5
  %116 = load i32, ptr %2, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  %118 = load i32, ptr %2, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [15 x [3 x ptr]], ptr %6, i64 0, i64 %119
  %121 = getelementptr inbounds [3 x ptr], ptr %120, i64 0, i64 1
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = load ptr, ptr %24, align 8, !tbaa !5
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.55, i32 noundef %117, ptr noundef %122, ptr noundef %123)
  %125 = load ptr, ptr %24, align 8, !tbaa !5
  call void @free(ptr noundef %125) #7
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %126)
  %127 = load ptr, ptr %22, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %127)
  %128 = load ptr, ptr %23, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %128)
  store i32 0, ptr %25, align 4
  br label %129

129:                                              ; preds = %98, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %130 = load i32, ptr %25, align 4
  switch i32 %130, label %193 [
    i32 0, label %131
    i32 10, label %132
  ]

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %131, %129
  %133 = load i32, ptr %2, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %2, align 4, !tbaa !9
  br label %86, !llvm.loop !14

135:                                              ; preds = %86
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.56)
  %137 = call ptr @cJSON_CreateObject()
  store ptr %137, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
  %139 = call ptr @cJSON_CreateIntArray(ptr noundef %138, i32 noundef 10)
  store ptr %139, ptr %13, align 8, !tbaa !5
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = call ptr @cJSON_GetArrayItem(ptr noundef %140, i32 noundef 6)
  store ptr %141, ptr %14, align 8, !tbaa !5
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  call void @cJSON_AddItemToObject(ptr noundef %142, ptr noundef @.str.57, ptr noundef %143)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = call ptr @cJSONUtils_FindPointerFromObjectTo(ptr noundef %144, ptr noundef %145)
  store ptr %146, ptr %26, align 8, !tbaa !5
  %147 = load ptr, ptr %26, align 8, !tbaa !5
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.58, ptr noundef %147)
  %149 = load ptr, ptr %26, align 8, !tbaa !5
  call void @free(ptr noundef %149) #7
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = call ptr @cJSONUtils_FindPointerFromObjectTo(ptr noundef %150, ptr noundef %151)
  store ptr %152, ptr %26, align 8, !tbaa !5
  %153 = load ptr, ptr %26, align 8, !tbaa !5
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.58, ptr noundef %153)
  %155 = load ptr, ptr %26, align 8, !tbaa !5
  call void @free(ptr noundef %155) #7
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = call ptr @cJSONUtils_FindPointerFromObjectTo(ptr noundef %156, ptr noundef %157)
  store ptr %158, ptr %26, align 8, !tbaa !5
  %159 = load ptr, ptr %26, align 8, !tbaa !5
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.58, ptr noundef %159)
  %161 = load ptr, ptr %26, align 8, !tbaa !5
  call void @free(ptr noundef %161) #7
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %162)
  %163 = call ptr @cJSON_CreateObject()
  store ptr %163, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %177, %135
  %165 = load i32, ptr %2, align 4, !tbaa !9
  %166 = icmp slt i32 %165, 26
  br i1 %166, label %167, label %180

167:                                              ; preds = %164
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load i32, ptr %2, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds i8, ptr %168, i64 %170
  %172 = load i8, ptr %171, align 1, !tbaa !15
  %173 = getelementptr inbounds [2 x i8], ptr %9, i64 0, i64 0
  store i8 %172, ptr %173, align 1, !tbaa !15
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds [2 x i8], ptr %9, i64 0, i64 0
  %176 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00)
  call void @cJSON_AddItemToObject(ptr noundef %174, ptr noundef %175, ptr noundef %176)
  br label %177

177:                                              ; preds = %167
  %178 = load i32, ptr %2, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %2, align 4, !tbaa !9
  br label %164, !llvm.loop !16

180:                                              ; preds = %164
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = call ptr @cJSON_PrintUnformatted(ptr noundef %181)
  store ptr %182, ptr %10, align 8, !tbaa !5
  %183 = load ptr, ptr %15, align 8, !tbaa !5
  call void @cJSONUtils_SortObject(ptr noundef %183)
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = call ptr @cJSON_PrintUnformatted(ptr noundef %184)
  store ptr %185, ptr %11, align 8, !tbaa !5
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.59, ptr noundef %186, ptr noundef %187)
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %189) #7
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %190) #7
  %191 = load ptr, ptr %15, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %191)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 360, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %192 = load i32, ptr %1, align 4
  ret i32 %192

193:                                              ; preds = %129
  unreachable
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

declare ptr @cJSON_Parse(ptr noundef) #4

declare ptr @cJSON_Print(ptr noundef) #4

declare ptr @cJSONUtils_GetPointer(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

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

declare void @cJSON_Delete(ptr noundef) #4

declare i32 @cJSONUtils_ApplyPatches(ptr noundef, ptr noundef) #4

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

declare ptr @cJSONUtils_GeneratePatches(ptr noundef, ptr noundef) #4

declare ptr @cJSON_CreateObject() #4

declare ptr @cJSON_CreateIntArray(ptr noundef, i32 noundef) #4

declare ptr @cJSON_GetArrayItem(ptr noundef, i32 noundef) #4

declare void @cJSON_AddItemToObject(ptr noundef, ptr noundef, ptr noundef) #4

declare ptr @cJSONUtils_FindPointerFromObjectTo(ptr noundef, ptr noundef) #4

declare ptr @cJSON_CreateNumber(double noundef) #4

declare ptr @cJSON_PrintUnformatted(ptr noundef) #4

declare void @cJSONUtils_SortObject(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 "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 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 #7 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !12}


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

@.str = external hidden unnamed_addr constant [102 x i8], align 1
@__const.main.tests = external hidden unnamed_addr constant [12 x ptr], align 16
@__const.main.patches = external hidden unnamed_addr constant [15 x [3 x ptr]], align 16
@__const.main.numbers = external hidden unnamed_addr constant [10 x i32], align 16
@.str.49 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [10 x i32], align 16
  %2 = alloca [2 x i8], align 2
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %1, ptr noundef nonnull align 16 dereferenceable(40) @__const.main.numbers, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %2) #6
  store i16 0, ptr %2, align 2
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50)
  %4 = tail call ptr @cJSON_Parse(ptr noundef nonnull @.str) #6
  %5 = load ptr, ptr @__const.main.tests, align 16, !tbaa !5
  %6 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %5) #6
  %7 = tail call ptr @cJSON_Print(ptr noundef %6) #6
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 1, ptr noundef %7)
  tail call void @free(ptr noundef %7) #6
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 8), align 8, !tbaa !5
  %10 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %9) #6
  %11 = tail call ptr @cJSON_Print(ptr noundef %10) #6
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 2, ptr noundef %11)
  tail call void @free(ptr noundef %11) #6
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 16), align 16, !tbaa !5
  %14 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %13) #6
  %15 = tail call ptr @cJSON_Print(ptr noundef %14) #6
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 3, ptr noundef %15)
  tail call void @free(ptr noundef %15) #6
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 24), align 8, !tbaa !5
  %18 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %17) #6
  %19 = tail call ptr @cJSON_Print(ptr noundef %18) #6
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 4, ptr noundef %19)
  tail call void @free(ptr noundef %19) #6
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 32), align 16, !tbaa !5
  %22 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %21) #6
  %23 = tail call ptr @cJSON_Print(ptr noundef %22) #6
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 5, ptr noundef %23)
  tail call void @free(ptr noundef %23) #6
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 40), align 8, !tbaa !5
  %26 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %25) #6
  %27 = tail call ptr @cJSON_Print(ptr noundef %26) #6
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 6, ptr noundef %27)
  tail call void @free(ptr noundef %27) #6
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 48), align 16, !tbaa !5
  %30 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %29) #6
  %31 = tail call ptr @cJSON_Print(ptr noundef %30) #6
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 7, ptr noundef %31)
  tail call void @free(ptr noundef %31) #6
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 56), align 8, !tbaa !5
  %34 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %33) #6
  %35 = tail call ptr @cJSON_Print(ptr noundef %34) #6
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 8, ptr noundef %35)
  tail call void @free(ptr noundef %35) #6
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 64), align 16, !tbaa !5
  %38 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %37) #6
  %39 = tail call ptr @cJSON_Print(ptr noundef %38) #6
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 9, ptr noundef %39)
  tail call void @free(ptr noundef %39) #6
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 72), align 8, !tbaa !5
  %42 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %41) #6
  %43 = tail call ptr @cJSON_Print(ptr noundef %42) #6
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 10, ptr noundef %43)
  tail call void @free(ptr noundef %43) #6
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 80), align 16, !tbaa !5
  %46 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %45) #6
  %47 = tail call ptr @cJSON_Print(ptr noundef %46) #6
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 11, ptr noundef %47)
  tail call void @free(ptr noundef %47) #6
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.main.tests, i64 88), align 8, !tbaa !5
  %50 = tail call ptr @cJSONUtils_GetPointer(ptr noundef %4, ptr noundef %49) #6
  %51 = tail call ptr @cJSON_Print(ptr noundef %50) #6
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef 12, ptr noundef %51)
  tail call void @free(ptr noundef %51) #6
  tail call void @cJSON_Delete(ptr noundef %4) #6
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52)
  br label %54

54:                                               ; preds = %0, %54
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %54 ]
  %55 = getelementptr inbounds [15 x [3 x ptr]], ptr @__const.main.patches, i64 0, i64 %indvars.iv
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = tail call ptr @cJSON_Parse(ptr noundef %56) #6
  %58 = getelementptr inbounds i8, ptr %55, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = tail call ptr @cJSON_Parse(ptr noundef %59) #6
  %61 = tail call i32 @cJSONUtils_ApplyPatches(ptr noundef %57, ptr noundef %60) #6
  %62 = tail call ptr @cJSON_Print(ptr noundef %57) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = trunc nuw nsw i64 %indvars.iv.next to i32
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef %63, i32 noundef %61, ptr noundef %62)
  tail call void @free(ptr noundef %62) #6
  tail call void @cJSON_Delete(ptr noundef %57) #6
  tail call void @cJSON_Delete(ptr noundef %60) #6
  %exitcond.not = icmp eq i64 %indvars.iv.next, 15
  br i1 %exitcond.not, label %65, label %54, !llvm.loop !9

65:                                               ; preds = %54
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54)
  br label %67

67:                                               ; preds = %65, %82
  %indvars.iv72 = phi i64 [ 0, %65 ], [ %indvars.iv.next73.pre-phi, %82 ]
  %68 = getelementptr inbounds [15 x [3 x ptr]], ptr @__const.main.patches, i64 0, i64 %indvars.iv72
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %char0 = load i8, ptr %70, align 1
  %.not = icmp eq i8 %char0, 0
  br i1 %.not, label %._crit_edge, label %71

._crit_edge:                                      ; preds = %67
  %.pre = add nuw nsw i64 %indvars.iv72, 1
  br label %82

71:                                               ; preds = %67
  %72 = load ptr, ptr %68, align 8, !tbaa !5
  %73 = tail call ptr @cJSON_Parse(ptr noundef %72) #6
  %74 = tail call ptr @cJSON_Parse(ptr noundef nonnull %70) #6
  %75 = tail call ptr @cJSONUtils_GeneratePatches(ptr noundef %73, ptr noundef %74) #6
  %76 = tail call ptr @cJSON_Print(ptr noundef %75) #6
  %77 = add nuw nsw i64 %indvars.iv72, 1
  %78 = getelementptr inbounds i8, ptr %68, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = trunc nuw nsw i64 %77 to i32
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.55, i32 noundef %80, ptr noundef %79, ptr noundef %76)
  tail call void @free(ptr noundef %76) #6
  tail call void @cJSON_Delete(ptr noundef %73) #6
  tail call void @cJSON_Delete(ptr noundef %74) #6
  tail call void @cJSON_Delete(ptr noundef %75) #6
  br label %82

82:                                               ; preds = %._crit_edge, %71
  %indvars.iv.next73.pre-phi = phi i64 [ %.pre, %._crit_edge ], [ %77, %71 ]
  %exitcond75.not = icmp eq i64 %indvars.iv.next73.pre-phi, 15
  br i1 %exitcond75.not, label %83, label %67, !llvm.loop !11

83:                                               ; preds = %82
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.56)
  %85 = tail call ptr @cJSON_CreateObject() #6
  %86 = call ptr @cJSON_CreateIntArray(ptr noundef nonnull %1, i32 noundef 10) #6
  %87 = call ptr @cJSON_GetArrayItem(ptr noundef %86, i32 noundef 6) #6
  call void @cJSON_AddItemToObject(ptr noundef %85, ptr noundef nonnull @.str.57, ptr noundef %86) #6
  %88 = call ptr @cJSONUtils_FindPointerFromObjectTo(ptr noundef %85, ptr noundef %87) #6
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.58, ptr noundef %88)
  call void @free(ptr noundef %88) #6
  %90 = call ptr @cJSONUtils_FindPointerFromObjectTo(ptr noundef %85, ptr noundef %86) #6
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.58, ptr noundef %90)
  call void @free(ptr noundef %90) #6
  %92 = call ptr @cJSONUtils_FindPointerFromObjectTo(ptr noundef %85, ptr noundef %85) #6
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.58, ptr noundef %92)
  call void @free(ptr noundef %92) #6
  call void @cJSON_Delete(ptr noundef %85) #6
  %94 = call ptr @cJSON_CreateObject() #6
  %95 = load i8, ptr @.str.49, align 1, !tbaa !12
  store i8 %95, ptr %2, align 2, !tbaa !12
  %96 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %96) #6
  %97 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 1), align 1, !tbaa !12
  store i8 %97, ptr %2, align 2, !tbaa !12
  %98 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %98) #6
  %99 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 2), align 1, !tbaa !12
  store i8 %99, ptr %2, align 2, !tbaa !12
  %100 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %100) #6
  %101 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 3), align 1, !tbaa !12
  store i8 %101, ptr %2, align 2, !tbaa !12
  %102 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %102) #6
  %103 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 4), align 1, !tbaa !12
  store i8 %103, ptr %2, align 2, !tbaa !12
  %104 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %104) #6
  %105 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 5), align 1, !tbaa !12
  store i8 %105, ptr %2, align 2, !tbaa !12
  %106 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %106) #6
  %107 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 6), align 1, !tbaa !12
  store i8 %107, ptr %2, align 2, !tbaa !12
  %108 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %108) #6
  %109 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 7), align 1, !tbaa !12
  store i8 %109, ptr %2, align 2, !tbaa !12
  %110 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %110) #6
  %111 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 8), align 1, !tbaa !12
  store i8 %111, ptr %2, align 2, !tbaa !12
  %112 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %112) #6
  %113 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 9), align 1, !tbaa !12
  store i8 %113, ptr %2, align 2, !tbaa !12
  %114 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %114) #6
  %115 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 10), align 1, !tbaa !12
  store i8 %115, ptr %2, align 2, !tbaa !12
  %116 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %116) #6
  %117 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 11), align 1, !tbaa !12
  store i8 %117, ptr %2, align 2, !tbaa !12
  %118 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %118) #6
  %119 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 12), align 1, !tbaa !12
  store i8 %119, ptr %2, align 2, !tbaa !12
  %120 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %120) #6
  %121 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 13), align 1, !tbaa !12
  store i8 %121, ptr %2, align 2, !tbaa !12
  %122 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %122) #6
  %123 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 14), align 1, !tbaa !12
  store i8 %123, ptr %2, align 2, !tbaa !12
  %124 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %124) #6
  %125 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 15), align 1, !tbaa !12
  store i8 %125, ptr %2, align 2, !tbaa !12
  %126 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %126) #6
  %127 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 16), align 1, !tbaa !12
  store i8 %127, ptr %2, align 2, !tbaa !12
  %128 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %128) #6
  %129 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 17), align 1, !tbaa !12
  store i8 %129, ptr %2, align 2, !tbaa !12
  %130 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %130) #6
  %131 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 18), align 1, !tbaa !12
  store i8 %131, ptr %2, align 2, !tbaa !12
  %132 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %132) #6
  %133 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 19), align 1, !tbaa !12
  store i8 %133, ptr %2, align 2, !tbaa !12
  %134 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %134) #6
  %135 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 20), align 1, !tbaa !12
  store i8 %135, ptr %2, align 2, !tbaa !12
  %136 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %136) #6
  %137 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 21), align 1, !tbaa !12
  store i8 %137, ptr %2, align 2, !tbaa !12
  %138 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %138) #6
  %139 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 22), align 1, !tbaa !12
  store i8 %139, ptr %2, align 2, !tbaa !12
  %140 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %140) #6
  %141 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 23), align 1, !tbaa !12
  store i8 %141, ptr %2, align 2, !tbaa !12
  %142 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %142) #6
  %143 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 24), align 1, !tbaa !12
  store i8 %143, ptr %2, align 2, !tbaa !12
  %144 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %144) #6
  %145 = load i8, ptr getelementptr inbounds (i8, ptr @.str.49, i64 25), align 1, !tbaa !12
  store i8 %145, ptr %2, align 2, !tbaa !12
  %146 = call ptr @cJSON_CreateNumber(double noundef 1.000000e+00) #6
  call void @cJSON_AddItemToObject(ptr noundef %94, ptr noundef nonnull %2, ptr noundef %146) #6
  %147 = call ptr @cJSON_PrintUnformatted(ptr noundef %94) #6
  call void @cJSONUtils_SortObject(ptr noundef %94) #6
  %148 = call ptr @cJSON_PrintUnformatted(ptr noundef %94) #6
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.59, ptr noundef %147, ptr noundef %148)
  call void @free(ptr noundef %147) #6
  call void @free(ptr noundef %148) #6
  call void @cJSON_Delete(ptr noundef %94) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #6
  ret i32 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare ptr @cJSON_Parse(ptr noundef) local_unnamed_addr #4

declare ptr @cJSON_Print(ptr noundef) local_unnamed_addr #4

declare ptr @cJSONUtils_GetPointer(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

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

declare void @cJSON_Delete(ptr noundef) local_unnamed_addr #4

declare i32 @cJSONUtils_ApplyPatches(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @cJSONUtils_GeneratePatches(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @cJSON_CreateObject() local_unnamed_addr #4

declare ptr @cJSON_CreateIntArray(ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @cJSON_GetArrayItem(ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @cJSON_AddItemToObject(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @cJSONUtils_FindPointerFromObjectTo(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @cJSON_CreateNumber(double noundef) local_unnamed_addr #4

declare ptr @cJSON_PrintUnformatted(ptr noundef) local_unnamed_addr #4

declare void @cJSONUtils_SortObject(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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass