; LLVM IR from downdemo/Cpp-Templates-2ed :: src (expression_template)

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

%"class.jc::test::Array" = type { %"class.jc::SArray" }
%"class.jc::SArray" = type { ptr, i64 }
%"class.jc::test::Array.0" = type { %"class.jc::A_Add" }
%"class.jc::A_Add" = type { ptr, ptr }
%"class.jc::test::Array.1" = type { %"class.jc::A_Mult" }
%"class.jc::A_Mult" = type { %"class.jc::A_Scalar", ptr }
%"class.jc::A_Scalar" = type { ptr }
%"class.jc::test::Array.2" = type { %"class.jc::A_Mult.3" }
%"class.jc::A_Mult.3" = type { ptr, ptr }
%"class.jc::test::Array.4" = type { %"class.jc::A_Mult.5" }
%"class.jc::A_Mult.5" = type { %"class.jc::A_Scalar", ptr }
%"class.jc::test::Array.6" = type { %"class.jc::A_Subscript" }
%"class.jc::A_Subscript" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca %"class.jc::test::Array", align 8
  %6 = alloca %"class.jc::test::Array", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.jc::test::Array.0", align 8
  %11 = alloca %"class.jc::test::Array.1", align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.jc::test::Array.2", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"class.jc::test::Array.4", align 8
  %16 = alloca double, align 8
  %17 = alloca %"class.jc::test::Array.6", align 8
  %18 = alloca %"class.jc::test::Array.6", align 8
  %19 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  store i64 1000, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store double 1.000000e+01, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store double 2.000000e+00, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 1000)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  invoke void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 1000)
          to label %20 unwind label %26

20:                                               ; preds = %0
  %21 = invoke noundef i64 @_ZNK2jc4test5ArrayIdNS_6SArrayIdEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %22 unwind label %30

22:                                               ; preds = %20
  %23 = icmp eq i64 %21, 1000
  br i1 %23, label %24, label %25

24:                                               ; preds = %22
  br label %35

25:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 266, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

26:                                               ; preds = %0
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %7, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %8, align 4
  br label %177

30:                                               ; preds = %35, %20
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  br label %176

34:                                               ; No predecessors!
  br label %35

35:                                               ; preds = %34, %24
  %36 = invoke noundef i64 @_ZNK2jc4test5ArrayIdNS_6SArrayIdEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %37 unwind label %30

37:                                               ; preds = %35
  %38 = icmp eq i64 %36, 1000
  br i1 %38, label %39, label %40

39:                                               ; preds = %37
  br label %42

40:                                               ; preds = %37
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 267, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

41:                                               ; No predecessors!
  br label %42

42:                                               ; preds = %41, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %54, %42
  %44 = load i64, ptr %9, align 8, !tbaa !5
  %45 = icmp ult i64 %44, 1000
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %61

47:                                               ; preds = %43
  %48 = load i64, ptr %9, align 8, !tbaa !5
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %48)
          to label %50 unwind label %57

50:                                               ; preds = %47
  store double 1.000000e+01, ptr %49, align 8, !tbaa !9
  %51 = load i64, ptr %9, align 8, !tbaa !5
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %51)
          to label %53 unwind label %57

53:                                               ; preds = %50
  store double 2.000000e+00, ptr %52, align 8, !tbaa !9
  br label %54

54:                                               ; preds = %53
  %55 = load i64, ptr %9, align 8, !tbaa !5
  %56 = add i64 %55, 1
  store i64 %56, ptr %9, align 8, !tbaa !5
  br label %43, !llvm.loop !11

57:                                               ; preds = %50, %47
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %176

61:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 1.200000e+00, ptr %12, align 8, !tbaa !9
  %62 = invoke { ptr, ptr } @_ZN2jc4testmlIdNS_6SArrayIdEEEENS0_5ArrayIT_NS_6A_MultIS5_NS_8A_ScalarIS5_EET0_EEEERKS5_RKNS4_IS5_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %63 unwind label %89

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"class.jc::test::Array.1", ptr %11, i32 0, i32 0
  %65 = getelementptr inbounds { ptr, ptr }, ptr %64, i32 0, i32 0
  %66 = extractvalue { ptr, ptr } %62, 0
  store ptr %66, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, ptr }, ptr %64, i32 0, i32 1
  %68 = extractvalue { ptr, ptr } %62, 1
  store ptr %68, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %69 = invoke { ptr, ptr } @_ZN2jc4testmlIdNS_6SArrayIdEES3_EENS0_5ArrayIT_NS_6A_MultIS5_T0_T1_EEEERKNS4_IS5_S7_EERKNS4_IS5_S8_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %70 unwind label %93

70:                                               ; preds = %63
  %71 = getelementptr inbounds %"class.jc::test::Array.2", ptr %13, i32 0, i32 0
  %72 = getelementptr inbounds { ptr, ptr }, ptr %71, i32 0, i32 0
  %73 = extractvalue { ptr, ptr } %69, 0
  store ptr %73, ptr %72, align 8
  %74 = getelementptr inbounds { ptr, ptr }, ptr %71, i32 0, i32 1
  %75 = extractvalue { ptr, ptr } %69, 1
  store ptr %75, ptr %74, align 8
  %76 = invoke { ptr, ptr } @_ZN2jc4testplIdNS_6A_MultIdNS_8A_ScalarIdEENS_6SArrayIdEEEENS2_IdS6_S6_EEEENS0_5ArrayIT_NS_5A_AddISA_T0_T1_EEEERKNS9_ISA_SC_EERKNS9_ISA_SD_EE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %77 unwind label %93

77:                                               ; preds = %70
  %78 = getelementptr inbounds %"class.jc::test::Array.0", ptr %10, i32 0, i32 0
  %79 = getelementptr inbounds { ptr, ptr }, ptr %78, i32 0, i32 0
  %80 = extractvalue { ptr, ptr } %76, 0
  store ptr %80, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, ptr }, ptr %78, i32 0, i32 1
  %82 = extractvalue { ptr, ptr } %76, 1
  store ptr %82, ptr %81, align 8
  %83 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEaSIdNS_5A_AddIdNS_6A_MultIdNS_8A_ScalarIdEES3_EENS7_IdS3_S3_EEEEEERS4_RKNS1_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %84 unwind label %93

84:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %117, %84
  %86 = load i64, ptr %14, align 8, !tbaa !5
  %87 = icmp ult i64 %86, 1000
  br i1 %87, label %98, label %88

88:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %120

89:                                               ; preds = %61
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %7, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %8, align 4
  br label %97

93:                                               ; preds = %77, %70, %63
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %7, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %97

97:                                               ; preds = %93, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %176

98:                                               ; preds = %85
  %99 = load i64, ptr %14, align 8, !tbaa !5
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %99)
          to label %101 unwind label %106

101:                                              ; preds = %98
  %102 = load double, ptr %100, align 8, !tbaa !9
  %103 = fcmp oeq double %102, 3.200000e+01
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  br label %111

105:                                              ; preds = %101
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 293, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

106:                                              ; preds = %111, %98
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %7, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %176

110:                                              ; No predecessors!
  br label %111

111:                                              ; preds = %110, %104
  %112 = load i64, ptr %14, align 8, !tbaa !5
  %113 = uitofp i64 %112 to double
  %114 = load i64, ptr %14, align 8, !tbaa !5
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %114)
          to label %116 unwind label %106

116:                                              ; preds = %111
  store double %113, ptr %115, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %116
  %118 = load i64, ptr %14, align 8, !tbaa !5
  %119 = add i64 %118, 1
  store i64 %119, ptr %14, align 8, !tbaa !5
  br label %85, !llvm.loop !13

120:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 2.000000e+00, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %121 = invoke { ptr, ptr } @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixIdS3_EENS1_IdNS_11A_SubscriptIdS3_T0_EEEERKNS1_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %122 unwind label %148

122:                                              ; preds = %120
  %123 = getelementptr inbounds %"class.jc::test::Array.6", ptr %17, i32 0, i32 0
  %124 = getelementptr inbounds { ptr, ptr }, ptr %123, i32 0, i32 0
  %125 = extractvalue { ptr, ptr } %121, 0
  store ptr %125, ptr %124, align 8
  %126 = getelementptr inbounds { ptr, ptr }, ptr %123, i32 0, i32 1
  %127 = extractvalue { ptr, ptr } %121, 1
  store ptr %127, ptr %126, align 8
  %128 = invoke { ptr, ptr } @_ZN2jc4testmlIdNS_11A_SubscriptIdNS_6SArrayIdEES4_EEEENS0_5ArrayIT_NS_6A_MultIS7_NS_8A_ScalarIS7_EET0_EEEERKS7_RKNS6_IS7_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %129 unwind label %148

129:                                              ; preds = %122
  %130 = getelementptr inbounds %"class.jc::test::Array.4", ptr %15, i32 0, i32 0
  %131 = getelementptr inbounds { ptr, ptr }, ptr %130, i32 0, i32 0
  %132 = extractvalue { ptr, ptr } %128, 0
  store ptr %132, ptr %131, align 8
  %133 = getelementptr inbounds { ptr, ptr }, ptr %130, i32 0, i32 1
  %134 = extractvalue { ptr, ptr } %128, 1
  store ptr %134, ptr %133, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %135 = invoke { ptr, ptr } @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixIdS3_EENS1_IdNS_11A_SubscriptIdS3_T0_EEEERKNS1_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %136 unwind label %152

136:                                              ; preds = %129
  %137 = getelementptr inbounds %"class.jc::test::Array.6", ptr %18, i32 0, i32 0
  %138 = getelementptr inbounds { ptr, ptr }, ptr %137, i32 0, i32 0
  %139 = extractvalue { ptr, ptr } %135, 0
  store ptr %139, ptr %138, align 8
  %140 = getelementptr inbounds { ptr, ptr }, ptr %137, i32 0, i32 1
  %141 = extractvalue { ptr, ptr } %135, 1
  store ptr %141, ptr %140, align 8
  %142 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN2jc4test5ArrayIdNS_11A_SubscriptIdNS_6SArrayIdEES4_EEEaSIdNS_6A_MultIdNS_8A_ScalarIdEES5_EEEERS6_RKNS1_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %143 unwind label %152

143:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !5
  br label %144

144:                                              ; preds = %171, %143
  %145 = load i64, ptr %19, align 8, !tbaa !5
  %146 = icmp ult i64 %145, 1000
  br i1 %146, label %157, label %147

147:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %174

148:                                              ; preds = %122, %120
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %7, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %8, align 4
  br label %156

152:                                              ; preds = %136, %129
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %7, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %156

156:                                              ; preds = %152, %148
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %176

157:                                              ; preds = %144
  %158 = load i64, ptr %19, align 8, !tbaa !5
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %158)
          to label %160 unwind label %165

160:                                              ; preds = %157
  %161 = load double, ptr %159, align 8, !tbaa !9
  %162 = fcmp oeq double %161, 6.400000e+01
  br i1 %162, label %163, label %164

163:                                              ; preds = %160
  br label %170

164:                                              ; preds = %160
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 305, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

165:                                              ; preds = %157
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %7, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %176

169:                                              ; No predecessors!
  br label %170

170:                                              ; preds = %169, %163
  br label %171

171:                                              ; preds = %170
  %172 = load i64, ptr %19, align 8, !tbaa !5
  %173 = add i64 %172, 1
  store i64 %173, ptr %19, align 8, !tbaa !5
  br label %144, !llvm.loop !14

174:                                              ; preds = %147
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %175 = load i32, ptr %1, align 4
  ret i32 %175

176:                                              ; preds = %165, %156, %106, %97, %57, %30
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %177

177:                                              ; preds = %176, %26
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %7, align 8
  %180 = load i32, ptr %8, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK2jc4test5ArrayIdNS_6SArrayIdEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4testplIdNS_6A_MultIdNS_8A_ScalarIdEENS_6SArrayIdEEEENS2_IdS6_S6_EEEENS0_5ArrayIT_NS_5A_AddISA_T0_T1_EEEERKNS9_ISA_SC_EERKNS9_ISA_SD_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4testmlIdNS_6SArrayIdEEEENS0_5ArrayIT_NS_6A_MultIS5_NS_8A_ScalarIS5_EET0_EEEERKS5_RKNS4_IS5_S9_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4testmlIdNS_6SArrayIdEES3_EENS0_5ArrayIT_NS_6A_MultIS5_T0_T1_EEEERKNS4_IS5_S7_EERKNS4_IS5_S8_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEaSIdNS_5A_AddIdNS_6A_MultIdNS_8A_ScalarIdEES3_EENS7_IdS3_S3_EEEEEERS4_RKNS1_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4testmlIdNS_11A_SubscriptIdNS_6SArrayIdEES4_EEEENS0_5ArrayIT_NS_6A_MultIS7_NS_8A_ScalarIS7_EET0_EEEERKS7_RKNS6_IS7_SB_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixIdS3_EENS1_IdNS_11A_SubscriptIdS3_T0_EEEERKNS1_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN2jc4test5ArrayIdNS_11A_SubscriptIdNS_6SArrayIdEES4_EEEaSIdNS_6A_MultIdNS_8A_ScalarIdEES5_EEEERS6_RKNS1_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

attributes #0 = { mustprogress norecurse 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 = { mustprogress 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 #3 = { noreturn 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 = { inlinehint mustprogress 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 = { nounwind }
attributes #6 = { noreturn 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !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"

%"class.jc::test::Array" = type { %"class.jc::SArray" }
%"class.jc::SArray" = type { ptr, i64 }
%"class.jc::test::Array.0" = type { %"class.jc::A_Add" }
%"class.jc::A_Add" = type { ptr, ptr }
%"class.jc::test::Array.1" = type { %"class.jc::A_Mult" }
%"class.jc::A_Mult" = type { %"class.jc::A_Scalar", ptr }
%"class.jc::A_Scalar" = type { ptr }
%"class.jc::test::Array.2" = type { %"class.jc::A_Mult.3" }
%"class.jc::A_Mult.3" = type { ptr, ptr }
%"class.jc::test::Array.4" = type { %"class.jc::A_Mult.5" }
%"class.jc::A_Mult.5" = type { %"class.jc::A_Scalar", ptr }
%"class.jc::test::Array.6" = type { %"class.jc::A_Subscript" }
%"class.jc::A_Subscript" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.jc::test::Array", align 8
  %2 = alloca %"class.jc::test::Array", align 8
  %3 = alloca %"class.jc::test::Array.0", align 8
  %4 = alloca %"class.jc::test::Array.1", align 8
  %5 = alloca double, align 8
  %6 = alloca %"class.jc::test::Array.2", align 8
  %7 = alloca %"class.jc::test::Array.4", align 8
  %8 = alloca double, align 8
  %9 = alloca %"class.jc::test::Array.6", align 8
  %10 = alloca %"class.jc::test::Array.6", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef 1000)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  invoke void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 1000)
          to label %11 unwind label %16

11:                                               ; preds = %0
  %12 = invoke noundef i64 @_ZNK2jc4test5ArrayIdNS_6SArrayIdEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %13 unwind label %18

13:                                               ; preds = %11
  %14 = icmp eq i64 %12, 1000
  br i1 %14, label %20, label %15

15:                                               ; preds = %13
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 266, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

16:                                               ; preds = %0
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %103

18:                                               ; preds = %20, %11
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %102

20:                                               ; preds = %13
  %21 = invoke noundef i64 @_ZNK2jc4test5ArrayIdNS_6SArrayIdEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %22 unwind label %18

22:                                               ; preds = %20
  %23 = icmp eq i64 %21, 1000
  br i1 %23, label %.preheader, label %24

24:                                               ; preds = %22
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 267, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

25:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store double 1.200000e+00, ptr %5, align 8, !tbaa !5
  %26 = invoke { ptr, ptr } @_ZN2jc4testmlIdNS_6SArrayIdEEEENS0_5ArrayIT_NS_6A_MultIS5_NS_8A_ScalarIS5_EET0_EEEERKS5_RKNS4_IS5_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %34 unwind label %52

.preheader:                                       ; preds = %22, %30
  %.01527 = phi i64 [ %31, %30 ], [ 0, %22 ]
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %.01527)
          to label %28 unwind label %32

28:                                               ; preds = %.preheader
  store double 1.000000e+01, ptr %27, align 8, !tbaa !5
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %.01527)
          to label %30 unwind label %32

30:                                               ; preds = %28
  store double 2.000000e+00, ptr %29, align 8, !tbaa !5
  %31 = add nuw nsw i64 %.01527, 1
  %exitcond.not = icmp eq i64 %31, 1000
  br i1 %exitcond.not, label %25, label %.preheader, !llvm.loop !9

32:                                               ; preds = %28, %.preheader
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %102

34:                                               ; preds = %25
  %35 = extractvalue { ptr, ptr } %26, 0
  store ptr %35, ptr %4, align 8
  %36 = getelementptr inbounds i8, ptr %4, i64 8
  %37 = extractvalue { ptr, ptr } %26, 1
  store ptr %37, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %38 = invoke { ptr, ptr } @_ZN2jc4testmlIdNS_6SArrayIdEES3_EENS0_5ArrayIT_NS_6A_MultIS5_T0_T1_EEEERKNS4_IS5_S7_EERKNS4_IS5_S8_EE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %39 unwind label %54

39:                                               ; preds = %34
  %40 = extractvalue { ptr, ptr } %38, 0
  store ptr %40, ptr %6, align 8
  %41 = getelementptr inbounds i8, ptr %6, i64 8
  %42 = extractvalue { ptr, ptr } %38, 1
  store ptr %42, ptr %41, align 8
  %43 = invoke { ptr, ptr } @_ZN2jc4testplIdNS_6A_MultIdNS_8A_ScalarIdEENS_6SArrayIdEEEENS2_IdS6_S6_EEEENS0_5ArrayIT_NS_5A_AddISA_T0_T1_EEEERKNS9_ISA_SC_EERKNS9_ISA_SD_EE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %44 unwind label %54

44:                                               ; preds = %39
  %45 = extractvalue { ptr, ptr } %43, 0
  store ptr %45, ptr %3, align 8
  %46 = getelementptr inbounds i8, ptr %3, i64 8
  %47 = extractvalue { ptr, ptr } %43, 1
  store ptr %47, ptr %46, align 8
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEaSIdNS_5A_AddIdNS_6A_MultIdNS_8A_ScalarIdEES3_EENS7_IdS3_S3_EEEEEERS4_RKNS1_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %49 unwind label %54

49:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %57

50:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store double 2.000000e+00, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %51 = invoke { ptr, ptr } @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixIdS3_EENS1_IdNS_11A_SubscriptIdS3_T0_EEEERKNS1_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %70 unwind label %89

52:                                               ; preds = %25
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %44, %39, %34
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %56

56:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %102

57:                                               ; preds = %49, %67
  %.01428 = phi i64 [ 0, %49 ], [ %69, %67 ]
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %.01428)
          to label %59 unwind label %63

59:                                               ; preds = %57
  %60 = load double, ptr %58, align 8, !tbaa !5
  %61 = fcmp oeq double %60, 3.200000e+01
  br i1 %61, label %65, label %62

62:                                               ; preds = %59
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 293, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

63:                                               ; preds = %65, %57
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %102

65:                                               ; preds = %59
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %.01428)
          to label %67 unwind label %63

67:                                               ; preds = %65
  %68 = uitofp nneg i64 %.01428 to double
  store double %68, ptr %66, align 8, !tbaa !5
  %69 = add nuw nsw i64 %.01428, 1
  %exitcond30.not = icmp eq i64 %69, 1000
  br i1 %exitcond30.not, label %50, label %57, !llvm.loop !11

70:                                               ; preds = %50
  %71 = extractvalue { ptr, ptr } %51, 0
  store ptr %71, ptr %9, align 8
  %72 = getelementptr inbounds i8, ptr %9, i64 8
  %73 = extractvalue { ptr, ptr } %51, 1
  store ptr %73, ptr %72, align 8
  %74 = invoke { ptr, ptr } @_ZN2jc4testmlIdNS_11A_SubscriptIdNS_6SArrayIdEES4_EEEENS0_5ArrayIT_NS_6A_MultIS7_NS_8A_ScalarIS7_EET0_EEEERKS7_RKNS6_IS7_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %75 unwind label %89

75:                                               ; preds = %70
  %76 = extractvalue { ptr, ptr } %74, 0
  store ptr %76, ptr %7, align 8
  %77 = getelementptr inbounds i8, ptr %7, i64 8
  %78 = extractvalue { ptr, ptr } %74, 1
  store ptr %78, ptr %77, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %79 = invoke { ptr, ptr } @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixIdS3_EENS1_IdNS_11A_SubscriptIdS3_T0_EEEERKNS1_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %80 unwind label %91

80:                                               ; preds = %75
  %81 = extractvalue { ptr, ptr } %79, 0
  store ptr %81, ptr %10, align 8
  %82 = getelementptr inbounds i8, ptr %10, i64 8
  %83 = extractvalue { ptr, ptr } %79, 1
  store ptr %83, ptr %82, align 8
  %84 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN2jc4test5ArrayIdNS_11A_SubscriptIdNS_6SArrayIdEES4_EEEaSIdNS_6A_MultIdNS_8A_ScalarIdEES5_EEEERS6_RKNS1_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %85 unwind label %91

85:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %94

86:                                               ; preds = %96
  %87 = add nuw nsw i64 %.029, 1
  %exitcond31.not = icmp eq i64 %87, 1000
  br i1 %exitcond31.not, label %88, label %94, !llvm.loop !12

88:                                               ; preds = %86
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  ret i32 0

89:                                               ; preds = %70, %50
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

91:                                               ; preds = %80, %75
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %93

93:                                               ; preds = %91, %89
  %.pn22 = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %102

94:                                               ; preds = %85, %86
  %.029 = phi i64 [ 0, %85 ], [ %87, %86 ]
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %.029)
          to label %96 unwind label %100

96:                                               ; preds = %94
  %97 = load double, ptr %95, align 8, !tbaa !5
  %98 = fcmp oeq double %97, 6.400000e+01
  br i1 %98, label %86, label %99

99:                                               ; preds = %96
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 305, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

100:                                              ; preds = %94
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %102

102:                                              ; preds = %100, %93, %63, %56, %32, %18
  %.pn24 = phi { ptr, i32 } [ %33, %32 ], [ %64, %63 ], [ %101, %100 ], [ %.pn22, %93 ], [ %.pn, %56 ], [ %19, %18 ]
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  br label %103

103:                                              ; preds = %102, %16
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %102 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn24.pn
}

; 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 uwtable
declare dso_local void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK2jc4test5ArrayIdNS_6SArrayIdEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4testplIdNS_6A_MultIdNS_8A_ScalarIdEENS_6SArrayIdEEEENS2_IdS6_S6_EEEENS0_5ArrayIT_NS_5A_AddISA_T0_T1_EEEERKNS9_ISA_SC_EERKNS9_ISA_SD_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4testmlIdNS_6SArrayIdEEEENS0_5ArrayIT_NS_6A_MultIS5_NS_8A_ScalarIS5_EET0_EEEERKS5_RKNS4_IS5_S9_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4testmlIdNS_6SArrayIdEES3_EENS0_5ArrayIT_NS_6A_MultIS5_T0_T1_EEEERKNS4_IS5_S7_EERKNS4_IS5_S8_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEaSIdNS_5A_AddIdNS_6A_MultIdNS_8A_ScalarIdEES3_EENS7_IdS3_S3_EEEEEERS4_RKNS1_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4testmlIdNS_11A_SubscriptIdNS_6SArrayIdEES4_EEEENS0_5ArrayIT_NS_6A_MultIS7_NS_8A_ScalarIS7_EET0_EEEERKS7_RKNS6_IS7_SB_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2jc4test5ArrayIdNS_6SArrayIdEEEixIdS3_EENS1_IdNS_11A_SubscriptIdS3_T0_EEEERKNS1_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN2jc4test5ArrayIdNS_11A_SubscriptIdNS_6SArrayIdEES4_EEEaSIdNS_6A_MultIdNS_8A_ScalarIdEES5_EEEERS6_RKNS1_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2jc4test5ArrayIdNS_6SArrayIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

attributes #0 = { mustprogress norecurse 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 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 #3 = { noreturn 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 = { inlinehint mustprogress 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 = { nounwind }
attributes #6 = { noreturn 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass