; LLVM IR from yinqiwen/ardb :: deps/cJSON (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.record = type { ptr, double, double, ptr, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.create_objects.strings = external hidden unnamed_addr constant [7 x ptr], align 16
@__const.create_objects.ids = external hidden unnamed_addr constant [4 x i32], align 16
@__const.create_objects.fields = external hidden unnamed_addr constant [2 x %struct.record], align 16
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [7 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

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

declare ptr @cJSON_Print(ptr noundef) #1

declare void @cJSON_Delete(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @create_objects() #3 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [7 x ptr], align 16
  %9 = alloca [3 x [3 x i32]], align 16
  %10 = alloca [4 x i32], align 16
  %11 = alloca [2 x %struct.record], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.create_objects.strings, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %9) #6
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 36, i1 false)
  %12 = getelementptr inbounds [3 x [3 x i32]], ptr %9, i32 0, i32 0
  %13 = getelementptr inbounds [3 x i32], ptr %12, i32 0, i32 1
  store i32 -1, ptr %13, align 4
  %14 = getelementptr inbounds [3 x [3 x i32]], ptr %9, i32 0, i32 1
  %15 = getelementptr inbounds [3 x i32], ptr %14, i32 0, i32 0
  store i32 1, ptr %15, align 4
  %16 = getelementptr inbounds [3 x [3 x i32]], ptr %9, i32 0, i32 2
  %17 = getelementptr inbounds [3 x i32], ptr %16, i32 0, i32 2
  store i32 1, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.create_objects.ids, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %11) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.create_objects.fields, i64 128, i1 false)
  %18 = call ptr @cJSON_CreateObject()
  store ptr %18, ptr %1, align 8, !tbaa !5
  %19 = load ptr, ptr %1, align 8, !tbaa !5
  %20 = call ptr @cJSON_CreateString(ptr noundef @.str.19)
  call void @cJSON_AddItemToObject(ptr noundef %19, ptr noundef @.str.18, ptr noundef %20)
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  %22 = call ptr @cJSON_CreateObject()
  store ptr %22, ptr %2, align 8, !tbaa !5
  call void @cJSON_AddItemToObject(ptr noundef %21, ptr noundef @.str.20, ptr noundef %22)
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = call ptr @cJSON_CreateString(ptr noundef @.str.22)
  call void @cJSON_AddItemToObject(ptr noundef %23, ptr noundef @.str.21, ptr noundef %24)
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = call ptr @cJSON_CreateNumber(double noundef 1.920000e+03)
  call void @cJSON_AddItemToObject(ptr noundef %25, ptr noundef @.str.23, ptr noundef %26)
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = call ptr @cJSON_CreateNumber(double noundef 1.080000e+03)
  call void @cJSON_AddItemToObject(ptr noundef %27, ptr noundef @.str.24, ptr noundef %28)
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = call ptr @cJSON_CreateFalse()
  call void @cJSON_AddItemToObject(ptr noundef %29, ptr noundef @.str.25, ptr noundef %30)
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = call ptr @cJSON_CreateNumber(double noundef 2.400000e+01)
  call void @cJSON_AddItemToObject(ptr noundef %31, ptr noundef @.str.26, ptr noundef %32)
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  %34 = call ptr @cJSON_Print(ptr noundef %33)
  store ptr %34, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %1, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %35)
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %36)
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %38) #6
  %39 = getelementptr inbounds [7 x ptr], ptr %8, i64 0, i64 0
  %40 = call ptr @cJSON_CreateStringArray(ptr noundef %39, i32 noundef 7)
  store ptr %40, ptr %1, align 8, !tbaa !5
  %41 = load ptr, ptr %1, align 8, !tbaa !5
  %42 = call ptr @cJSON_Print(ptr noundef %41)
  store ptr %42, ptr %6, align 8, !tbaa !5
  %43 = load ptr, ptr %1, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %43)
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %44)
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %46) #6
  %47 = call ptr @cJSON_CreateArray()
  store ptr %47, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %58, %0
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = icmp slt i32 %49, 3
  br i1 %50, label %51, label %61

51:                                               ; preds = %48
  %52 = load ptr, ptr %1, align 8, !tbaa !5
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [3 x [3 x i32]], ptr %9, i64 0, i64 %54
  %56 = getelementptr inbounds [3 x i32], ptr %55, i64 0, i64 0
  %57 = call ptr @cJSON_CreateIntArray(ptr noundef %56, i32 noundef 3)
  call void @cJSON_AddItemToArray(ptr noundef %52, ptr noundef %57)
  br label %58

58:                                               ; preds = %51
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %7, align 4, !tbaa !9
  br label %48, !llvm.loop !11

61:                                               ; preds = %48
  %62 = load ptr, ptr %1, align 8, !tbaa !5
  %63 = call ptr @cJSON_Print(ptr noundef %62)
  store ptr %63, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %1, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %64)
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %65)
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %67) #6
  %68 = call ptr @cJSON_CreateObject()
  store ptr %68, ptr %1, align 8, !tbaa !5
  %69 = load ptr, ptr %1, align 8, !tbaa !5
  %70 = call ptr @cJSON_CreateObject()
  store ptr %70, ptr %3, align 8, !tbaa !5
  call void @cJSON_AddItemToObject(ptr noundef %69, ptr noundef @.str.27, ptr noundef %70)
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = call ptr @cJSON_CreateNumber(double noundef 8.000000e+02)
  call void @cJSON_AddItemToObject(ptr noundef %71, ptr noundef @.str.28, ptr noundef %72)
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = call ptr @cJSON_CreateNumber(double noundef 6.000000e+02)
  call void @cJSON_AddItemToObject(ptr noundef %73, ptr noundef @.str.29, ptr noundef %74)
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = call ptr @cJSON_CreateString(ptr noundef @.str.31)
  call void @cJSON_AddItemToObject(ptr noundef %75, ptr noundef @.str.30, ptr noundef %76)
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = call ptr @cJSON_CreateObject()
  store ptr %78, ptr %4, align 8, !tbaa !5
  call void @cJSON_AddItemToObject(ptr noundef %77, ptr noundef @.str.32, ptr noundef %78)
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = call ptr @cJSON_CreateString(ptr noundef @.str.34)
  call void @cJSON_AddItemToObject(ptr noundef %79, ptr noundef @.str.33, ptr noundef %80)
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = call ptr @cJSON_CreateNumber(double noundef 1.250000e+02)
  call void @cJSON_AddItemToObject(ptr noundef %81, ptr noundef @.str.29, ptr noundef %82)
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = call ptr @cJSON_CreateString(ptr noundef @.str.35)
  call void @cJSON_AddItemToObject(ptr noundef %83, ptr noundef @.str.28, ptr noundef %84)
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 0
  %87 = call ptr @cJSON_CreateIntArray(ptr noundef %86, i32 noundef 4)
  call void @cJSON_AddItemToObject(ptr noundef %85, ptr noundef @.str.36, ptr noundef %87)
  %88 = load ptr, ptr %1, align 8, !tbaa !5
  %89 = call ptr @cJSON_Print(ptr noundef %88)
  store ptr %89, ptr %6, align 8, !tbaa !5
  %90 = load ptr, ptr %1, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %90)
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %91)
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %93) #6
  %94 = call ptr @cJSON_CreateArray()
  store ptr %94, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %157, %61
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = icmp slt i32 %96, 2
  br i1 %97, label %98, label %160

98:                                               ; preds = %95
  %99 = load ptr, ptr %1, align 8, !tbaa !5
  %100 = call ptr @cJSON_CreateObject()
  store ptr %100, ptr %5, align 8, !tbaa !5
  call void @cJSON_AddItemToArray(ptr noundef %99, ptr noundef %100)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load i32, ptr %7, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [2 x %struct.record], ptr %11, i64 0, i64 %103
  %105 = getelementptr inbounds %struct.record, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 16, !tbaa !13
  %107 = call ptr @cJSON_CreateString(ptr noundef %106)
  call void @cJSON_AddItemToObject(ptr noundef %101, ptr noundef @.str.37, ptr noundef %107)
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [2 x %struct.record], ptr %11, i64 0, i64 %110
  %112 = getelementptr inbounds %struct.record, ptr %111, i32 0, i32 1
  %113 = load double, ptr %112, align 8, !tbaa !16
  %114 = call ptr @cJSON_CreateNumber(double noundef %113)
  call void @cJSON_AddItemToObject(ptr noundef %108, ptr noundef @.str.38, ptr noundef %114)
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load i32, ptr %7, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [2 x %struct.record], ptr %11, i64 0, i64 %117
  %119 = getelementptr inbounds %struct.record, ptr %118, i32 0, i32 2
  %120 = load double, ptr %119, align 16, !tbaa !17
  %121 = call ptr @cJSON_CreateNumber(double noundef %120)
  call void @cJSON_AddItemToObject(ptr noundef %115, ptr noundef @.str.39, ptr noundef %121)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = load i32, ptr %7, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [2 x %struct.record], ptr %11, i64 0, i64 %124
  %126 = getelementptr inbounds %struct.record, ptr %125, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !18
  %128 = call ptr @cJSON_CreateString(ptr noundef %127)
  call void @cJSON_AddItemToObject(ptr noundef %122, ptr noundef @.str.40, ptr noundef %128)
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = load i32, ptr %7, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [2 x %struct.record], ptr %11, i64 0, i64 %131
  %133 = getelementptr inbounds %struct.record, ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 16, !tbaa !19
  %135 = call ptr @cJSON_CreateString(ptr noundef %134)
  call void @cJSON_AddItemToObject(ptr noundef %129, ptr noundef @.str.41, ptr noundef %135)
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load i32, ptr %7, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [2 x %struct.record], ptr %11, i64 0, i64 %138
  %140 = getelementptr inbounds %struct.record, ptr %139, i32 0, i32 5
  %141 = load ptr, ptr %140, align 8, !tbaa !20
  %142 = call ptr @cJSON_CreateString(ptr noundef %141)
  call void @cJSON_AddItemToObject(ptr noundef %136, ptr noundef @.str.42, ptr noundef %142)
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load i32, ptr %7, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [2 x %struct.record], ptr %11, i64 0, i64 %145
  %147 = getelementptr inbounds %struct.record, ptr %146, i32 0, i32 6
  %148 = load ptr, ptr %147, align 16, !tbaa !21
  %149 = call ptr @cJSON_CreateString(ptr noundef %148)
  call void @cJSON_AddItemToObject(ptr noundef %143, ptr noundef @.str.43, ptr noundef %149)
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [2 x %struct.record], ptr %11, i64 0, i64 %152
  %154 = getelementptr inbounds %struct.record, ptr %153, i32 0, i32 7
  %155 = load ptr, ptr %154, align 8, !tbaa !22
  %156 = call ptr @cJSON_CreateString(ptr noundef %155)
  call void @cJSON_AddItemToObject(ptr noundef %150, ptr noundef @.str.44, ptr noundef %156)
  br label %157

157:                                              ; preds = %98
  %158 = load i32, ptr %7, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %7, align 4, !tbaa !9
  br label %95, !llvm.loop !23

160:                                              ; preds = %95
  %161 = load ptr, ptr %1, align 8, !tbaa !5
  %162 = call ptr @cJSON_Print(ptr noundef %161)
  store ptr %162, ptr %6, align 8, !tbaa !5
  %163 = load ptr, ptr %1, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %163)
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %164)
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %166) #6
  %167 = call ptr @cJSON_CreateObject()
  store ptr %167, ptr %1, align 8, !tbaa !5
  %168 = load ptr, ptr %1, align 8, !tbaa !5
  %169 = call ptr @cJSON_CreateNumber(double noundef 0x7FF0000000000000)
  call void @cJSON_AddItemToObject(ptr noundef %168, ptr noundef @.str.45, ptr noundef %169)
  %170 = load ptr, ptr %1, align 8, !tbaa !5
  %171 = call ptr @cJSON_Print(ptr noundef %170)
  store ptr %171, ptr %6, align 8, !tbaa !5
  %172 = load ptr, ptr %1, align 8, !tbaa !5
  call void @cJSON_Delete(ptr noundef %172)
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %173)
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %175) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret void
}

; 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) #4

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

declare ptr @cJSON_CreateObject() #1

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

declare ptr @cJSON_CreateString(ptr noundef) #1

declare ptr @cJSON_CreateNumber(double noundef) #1

declare ptr @cJSON_CreateFalse() #1

declare ptr @cJSON_CreateStringArray(ptr noundef, i32 noundef) #1

declare ptr @cJSON_CreateArray() #1

