; LLVM IR from opensim-org/opensim-moco :: tropter/external/snopt-interface/src (snoptProblem)

; 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.snoptProblem = type { [30 x i8], i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr }
%class.snoptProblemABC = type { %class.snoptProblem, ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__._ZN13snoptProblemA5solveEiiidiPFvPiS0_PdS0_S0_S1_S0_S0_S1_PcS0_S0_S0_S1_S0_ES0_S0_S1_iS0_S0_iS1_S1_S1_S1_S1_S0_S1_S1_S0_S1_RiS5_Rd = external hidden unnamed_addr constant [227 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13snoptProblemA12setWorkspaceEiiii(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2 align 2

declare void @f_snkera(i32 noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13snoptProblemA5solveEiiidiPFvPiS0_PdS0_S0_S1_S0_S0_S1_PcS0_S0_S0_S1_S0_ES0_S0_S1_iS0_S0_iS1_S1_S1_S1_S1_S0_S1_S1_S0_S1_RiS5_Rd(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef %10, ptr noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #2 align 2 {
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  store ptr %0, ptr %28, align 8, !tbaa !5
  store i32 %1, ptr %29, align 4, !tbaa !9
  store i32 %2, ptr %30, align 4, !tbaa !9
  store i32 %3, ptr %31, align 4, !tbaa !9
  store double %4, ptr %32, align 8, !tbaa !11
  store i32 %5, ptr %33, align 4, !tbaa !9
  store ptr %6, ptr %34, align 8, !tbaa !5
  store ptr %7, ptr %35, align 8, !tbaa !5
  store ptr %8, ptr %36, align 8, !tbaa !5
  store ptr %9, ptr %37, align 8, !tbaa !5
  store i32 %10, ptr %38, align 4, !tbaa !9
  store ptr %11, ptr %39, align 8, !tbaa !5
  store ptr %12, ptr %40, align 8, !tbaa !5
  store i32 %13, ptr %41, align 4, !tbaa !9
  store ptr %14, ptr %42, align 8, !tbaa !5
  store ptr %15, ptr %43, align 8, !tbaa !5
  store ptr %16, ptr %44, align 8, !tbaa !5
  store ptr %17, ptr %45, align 8, !tbaa !5
  store ptr %18, ptr %46, align 8, !tbaa !5
  store ptr %19, ptr %47, align 8, !tbaa !5
  store ptr %20, ptr %48, align 8, !tbaa !5
  store ptr %21, ptr %49, align 8, !tbaa !5
  store ptr %22, ptr %50, align 8, !tbaa !5
  store ptr %23, ptr %51, align 8, !tbaa !5
  store ptr %24, ptr %52, align 8, !tbaa !5
  store ptr %25, ptr %53, align 8, !tbaa !5
  store ptr %26, ptr %54, align 8, !tbaa !5
  %63 = load ptr, ptr %28, align 8
  %64 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !13
  %66 = icmp eq i32 %65, 1
  br i1 %66, label %67, label %68

67:                                               ; preds = %27
  br label %70

68:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 404, ptr noundef @__PRETTY_FUNCTION__._ZN13snoptProblemA5solveEiiidiPFvPiS0_PdS0_S0_S1_S0_S0_S1_PcS0_S0_S0_S1_S0_ES0_S0_S1_iS0_S0_iS1_S1_S1_S1_S1_S0_S1_S1_S0_S1_RiS5_Rd) #4
  unreachable

69:                                               ; No predecessors!
  br label %70

70:                                               ; preds = %69, %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #5
  %71 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !15
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %79

74:                                               ; preds = %70
  %75 = load i32, ptr %30, align 4, !tbaa !9
  %76 = load i32, ptr %31, align 4, !tbaa !9
  %77 = load i32, ptr %38, align 4, !tbaa !9
  %78 = load i32, ptr %41, align 4, !tbaa !9
  call void @_ZN13snoptProblemA12setWorkspaceEiiii(ptr noundef nonnull align 8 dereferenceable(128) %63, i32 noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef %78)
  br label %79

79:                                               ; preds = %74, %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #5
  store i32 0, ptr %59, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %98, %79
  %81 = load i32, ptr %59, align 4, !tbaa !9
  %82 = load i32, ptr %38, align 4, !tbaa !9
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #5
  br label %101

85:                                               ; preds = %80
  %86 = load ptr, ptr %35, align 8, !tbaa !5
  %87 = load i32, ptr %59, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %86, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %89, align 4, !tbaa !9
  %92 = load ptr, ptr %36, align 8, !tbaa !5
  %93 = load i32, ptr %59, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %95, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %85
  %99 = load i32, ptr %59, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %59, align 4, !tbaa !9
  br label %80, !llvm.loop !16

101:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #5
  store i32 0, ptr %60, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %120, %101
  %103 = load i32, ptr %60, align 4, !tbaa !9
  %104 = load i32, ptr %41, align 4, !tbaa !9
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #5
  br label %123

107:                                              ; preds = %102
  %108 = load ptr, ptr %39, align 8, !tbaa !5
  %109 = load i32, ptr %60, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %108, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %111, align 4, !tbaa !9
  %114 = load ptr, ptr %40, align 8, !tbaa !5
  %115 = load i32, ptr %60, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i32, ptr %114, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %117, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %107
  %121 = load i32, ptr %60, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %60, align 4, !tbaa !9
  br label %102, !llvm.loop !18

123:                                              ; preds = %106
  %124 = load i32, ptr %33, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %58, align 4, !tbaa !9
  %126 = load i32, ptr %29, align 4, !tbaa !9
  %127 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 0
  %128 = getelementptr inbounds [30 x i8], ptr %127, i64 0, i64 0
  %129 = load i32, ptr %30, align 4, !tbaa !9
  %130 = load i32, ptr %31, align 4, !tbaa !9
  %131 = load double, ptr %32, align 8, !tbaa !11
  %132 = load i32, ptr %58, align 4, !tbaa !9
  %133 = load ptr, ptr %34, align 8, !tbaa !5
  %134 = getelementptr inbounds %class.snoptProblemABC, ptr %63, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !19
  %136 = getelementptr inbounds %class.snoptProblemABC, ptr %63, i32 0, i32 2
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  %138 = getelementptr inbounds %class.snoptProblemABC, ptr %63, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !22
  %140 = getelementptr inbounds %class.snoptProblemABC, ptr %63, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !23
  %142 = load ptr, ptr %35, align 8, !tbaa !5
  %143 = load ptr, ptr %36, align 8, !tbaa !5
  %144 = load i32, ptr %38, align 4, !tbaa !9
  %145 = load ptr, ptr %37, align 8, !tbaa !5
  %146 = load ptr, ptr %39, align 8, !tbaa !5
  %147 = load ptr, ptr %40, align 8, !tbaa !5
  %148 = load i32, ptr %41, align 4, !tbaa !9
  %149 = load ptr, ptr %42, align 8, !tbaa !5
  %150 = load ptr, ptr %43, align 8, !tbaa !5
  %151 = load ptr, ptr %44, align 8, !tbaa !5
  %152 = load ptr, ptr %45, align 8, !tbaa !5
  %153 = load ptr, ptr %46, align 8, !tbaa !5
  %154 = load ptr, ptr %47, align 8, !tbaa !5
  %155 = load ptr, ptr %48, align 8, !tbaa !5
  %156 = load ptr, ptr %49, align 8, !tbaa !5
  %157 = load ptr, ptr %50, align 8, !tbaa !5
  %158 = load ptr, ptr %51, align 8, !tbaa !5
  %159 = load ptr, ptr %52, align 8, !tbaa !5
  %160 = load ptr, ptr %53, align 8, !tbaa !5
  %161 = load ptr, ptr %54, align 8, !tbaa !5
  %162 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 11
  %163 = load ptr, ptr %162, align 8, !tbaa !24
  %164 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 9
  %165 = load i32, ptr %164, align 4, !tbaa !25
  %166 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 10
  %167 = load ptr, ptr %166, align 8, !tbaa !26
  %168 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 8
  %169 = load i32, ptr %168, align 8, !tbaa !27
  %170 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 7
  %171 = load ptr, ptr %170, align 8, !tbaa !28
  %172 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 4
  %173 = load i32, ptr %172, align 4, !tbaa !29
  %174 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 6
  %175 = load ptr, ptr %174, align 8, !tbaa !30
  %176 = getelementptr inbounds %class.snoptProblem, ptr %63, i32 0, i32 5
  %177 = load i32, ptr %176, align 8, !tbaa !31
  call void @f_snkera(i32 noundef %126, ptr noundef %128, i32 noundef %129, i32 noundef %130, double noundef %131, i32 noundef %132, ptr noundef %133, ptr noundef %135, ptr noundef %137, ptr noundef %139, ptr noundef %141, ptr noundef %142, ptr noundef %143, i32 noundef %144, ptr noundef %145, ptr noundef %146, ptr noundef %147, i32 noundef %148, ptr noundef %149, ptr noundef %150, ptr noundef %151, ptr noundef %152, ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef %55, ptr noundef %159, ptr noundef %160, ptr noundef %161, ptr noundef %56, ptr noundef %57, ptr noundef %163, i32 noundef %165, ptr noundef %167, i32 noundef %169, ptr noundef %171, i32 noundef %173, ptr noundef %175, i32 noundef %177)
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #5
  store i32 0, ptr %61, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %196, %123
  %179 = load i32, ptr %61, align 4, !tbaa !9
  %180 = load i32, ptr %38, align 4, !tbaa !9
  %181 = icmp slt i32 %179, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #5
  br label %199

183:                                              ; preds = %178
  %184 = load ptr, ptr %35, align 8, !tbaa !5
  %185 = load i32, ptr %61, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds i32, ptr %184, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = add nsw i32 %188, -1
  store i32 %189, ptr %187, align 4, !tbaa !9
  %190 = load ptr, ptr %36, align 8, !tbaa !5
  %191 = load i32, ptr %61, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %190, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = add nsw i32 %194, -1
  store i32 %195, ptr %193, align 4, !tbaa !9
  br label %196

196:                                              ; preds = %183
  %197 = load i32, ptr %61, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %61, align 4, !tbaa !9
  br label %178, !llvm.loop !32

199:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #5
  store i32 0, ptr %62, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %218, %199
  %201 = load i32, ptr %62, align 4, !tbaa !9
  %202 = load i32, ptr %41, align 4, !tbaa !9
  %203 = icmp slt i32 %201, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #5
  br label %221

205:                                              ; preds = %200
  %206 = load ptr, ptr %39, align 8, !tbaa !5
  %207 = load i32, ptr %62, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds i32, ptr %206, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !9
  %211 = add nsw i32 %210, -1
  store i32 %211, ptr %209, align 4, !tbaa !9
  %212 = load ptr, ptr %40, align 8, !tbaa !5
  %213 = load i32, ptr %62, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds i32, ptr %212, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !9
  %217 = add nsw i32 %216, -1
  store i32 %217, ptr %215, align 4, !tbaa !9
  br label %218

218:                                              ; preds = %205
  %219 = load i32, ptr %62, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %62, align 4, !tbaa !9
  br label %200, !llvm.loop !33

221:                                              ; preds = %204
  %222 = load i32, ptr %55, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #5
  ret i32 %222
}

attributes #0 = { 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 #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 = { "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 = { noreturn nounwind }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 32}
!14 = !{!"_ZTS12snoptProblem", !7, i64 0, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !6, i64 80, !6, i64 88}
!15 = !{!14, !10, i64 36}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !6, i64 96}
!20 = !{!"_ZTS15snoptProblemABC", !14, i64 0, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!21 = !{!20, !6, i64 104}
!22 = !{!20, !6, i64 112}
!23 = !{!20, !6, i64 120}
!24 = !{!14, !6, i64 88}
!25 = !{!14, !10, i64 76}
!26 = !{!14, !6, i64 80}
!27 = !{!14, !10, i64 72}
!28 = !{!14, !6, i64 64}
!29 = !{!14, !10, i64 44}
!30 = !{!14, !6, i64 56}
!31 = !{!14, !10, i64 48}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}


; 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.2 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__._ZN13snoptProblemA5solveEiiidiPFvPiS0_PdS0_S0_S1_S0_S0_S1_PcS0_S0_S0_S1_S0_ES0_S0_S1_iS0_S0_iS1_S1_S1_S1_S1_S0_S1_S1_S0_S1_RiS5_Rd = external hidden unnamed_addr constant [227 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13snoptProblemA12setWorkspaceEiiii(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare void @f_snkera(i32 noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13snoptProblemA5solveEiiidiPFvPiS0_PdS0_S0_S1_S0_S0_S1_PcS0_S0_S0_S1_S0_ES0_S0_S1_iS0_S0_iS1_S1_S1_S1_S1_S0_S1_S1_S0_S1_RiS5_Rd(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef %10, ptr noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) local_unnamed_addr #2 align 2 {
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = load i32, ptr %31, align 8, !tbaa !5
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %35, label %34

34:                                               ; preds = %27
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 404, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13snoptProblemA5solveEiiidiPFvPiS0_PdS0_S0_S1_S0_S0_S1_PcS0_S0_S0_S1_S0_ES0_S0_S1_iS0_S0_iS1_S1_S1_S1_S1_S0_S1_S1_S0_S1_RiS5_Rd) #4
  unreachable

35:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #5
  %36 = getelementptr inbounds i8, ptr %0, i64 36
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %35
  tail call void @_ZN13snoptProblemA12setWorkspaceEiiii(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %2, i32 noundef %3, i32 noundef %10, i32 noundef %13)
  br label %40

40:                                               ; preds = %39, %35
  %41 = icmp sgt i32 %10, 0
  br i1 %41, label %.lr.ph.preheader, label %.preheader64

.lr.ph.preheader:                                 ; preds = %40
  %wide.trip.count = zext nneg i32 %10 to i64
  %min.iters.check = icmp ult i32 %10, 8
  br i1 %min.iters.check, label %.lr.ph.preheader160, label %vector.memcheck

.lr.ph.preheader160:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader160
  %42 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.ph
  %43 = load i32, ptr %42, align 4, !tbaa !12
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %42, align 4, !tbaa !12
  %45 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.ph
  %46 = load i32, ptr %45, align 4, !tbaa !12
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !12
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader160
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader160 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %48 = add nsw i64 %wide.trip.count, -1
  %49 = icmp eq i64 %indvars.iv.ph, %48
  br i1 %49, label %.preheader64, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %50 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep = getelementptr i8, ptr %7, i64 %50
  %scevgep90 = getelementptr i8, ptr %8, i64 %50
  %bound0 = icmp ugt ptr %scevgep90, %7
  %bound1 = icmp ugt ptr %scevgep, %8
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader160, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %51 = getelementptr inbounds i32, ptr %7, i64 %index
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %wide.load = load <4 x i32>, ptr %51, align 4, !tbaa !12, !alias.scope !13, !noalias !16
  %wide.load91 = load <4 x i32>, ptr %52, align 4, !tbaa !12, !alias.scope !13, !noalias !16
  %53 = add nsw <4 x i32> %wide.load, <i32 1, i32 1, i32 1, i32 1>
  %54 = add nsw <4 x i32> %wide.load91, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %53, ptr %51, align 4, !tbaa !12, !alias.scope !13, !noalias !16
  store <4 x i32> %54, ptr %52, align 4, !tbaa !12, !alias.scope !13, !noalias !16
  %55 = getelementptr inbounds i32, ptr %8, i64 %index
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load92 = load <4 x i32>, ptr %55, align 4, !tbaa !12, !alias.scope !16
  %wide.load93 = load <4 x i32>, ptr %56, align 4, !tbaa !12, !alias.scope !16
  %57 = add nsw <4 x i32> %wide.load92, <i32 1, i32 1, i32 1, i32 1>
  %58 = add nsw <4 x i32> %wide.load93, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %57, ptr %55, align 4, !tbaa !12, !alias.scope !16
  store <4 x i32> %58, ptr %56, align 4, !tbaa !12, !alias.scope !16
  %index.next = add nuw i64 %index, 8
  %59 = icmp eq i64 %index.next, %n.vec
  br i1 %59, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader64, label %.lr.ph.preheader160

.preheader64:                                     ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %40
  %60 = icmp sgt i32 %13, 0
  br i1 %60, label %.lr.ph67.preheader, label %._crit_edge

.lr.ph67.preheader:                               ; preds = %.preheader64
  %wide.trip.count78 = zext nneg i32 %13 to i64
  %min.iters.check102 = icmp ult i32 %13, 8
  br i1 %min.iters.check102, label %.lr.ph67.preheader159, label %vector.memcheck94

.lr.ph67.preheader159:                            ; preds = %middle.block100, %vector.memcheck94, %.lr.ph67.preheader
  %indvars.iv75.ph = phi i64 [ 0, %vector.memcheck94 ], [ 0, %.lr.ph67.preheader ], [ %n.vec105, %middle.block100 ]
  %xtraiter161 = and i64 %wide.trip.count78, 1
  %lcmp.mod162.not = icmp eq i64 %xtraiter161, 0
  br i1 %lcmp.mod162.not, label %.lr.ph67.prol.loopexit, label %.lr.ph67.prol

.lr.ph67.prol:                                    ; preds = %.lr.ph67.preheader159
  %61 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv75.ph
  %62 = load i32, ptr %61, align 4, !tbaa !12
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %61, align 4, !tbaa !12
  %64 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv75.ph
  %65 = load i32, ptr %64, align 4, !tbaa !12
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !12
  %indvars.iv.next76.prol = or disjoint i64 %indvars.iv75.ph, 1
  br label %.lr.ph67.prol.loopexit

.lr.ph67.prol.loopexit:                           ; preds = %.lr.ph67.prol, %.lr.ph67.preheader159
  %indvars.iv75.unr = phi i64 [ %indvars.iv75.ph, %.lr.ph67.preheader159 ], [ %indvars.iv.next76.prol, %.lr.ph67.prol ]
  %67 = add nsw i64 %wide.trip.count78, -1
  %68 = icmp eq i64 %indvars.iv75.ph, %67
  br i1 %68, label %._crit_edge, label %.lr.ph67

vector.memcheck94:                                ; preds = %.lr.ph67.preheader
  %69 = shl nuw nsw i64 %wide.trip.count78, 2
  %scevgep95 = getelementptr i8, ptr %11, i64 %69
  %scevgep96 = getelementptr i8, ptr %12, i64 %69
  %bound097 = icmp ugt ptr %scevgep96, %11
  %bound198 = icmp ugt ptr %scevgep95, %12
  %found.conflict99 = and i1 %bound097, %bound198
  br i1 %found.conflict99, label %.lr.ph67.preheader159, label %vector.ph103

vector.ph103:                                     ; preds = %vector.memcheck94
  %n.vec105 = and i64 %wide.trip.count78, 2147483640
  br label %vector.body107

vector.body107:                                   ; preds = %vector.body107, %vector.ph103
  %index108 = phi i64 [ 0, %vector.ph103 ], [ %index.next113, %vector.body107 ]
  %70 = getelementptr inbounds i32, ptr %11, i64 %index108
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load109 = load <4 x i32>, ptr %70, align 4, !tbaa !12, !alias.scope !22, !noalias !25
  %wide.load110 = load <4 x i32>, ptr %71, align 4, !tbaa !12, !alias.scope !22, !noalias !25
  %72 = add nsw <4 x i32> %wide.load109, <i32 1, i32 1, i32 1, i32 1>
  %73 = add nsw <4 x i32> %wide.load110, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %72, ptr %70, align 4, !tbaa !12, !alias.scope !22, !noalias !25
  store <4 x i32> %73, ptr %71, align 4, !tbaa !12, !alias.scope !22, !noalias !25
  %74 = getelementptr inbounds i32, ptr %12, i64 %index108
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %wide.load111 = load <4 x i32>, ptr %74, align 4, !tbaa !12, !alias.scope !25
  %wide.load112 = load <4 x i32>, ptr %75, align 4, !tbaa !12, !alias.scope !25
  %76 = add nsw <4 x i32> %wide.load111, <i32 1, i32 1, i32 1, i32 1>
  %77 = add nsw <4 x i32> %wide.load112, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %76, ptr %74, align 4, !tbaa !12, !alias.scope !25
  store <4 x i32> %77, ptr %75, align 4, !tbaa !12, !alias.scope !25
  %index.next113 = add nuw i64 %index108, 8
  %78 = icmp eq i64 %index.next113, %n.vec105
  br i1 %78, label %middle.block100, label %vector.body107, !llvm.loop !27

middle.block100:                                  ; preds = %vector.body107
  %cmp.n114 = icmp eq i64 %n.vec105, %wide.trip.count78
  br i1 %cmp.n114, label %._crit_edge, label %.lr.ph67.preheader159

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %79 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  %80 = load i32, ptr %79, align 4, !tbaa !12
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %79, align 4, !tbaa !12
  %82 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv
  %83 = load i32, ptr %82, align 4, !tbaa !12
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %82, align 4, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %85 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next
  %86 = load i32, ptr %85, align 4, !tbaa !12
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %85, align 4, !tbaa !12
  %88 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.next
  %89 = load i32, ptr %88, align 4, !tbaa !12
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %88, align 4, !tbaa !12
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.preheader64, label %.lr.ph, !llvm.loop !28

._crit_edge:                                      ; preds = %.lr.ph67.prol.loopexit, %.lr.ph67, %middle.block100, %.preheader64
  %91 = add nsw i32 %5, 1
  %92 = getelementptr inbounds i8, ptr %0, i64 96
  %93 = load ptr, ptr %92, align 8, !tbaa !29
  %94 = getelementptr inbounds i8, ptr %0, i64 104
  %95 = load ptr, ptr %94, align 8, !tbaa !31
  %96 = getelementptr inbounds i8, ptr %0, i64 112
  %97 = load ptr, ptr %96, align 8, !tbaa !32
  %98 = getelementptr inbounds i8, ptr %0, i64 120
  %99 = load ptr, ptr %98, align 8, !tbaa !33
  %100 = getelementptr inbounds i8, ptr %0, i64 88
  %101 = load ptr, ptr %100, align 8, !tbaa !34
  %102 = getelementptr inbounds i8, ptr %0, i64 76
  %103 = load i32, ptr %102, align 4, !tbaa !35
  %104 = getelementptr inbounds i8, ptr %0, i64 80
  %105 = load ptr, ptr %104, align 8, !tbaa !36
  %106 = getelementptr inbounds i8, ptr %0, i64 72
  %107 = load i32, ptr %106, align 8, !tbaa !37
  %108 = getelementptr inbounds i8, ptr %0, i64 64
  %109 = load ptr, ptr %108, align 8, !tbaa !38
  %110 = getelementptr inbounds i8, ptr %0, i64 44
  %111 = load i32, ptr %110, align 4, !tbaa !39
  %112 = getelementptr inbounds i8, ptr %0, i64 56
  %113 = load ptr, ptr %112, align 8, !tbaa !40
  %114 = getelementptr inbounds i8, ptr %0, i64 48
  %115 = load i32, ptr %114, align 8, !tbaa !41
  call void @f_snkera(i32 noundef %1, ptr noundef nonnull %0, i32 noundef %2, i32 noundef %3, double noundef %4, i32 noundef %91, ptr noundef %6, ptr noundef %93, ptr noundef %95, ptr noundef %97, ptr noundef %99, ptr noundef %7, ptr noundef %8, i32 noundef %10, ptr noundef %9, ptr noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef nonnull %28, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %101, i32 noundef %103, ptr noundef %105, i32 noundef %107, ptr noundef %109, i32 noundef %111, ptr noundef %113, i32 noundef %115)
  br i1 %41, label %.lr.ph70.preheader, label %.preheader

.lr.ph70.preheader:                               ; preds = %._crit_edge
  %wide.trip.count83 = zext nneg i32 %10 to i64
  %min.iters.check123 = icmp ult i32 %10, 8
  br i1 %min.iters.check123, label %.lr.ph70.preheader158, label %vector.memcheck115

.lr.ph70.preheader158:                            ; preds = %middle.block121, %vector.memcheck115, %.lr.ph70.preheader
  %indvars.iv80.ph = phi i64 [ 0, %vector.memcheck115 ], [ 0, %.lr.ph70.preheader ], [ %n.vec126, %middle.block121 ]
  %xtraiter163 = and i64 %wide.trip.count83, 1
  %lcmp.mod164.not = icmp eq i64 %xtraiter163, 0
  br i1 %lcmp.mod164.not, label %.lr.ph70.prol.loopexit, label %.lr.ph70.prol

.lr.ph70.prol:                                    ; preds = %.lr.ph70.preheader158
  %116 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv80.ph
  %117 = load i32, ptr %116, align 4, !tbaa !12
  %118 = add nsw i32 %117, -1
  store i32 %118, ptr %116, align 4, !tbaa !12
  %119 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv80.ph
  %120 = load i32, ptr %119, align 4, !tbaa !12
  %121 = add nsw i32 %120, -1
  store i32 %121, ptr %119, align 4, !tbaa !12
  %indvars.iv.next81.prol = or disjoint i64 %indvars.iv80.ph, 1
  br label %.lr.ph70.prol.loopexit

.lr.ph70.prol.loopexit:                           ; preds = %.lr.ph70.prol, %.lr.ph70.preheader158
  %indvars.iv80.unr = phi i64 [ %indvars.iv80.ph, %.lr.ph70.preheader158 ], [ %indvars.iv.next81.prol, %.lr.ph70.prol ]
  %122 = add nsw i64 %wide.trip.count83, -1
  %123 = icmp eq i64 %indvars.iv80.ph, %122
  br i1 %123, label %.preheader, label %.lr.ph70

vector.memcheck115:                               ; preds = %.lr.ph70.preheader
  %124 = shl nuw nsw i64 %wide.trip.count83, 2
  %scevgep116 = getelementptr i8, ptr %7, i64 %124
  %scevgep117 = getelementptr i8, ptr %8, i64 %124
  %bound0118 = icmp ugt ptr %scevgep117, %7
  %bound1119 = icmp ugt ptr %scevgep116, %8
  %found.conflict120 = and i1 %bound0118, %bound1119
  br i1 %found.conflict120, label %.lr.ph70.preheader158, label %vector.ph124

vector.ph124:                                     ; preds = %vector.memcheck115
  %n.vec126 = and i64 %wide.trip.count83, 2147483640
  br label %vector.body128

vector.body128:                                   ; preds = %vector.body128, %vector.ph124
  %index129 = phi i64 [ 0, %vector.ph124 ], [ %index.next134, %vector.body128 ]
  %125 = getelementptr inbounds i32, ptr %7, i64 %index129
  %126 = getelementptr inbounds i8, ptr %125, i64 16
  %wide.load130 = load <4 x i32>, ptr %125, align 4, !tbaa !12, !alias.scope !42, !noalias !45
  %wide.load131 = load <4 x i32>, ptr %126, align 4, !tbaa !12, !alias.scope !42, !noalias !45
  %127 = add nsw <4 x i32> %wide.load130, <i32 -1, i32 -1, i32 -1, i32 -1>
  %128 = add nsw <4 x i32> %wide.load131, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %127, ptr %125, align 4, !tbaa !12, !alias.scope !42, !noalias !45
  store <4 x i32> %128, ptr %126, align 4, !tbaa !12, !alias.scope !42, !noalias !45
  %129 = getelementptr inbounds i32, ptr %8, i64 %index129
  %130 = getelementptr inbounds i8, ptr %129, i64 16
  %wide.load132 = load <4 x i32>, ptr %129, align 4, !tbaa !12, !alias.scope !45
  %wide.load133 = load <4 x i32>, ptr %130, align 4, !tbaa !12, !alias.scope !45
  %131 = add nsw <4 x i32> %wide.load132, <i32 -1, i32 -1, i32 -1, i32 -1>
  %132 = add nsw <4 x i32> %wide.load133, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %131, ptr %129, align 4, !tbaa !12, !alias.scope !45
  store <4 x i32> %132, ptr %130, align 4, !tbaa !12, !alias.scope !45
  %index.next134 = add nuw i64 %index129, 8
  %133 = icmp eq i64 %index.next134, %n.vec126
  br i1 %133, label %middle.block121, label %vector.body128, !llvm.loop !47

middle.block121:                                  ; preds = %vector.body128
  %cmp.n135 = icmp eq i64 %n.vec126, %wide.trip.count83
  br i1 %cmp.n135, label %.preheader, label %.lr.ph70.preheader158

.lr.ph67:                                         ; preds = %.lr.ph67.prol.loopexit, %.lr.ph67
  %indvars.iv75 = phi i64 [ %indvars.iv.next76.1, %.lr.ph67 ], [ %indvars.iv75.unr, %.lr.ph67.prol.loopexit ]
  %134 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv75
  %135 = load i32, ptr %134, align 4, !tbaa !12
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %134, align 4, !tbaa !12
  %137 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv75
  %138 = load i32, ptr %137, align 4, !tbaa !12
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %137, align 4, !tbaa !12
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %140 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv.next76
  %141 = load i32, ptr %140, align 4, !tbaa !12
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %140, align 4, !tbaa !12
  %143 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next76
  %144 = load i32, ptr %143, align 4, !tbaa !12
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %143, align 4, !tbaa !12
  %indvars.iv.next76.1 = add nuw nsw i64 %indvars.iv75, 2
  %exitcond79.not.1 = icmp eq i64 %indvars.iv.next76.1, %wide.trip.count78
  br i1 %exitcond79.not.1, label %._crit_edge, label %.lr.ph67, !llvm.loop !48

.preheader:                                       ; preds = %.lr.ph70.prol.loopexit, %.lr.ph70, %middle.block121, %._crit_edge
  br i1 %60, label %.lr.ph72.preheader, label %._crit_edge73

.lr.ph72.preheader:                               ; preds = %.preheader
  %wide.trip.count88 = zext nneg i32 %13 to i64
  %min.iters.check144 = icmp ult i32 %13, 8
  br i1 %min.iters.check144, label %.lr.ph72.preheader157, label %vector.memcheck136

.lr.ph72.preheader157:                            ; preds = %middle.block142, %vector.memcheck136, %.lr.ph72.preheader
  %indvars.iv85.ph = phi i64 [ 0, %vector.memcheck136 ], [ 0, %.lr.ph72.preheader ], [ %n.vec147, %middle.block142 ]
  %xtraiter165 = and i64 %wide.trip.count88, 1
  %lcmp.mod166.not = icmp eq i64 %xtraiter165, 0
  br i1 %lcmp.mod166.not, label %.lr.ph72.prol.loopexit, label %.lr.ph72.prol

.lr.ph72.prol:                                    ; preds = %.lr.ph72.preheader157
  %146 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv85.ph
  %147 = load i32, ptr %146, align 4, !tbaa !12
  %148 = add nsw i32 %147, -1
  store i32 %148, ptr %146, align 4, !tbaa !12
  %149 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv85.ph
  %150 = load i32, ptr %149, align 4, !tbaa !12
  %151 = add nsw i32 %150, -1
  store i32 %151, ptr %149, align 4, !tbaa !12
  %indvars.iv.next86.prol = or disjoint i64 %indvars.iv85.ph, 1
  br label %.lr.ph72.prol.loopexit

.lr.ph72.prol.loopexit:                           ; preds = %.lr.ph72.prol, %.lr.ph72.preheader157
  %indvars.iv85.unr = phi i64 [ %indvars.iv85.ph, %.lr.ph72.preheader157 ], [ %indvars.iv.next86.prol, %.lr.ph72.prol ]
  %152 = add nsw i64 %wide.trip.count88, -1
  %153 = icmp eq i64 %indvars.iv85.ph, %152
  br i1 %153, label %._crit_edge73, label %.lr.ph72

vector.memcheck136:                               ; preds = %.lr.ph72.preheader
  %154 = shl nuw nsw i64 %wide.trip.count88, 2
  %scevgep137 = getelementptr i8, ptr %11, i64 %154
  %scevgep138 = getelementptr i8, ptr %12, i64 %154
  %bound0139 = icmp ugt ptr %scevgep138, %11
  %bound1140 = icmp ugt ptr %scevgep137, %12
  %found.conflict141 = and i1 %bound0139, %bound1140
  br i1 %found.conflict141, label %.lr.ph72.preheader157, label %vector.ph145

vector.ph145:                                     ; preds = %vector.memcheck136
  %n.vec147 = and i64 %wide.trip.count88, 2147483640
  br label %vector.body149

vector.body149:                                   ; preds = %vector.body149, %vector.ph145
  %index150 = phi i64 [ 0, %vector.ph145 ], [ %index.next155, %vector.body149 ]
  %155 = getelementptr inbounds i32, ptr %11, i64 %index150
  %156 = getelementptr inbounds i8, ptr %155, i64 16
  %wide.load151 = load <4 x i32>, ptr %155, align 4, !tbaa !12, !alias.scope !49, !noalias !52
  %wide.load152 = load <4 x i32>, ptr %156, align 4, !tbaa !12, !alias.scope !49, !noalias !52
  %157 = add nsw <4 x i32> %wide.load151, <i32 -1, i32 -1, i32 -1, i32 -1>
  %158 = add nsw <4 x i32> %wide.load152, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %157, ptr %155, align 4, !tbaa !12, !alias.scope !49, !noalias !52
  store <4 x i32> %158, ptr %156, align 4, !tbaa !12, !alias.scope !49, !noalias !52
  %159 = getelementptr inbounds i32, ptr %12, i64 %index150
  %160 = getelementptr inbounds i8, ptr %159, i64 16
  %wide.load153 = load <4 x i32>, ptr %159, align 4, !tbaa !12, !alias.scope !52
  %wide.load154 = load <4 x i32>, ptr %160, align 4, !tbaa !12, !alias.scope !52
  %161 = add nsw <4 x i32> %wide.load153, <i32 -1, i32 -1, i32 -1, i32 -1>
  %162 = add nsw <4 x i32> %wide.load154, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %161, ptr %159, align 4, !tbaa !12, !alias.scope !52
  store <4 x i32> %162, ptr %160, align 4, !tbaa !12, !alias.scope !52
  %index.next155 = add nuw i64 %index150, 8
  %163 = icmp eq i64 %index.next155, %n.vec147
  br i1 %163, label %middle.block142, label %vector.body149, !llvm.loop !54

middle.block142:                                  ; preds = %vector.body149
  %cmp.n156 = icmp eq i64 %n.vec147, %wide.trip.count88
  br i1 %cmp.n156, label %._crit_edge73, label %.lr.ph72.preheader157

.lr.ph70:                                         ; preds = %.lr.ph70.prol.loopexit, %.lr.ph70
  %indvars.iv80 = phi i64 [ %indvars.iv.next81.1, %.lr.ph70 ], [ %indvars.iv80.unr, %.lr.ph70.prol.loopexit ]
  %164 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv80
  %165 = load i32, ptr %164, align 4, !tbaa !12
  %166 = add nsw i32 %165, -1
  store i32 %166, ptr %164, align 4, !tbaa !12
  %167 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv80
  %168 = load i32, ptr %167, align 4, !tbaa !12
  %169 = add nsw i32 %168, -1
  store i32 %169, ptr %167, align 4, !tbaa !12
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %170 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next81
  %171 = load i32, ptr %170, align 4, !tbaa !12
  %172 = add nsw i32 %171, -1
  store i32 %172, ptr %170, align 4, !tbaa !12
  %173 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.next81
  %174 = load i32, ptr %173, align 4, !tbaa !12
  %175 = add nsw i32 %174, -1
  store i32 %175, ptr %173, align 4, !tbaa !12
  %indvars.iv.next81.1 = add nuw nsw i64 %indvars.iv80, 2
  %exitcond84.not.1 = icmp eq i64 %indvars.iv.next81.1, %wide.trip.count83
  br i1 %exitcond84.not.1, label %.preheader, label %.lr.ph70, !llvm.loop !55

._crit_edge73:                                    ; preds = %.lr.ph72.prol.loopexit, %.lr.ph72, %middle.block142, %.preheader
  %176 = load i32, ptr %28, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #5
  ret i32 %176

.lr.ph72:                                         ; preds = %.lr.ph72.prol.loopexit, %.lr.ph72
  %indvars.iv85 = phi i64 [ %indvars.iv.next86.1, %.lr.ph72 ], [ %indvars.iv85.unr, %.lr.ph72.prol.loopexit ]
  %177 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv85
  %178 = load i32, ptr %177, align 4, !tbaa !12
  %179 = add nsw i32 %178, -1
  store i32 %179, ptr %177, align 4, !tbaa !12
  %180 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv85
  %181 = load i32, ptr %180, align 4, !tbaa !12
  %182 = add nsw i32 %181, -1
  store i32 %182, ptr %180, align 4, !tbaa !12
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %183 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv.next86
  %184 = load i32, ptr %183, align 4, !tbaa !12
  %185 = add nsw i32 %184, -1
  store i32 %185, ptr %183, align 4, !tbaa !12
  %186 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next86
  %187 = load i32, ptr %186, align 4, !tbaa !12
  %188 = add nsw i32 %187, -1
  store i32 %188, ptr %186, align 4, !tbaa !12
  %indvars.iv.next86.1 = add nuw nsw i64 %indvars.iv85, 2
  %exitcond89.not.1 = icmp eq i64 %indvars.iv.next86.1, %wide.trip.count88
  br i1 %exitcond89.not.1, label %._crit_edge73, label %.lr.ph72, !llvm.loop !56
}

attributes #0 = { 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 #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 = { "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 = { noreturn nounwind }
attributes #5 = { 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, !9, i64 32}
!6 = !{!"_ZTS12snoptProblem", !7, i64 0, !9, i64 32, !9, i64 36, !9, i64 40, !9, i64 44, !9, i64 48, !10, i64 56, !10, i64 64, !9, i64 72, !9, i64 76, !10, i64 80, !10, i64 88}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!6, !9, i64 36}
!12 = !{!9, !9, i64 0}
!13 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = !{!23}
!23 = distinct !{!23, !24}
!24 = distinct !{!24, !"LVerDomain"}
!25 = !{!26}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !19, !20, !21}
!28 = distinct !{!28, !19, !20}
!29 = !{!30, !10, i64 96}
!30 = !{!"_ZTS15snoptProblemABC", !6, i64 0, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!31 = !{!30, !10, i64 104}
!32 = !{!30, !10, i64 112}
!33 = !{!30, !10, i64 120}
!34 = !{!6, !10, i64 88}
!35 = !{!6, !9, i64 76}
!36 = !{!6, !10, i64 80}
!37 = !{!6, !9, i64 72}
!38 = !{!6, !10, i64 64}
!39 = !{!6, !9, i64 44}
!40 = !{!6, !10, i64 56}
!41 = !{!6, !9, i64 48}
!42 = !{!43}
!43 = distinct !{!43, !44}
!44 = distinct !{!44, !"LVerDomain"}
!45 = !{!46}
!46 = distinct !{!46, !44}
!47 = distinct !{!47, !19, !20, !21}
!48 = distinct !{!48, !19, !20}
!49 = !{!50}
!50 = distinct !{!50, !51}
!51 = distinct !{!51, !"LVerDomain"}
!52 = !{!53}
!53 = distinct !{!53, !51}
!54 = distinct !{!54, !19, !20, !21}
!55 = distinct !{!55, !19, !20}
!56 = distinct !{!56, !19, !20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass