; LLVM IR from Slingshot-Physics/slingshot-community :: datamodel (data_scenario)

; 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.scenario = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, %struct.loggerConfig }
%struct.loggerConfig = type { [120 x i8], i32 }

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @scenario_from_json(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %6 = load ptr, ptr %4, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %2
  store i32 0, ptr %3, align 4
  br label %166

9:                                                ; preds = %2
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %13

12:                                               ; preds = %9
  store i32 0, ptr %3, align 4
  br label %166

13:                                               ; preds = %9
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = call i32 @verify_typename(ptr noundef %14, ptr noundef @.str)
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  store i32 0, ptr %3, align 4
  br label %166

18:                                               ; preds = %13
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.scenario, ptr %20, i32 0, i32 28
  %22 = call i32 @copy_object_field(ptr noundef %19, ptr noundef @.str.1, ptr noundef @anon_loggerConfig_from_json, ptr noundef %21)
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %25, label %24

24:                                               ; preds = %18
  store i32 0, ptr %3, align 4
  br label %166

25:                                               ; preds = %18
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.scenario, ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.scenario, ptr %29, i32 0, i32 1
  %31 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %26, ptr noundef @.str.2, i32 noundef 5000, ptr noundef %28, ptr noundef @anon_isometricCollider_from_json, ptr noundef %30, i32 noundef 16)
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %35, label %33

33:                                               ; preds = %25
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  store i32 0, ptr %3, align 4
  br label %166

35:                                               ; preds = %25
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.scenario, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.scenario, ptr %39, i32 0, i32 3
  %41 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %36, ptr noundef @.str.3, i32 noundef 5000, ptr noundef %38, ptr noundef @anon_rigidbody_from_json, ptr noundef %40, i32 noundef 100)
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %45, label %43

43:                                               ; preds = %35
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  store i32 0, ptr %3, align 4
  br label %166

45:                                               ; preds = %35
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.scenario, ptr %47, i32 0, i32 4
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.scenario, ptr %49, i32 0, i32 5
  %51 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %46, ptr noundef @.str.4, i32 noundef 5000, ptr noundef %48, ptr noundef @anon_shape_from_json, ptr noundef %50, i32 noundef 20)
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %55, label %53

53:                                               ; preds = %45
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  store i32 0, ptr %3, align 4
  br label %166

55:                                               ; preds = %45
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.scenario, ptr %57, i32 0, i32 6
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.scenario, ptr %59, i32 0, i32 7
  %61 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %56, ptr noundef @.str.5, i32 noundef 5000, ptr noundef %58, ptr noundef @anon_constraintBalljoint_from_json, ptr noundef %60, i32 noundef 32)
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %65, label %63

63:                                               ; preds = %55
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  store i32 0, ptr %3, align 4
  br label %166

65:                                               ; preds = %55
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.scenario, ptr %67, i32 0, i32 8
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.scenario, ptr %69, i32 0, i32 9
  %71 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %66, ptr noundef @.str.6, i32 noundef 5000, ptr noundef %68, ptr noundef @anon_constraintGear_from_json, ptr noundef %70, i32 noundef 44)
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %75, label %73

73:                                               ; preds = %65
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  store i32 0, ptr %3, align 4
  br label %166

75:                                               ; preds = %65
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.scenario, ptr %77, i32 0, i32 10
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.scenario, ptr %79, i32 0, i32 11
  %81 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %76, ptr noundef @.str.7, i32 noundef 5000, ptr noundef %78, ptr noundef @anon_constraintRevoluteJoint_from_json, ptr noundef %80, i32 noundef 56)
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %85, label %83

83:                                               ; preds = %75
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  store i32 0, ptr %3, align 4
  br label %166

85:                                               ; preds = %75
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.scenario, ptr %87, i32 0, i32 12
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.scenario, ptr %89, i32 0, i32 13
  %91 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %86, ptr noundef @.str.8, i32 noundef 5000, ptr noundef %88, ptr noundef @anon_constraintRevoluteMotor_from_json, ptr noundef %90, i32 noundef 40)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %95, label %93

93:                                               ; preds = %85
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  store i32 0, ptr %3, align 4
  br label %166

95:                                               ; preds = %85
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.scenario, ptr %97, i32 0, i32 14
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.scenario, ptr %99, i32 0, i32 15
  %101 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %96, ptr noundef @.str.9, i32 noundef 5000, ptr noundef %98, ptr noundef @anon_constraintRotation1d_from_json, ptr noundef %100, i32 noundef 32)
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %105, label %103

103:                                              ; preds = %95
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  store i32 0, ptr %3, align 4
  br label %166

105:                                              ; preds = %95
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.scenario, ptr %107, i32 0, i32 16
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.scenario, ptr %109, i32 0, i32 17
  %111 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %106, ptr noundef @.str.10, i32 noundef 5000, ptr noundef %108, ptr noundef @anon_constraintTranslation1d_from_json, ptr noundef %110, i32 noundef 44)
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %115, label %113

113:                                              ; preds = %105
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  store i32 0, ptr %3, align 4
  br label %166

115:                                              ; preds = %105
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.scenario, ptr %117, i32 0, i32 18
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.scenario, ptr %119, i32 0, i32 19
  %121 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %116, ptr noundef @.str.11, i32 noundef 5000, ptr noundef %118, ptr noundef @anon_forceConstant_from_json, ptr noundef %120, i32 noundef 32)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %125, label %123

123:                                              ; preds = %115
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  store i32 0, ptr %3, align 4
  br label %166

125:                                              ; preds = %115
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.scenario, ptr %127, i32 0, i32 20
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.scenario, ptr %129, i32 0, i32 21
  %131 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %126, ptr noundef @.str.12, i32 noundef 5000, ptr noundef %128, ptr noundef @anon_forceDrag_from_json, ptr noundef %130, i32 noundef 12)
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %135, label %133

133:                                              ; preds = %125
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  store i32 0, ptr %3, align 4
  br label %166

135:                                              ; preds = %125
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.scenario, ptr %137, i32 0, i32 22
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.scenario, ptr %139, i32 0, i32 23
  %141 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %136, ptr noundef @.str.13, i32 noundef 5000, ptr noundef %138, ptr noundef @anon_forceSpring_from_json, ptr noundef %140, i32 noundef 40)
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %145, label %143

143:                                              ; preds = %135
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  store i32 0, ptr %3, align 4
  br label %166

145:                                              ; preds = %135
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.scenario, ptr %147, i32 0, i32 24
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.scenario, ptr %149, i32 0, i32 25
  %151 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %146, ptr noundef @.str.14, i32 noundef 5000, ptr noundef %148, ptr noundef @anon_forceVelocityDamper_from_json, ptr noundef %150, i32 noundef 36)
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %155, label %153

153:                                              ; preds = %145
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  store i32 0, ptr %3, align 4
  br label %166

155:                                              ; preds = %145
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.scenario, ptr %157, i32 0, i32 26
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.scenario, ptr %159, i32 0, i32 27
  %161 = call i32 @copy_optional_dynamic_object_array_field(ptr noundef %156, ptr noundef @.str.15, i32 noundef 5000, ptr noundef %158, ptr noundef @anon_torqueDrag_from_json, ptr noundef %160, i32 noundef 12)
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %165, label %163

163:                                              ; preds = %155
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  store i32 0, ptr %3, align 4
  br label %166

165:                                              ; preds = %155
  store i32 1, ptr %3, align 4
  br label %166

166:                                              ; preds = %165, %163, %153, %143, %133, %123, %113, %103, %93, %83, %73, %63, %53, %43, %33, %24, %17, %12, %8
  %167 = load i32, ptr %3, align 4
  ret i32 %167
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 = { "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" }

!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"}


; 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 [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @scenario_from_json(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = icmp eq ptr %0, null
  %4 = icmp eq ptr %1, null
  %or.cond = or i1 %3, %4
  br i1 %or.cond, label %66, label %5

5:                                                ; preds = %2
  %6 = tail call i32 @verify_typename(ptr noundef nonnull %0, ptr noundef nonnull @.str) #3
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %66, label %7

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %1, i64 224
  %9 = tail call i32 @copy_object_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @anon_loggerConfig_from_json, ptr noundef nonnull %8) #3
  %.not49 = icmp eq i32 %9, 0
  br i1 %.not49, label %66, label %10

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.2, i32 noundef 5000, ptr noundef nonnull %1, ptr noundef nonnull @anon_isometricCollider_from_json, ptr noundef nonnull %11, i32 noundef 16) #3
  %.not50 = icmp eq i32 %12, 0
  br i1 %.not50, label %.sink.split, label %13

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = getelementptr inbounds i8, ptr %1, i64 24
  %16 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef 5000, ptr noundef nonnull %14, ptr noundef nonnull @anon_rigidbody_from_json, ptr noundef nonnull %15, i32 noundef 100) #3
  %.not51 = icmp eq i32 %16, 0
  br i1 %.not51, label %.sink.split, label %17

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %1, i64 32
  %19 = getelementptr inbounds i8, ptr %1, i64 40
  %20 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.4, i32 noundef 5000, ptr noundef nonnull %18, ptr noundef nonnull @anon_shape_from_json, ptr noundef nonnull %19, i32 noundef 20) #3
  %.not52 = icmp eq i32 %20, 0
  br i1 %.not52, label %.sink.split, label %21

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %1, i64 48
  %23 = getelementptr inbounds i8, ptr %1, i64 56
  %24 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.5, i32 noundef 5000, ptr noundef nonnull %22, ptr noundef nonnull @anon_constraintBalljoint_from_json, ptr noundef nonnull %23, i32 noundef 32) #3
  %.not53 = icmp eq i32 %24, 0
  br i1 %.not53, label %.sink.split, label %25

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %1, i64 64
  %27 = getelementptr inbounds i8, ptr %1, i64 72
  %28 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.6, i32 noundef 5000, ptr noundef nonnull %26, ptr noundef nonnull @anon_constraintGear_from_json, ptr noundef nonnull %27, i32 noundef 44) #3
  %.not54 = icmp eq i32 %28, 0
  br i1 %.not54, label %.sink.split, label %29

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %1, i64 80
  %31 = getelementptr inbounds i8, ptr %1, i64 88
  %32 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.7, i32 noundef 5000, ptr noundef nonnull %30, ptr noundef nonnull @anon_constraintRevoluteJoint_from_json, ptr noundef nonnull %31, i32 noundef 56) #3
  %.not55 = icmp eq i32 %32, 0
  br i1 %.not55, label %.sink.split, label %33

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %1, i64 96
  %35 = getelementptr inbounds i8, ptr %1, i64 104
  %36 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.8, i32 noundef 5000, ptr noundef nonnull %34, ptr noundef nonnull @anon_constraintRevoluteMotor_from_json, ptr noundef nonnull %35, i32 noundef 40) #3
  %.not56 = icmp eq i32 %36, 0
  br i1 %.not56, label %.sink.split, label %37

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %1, i64 112
  %39 = getelementptr inbounds i8, ptr %1, i64 120
  %40 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.9, i32 noundef 5000, ptr noundef nonnull %38, ptr noundef nonnull @anon_constraintRotation1d_from_json, ptr noundef nonnull %39, i32 noundef 32) #3
  %.not57 = icmp eq i32 %40, 0
  br i1 %.not57, label %.sink.split, label %41

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %1, i64 128
  %43 = getelementptr inbounds i8, ptr %1, i64 136
  %44 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.10, i32 noundef 5000, ptr noundef nonnull %42, ptr noundef nonnull @anon_constraintTranslation1d_from_json, ptr noundef nonnull %43, i32 noundef 44) #3
  %.not58 = icmp eq i32 %44, 0
  br i1 %.not58, label %.sink.split, label %45

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %1, i64 144
  %47 = getelementptr inbounds i8, ptr %1, i64 152
  %48 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.11, i32 noundef 5000, ptr noundef nonnull %46, ptr noundef nonnull @anon_forceConstant_from_json, ptr noundef nonnull %47, i32 noundef 32) #3
  %.not59 = icmp eq i32 %48, 0
  br i1 %.not59, label %.sink.split, label %49

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %1, i64 160
  %51 = getelementptr inbounds i8, ptr %1, i64 168
  %52 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.12, i32 noundef 5000, ptr noundef nonnull %50, ptr noundef nonnull @anon_forceDrag_from_json, ptr noundef nonnull %51, i32 noundef 12) #3
  %.not60 = icmp eq i32 %52, 0
  br i1 %.not60, label %.sink.split, label %53

53:                                               ; preds = %49
  %54 = getelementptr inbounds i8, ptr %1, i64 176
  %55 = getelementptr inbounds i8, ptr %1, i64 184
  %56 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.13, i32 noundef 5000, ptr noundef nonnull %54, ptr noundef nonnull @anon_forceSpring_from_json, ptr noundef nonnull %55, i32 noundef 40) #3
  %.not61 = icmp eq i32 %56, 0
  br i1 %.not61, label %.sink.split, label %57

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %1, i64 192
  %59 = getelementptr inbounds i8, ptr %1, i64 200
  %60 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.14, i32 noundef 5000, ptr noundef nonnull %58, ptr noundef nonnull @anon_forceVelocityDamper_from_json, ptr noundef nonnull %59, i32 noundef 36) #3
  %.not62 = icmp eq i32 %60, 0
  br i1 %.not62, label %.sink.split, label %61

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %1, i64 208
  %63 = getelementptr inbounds i8, ptr %1, i64 216
  %64 = tail call i32 @copy_optional_dynamic_object_array_field(ptr noundef nonnull %0, ptr noundef nonnull @.str.15, i32 noundef 5000, ptr noundef nonnull %62, ptr noundef nonnull @anon_torqueDrag_from_json, ptr noundef nonnull %63, i32 noundef 12) #3
  %.not63 = icmp eq i32 %64, 0
  br i1 %.not63, label %.sink.split, label %66

.sink.split:                                      ; preds = %61, %57, %53, %49, %45, %41, %37, %33, %29, %25, %21, %17, %13, %10
  %.str.29.sink = phi ptr [ @.str.16, %10 ], [ @.str.17, %13 ], [ @.str.18, %17 ], [ @.str.19, %21 ], [ @.str.20, %25 ], [ @.str.21, %29 ], [ @.str.22, %33 ], [ @.str.23, %37 ], [ @.str.24, %41 ], [ @.str.25, %45 ], [ @.str.26, %49 ], [ @.str.27, %53 ], [ @.str.28, %57 ], [ @.str.29, %61 ]
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.29.sink)
  br label %66

66:                                               ; preds = %.sink.split, %61, %7, %5, %2
  %.0 = phi i32 [ 0, %2 ], [ 0, %5 ], [ 0, %7 ], [ 1, %61 ], [ 0, %.sink.split ]
  ret i32 %.0
}

declare i32 @verify_typename(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @copy_object_field(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @copy_optional_dynamic_object_array_field(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 = { "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 = { 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 #3 = { 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)"}


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