declare void @cJSON_AddItemToArray(ptr noundef, ptr noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 "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 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 0}
!14 = !{!"record", !6, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!14, !15, i64 16}
!18 = !{!14, !6, i64 24}
!19 = !{!14, !6, i64 32}
!20 = !{!14, !6, i64 40}
!21 = !{!14, !6, i64 48}
!22 = !{!14, !6, i64 56}
!23 = distinct !{!23, !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"

%struct.record = type { ptr, double, double, ptr, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.create_objects.strings = external hidden unnamed_addr constant [7 x ptr], align 16
@__const.create_objects.ids = external hidden unnamed_addr constant [4 x i32], align 16
@__const.create_objects.fields = external hidden unnamed_addr constant [2 x %struct.record], align 16
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [7 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare ptr @cJSON_Print(ptr noundef) local_unnamed_addr #2

declare void @cJSON_Delete(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @create_objects() local_unnamed_addr #4 {
  %1 = alloca [7 x ptr], align 16
  %2 = alloca [3 x [3 x i32]], align 16
  %3 = alloca [4 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(56) %1, ptr noundef nonnull align 16 dereferenceable(56) @__const.create_objects.strings, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %2) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %2, i8 0, i64 32, i1 false)
  %4 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 -1, ptr %4, align 4
  %5 = getelementptr inbounds i8, ptr %2, i64 12
  store i32 1, ptr %5, align 4
  %6 = getelementptr inbounds i8, ptr %2, i64 32
  store i32 1, ptr %6, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) @__const.create_objects.ids, i64 16, i1 false)
  %7 = tail call ptr @cJSON_CreateObject() #7
  %8 = tail call ptr @cJSON_CreateString(ptr noundef nonnull @.str.19) #7
  tail call void @cJSON_AddItemToObject(ptr noundef %7, ptr noundef nonnull @.str.18, ptr noundef %8) #7
  %9 = tail call ptr @cJSON_CreateObject() #7
  tail call void @cJSON_AddItemToObject(ptr noundef %7, ptr noundef nonnull @.str.20, ptr noundef %9) #7
  %10 = tail call ptr @cJSON_CreateString(ptr noundef nonnull @.str.22) #7
  tail call void @cJSON_AddItemToObject(ptr noundef %9, ptr noundef nonnull @.str.21, ptr noundef %10) #7
  %11 = tail call ptr @cJSON_CreateNumber(double noundef 1.920000e+03) #7
  tail call void @cJSON_AddItemToObject(ptr noundef %9, ptr noundef nonnull @.str.23, ptr noundef %11) #7
  %12 = tail call ptr @cJSON_CreateNumber(double noundef 1.080000e+03) #7
  tail call void @cJSON_AddItemToObject(ptr noundef %9, ptr noundef nonnull @.str.24, ptr noundef %12) #7
  %13 = tail call ptr @cJSON_CreateFalse() #7
  tail call void @cJSON_AddItemToObject(ptr noundef %9, ptr noundef nonnull @.str.25, ptr noundef %13) #7
  %14 = tail call ptr @cJSON_CreateNumber(double noundef 2.400000e+01) #7
  tail call void @cJSON_AddItemToObject(ptr noundef %9, ptr noundef nonnull @.str.26, ptr noundef %14) #7
  %15 = tail call ptr @cJSON_Print(ptr noundef %7) #7
  tail call void @cJSON_Delete(ptr noundef %7) #7
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %15)
  tail call void @free(ptr noundef %15) #7
  %17 = call ptr @cJSON_CreateStringArray(ptr noundef nonnull %1, i32 noundef 7) #7
  %18 = call ptr @cJSON_Print(ptr noundef %17) #7
  call void @cJSON_Delete(ptr noundef %17) #7
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %18)
  call void @free(ptr noundef %18) #7
  %20 = call ptr @cJSON_CreateArray() #7
  %21 = call ptr @cJSON_CreateIntArray(ptr noundef nonnull %2, i32 noundef 3) #7
  call void @cJSON_AddItemToArray(ptr noundef %20, ptr noundef %21) #7
  %22 = call ptr @cJSON_CreateIntArray(ptr noundef nonnull %5, i32 noundef 3) #7
  call void @cJSON_AddItemToArray(ptr noundef %20, ptr noundef %22) #7
  %23 = getelementptr inbounds i8, ptr %2, i64 24
  %24 = call ptr @cJSON_CreateIntArray(ptr noundef nonnull %23, i32 noundef 3) #7
  call void @cJSON_AddItemToArray(ptr noundef %20, ptr noundef %24) #7
  %25 = call ptr @cJSON_Print(ptr noundef %20) #7
  call void @cJSON_Delete(ptr noundef %20) #7
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %25)
  call void @free(ptr noundef %25) #7
  %27 = call ptr @cJSON_CreateObject() #7
  %28 = call ptr @cJSON_CreateObject() #7
  call void @cJSON_AddItemToObject(ptr noundef %27, ptr noundef nonnull @.str.27, ptr noundef %28) #7
  %29 = call ptr @cJSON_CreateNumber(double noundef 8.000000e+02) #7
  call void @cJSON_AddItemToObject(ptr noundef %28, ptr noundef nonnull @.str.28, ptr noundef %29) #7
  %30 = call ptr @cJSON_CreateNumber(double noundef 6.000000e+02) #7
  call void @cJSON_AddItemToObject(ptr noundef %28, ptr noundef nonnull @.str.29, ptr noundef %30) #7
  %31 = call ptr @cJSON_CreateString(ptr noundef nonnull @.str.31) #7
  call void @cJSON_AddItemToObject(ptr noundef %28, ptr noundef nonnull @.str.30, ptr noundef %31) #7
  %32 = call ptr @cJSON_CreateObject() #7
  call void @cJSON_AddItemToObject(ptr noundef %28, ptr noundef nonnull @.str.32, ptr noundef %32) #7
  %33 = call ptr @cJSON_CreateString(ptr noundef nonnull @.str.34) #7
  call void @cJSON_AddItemToObject(ptr noundef %32, ptr noundef nonnull @.str.33, ptr noundef %33) #7
  %34 = call ptr @cJSON_CreateNumber(double noundef 1.250000e+02) #7
  call void @cJSON_AddItemToObject(ptr noundef %32, ptr noundef nonnull @.str.29, ptr noundef %34) #7
  %35 = call ptr @cJSON_CreateString(ptr noundef nonnull @.str.35) #7
  call void @cJSON_AddItemToObject(ptr noundef %32, ptr noundef nonnull @.str.28, ptr noundef %35) #7
  %36 = call ptr @cJSON_CreateIntArray(ptr noundef nonnull %3, i32 noundef 4) #7
  call void @cJSON_AddItemToObject(ptr noundef %28, ptr noundef nonnull @.str.36, ptr noundef %36) #7
  %37 = call ptr @cJSON_Print(ptr noundef %27) #7
  call void @cJSON_Delete(ptr noundef %27) #7
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %37)
  call void @free(ptr noundef %37) #7
  %39 = call ptr @cJSON_CreateArray() #7
  %40 = call ptr @cJSON_CreateObject() #7
  call void @cJSON_AddItemToArray(ptr noundef %39, ptr noundef %40) #7
  %41 = load ptr, ptr @__const.create_objects.fields, align 16, !tbaa !5
  %42 = call ptr @cJSON_CreateString(ptr noundef %41) #7
  call void @cJSON_AddItemToObject(ptr noundef %40, ptr noundef nonnull @.str.37, ptr noundef %42) #7
  %43 = load double, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 8), align 8, !tbaa !11
  %44 = call ptr @cJSON_CreateNumber(double noundef %43) #7
  call void @cJSON_AddItemToObject(ptr noundef %40, ptr noundef nonnull @.str.38, ptr noundef %44) #7
  %45 = load double, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 16), align 16, !tbaa !12
  %46 = call ptr @cJSON_CreateNumber(double noundef %45) #7
  call void @cJSON_AddItemToObject(ptr noundef %40, ptr noundef nonnull @.str.39, ptr noundef %46) #7
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 24), align 8, !tbaa !13
  %48 = call ptr @cJSON_CreateString(ptr noundef %47) #7
  call void @cJSON_AddItemToObject(ptr noundef %40, ptr noundef nonnull @.str.40, ptr noundef %48) #7
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 32), align 16, !tbaa !14
  %50 = call ptr @cJSON_CreateString(ptr noundef %49) #7
  call void @cJSON_AddItemToObject(ptr noundef %40, ptr noundef nonnull @.str.41, ptr noundef %50) #7
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 40), align 8, !tbaa !15
  %52 = call ptr @cJSON_CreateString(ptr noundef %51) #7
  call void @cJSON_AddItemToObject(ptr noundef %40, ptr noundef nonnull @.str.42, ptr noundef %52) #7
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 48), align 16, !tbaa !16
  %54 = call ptr @cJSON_CreateString(ptr noundef %53) #7
  call void @cJSON_AddItemToObject(ptr noundef %40, ptr noundef nonnull @.str.43, ptr noundef %54) #7
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 56), align 8, !tbaa !17
  %56 = call ptr @cJSON_CreateString(ptr noundef %55) #7
  call void @cJSON_AddItemToObject(ptr noundef %40, ptr noundef nonnull @.str.44, ptr noundef %56) #7
  %57 = call ptr @cJSON_CreateObject() #7
  call void @cJSON_AddItemToArray(ptr noundef %39, ptr noundef %57) #7
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 64), align 16, !tbaa !5
  %59 = call ptr @cJSON_CreateString(ptr noundef %58) #7
  call void @cJSON_AddItemToObject(ptr noundef %57, ptr noundef nonnull @.str.37, ptr noundef %59) #7
  %60 = load double, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 72), align 8, !tbaa !11
  %61 = call ptr @cJSON_CreateNumber(double noundef %60) #7
  call void @cJSON_AddItemToObject(ptr noundef %57, ptr noundef nonnull @.str.38, ptr noundef %61) #7
  %62 = load double, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 80), align 16, !tbaa !12
  %63 = call ptr @cJSON_CreateNumber(double noundef %62) #7
  call void @cJSON_AddItemToObject(ptr noundef %57, ptr noundef nonnull @.str.39, ptr noundef %63) #7
  %64 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 88), align 8, !tbaa !13
  %65 = call ptr @cJSON_CreateString(ptr noundef %64) #7
  call void @cJSON_AddItemToObject(ptr noundef %57, ptr noundef nonnull @.str.40, ptr noundef %65) #7
  %66 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 96), align 16, !tbaa !14
  %67 = call ptr @cJSON_CreateString(ptr noundef %66) #7
  call void @cJSON_AddItemToObject(ptr noundef %57, ptr noundef nonnull @.str.41, ptr noundef %67) #7
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 104), align 8, !tbaa !15
  %69 = call ptr @cJSON_CreateString(ptr noundef %68) #7
  call void @cJSON_AddItemToObject(ptr noundef %57, ptr noundef nonnull @.str.42, ptr noundef %69) #7
  %70 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 112), align 16, !tbaa !16
  %71 = call ptr @cJSON_CreateString(ptr noundef %70) #7
  call void @cJSON_AddItemToObject(ptr noundef %57, ptr noundef nonnull @.str.43, ptr noundef %71) #7
  %72 = load ptr, ptr getelementptr inbounds (i8, ptr @__const.create_objects.fields, i64 120), align 8, !tbaa !17
  %73 = call ptr @cJSON_CreateString(ptr noundef %72) #7
  call void @cJSON_AddItemToObject(ptr noundef %57, ptr noundef nonnull @.str.44, ptr noundef %73) #7
  %74 = call ptr @cJSON_Print(ptr noundef %39) #7
  call void @cJSON_Delete(ptr noundef %39) #7
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %74)
  call void @free(ptr noundef %74) #7
  %76 = call ptr @cJSON_CreateObject() #7
  %77 = call ptr @cJSON_CreateNumber(double noundef 0x7FF0000000000000) #7
  call void @cJSON_AddItemToObject(ptr noundef %76, ptr noundef nonnull @.str.45, ptr noundef %77) #7
  %78 = call ptr @cJSON_Print(ptr noundef %76) #7
  call void @cJSON_Delete(ptr noundef %76) #7
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %78)
  call void @free(ptr noundef %78) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %1) #7
  ret void
}

; 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) #5

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

declare ptr @cJSON_CreateObject() local_unnamed_addr #2

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

declare ptr @cJSON_CreateString(ptr noundef) local_unnamed_addr #2

declare ptr @cJSON_CreateNumber(double noundef) local_unnamed_addr #2

declare ptr @cJSON_CreateFalse() local_unnamed_addr #2

declare ptr @cJSON_CreateStringArray(ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @cJSON_CreateArray() local_unnamed_addr #2

declare void @cJSON_AddItemToArray(ptr noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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, !7, i64 0}
!6 = !{!"record", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !7, i64 40}
!16 = !{!6, !7, i64 48}
!17 = !{!6, !7, i64 56}


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