; LLVM IR from tsotchke/quantum_geometric_tensor :: src/quantum_geometric/core (quantum_geometric_simulate)

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

; Function Attrs: nounwind uwtable
define dso_local void @quantum_geometric_simulate(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [2 x [2 x { double, double }]], align 16
  %15 = alloca i32, align 4
  %16 = alloca { double, double }, align 8
  %17 = alloca { double, double }, align 8
  %18 = alloca { double, double }, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca { double, double }, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %23 = call i64 @clock() #4
  store i64 %23, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %24 = call i64 @get_memory_usage()
  store i64 %24, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = mul i64 %26, 16
  %28 = call noalias ptr @malloc(i64 noundef %27) #5
  store ptr %28, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = sitofp i32 %29 to double
  %31 = call double @sqrt(double noundef %30) #4
  store double %31, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %46, %3
  %33 = load i32, ptr %11, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %49

37:                                               ; preds = %32
  %38 = load double, ptr %10, align 8, !tbaa !13
  %39 = fdiv double 1.000000e+00, %38
  %40 = load ptr, ptr %9, align 8, !tbaa !9
  %41 = load i32, ptr %11, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds { double, double }, ptr %40, i64 %42
  %44 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  store double %39, ptr %44, align 8
  store double 0.000000e+00, ptr %45, align 8
  br label %46

46:                                               ; preds = %37
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %11, align 4, !tbaa !5
  br label %32, !llvm.loop !15

49:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %209, %49
  %51 = load i32, ptr %12, align 4, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %212

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #4
  %56 = getelementptr inbounds [2 x [2 x { double, double }]], ptr %14, i64 0, i64 0
  call void @generate_random_unitary(ptr noundef %56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %205, %55
  %58 = load i32, ptr %15, align 4, !tbaa !5
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %208

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %63 = load ptr, ptr %9, align 8, !tbaa !9
  %64 = load i32, ptr %15, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds { double, double }, ptr %63, i64 %65
  %67 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %68 = load double, ptr %67, align 8
  %69 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %70 = load double, ptr %69, align 8
  %71 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %72 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  store double %68, ptr %71, align 8
  store double %70, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %73 = load ptr, ptr %9, align 8, !tbaa !9
  %74 = load i32, ptr %15, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds { double, double }, ptr %73, i64 %76
  %78 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %79 = load double, ptr %78, align 8
  %80 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %81 = load double, ptr %80, align 8
  %82 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %83 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  store double %79, ptr %82, align 8
  store double %81, ptr %83, align 8
  %84 = getelementptr inbounds [2 x [2 x { double, double }]], ptr %14, i64 0, i64 0
  %85 = getelementptr inbounds [2 x { double, double }], ptr %84, i64 0, i64 0
  %86 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %87 = load double, ptr %86, align 16
  %88 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %89 = load double, ptr %88, align 8
  %90 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %91 = load double, ptr %90, align 8
  %92 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %93 = load double, ptr %92, align 8
  %94 = fmul double %87, %91
  %95 = fmul double %89, %93
  %96 = fmul double %87, %93
  %97 = fmul double %89, %91
  %98 = fsub double %94, %95
  %99 = fadd double %96, %97
  %100 = fcmp uno double %98, %98
  br i1 %100, label %101, label %107, !prof !17

101:                                              ; preds = %62
  %102 = fcmp uno double %99, %99
  br i1 %102, label %103, label %107, !prof !17

103:                                              ; preds = %101
  %104 = call { double, double } @__muldc3(double noundef %87, double noundef %89, double noundef %91, double noundef %93) #4
  %105 = extractvalue { double, double } %104, 0
  %106 = extractvalue { double, double } %104, 1
  br label %107

107:                                              ; preds = %103, %101, %62
  %108 = phi double [ %98, %62 ], [ %98, %101 ], [ %105, %103 ]
  %109 = phi double [ %99, %62 ], [ %99, %101 ], [ %106, %103 ]
  %110 = getelementptr inbounds [2 x [2 x { double, double }]], ptr %14, i64 0, i64 0
  %111 = getelementptr inbounds [2 x { double, double }], ptr %110, i64 0, i64 1
  %112 = getelementptr inbounds { double, double }, ptr %111, i32 0, i32 0
  %113 = load double, ptr %112, align 16
  %114 = getelementptr inbounds { double, double }, ptr %111, i32 0, i32 1
  %115 = load double, ptr %114, align 8
  %116 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %117 = load double, ptr %116, align 8
  %118 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %119 = load double, ptr %118, align 8
  %120 = fmul double %113, %117
  %121 = fmul double %115, %119
  %122 = fmul double %113, %119
  %123 = fmul double %115, %117
  %124 = fsub double %120, %121
  %125 = fadd double %122, %123
  %126 = fcmp uno double %124, %124
  br i1 %126, label %127, label %133, !prof !17

127:                                              ; preds = %107
  %128 = fcmp uno double %125, %125
  br i1 %128, label %129, label %133, !prof !17

129:                                              ; preds = %127
  %130 = call { double, double } @__muldc3(double noundef %113, double noundef %115, double noundef %117, double noundef %119) #4
  %131 = extractvalue { double, double } %130, 0
  %132 = extractvalue { double, double } %130, 1
  br label %133

133:                                              ; preds = %129, %127, %107
  %134 = phi double [ %124, %107 ], [ %124, %127 ], [ %131, %129 ]
  %135 = phi double [ %125, %107 ], [ %125, %127 ], [ %132, %129 ]
  %136 = fadd double %108, %134
  %137 = fadd double %109, %135
  %138 = load ptr, ptr %9, align 8, !tbaa !9
  %139 = load i32, ptr %15, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds { double, double }, ptr %138, i64 %140
  %142 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 1
  store double %136, ptr %142, align 8
  store double %137, ptr %143, align 8
  %144 = getelementptr inbounds [2 x [2 x { double, double }]], ptr %14, i64 0, i64 1
  %145 = getelementptr inbounds [2 x { double, double }], ptr %144, i64 0, i64 0
  %146 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %145, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %151 = load double, ptr %150, align 8
  %152 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  %154 = fmul double %147, %151
  %155 = fmul double %149, %153
  %156 = fmul double %147, %153
  %157 = fmul double %149, %151
  %158 = fsub double %154, %155
  %159 = fadd double %156, %157
  %160 = fcmp uno double %158, %158
  br i1 %160, label %161, label %167, !prof !17

161:                                              ; preds = %133
  %162 = fcmp uno double %159, %159
  br i1 %162, label %163, label %167, !prof !17

163:                                              ; preds = %161
  %164 = call { double, double } @__muldc3(double noundef %147, double noundef %149, double noundef %151, double noundef %153) #4
  %165 = extractvalue { double, double } %164, 0
  %166 = extractvalue { double, double } %164, 1
  br label %167

167:                                              ; preds = %163, %161, %133
  %168 = phi double [ %158, %133 ], [ %158, %161 ], [ %165, %163 ]
  %169 = phi double [ %159, %133 ], [ %159, %161 ], [ %166, %163 ]
  %170 = getelementptr inbounds [2 x [2 x { double, double }]], ptr %14, i64 0, i64 1
  %171 = getelementptr inbounds [2 x { double, double }], ptr %170, i64 0, i64 1
  %172 = getelementptr inbounds { double, double }, ptr %171, i32 0, i32 0
  %173 = load double, ptr %172, align 16
  %174 = getelementptr inbounds { double, double }, ptr %171, i32 0, i32 1
  %175 = load double, ptr %174, align 8
  %176 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %177 = load double, ptr %176, align 8
  %178 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %179 = load double, ptr %178, align 8
  %180 = fmul double %173, %177
  %181 = fmul double %175, %179
  %182 = fmul double %173, %179
  %183 = fmul double %175, %177
  %184 = fsub double %180, %181
  %185 = fadd double %182, %183
  %186 = fcmp uno double %184, %184
  br i1 %186, label %187, label %193, !prof !17

187:                                              ; preds = %167
  %188 = fcmp uno double %185, %185
  br i1 %188, label %189, label %193, !prof !17

189:                                              ; preds = %187
  %190 = call { double, double } @__muldc3(double noundef %173, double noundef %175, double noundef %177, double noundef %179) #4
  %191 = extractvalue { double, double } %190, 0
  %192 = extractvalue { double, double } %190, 1
  br label %193

193:                                              ; preds = %189, %187, %167
  %194 = phi double [ %184, %167 ], [ %184, %187 ], [ %191, %189 ]
  %195 = phi double [ %185, %167 ], [ %185, %187 ], [ %192, %189 ]
  %196 = fadd double %168, %194
  %197 = fadd double %169, %195
  %198 = load ptr, ptr %9, align 8, !tbaa !9
  %199 = load i32, ptr %15, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds { double, double }, ptr %198, i64 %201
  %203 = getelementptr inbounds { double, double }, ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds { double, double }, ptr %202, i32 0, i32 1
  store double %196, ptr %203, align 8
  store double %197, ptr %204, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  br label %205

205:                                              ; preds = %193
  %206 = load i32, ptr %15, align 4, !tbaa !5
  %207 = add nsw i32 %206, 2
  store i32 %207, ptr %15, align 4, !tbaa !5
  br label %57, !llvm.loop !18

208:                                              ; preds = %61
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #4
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %12, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %12, align 4, !tbaa !5
  br label %50, !llvm.loop !19

212:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %213 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %214 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  store double 0.000000e+00, ptr %213, align 8
  store double 0.000000e+00, ptr %214, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %262, %212
  %216 = load i32, ptr %19, align 4, !tbaa !5
  %217 = load i32, ptr %4, align 4, !tbaa !5
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %215
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %265

220:                                              ; preds = %215
  %221 = load ptr, ptr %9, align 8, !tbaa !9
  %222 = load i32, ptr %19, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds { double, double }, ptr %221, i64 %223
  %225 = getelementptr inbounds { double, double }, ptr %224, i32 0, i32 0
  %226 = load double, ptr %225, align 8
  %227 = getelementptr inbounds { double, double }, ptr %224, i32 0, i32 1
  %228 = load double, ptr %227, align 8
  %229 = fneg double %228
  %230 = load ptr, ptr %9, align 8, !tbaa !9
  %231 = load i32, ptr %19, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds { double, double }, ptr %230, i64 %232
  %234 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 0
  %235 = load double, ptr %234, align 8
  %236 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 1
  %237 = load double, ptr %236, align 8
  %238 = fmul double %226, %235
  %239 = fmul double %229, %237
  %240 = fmul double %226, %237
  %241 = fmul double %229, %235
  %242 = fsub double %238, %239
  %243 = fadd double %240, %241
  %244 = fcmp uno double %242, %242
  br i1 %244, label %245, label %251, !prof !17

245:                                              ; preds = %220
  %246 = fcmp uno double %243, %243
  br i1 %246, label %247, label %251, !prof !17

247:                                              ; preds = %245
  %248 = call { double, double } @__muldc3(double noundef %226, double noundef %229, double noundef %235, double noundef %237) #4
  %249 = extractvalue { double, double } %248, 0
  %250 = extractvalue { double, double } %248, 1
  br label %251

251:                                              ; preds = %247, %245, %220
  %252 = phi double [ %242, %220 ], [ %242, %245 ], [ %249, %247 ]
  %253 = phi double [ %243, %220 ], [ %243, %245 ], [ %250, %247 ]
  %254 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %255 = load double, ptr %254, align 8
  %256 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %257 = load double, ptr %256, align 8
  %258 = fadd double %255, %252
  %259 = fadd double %257, %253
  %260 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %261 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  store double %258, ptr %260, align 8
  store double %259, ptr %261, align 8
  br label %262

262:                                              ; preds = %251
  %263 = load i32, ptr %19, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %19, align 4, !tbaa !5
  br label %215, !llvm.loop !20

265:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %266 = call i64 @clock() #4
  store i64 %266, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %267 = call i64 @get_memory_usage()
  store i64 %267, ptr %21, align 8, !tbaa !11
  %268 = load i64, ptr %20, align 8, !tbaa !11
  %269 = load i64, ptr %7, align 8, !tbaa !11
  %270 = sub nsw i64 %268, %269
  %271 = sitofp i64 %270 to double
  %272 = fdiv double %271, 1.000000e+06
  %273 = load ptr, ptr %6, align 8, !tbaa !9
  %274 = getelementptr inbounds double, ptr %273, i64 0
  store double %272, ptr %274, align 8, !tbaa !13
  %275 = load i64, ptr %21, align 8, !tbaa !11
  %276 = load i64, ptr %8, align 8, !tbaa !11
  %277 = sub i64 %275, %276
  %278 = uitofp i64 %277 to double
  %279 = fdiv double %278, 1.024000e+03
  %280 = load ptr, ptr %6, align 8, !tbaa !9
  %281 = getelementptr inbounds double, ptr %280, i64 1
  store double %279, ptr %281, align 8, !tbaa !13
  %282 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %283 = load double, ptr %282, align 8
  %284 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %285 = load double, ptr %284, align 8
  %286 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %287 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  store double %283, ptr %286, align 8
  store double %285, ptr %287, align 8
  %288 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %289 = load double, ptr %288, align 8
  %290 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %291 = load double, ptr %290, align 8
  %292 = call double @cabs(double noundef %289, double noundef %291) #4
  %293 = load ptr, ptr %6, align 8, !tbaa !9
  %294 = getelementptr inbounds double, ptr %293, i64 2
  store double %292, ptr %294, align 8, !tbaa !13
  %295 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %295) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

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

; Function Attrs: nounwind
declare i64 @clock() #2

; Function Attrs: nounwind uwtable
declare hidden i64 @get_memory_usage() #0

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @generate_random_unitary(ptr noundef) #0

declare { double, double } @__muldc3(double, double, double, double)

; Function Attrs: nounwind
declare double @cabs(double noundef, double noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"branch_weights", i32 1, i32 1048575}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


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

; Function Attrs: nounwind uwtable
define dso_local void @quantum_geometric_simulate(i32 noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = alloca [2 x [2 x { double, double }]], align 16
  %5 = tail call i64 @clock() #7
  %6 = tail call i64 @get_memory_usage()
  %7 = sext i32 %0 to i64
  %8 = shl nsw i64 %7, 4
  %9 = tail call noalias ptr @malloc(i64 noundef %8) #8
  %10 = sitofp i32 %0 to double
  %11 = tail call double @sqrt(double noundef %10) #7
  %12 = icmp sgt i32 %0, 0
  br i1 %12, label %.lr.ph, label %.preheader50.thread

.lr.ph:                                           ; preds = %3
  %13 = fdiv double 1.000000e+00, %11
  %wide.trip.count = zext nneg i32 %0 to i64
  %min.iters.check = icmp ult i32 %0, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %13, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %interleaved.vec = shufflevector <2 x double> %broadcast.splat, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %14 = or disjoint i64 %index, 2
  %15 = getelementptr inbounds { double, double }, ptr %9, i64 %index
  %16 = getelementptr inbounds { double, double }, ptr %9, i64 %14
  store <4 x double> %interleaved.vec, ptr %15, align 8
  store <4 x double> %interleaved.vec, ptr %16, align 8
  %index.next = add nuw i64 %index, 4
  %17 = icmp eq i64 %index.next, %n.vec
  br i1 %17, label %middle.block, label %vector.body, !llvm.loop !5

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

.preheader50:                                     ; preds = %scalar.ph, %middle.block
  %18 = icmp sgt i32 %1, 0
  br i1 %18, label %.lr.ph55, label %.preheader

.preheader50.thread:                              ; preds = %3
  %19 = icmp sgt i32 %1, 0
  br i1 %19, label %.lr.ph55.split.preheader, label %._crit_edge

.lr.ph55:                                         ; preds = %.preheader50
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  %21 = getelementptr inbounds i8, ptr %4, i64 16
  %22 = getelementptr inbounds i8, ptr %4, i64 24
  %23 = getelementptr inbounds i8, ptr %4, i64 32
  %24 = getelementptr inbounds i8, ptr %4, i64 48
  br i1 %12, label %.lr.ph53.us, label %.lr.ph55.split.preheader

.lr.ph55.split.preheader:                         ; preds = %.preheader50.thread, %.lr.ph55
  br label %.lr.ph55.split

.lr.ph53.us:                                      ; preds = %.lr.ph55, %._crit_edge.us
  %.04654.us = phi i32 [ %135, %._crit_edge.us ], [ 0, %.lr.ph55 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  call void @generate_random_unitary(ptr noundef nonnull %4)
  br label %25

25:                                               ; preds = %.lr.ph53.us, %128
  %indvars.iv65 = phi i64 [ 0, %.lr.ph53.us ], [ %indvars.iv.next66, %128 ]
  %26 = getelementptr inbounds { double, double }, ptr %9, i64 %indvars.iv65
  %27 = load <2 x double>, ptr %26, align 8
  %28 = or disjoint i64 %indvars.iv65, 1
  %29 = getelementptr inbounds { double, double }, ptr %9, i64 %28
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load <2 x double>, ptr %29, align 8
  %32 = load double, ptr %4, align 16
  %33 = load double, ptr %20, align 8
  %34 = insertelement <2 x double> poison, double %32, i64 0
  %35 = shufflevector <2 x double> %34, <2 x double> poison, <2 x i32> zeroinitializer
  %36 = fmul <2 x double> %27, %35
  %37 = insertelement <2 x double> poison, double %33, i64 0
  %38 = shufflevector <2 x double> %37, <2 x double> poison, <2 x i32> zeroinitializer
  %39 = fmul <2 x double> %27, %38
  %40 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %41 = fsub <2 x double> %36, %40
  %42 = fadd <2 x double> %36, %40
  %43 = shufflevector <2 x double> %41, <2 x double> %42, <2 x i32> <i32 0, i32 3>
  %44 = extractelement <2 x double> %41, i64 0
  %45 = fcmp uno double %44, 0.000000e+00
  br i1 %45, label %46, label %57, !prof !9

46:                                               ; preds = %25
  %47 = extractelement <2 x double> %42, i64 1
  %48 = fcmp uno double %47, 0.000000e+00
  br i1 %48, label %49, label %57, !prof !9

49:                                               ; preds = %46
  %50 = extractelement <2 x double> %27, i64 0
  %51 = extractelement <2 x double> %27, i64 1
  %52 = call { double, double } @__muldc3(double noundef %32, double noundef %33, double noundef %50, double noundef %51) #7
  %53 = extractvalue { double, double } %52, 0
  %54 = extractvalue { double, double } %52, 1
  %55 = insertelement <2 x double> poison, double %53, i64 0
  %56 = insertelement <2 x double> %55, double %54, i64 1
  br label %57

57:                                               ; preds = %49, %46, %25
  %58 = phi <2 x double> [ %43, %25 ], [ %43, %46 ], [ %56, %49 ]
  %59 = load double, ptr %21, align 16
  %60 = load double, ptr %22, align 8
  %61 = insertelement <2 x double> poison, double %59, i64 0
  %62 = shufflevector <2 x double> %61, <2 x double> poison, <2 x i32> zeroinitializer
  %63 = fmul <2 x double> %31, %62
  %64 = insertelement <2 x double> poison, double %60, i64 0
  %65 = shufflevector <2 x double> %64, <2 x double> poison, <2 x i32> zeroinitializer
  %66 = fmul <2 x double> %31, %65
  %67 = shufflevector <2 x double> %66, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %68 = fsub <2 x double> %63, %67
  %69 = fadd <2 x double> %63, %67
  %70 = shufflevector <2 x double> %68, <2 x double> %69, <2 x i32> <i32 0, i32 3>
  %71 = extractelement <2 x double> %68, i64 0
  %72 = fcmp uno double %71, 0.000000e+00
  br i1 %72, label %73, label %84, !prof !9

73:                                               ; preds = %57
  %74 = extractelement <2 x double> %69, i64 1
  %75 = fcmp uno double %74, 0.000000e+00
  br i1 %75, label %76, label %84, !prof !9

76:                                               ; preds = %73
  %77 = extractelement <2 x double> %31, i64 0
  %78 = extractelement <2 x double> %31, i64 1
  %79 = call { double, double } @__muldc3(double noundef %59, double noundef %60, double noundef %77, double noundef %78) #7
  %80 = extractvalue { double, double } %79, 0
  %81 = extractvalue { double, double } %79, 1
  %82 = insertelement <2 x double> poison, double %80, i64 0
  %83 = insertelement <2 x double> %82, double %81, i64 1
  br label %84

84:                                               ; preds = %76, %73, %57
  %85 = phi <2 x double> [ %70, %57 ], [ %70, %73 ], [ %83, %76 ]
  %86 = fadd <2 x double> %58, %85
  store <2 x double> %86, ptr %26, align 8
  %87 = load <2 x double>, ptr %23, align 16
  %88 = fmul <2 x double> %27, %87
  %89 = shufflevector <2 x double> %27, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %90 = fmul <2 x double> %89, %87
  %shift = shufflevector <2 x double> %88, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %91 = fsub <2 x double> %88, %shift
  %92 = extractelement <2 x double> %91, i64 0
  %shift79 = shufflevector <2 x double> %90, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %93 = fadd <2 x double> %90, %shift79
  %94 = extractelement <2 x double> %93, i64 0
  %95 = fcmp uno double %92, 0.000000e+00
  br i1 %95, label %96, label %106, !prof !9

96:                                               ; preds = %84
  %97 = fcmp uno double %94, 0.000000e+00
  br i1 %97, label %98, label %106, !prof !9

98:                                               ; preds = %96
  %99 = extractelement <2 x double> %27, i64 0
  %100 = extractelement <2 x double> %27, i64 1
  %101 = extractelement <2 x double> %87, i64 0
  %102 = extractelement <2 x double> %87, i64 1
  %103 = call { double, double } @__muldc3(double noundef %101, double noundef %102, double noundef %99, double noundef %100) #7
  %104 = extractvalue { double, double } %103, 0
  %105 = extractvalue { double, double } %103, 1
  br label %106

106:                                              ; preds = %98, %96, %84
  %107 = phi double [ %92, %84 ], [ %92, %96 ], [ %104, %98 ]
  %108 = phi double [ %94, %84 ], [ %94, %96 ], [ %105, %98 ]
  %109 = load <2 x double>, ptr %24, align 16
  %110 = fmul <2 x double> %31, %109
  %111 = shufflevector <2 x double> %31, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %112 = fmul <2 x double> %111, %109
  %shift80 = shufflevector <2 x double> %110, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %113 = fsub <2 x double> %110, %shift80
  %114 = extractelement <2 x double> %113, i64 0
  %shift81 = shufflevector <2 x double> %112, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %115 = fadd <2 x double> %112, %shift81
  %116 = extractelement <2 x double> %115, i64 0
  %117 = fcmp uno double %114, 0.000000e+00
  br i1 %117, label %118, label %128, !prof !9

118:                                              ; preds = %106
  %119 = fcmp uno double %116, 0.000000e+00
  br i1 %119, label %120, label %128, !prof !9

120:                                              ; preds = %118
  %121 = extractelement <2 x double> %31, i64 0
  %122 = extractelement <2 x double> %31, i64 1
  %123 = extractelement <2 x double> %109, i64 0
  %124 = extractelement <2 x double> %109, i64 1
  %125 = call { double, double } @__muldc3(double noundef %123, double noundef %124, double noundef %121, double noundef %122) #7
  %126 = extractvalue { double, double } %125, 0
  %127 = extractvalue { double, double } %125, 1
  br label %128

128:                                              ; preds = %120, %118, %106
  %129 = phi double [ %114, %106 ], [ %114, %118 ], [ %126, %120 ]
  %130 = phi double [ %116, %106 ], [ %116, %118 ], [ %127, %120 ]
  %131 = fadd double %107, %129
  %132 = fadd double %108, %130
  store double %131, ptr %29, align 8
  store double %132, ptr %30, align 8
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 2
  %133 = trunc nuw i64 %indvars.iv.next66 to i32
  %134 = icmp slt i32 %133, %0
  br i1 %134, label %25, label %._crit_edge.us, !llvm.loop !10

._crit_edge.us:                                   ; preds = %128
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  %135 = add nuw nsw i32 %.04654.us, 1
  %exitcond68.not = icmp eq i32 %135, %1
  br i1 %exitcond68.not, label %.preheader, label %.lr.ph53.us, !llvm.loop !11

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %136 = getelementptr inbounds { double, double }, ptr %9, i64 %indvars.iv
  %137 = getelementptr inbounds i8, ptr %136, i64 8
  store double %13, ptr %136, align 8
  store double 0.000000e+00, ptr %137, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader50, label %scalar.ph, !llvm.loop !12

.preheader:                                       ; preds = %.lr.ph55.split, %._crit_edge.us, %.preheader50
  br i1 %12, label %.lr.ph59.preheader, label %._crit_edge

.lr.ph59.preheader:                               ; preds = %.preheader
  %wide.trip.count72 = zext nneg i32 %0 to i64
  br label %.lr.ph59

.lr.ph55.split:                                   ; preds = %.lr.ph55.split.preheader, %.lr.ph55.split
  %.04654 = phi i32 [ %138, %.lr.ph55.split ], [ 0, %.lr.ph55.split.preheader ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  call void @generate_random_unitary(ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  %138 = add nuw nsw i32 %.04654, 1
  %exitcond64.not = icmp eq i32 %138, %1
  br i1 %exitcond64.not, label %.preheader, label %.lr.ph55.split, !llvm.loop !11

._crit_edge:                                      ; preds = %167, %.preheader50.thread, %.preheader
  %.sroa.6.0.lcssa = phi double [ 0.000000e+00, %.preheader ], [ 0.000000e+00, %.preheader50.thread ], [ %171, %167 ]
  %.sroa.06.0.lcssa = phi double [ 0.000000e+00, %.preheader ], [ 0.000000e+00, %.preheader50.thread ], [ %170, %167 ]
  %139 = call i64 @clock() #7
  %140 = call i64 @get_memory_usage()
  %141 = sub nsw i64 %139, %5
  %142 = sitofp i64 %141 to double
  %143 = fdiv double %142, 1.000000e+06
  store double %143, ptr %2, align 8, !tbaa !13
  %144 = sub i64 %140, %6
  %145 = uitofp i64 %144 to double
  %146 = fmul double %145, 0x3F50000000000000
  %147 = getelementptr inbounds i8, ptr %2, i64 8
  store double %146, ptr %147, align 8, !tbaa !13
  %148 = call double @cabs(double noundef %.sroa.06.0.lcssa, double noundef %.sroa.6.0.lcssa) #7
  %149 = getelementptr inbounds i8, ptr %2, i64 16
  store double %148, ptr %149, align 8, !tbaa !13
  call void @free(ptr noundef %9) #7
  ret void

.lr.ph59:                                         ; preds = %.lr.ph59.preheader, %167
  %indvars.iv69 = phi i64 [ 0, %.lr.ph59.preheader ], [ %indvars.iv.next70, %167 ]
  %.sroa.06.057 = phi double [ 0.000000e+00, %.lr.ph59.preheader ], [ %170, %167 ]
  %.sroa.6.056 = phi double [ 0.000000e+00, %.lr.ph59.preheader ], [ %171, %167 ]
  %150 = getelementptr inbounds { double, double }, ptr %9, i64 %indvars.iv69
  %151 = load <2 x double>, ptr %150, align 8
  %152 = extractelement <2 x double> %151, i64 1
  %153 = fneg double %152
  %154 = extractelement <2 x double> %151, i64 0
  %155 = fmul double %154, %152
  %156 = fmul <2 x double> %151, %151
  %shift82 = shufflevector <2 x double> %156, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %157 = fadd <2 x double> %156, %shift82
  %158 = extractelement <2 x double> %157, i64 0
  %159 = fsub double %155, %155
  %160 = fcmp uno double %158, 0.000000e+00
  br i1 %160, label %161, label %167, !prof !9

161:                                              ; preds = %.lr.ph59
  %162 = fcmp uno double %159, 0.000000e+00
  br i1 %162, label %163, label %167, !prof !9

163:                                              ; preds = %161
  %164 = call { double, double } @__muldc3(double noundef %154, double noundef %153, double noundef %154, double noundef %152) #7
  %165 = extractvalue { double, double } %164, 0
  %166 = extractvalue { double, double } %164, 1
  br label %167

167:                                              ; preds = %163, %161, %.lr.ph59
  %168 = phi double [ %158, %.lr.ph59 ], [ %158, %161 ], [ %165, %163 ]
  %169 = phi double [ %159, %.lr.ph59 ], [ %159, %161 ], [ %166, %163 ]
  %170 = fadd double %.sroa.06.057, %168
  %171 = fadd double %.sroa.6.056, %169
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count72
  br i1 %exitcond73.not, label %._crit_edge, label %.lr.ph59, !llvm.loop !17
}

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i64 @get_memory_usage() local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare hidden void @generate_random_unitary(ptr noundef) local_unnamed_addr #0

declare { double, double } @__muldc3(double, double, double, double) local_unnamed_addr

; Function Attrs: nofree nounwind
declare double @cabs(double noundef, double noundef) local_unnamed_addr #5

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = distinct !{!5, !6, !7, !8}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.isvectorized", i32 1}
!8 = !{!"llvm.loop.unroll.runtime.disable"}
!9 = !{!"branch_weights", i32 1, i32 1048575}
!10 = distinct !{!10, !6}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6, !8, !7}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !15, i64 0}
!15 = !{!"omnipotent char", !16, i64 0}
!16 = !{!"Simple C/C++ TBAA"}
!17 = distinct !{!17, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass