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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.snProblem = type { ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i32, i32, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [109 x i8], align 1
@__PRETTY_FUNCTION__.snoptA = external hidden unnamed_addr constant [226 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @setWorkspaceA(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @snoptA(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, ptr 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 %24, ptr noundef %25, ptr noundef %26) #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 i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %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
  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 i32 %7, ptr %35, align 4, !tbaa !9
  store ptr %8, ptr %36, align 8, !tbaa !5
  store ptr %9, ptr %37, align 8, !tbaa !5
  store ptr %10, ptr %38, align 8, !tbaa !5
  store i32 %11, ptr %39, align 4, !tbaa !9
  store ptr %12, ptr %40, align 8, !tbaa !5
  store ptr %13, ptr %41, align 8, !tbaa !5
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #4
  %60 = load ptr, ptr %28, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.snProblem, ptr %60, i32 0, i32 2
  %62 = load i32, ptr %61, align 4, !tbaa !13
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %65

64:                                               ; preds = %27
  br label %66

65:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 615, ptr noundef @__PRETTY_FUNCTION__.snoptA) #5
  unreachable

66:                                               ; preds = %64
  %67 = load ptr, ptr %28, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.snProblem, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !15
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %77

71:                                               ; preds = %66
  %72 = load ptr, ptr %28, align 8, !tbaa !5
  %73 = load i32, ptr %30, align 4, !tbaa !9
  %74 = load i32, ptr %31, align 4, !tbaa !9
  %75 = load i32, ptr %35, align 4, !tbaa !9
  %76 = load i32, ptr %39, align 4, !tbaa !9
  call void @setWorkspaceA(ptr noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76)
  br label %77

77:                                               ; preds = %71, %66
  store i32 0, ptr %55, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %95, %77
  %79 = load i32, ptr %55, align 4, !tbaa !9
  %80 = load i32, ptr %35, align 4, !tbaa !9
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %82, label %98

82:                                               ; preds = %78
  %83 = load ptr, ptr %36, align 8, !tbaa !5
  %84 = load i32, ptr %55, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %83, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %86, align 4, !tbaa !9
  %89 = load ptr, ptr %37, align 8, !tbaa !5
  %90 = load i32, ptr %55, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %92, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %82
  %96 = load i32, ptr %55, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %55, align 4, !tbaa !9
  br label %78, !llvm.loop !16

98:                                               ; preds = %78
  store i32 0, ptr %55, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %116, %98
  %100 = load i32, ptr %55, align 4, !tbaa !9
  %101 = load i32, ptr %39, align 4, !tbaa !9
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %103, label %119

103:                                              ; preds = %99
  %104 = load ptr, ptr %40, align 8, !tbaa !5
  %105 = load i32, ptr %55, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %104, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %107, align 4, !tbaa !9
  %110 = load ptr, ptr %41, align 8, !tbaa !5
  %111 = load i32, ptr %55, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i32, ptr %110, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %113, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %103
  %117 = load i32, ptr %55, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %55, align 4, !tbaa !9
  br label %99, !llvm.loop !18

119:                                              ; preds = %99
  %120 = load i32, ptr %33, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %57, align 4, !tbaa !9
  %122 = load i32, ptr %29, align 4, !tbaa !9
  %123 = load ptr, ptr %28, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.snProblem, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  %126 = load i32, ptr %30, align 4, !tbaa !9
  %127 = load i32, ptr %31, align 4, !tbaa !9
  %128 = load double, ptr %32, align 8, !tbaa !11
  %129 = load i32, ptr %57, align 4, !tbaa !9
  %130 = load ptr, ptr %34, align 8, !tbaa !5
  %131 = load ptr, ptr %28, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.snProblem, ptr %131, i32 0, i32 5
  %133 = load ptr, ptr %132, align 8, !tbaa !20
  %134 = load ptr, ptr %28, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.snProblem, ptr %134, i32 0, i32 6
  %136 = load ptr, ptr %135, align 8, !tbaa !21
  %137 = load ptr, ptr %28, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.snProblem, ptr %137, i32 0, i32 7
  %139 = load ptr, ptr %138, align 8, !tbaa !22
  %140 = load ptr, ptr %28, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.snProblem, ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !23
  %143 = load ptr, ptr %36, align 8, !tbaa !5
  %144 = load ptr, ptr %37, align 8, !tbaa !5
  %145 = load i32, ptr %35, align 4, !tbaa !9
  %146 = load ptr, ptr %38, align 8, !tbaa !5
  %147 = load ptr, ptr %40, align 8, !tbaa !5
  %148 = load ptr, ptr %41, align 8, !tbaa !5
  %149 = load i32, ptr %39, align 4, !tbaa !9
  %150 = load ptr, ptr %42, align 8, !tbaa !5
  %151 = load ptr, ptr %43, align 8, !tbaa !5
  %152 = load ptr, ptr %44, align 8, !tbaa !5
  %153 = load ptr, ptr %45, align 8, !tbaa !5
  %154 = load ptr, ptr %46, align 8, !tbaa !5
  %155 = load ptr, ptr %47, align 8, !tbaa !5
  %156 = load ptr, ptr %48, align 8, !tbaa !5
  %157 = load ptr, ptr %49, align 8, !tbaa !5
  %158 = load ptr, ptr %50, align 8, !tbaa !5
  %159 = load ptr, ptr %51, align 8, !tbaa !5
  %160 = load ptr, ptr %52, align 8, !tbaa !5
  %161 = load ptr, ptr %53, align 8, !tbaa !5
  %162 = load ptr, ptr %54, align 8, !tbaa !5
  %163 = load ptr, ptr %28, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.snProblem, ptr %163, i32 0, i32 14
  %165 = load ptr, ptr %164, align 8, !tbaa !24
  %166 = load ptr, ptr %28, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.snProblem, ptr %166, i32 0, i32 13
  %168 = load i32, ptr %167, align 4, !tbaa !25
  %169 = load ptr, ptr %28, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.snProblem, ptr %169, i32 0, i32 15
  %171 = load ptr, ptr %170, align 8, !tbaa !26
  %172 = load ptr, ptr %28, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.snProblem, ptr %172, i32 0, i32 12
  %174 = load i32, ptr %173, align 8, !tbaa !27
  %175 = load ptr, ptr %28, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.snProblem, ptr %175, i32 0, i32 10
  %177 = load ptr, ptr %176, align 8, !tbaa !28
  %178 = load ptr, ptr %28, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.snProblem, ptr %178, i32 0, i32 9
  %180 = load i32, ptr %179, align 4, !tbaa !29
  %181 = load ptr, ptr %28, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.snProblem, ptr %181, i32 0, i32 11
  %183 = load ptr, ptr %182, align 8, !tbaa !30
  %184 = load ptr, ptr %28, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.snProblem, ptr %184, i32 0, i32 8
  %186 = load i32, ptr %185, align 8, !tbaa !31
  call void @f_snkera(i32 noundef %122, ptr noundef %125, i32 noundef %126, i32 noundef %127, double noundef %128, i32 noundef %129, ptr noundef %130, ptr noundef %133, ptr noundef %136, ptr noundef %139, ptr noundef %142, ptr noundef %143, ptr noundef %144, i32 noundef %145, ptr noundef %146, ptr noundef %147, ptr noundef %148, i32 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 %159, ptr noundef %56, ptr noundef %160, ptr noundef %161, ptr noundef %162, ptr noundef %58, ptr noundef %59, ptr noundef %165, i32 noundef %168, ptr noundef %171, i32 noundef %174, ptr noundef %177, i32 noundef %180, ptr noundef %183, i32 noundef %186)
  store i32 0, ptr %55, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %204, %119
  %188 = load i32, ptr %55, align 4, !tbaa !9
  %189 = load i32, ptr %35, align 4, !tbaa !9
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %191, label %207

191:                                              ; preds = %187
  %192 = load ptr, ptr %36, align 8, !tbaa !5
  %193 = load i32, ptr %55, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i32, ptr %192, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = add nsw i32 %196, -1
  store i32 %197, ptr %195, align 4, !tbaa !9
  %198 = load ptr, ptr %37, align 8, !tbaa !5
  %199 = load i32, ptr %55, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %198, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = add nsw i32 %202, -1
  store i32 %203, ptr %201, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %191
  %205 = load i32, ptr %55, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %55, align 4, !tbaa !9
  br label %187, !llvm.loop !32

207:                                              ; preds = %187
  store i32 0, ptr %55, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %225, %207
  %209 = load i32, ptr %55, align 4, !tbaa !9
  %210 = load i32, ptr %39, align 4, !tbaa !9
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %212, label %228

212:                                              ; preds = %208
  %213 = load ptr, ptr %40, align 8, !tbaa !5
  %214 = load i32, ptr %55, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds i32, ptr %213, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !9
  %218 = add nsw i32 %217, -1
  store i32 %218, ptr %216, align 4, !tbaa !9
  %219 = load ptr, ptr %41, align 8, !tbaa !5
  %220 = load i32, ptr %55, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i32, ptr %219, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !9
  %224 = add nsw i32 %223, -1
  store i32 %224, ptr %222, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %212
  %226 = load i32, ptr %55, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %55, align 4, !tbaa !9
  br label %208, !llvm.loop !33

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { nounwind }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 12}
!14 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !6, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !6, i64 88, !6, i64 96}
!15 = !{!14, !10, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!14, !6, i64 0}
!20 = !{!14, !6, i64 32}
!21 = !{!14, !6, i64 40}
!22 = !{!14, !6, i64 48}
!23 = !{!14, !6, i64 24}
!24 = !{!14, !6, i64 88}
!25 = !{!14, !10, i64 84}
!26 = !{!14, !6, i64 96}
!27 = !{!14, !10, i64 80}
!28 = !{!14, !6, i64 64}
!29 = !{!14, !10, i64 60}
!30 = !{!14, !6, i64 72}
!31 = !{!14, !10, i64 56}
!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.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [109 x i8], align 1
@__PRETTY_FUNCTION__.snoptA = external hidden unnamed_addr constant [226 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @setWorkspaceA(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @snoptA(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, ptr 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 %24, ptr noundef %25, ptr noundef %26) local_unnamed_addr #2 {
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #4
  %31 = getelementptr inbounds i8, ptr %0, i64 12
  %32 = load i32, ptr %31, align 4, !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.3, ptr noundef nonnull @.str.4, i32 noundef 615, ptr noundef nonnull @__PRETTY_FUNCTION__.snoptA) #5
  unreachable

35:                                               ; preds = %27
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %35
  tail call void @setWorkspaceA(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %3, i32 noundef %7, i32 noundef %11)
  br label %40

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

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

.lr.ph.preheader172:                              ; 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.preheader172
  %42 = getelementptr inbounds i32, ptr %8, 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 %9, 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.preheader172
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader172 ], [ %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 %.preheader76, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %50 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep = getelementptr i8, ptr %8, i64 %50
  %scevgep102 = getelementptr i8, ptr %9, i64 %50
  %bound0 = icmp ugt ptr %scevgep102, %8
  %bound1 = icmp ugt ptr %scevgep, %9
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader172, 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 %8, 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.load103 = 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.load103, <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 %9, i64 %index
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load104 = load <4 x i32>, ptr %55, align 4, !tbaa !12, !alias.scope !16
  %wide.load105 = load <4 x i32>, ptr %56, align 4, !tbaa !12, !alias.scope !16
  %57 = add nsw <4 x i32> %wide.load104, <i32 1, i32 1, i32 1, i32 1>
  %58 = add nsw <4 x i32> %wide.load105, <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 %.preheader76, label %.lr.ph.preheader172

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

.lr.ph79.preheader:                               ; preds = %.preheader76
  %wide.trip.count90 = zext nneg i32 %11 to i64
  %min.iters.check114 = icmp ult i32 %11, 8
  br i1 %min.iters.check114, label %.lr.ph79.preheader171, label %vector.memcheck106

.lr.ph79.preheader171:                            ; preds = %middle.block112, %vector.memcheck106, %.lr.ph79.preheader
  %indvars.iv87.ph = phi i64 [ 0, %vector.memcheck106 ], [ 0, %.lr.ph79.preheader ], [ %n.vec117, %middle.block112 ]
  %xtraiter173 = and i64 %wide.trip.count90, 1
  %lcmp.mod174.not = icmp eq i64 %xtraiter173, 0
  br i1 %lcmp.mod174.not, label %.lr.ph79.prol.loopexit, label %.lr.ph79.prol

.lr.ph79.prol:                                    ; preds = %.lr.ph79.preheader171
  %61 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv87.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 %13, i64 %indvars.iv87.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.next88.prol = or disjoint i64 %indvars.iv87.ph, 1
  br label %.lr.ph79.prol.loopexit

.lr.ph79.prol.loopexit:                           ; preds = %.lr.ph79.prol, %.lr.ph79.preheader171
  %indvars.iv87.unr = phi i64 [ %indvars.iv87.ph, %.lr.ph79.preheader171 ], [ %indvars.iv.next88.prol, %.lr.ph79.prol ]
  %67 = add nsw i64 %wide.trip.count90, -1
  %68 = icmp eq i64 %indvars.iv87.ph, %67
  br i1 %68, label %._crit_edge, label %.lr.ph79

vector.memcheck106:                               ; preds = %.lr.ph79.preheader
  %69 = shl nuw nsw i64 %wide.trip.count90, 2
  %scevgep107 = getelementptr i8, ptr %12, i64 %69
  %scevgep108 = getelementptr i8, ptr %13, i64 %69
  %bound0109 = icmp ugt ptr %scevgep108, %12
  %bound1110 = icmp ugt ptr %scevgep107, %13
  %found.conflict111 = and i1 %bound0109, %bound1110
  br i1 %found.conflict111, label %.lr.ph79.preheader171, label %vector.ph115

vector.ph115:                                     ; preds = %vector.memcheck106
  %n.vec117 = and i64 %wide.trip.count90, 2147483640
  br label %vector.body119

vector.body119:                                   ; preds = %vector.body119, %vector.ph115
  %index120 = phi i64 [ 0, %vector.ph115 ], [ %index.next125, %vector.body119 ]
  %70 = getelementptr inbounds i32, ptr %12, i64 %index120
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load121 = load <4 x i32>, ptr %70, align 4, !tbaa !12, !alias.scope !22, !noalias !25
  %wide.load122 = load <4 x i32>, ptr %71, align 4, !tbaa !12, !alias.scope !22, !noalias !25
  %72 = add nsw <4 x i32> %wide.load121, <i32 1, i32 1, i32 1, i32 1>
  %73 = add nsw <4 x i32> %wide.load122, <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 %13, i64 %index120
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %wide.load123 = load <4 x i32>, ptr %74, align 4, !tbaa !12, !alias.scope !25
  %wide.load124 = load <4 x i32>, ptr %75, align 4, !tbaa !12, !alias.scope !25
  %76 = add nsw <4 x i32> %wide.load123, <i32 1, i32 1, i32 1, i32 1>
  %77 = add nsw <4 x i32> %wide.load124, <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.next125 = add nuw i64 %index120, 8
  %78 = icmp eq i64 %index.next125, %n.vec117
  br i1 %78, label %middle.block112, label %vector.body119, !llvm.loop !27

middle.block112:                                  ; preds = %vector.body119
  %cmp.n126 = icmp eq i64 %n.vec117, %wide.trip.count90
  br i1 %cmp.n126, label %._crit_edge, label %.lr.ph79.preheader171

.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 %8, 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 %9, 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 %8, 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 %9, 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 %.preheader76, label %.lr.ph, !llvm.loop !28

.lr.ph79:                                         ; preds = %.lr.ph79.prol.loopexit, %.lr.ph79
  %indvars.iv87 = phi i64 [ %indvars.iv.next88.1, %.lr.ph79 ], [ %indvars.iv87.unr, %.lr.ph79.prol.loopexit ]
  %91 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv87
  %92 = load i32, ptr %91, align 4, !tbaa !12
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %91, align 4, !tbaa !12
  %94 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv87
  %95 = load i32, ptr %94, align 4, !tbaa !12
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %94, align 4, !tbaa !12
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %97 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next88
  %98 = load i32, ptr %97, align 4, !tbaa !12
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %97, align 4, !tbaa !12
  %100 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv.next88
  %101 = load i32, ptr %100, align 4, !tbaa !12
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %100, align 4, !tbaa !12
  %indvars.iv.next88.1 = add nuw nsw i64 %indvars.iv87, 2
  %exitcond91.not.1 = icmp eq i64 %indvars.iv.next88.1, %wide.trip.count90
  br i1 %exitcond91.not.1, label %._crit_edge, label %.lr.ph79, !llvm.loop !29

._crit_edge:                                      ; preds = %.lr.ph79.prol.loopexit, %.lr.ph79, %middle.block112, %.preheader76
  %103 = add nsw i32 %5, 1
  %104 = load ptr, ptr %0, align 8, !tbaa !30
  %105 = getelementptr inbounds i8, ptr %0, i64 32
  %106 = load ptr, ptr %105, align 8, !tbaa !31
  %107 = getelementptr inbounds i8, ptr %0, i64 40
  %108 = load ptr, ptr %107, align 8, !tbaa !32
  %109 = getelementptr inbounds i8, ptr %0, i64 48
  %110 = load ptr, ptr %109, align 8, !tbaa !33
  %111 = getelementptr inbounds i8, ptr %0, i64 24
  %112 = load ptr, ptr %111, align 8, !tbaa !34
  %113 = getelementptr inbounds i8, ptr %0, i64 88
  %114 = load ptr, ptr %113, align 8, !tbaa !35
  %115 = getelementptr inbounds i8, ptr %0, i64 84
  %116 = load i32, ptr %115, align 4, !tbaa !36
  %117 = getelementptr inbounds i8, ptr %0, i64 96
  %118 = load ptr, ptr %117, align 8, !tbaa !37
  %119 = getelementptr inbounds i8, ptr %0, i64 80
  %120 = load i32, ptr %119, align 8, !tbaa !38
  %121 = getelementptr inbounds i8, ptr %0, i64 64
  %122 = load ptr, ptr %121, align 8, !tbaa !39
  %123 = getelementptr inbounds i8, ptr %0, i64 60
  %124 = load i32, ptr %123, align 4, !tbaa !40
  %125 = getelementptr inbounds i8, ptr %0, i64 72
  %126 = load ptr, ptr %125, align 8, !tbaa !41
  %127 = getelementptr inbounds i8, ptr %0, i64 56
  %128 = load i32, ptr %127, align 8, !tbaa !42
  call void @f_snkera(i32 noundef %1, ptr noundef %104, i32 noundef %2, i32 noundef %3, double noundef %4, i32 noundef %103, ptr noundef %6, ptr noundef %106, ptr noundef %108, ptr noundef %110, ptr noundef %112, ptr noundef %8, ptr noundef %9, i32 noundef %7, ptr noundef %10, ptr noundef %12, ptr noundef %13, i32 noundef %11, 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 %24, ptr noundef %25, ptr noundef %26, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %114, i32 noundef %116, ptr noundef %118, i32 noundef %120, ptr noundef %122, i32 noundef %124, ptr noundef %126, i32 noundef %128) #4
  br i1 %41, label %.lr.ph82.preheader, label %.preheader

.lr.ph82.preheader:                               ; preds = %._crit_edge
  %wide.trip.count95 = zext nneg i32 %7 to i64
  %min.iters.check135 = icmp ult i32 %7, 8
  br i1 %min.iters.check135, label %.lr.ph82.preheader170, label %vector.memcheck127

.lr.ph82.preheader170:                            ; preds = %middle.block133, %vector.memcheck127, %.lr.ph82.preheader
  %indvars.iv92.ph = phi i64 [ 0, %vector.memcheck127 ], [ 0, %.lr.ph82.preheader ], [ %n.vec138, %middle.block133 ]
  %xtraiter175 = and i64 %wide.trip.count95, 1
  %lcmp.mod176.not = icmp eq i64 %xtraiter175, 0
  br i1 %lcmp.mod176.not, label %.lr.ph82.prol.loopexit, label %.lr.ph82.prol

.lr.ph82.prol:                                    ; preds = %.lr.ph82.preheader170
  %129 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv92.ph
  %130 = load i32, ptr %129, align 4, !tbaa !12
  %131 = add nsw i32 %130, -1
  store i32 %131, ptr %129, align 4, !tbaa !12
  %132 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv92.ph
  %133 = load i32, ptr %132, align 4, !tbaa !12
  %134 = add nsw i32 %133, -1
  store i32 %134, ptr %132, align 4, !tbaa !12
  %indvars.iv.next93.prol = or disjoint i64 %indvars.iv92.ph, 1
  br label %.lr.ph82.prol.loopexit

.lr.ph82.prol.loopexit:                           ; preds = %.lr.ph82.prol, %.lr.ph82.preheader170
  %indvars.iv92.unr = phi i64 [ %indvars.iv92.ph, %.lr.ph82.preheader170 ], [ %indvars.iv.next93.prol, %.lr.ph82.prol ]
  %135 = add nsw i64 %wide.trip.count95, -1
  %136 = icmp eq i64 %indvars.iv92.ph, %135
  br i1 %136, label %.preheader, label %.lr.ph82

vector.memcheck127:                               ; preds = %.lr.ph82.preheader
  %137 = shl nuw nsw i64 %wide.trip.count95, 2
  %scevgep128 = getelementptr i8, ptr %8, i64 %137
  %scevgep129 = getelementptr i8, ptr %9, i64 %137
  %bound0130 = icmp ugt ptr %scevgep129, %8
  %bound1131 = icmp ugt ptr %scevgep128, %9
  %found.conflict132 = and i1 %bound0130, %bound1131
  br i1 %found.conflict132, label %.lr.ph82.preheader170, label %vector.ph136

vector.ph136:                                     ; preds = %vector.memcheck127
  %n.vec138 = and i64 %wide.trip.count95, 2147483640
  br label %vector.body140

vector.body140:                                   ; preds = %vector.body140, %vector.ph136
  %index141 = phi i64 [ 0, %vector.ph136 ], [ %index.next146, %vector.body140 ]
  %138 = getelementptr inbounds i32, ptr %8, i64 %index141
  %139 = getelementptr inbounds i8, ptr %138, i64 16
  %wide.load142 = load <4 x i32>, ptr %138, align 4, !tbaa !12, !alias.scope !43, !noalias !46
  %wide.load143 = load <4 x i32>, ptr %139, align 4, !tbaa !12, !alias.scope !43, !noalias !46
  %140 = add nsw <4 x i32> %wide.load142, <i32 -1, i32 -1, i32 -1, i32 -1>
  %141 = add nsw <4 x i32> %wide.load143, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %140, ptr %138, align 4, !tbaa !12, !alias.scope !43, !noalias !46
  store <4 x i32> %141, ptr %139, align 4, !tbaa !12, !alias.scope !43, !noalias !46
  %142 = getelementptr inbounds i32, ptr %9, i64 %index141
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  %wide.load144 = load <4 x i32>, ptr %142, align 4, !tbaa !12, !alias.scope !46
  %wide.load145 = load <4 x i32>, ptr %143, align 4, !tbaa !12, !alias.scope !46
  %144 = add nsw <4 x i32> %wide.load144, <i32 -1, i32 -1, i32 -1, i32 -1>
  %145 = add nsw <4 x i32> %wide.load145, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %144, ptr %142, align 4, !tbaa !12, !alias.scope !46
  store <4 x i32> %145, ptr %143, align 4, !tbaa !12, !alias.scope !46
  %index.next146 = add nuw i64 %index141, 8
  %146 = icmp eq i64 %index.next146, %n.vec138
  br i1 %146, label %middle.block133, label %vector.body140, !llvm.loop !48

middle.block133:                                  ; preds = %vector.body140
  %cmp.n147 = icmp eq i64 %n.vec138, %wide.trip.count95
  br i1 %cmp.n147, label %.preheader, label %.lr.ph82.preheader170

.preheader:                                       ; preds = %.lr.ph82.prol.loopexit, %.lr.ph82, %middle.block133, %._crit_edge
  br i1 %60, label %.lr.ph84.preheader, label %._crit_edge85

.lr.ph84.preheader:                               ; preds = %.preheader
  %wide.trip.count100 = zext nneg i32 %11 to i64
  %min.iters.check156 = icmp ult i32 %11, 8
  br i1 %min.iters.check156, label %.lr.ph84.preheader169, label %vector.memcheck148

.lr.ph84.preheader169:                            ; preds = %middle.block154, %vector.memcheck148, %.lr.ph84.preheader
  %indvars.iv97.ph = phi i64 [ 0, %vector.memcheck148 ], [ 0, %.lr.ph84.preheader ], [ %n.vec159, %middle.block154 ]
  %xtraiter177 = and i64 %wide.trip.count100, 1
  %lcmp.mod178.not = icmp eq i64 %xtraiter177, 0
  br i1 %lcmp.mod178.not, label %.lr.ph84.prol.loopexit, label %.lr.ph84.prol

.lr.ph84.prol:                                    ; preds = %.lr.ph84.preheader169
  %147 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv97.ph
  %148 = load i32, ptr %147, align 4, !tbaa !12
  %149 = add nsw i32 %148, -1
  store i32 %149, ptr %147, align 4, !tbaa !12
  %150 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv97.ph
  %151 = load i32, ptr %150, align 4, !tbaa !12
  %152 = add nsw i32 %151, -1
  store i32 %152, ptr %150, align 4, !tbaa !12
  %indvars.iv.next98.prol = or disjoint i64 %indvars.iv97.ph, 1
  br label %.lr.ph84.prol.loopexit

.lr.ph84.prol.loopexit:                           ; preds = %.lr.ph84.prol, %.lr.ph84.preheader169
  %indvars.iv97.unr = phi i64 [ %indvars.iv97.ph, %.lr.ph84.preheader169 ], [ %indvars.iv.next98.prol, %.lr.ph84.prol ]
  %153 = add nsw i64 %wide.trip.count100, -1
  %154 = icmp eq i64 %indvars.iv97.ph, %153
  br i1 %154, label %._crit_edge85, label %.lr.ph84

vector.memcheck148:                               ; preds = %.lr.ph84.preheader
  %155 = shl nuw nsw i64 %wide.trip.count100, 2
  %scevgep149 = getelementptr i8, ptr %12, i64 %155
  %scevgep150 = getelementptr i8, ptr %13, i64 %155
  %bound0151 = icmp ugt ptr %scevgep150, %12
  %bound1152 = icmp ugt ptr %scevgep149, %13
  %found.conflict153 = and i1 %bound0151, %bound1152
  br i1 %found.conflict153, label %.lr.ph84.preheader169, label %vector.ph157

vector.ph157:                                     ; preds = %vector.memcheck148
  %n.vec159 = and i64 %wide.trip.count100, 2147483640
  br label %vector.body161

vector.body161:                                   ; preds = %vector.body161, %vector.ph157
  %index162 = phi i64 [ 0, %vector.ph157 ], [ %index.next167, %vector.body161 ]
  %156 = getelementptr inbounds i32, ptr %12, i64 %index162
  %157 = getelementptr inbounds i8, ptr %156, i64 16
  %wide.load163 = load <4 x i32>, ptr %156, align 4, !tbaa !12, !alias.scope !49, !noalias !52
  %wide.load164 = load <4 x i32>, ptr %157, align 4, !tbaa !12, !alias.scope !49, !noalias !52
  %158 = add nsw <4 x i32> %wide.load163, <i32 -1, i32 -1, i32 -1, i32 -1>
  %159 = add nsw <4 x i32> %wide.load164, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %158, ptr %156, align 4, !tbaa !12, !alias.scope !49, !noalias !52
  store <4 x i32> %159, ptr %157, align 4, !tbaa !12, !alias.scope !49, !noalias !52
  %160 = getelementptr inbounds i32, ptr %13, i64 %index162
  %161 = getelementptr inbounds i8, ptr %160, i64 16
  %wide.load165 = load <4 x i32>, ptr %160, align 4, !tbaa !12, !alias.scope !52
  %wide.load166 = load <4 x i32>, ptr %161, align 4, !tbaa !12, !alias.scope !52
  %162 = add nsw <4 x i32> %wide.load165, <i32 -1, i32 -1, i32 -1, i32 -1>
  %163 = add nsw <4 x i32> %wide.load166, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %162, ptr %160, align 4, !tbaa !12, !alias.scope !52
  store <4 x i32> %163, ptr %161, align 4, !tbaa !12, !alias.scope !52
  %index.next167 = add nuw i64 %index162, 8
  %164 = icmp eq i64 %index.next167, %n.vec159
  br i1 %164, label %middle.block154, label %vector.body161, !llvm.loop !54

middle.block154:                                  ; preds = %vector.body161
  %cmp.n168 = icmp eq i64 %n.vec159, %wide.trip.count100
  br i1 %cmp.n168, label %._crit_edge85, label %.lr.ph84.preheader169

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

.lr.ph84:                                         ; preds = %.lr.ph84.prol.loopexit, %.lr.ph84
  %indvars.iv97 = phi i64 [ %indvars.iv.next98.1, %.lr.ph84 ], [ %indvars.iv97.unr, %.lr.ph84.prol.loopexit ]
  %177 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv97
  %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 %13, i64 %indvars.iv97
  %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.next98 = add nuw nsw i64 %indvars.iv97, 1
  %183 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next98
  %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 %13, i64 %indvars.iv.next98
  %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.next98.1 = add nuw nsw i64 %indvars.iv97, 2
  %exitcond101.not.1 = icmp eq i64 %indvars.iv.next98.1, %wide.trip.count100
  br i1 %exitcond101.not.1, label %._crit_edge85, label %.lr.ph84, !llvm.loop !56

._crit_edge85:                                    ; preds = %.lr.ph84.prol.loopexit, %.lr.ph84, %middle.block154, %.preheader
  %189 = load i32, ptr %28, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #4
  ret i32 %189
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { nounwind }
attributes #5 = { 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, !10, i64 12}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !10, i64 60, !7, i64 64, !7, i64 72, !10, i64 80, !10, i64 84, !7, i64 88, !7, i64 96}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, 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 = distinct !{!29, !19, !20}
!30 = !{!6, !7, i64 0}
!31 = !{!6, !7, i64 32}
!32 = !{!6, !7, i64 40}
!33 = !{!6, !7, i64 48}
!34 = !{!6, !7, i64 24}
!35 = !{!6, !7, i64 88}
!36 = !{!6, !10, i64 84}
!37 = !{!6, !7, i64 96}
!38 = !{!6, !10, i64 80}
!39 = !{!6, !7, i64 64}
!40 = !{!6, !10, i64 60}
!41 = !{!6, !7, i64 72}
!42 = !{!6, !10, i64 56}
!43 = !{!44}
!44 = distinct !{!44, !45}
!45 = distinct !{!45, !"LVerDomain"}
!46 = !{!47}
!47 = distinct !{!47, !45}
!48 = distinct !{!48, !19, !20, !21}
!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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass