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

; 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.qrng_ctx = type { i64, i64, i64, i64, i64, [16 x double], i64, [16 x double], [16 x i64], [16 x i64], [16 x i64], %struct.timeval, i32, %union.anon, i64 }
%struct.timeval = type { i64, i64 }
%union.anon = type { [128 x i64] }

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @splitmix64(i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i64 @get_runtime_entropy(ptr noundef) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @quantum_noise(double noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden i64 @measure_state(ptr noundef, double noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @qrng_measure_state(ptr noundef %0, ptr noundef %1, i64 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca double, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %3
  store i32 1, ptr %4, align 4
  br label %103

16:                                               ; preds = %3
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 2, ptr %4, align 4
  br label %103

20:                                               ; preds = %16
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  store i32 3, ptr %4, align 4
  br label %103

24:                                               ; preds = %20
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call i64 @get_runtime_entropy(ptr noundef %25)
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.qrng_ctx, ptr %27, i32 0, i32 2
  store i64 %26, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.qrng_ctx, ptr %29, i32 0, i32 0
  %31 = load i64, ptr %30, align 8, !tbaa !15
  %32 = mul i64 %31, -7046029254386353131
  %33 = call i64 @splitmix64(i64 noundef %32)
  store i64 %33, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %71, %24
  %35 = load i64, ptr %9, align 8, !tbaa !9
  %36 = load i64, ptr %7, align 8, !tbaa !9
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %74

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = load i64, ptr %9, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %40, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !16
  %44 = uitofp i8 %43 to double
  %45 = fdiv double %44, 2.550000e+02
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.qrng_ctx, ptr %46, i32 0, i32 2
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = uitofp i64 %48 to double
  %50 = fdiv double %49, 0x43F0000000000000
  %51 = fadd double %45, %50
  %52 = call double @quantum_noise(double noundef %51)
  store double %52, ptr %10, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load double, ptr %10, align 8, !tbaa !17
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = call i64 @measure_state(ptr noundef %53, double noundef %54, i64 noundef %55)
  store i64 %56, ptr %11, align 8, !tbaa !9
  %57 = load i64, ptr %11, align 8, !tbaa !9
  %58 = and i64 %57, 255
  %59 = trunc i64 %58 to i8
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %60, i64 %61
  store i8 %59, ptr %62, align 1, !tbaa !16
  %63 = load i64, ptr %8, align 8, !tbaa !9
  %64 = load i64, ptr %11, align 8, !tbaa !9
  %65 = xor i64 %63, %64
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.qrng_ctx, ptr %66, i32 0, i32 2
  %68 = load i64, ptr %67, align 8, !tbaa !11
  %69 = xor i64 %65, %68
  %70 = call i64 @splitmix64(i64 noundef %69)
  store i64 %70, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %71

71:                                               ; preds = %39
  %72 = load i64, ptr %9, align 8, !tbaa !9
  %73 = add i64 %72, 1
  store i64 %73, ptr %9, align 8, !tbaa !9
  br label %34, !llvm.loop !19

74:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !21
  br label %75

75:                                               ; preds = %99, %74
  %76 = load i32, ptr %12, align 4, !tbaa !21
  %77 = icmp slt i32 %76, 16
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %102

79:                                               ; preds = %75
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.qrng_ctx, ptr %81, i32 0, i32 7
  %83 = load i32, ptr %12, align 4, !tbaa !21
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [16 x double], ptr %82, i64 0, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !17
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.qrng_ctx, ptr %87, i32 0, i32 10
  %89 = load i32, ptr %12, align 4, !tbaa !21
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [16 x i64], ptr %88, i64 0, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = call i64 @measure_state(ptr noundef %80, double noundef %86, i64 noundef %92)
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.qrng_ctx, ptr %94, i32 0, i32 10
  %96 = load i32, ptr %12, align 4, !tbaa !21
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [16 x i64], ptr %95, i64 0, i64 %97
  store i64 %93, ptr %98, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %79
  %100 = load i32, ptr %12, align 4, !tbaa !21
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %12, align 4, !tbaa !21
  br label %75, !llvm.loop !22

102:                                              ; preds = %78
  store i32 0, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %103

103:                                              ; preds = %102, %23, %19, %15
  %104 = load i32, ptr %4, align 4
  ret i32 %104
}

attributes #0 = { inlinehint 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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !10, i64 168, !7, i64 176, !7, i64 304, !7, i64 432, !7, i64 560, !13, i64 688, !14, i64 704, !7, i64 712, !10, i64 1736}
!13 = !{!"timeval", !10, i64 0, !10, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !10, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!14, !14, i64 0}
!22 = distinct !{!22, !20}


; 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: inlinehint nounwind uwtable
declare hidden i64 @splitmix64(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @get_runtime_entropy(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @quantum_noise(double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @measure_state(ptr noundef, double noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @qrng_measure_state(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.loopexit, label %4

4:                                                ; preds = %3
  %.not36 = icmp eq ptr %1, null
  br i1 %.not36, label %.loopexit, label %5

5:                                                ; preds = %4
  %6 = icmp eq i64 %2, 0
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %5
  %8 = tail call i64 @get_runtime_entropy(ptr noundef nonnull %0)
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %8, ptr %9, align 8, !tbaa !5
  %10 = load i64, ptr %0, align 8, !tbaa !12
  %11 = mul i64 %10, -7046029254386353131
  %12 = tail call i64 @splitmix64(i64 noundef %11)
  br label %93

.preheader:                                       ; preds = %93
  %13 = getelementptr inbounds i8, ptr %0, i64 176
  %14 = getelementptr inbounds i8, ptr %0, i64 560
  %15 = load double, ptr %13, align 8, !tbaa !13
  %16 = load i64, ptr %14, align 8, !tbaa !15
  %17 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %15, i64 noundef %16)
  store i64 %17, ptr %14, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %0, i64 184
  %19 = load double, ptr %18, align 8, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %0, i64 568
  %21 = load i64, ptr %20, align 8, !tbaa !15
  %22 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %19, i64 noundef %21)
  store i64 %22, ptr %20, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %0, i64 192
  %24 = load double, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %0, i64 576
  %26 = load i64, ptr %25, align 8, !tbaa !15
  %27 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %24, i64 noundef %26)
  store i64 %27, ptr %25, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %0, i64 200
  %29 = load double, ptr %28, align 8, !tbaa !13
  %30 = getelementptr inbounds i8, ptr %0, i64 584
  %31 = load i64, ptr %30, align 8, !tbaa !15
  %32 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %29, i64 noundef %31)
  store i64 %32, ptr %30, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %0, i64 208
  %34 = load double, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %0, i64 592
  %36 = load i64, ptr %35, align 8, !tbaa !15
  %37 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %34, i64 noundef %36)
  store i64 %37, ptr %35, align 8, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %0, i64 216
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %0, i64 600
  %41 = load i64, ptr %40, align 8, !tbaa !15
  %42 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %39, i64 noundef %41)
  store i64 %42, ptr %40, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %0, i64 224
  %44 = load double, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %0, i64 608
  %46 = load i64, ptr %45, align 8, !tbaa !15
  %47 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %44, i64 noundef %46)
  store i64 %47, ptr %45, align 8, !tbaa !15
  %48 = getelementptr inbounds i8, ptr %0, i64 232
  %49 = load double, ptr %48, align 8, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %0, i64 616
  %51 = load i64, ptr %50, align 8, !tbaa !15
  %52 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %49, i64 noundef %51)
  store i64 %52, ptr %50, align 8, !tbaa !15
  %53 = getelementptr inbounds i8, ptr %0, i64 240
  %54 = load double, ptr %53, align 8, !tbaa !13
  %55 = getelementptr inbounds i8, ptr %0, i64 624
  %56 = load i64, ptr %55, align 8, !tbaa !15
  %57 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %54, i64 noundef %56)
  store i64 %57, ptr %55, align 8, !tbaa !15
  %58 = getelementptr inbounds i8, ptr %0, i64 248
  %59 = load double, ptr %58, align 8, !tbaa !13
  %60 = getelementptr inbounds i8, ptr %0, i64 632
  %61 = load i64, ptr %60, align 8, !tbaa !15
  %62 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %59, i64 noundef %61)
  store i64 %62, ptr %60, align 8, !tbaa !15
  %63 = getelementptr inbounds i8, ptr %0, i64 256
  %64 = load double, ptr %63, align 8, !tbaa !13
  %65 = getelementptr inbounds i8, ptr %0, i64 640
  %66 = load i64, ptr %65, align 8, !tbaa !15
  %67 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %64, i64 noundef %66)
  store i64 %67, ptr %65, align 8, !tbaa !15
  %68 = getelementptr inbounds i8, ptr %0, i64 264
  %69 = load double, ptr %68, align 8, !tbaa !13
  %70 = getelementptr inbounds i8, ptr %0, i64 648
  %71 = load i64, ptr %70, align 8, !tbaa !15
  %72 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %69, i64 noundef %71)
  store i64 %72, ptr %70, align 8, !tbaa !15
  %73 = getelementptr inbounds i8, ptr %0, i64 272
  %74 = load double, ptr %73, align 8, !tbaa !13
  %75 = getelementptr inbounds i8, ptr %0, i64 656
  %76 = load i64, ptr %75, align 8, !tbaa !15
  %77 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %74, i64 noundef %76)
  store i64 %77, ptr %75, align 8, !tbaa !15
  %78 = getelementptr inbounds i8, ptr %0, i64 280
  %79 = load double, ptr %78, align 8, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %0, i64 664
  %81 = load i64, ptr %80, align 8, !tbaa !15
  %82 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %79, i64 noundef %81)
  store i64 %82, ptr %80, align 8, !tbaa !15
  %83 = getelementptr inbounds i8, ptr %0, i64 288
  %84 = load double, ptr %83, align 8, !tbaa !13
  %85 = getelementptr inbounds i8, ptr %0, i64 672
  %86 = load i64, ptr %85, align 8, !tbaa !15
  %87 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %84, i64 noundef %86)
  store i64 %87, ptr %85, align 8, !tbaa !15
  %88 = getelementptr inbounds i8, ptr %0, i64 296
  %89 = load double, ptr %88, align 8, !tbaa !13
  %90 = getelementptr inbounds i8, ptr %0, i64 680
  %91 = load i64, ptr %90, align 8, !tbaa !15
  %92 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %89, i64 noundef %91)
  store i64 %92, ptr %90, align 8, !tbaa !15
  br label %.loopexit

93:                                               ; preds = %7, %93
  %.03138 = phi i64 [ %12, %7 ], [ %108, %93 ]
  %.03237 = phi i64 [ 0, %7 ], [ %109, %93 ]
  %94 = getelementptr inbounds i8, ptr %1, i64 %.03237
  %95 = load i8, ptr %94, align 1, !tbaa !16
  %96 = uitofp i8 %95 to double
  %97 = fdiv double %96, 2.550000e+02
  %98 = load i64, ptr %9, align 8, !tbaa !5
  %99 = uitofp i64 %98 to double
  %100 = fmul double %99, 0x3BF0000000000000
  %101 = fadd double %97, %100
  %102 = tail call double @quantum_noise(double noundef %101)
  %103 = tail call i64 @measure_state(ptr noundef nonnull %0, double noundef %102, i64 noundef %.03138)
  %104 = trunc i64 %103 to i8
  store i8 %104, ptr %94, align 1, !tbaa !16
  %105 = load i64, ptr %9, align 8, !tbaa !5
  %106 = xor i64 %.03138, %105
  %107 = xor i64 %106, %103
  %108 = tail call i64 @splitmix64(i64 noundef %107)
  %109 = add nuw i64 %.03237, 1
  %exitcond.not = icmp eq i64 %109, %2
  br i1 %exitcond.not, label %.preheader, label %93, !llvm.loop !17

.loopexit:                                        ; preds = %.preheader, %5, %4, %3
  %.030 = phi i32 [ 1, %3 ], [ 2, %4 ], [ 3, %5 ], [ 0, %.preheader ]
  ret i32 %.030
}

attributes #0 = { inlinehint 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 = { 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" }

!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, !7, i64 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !8, i64 40, !7, i64 168, !8, i64 176, !8, i64 304, !8, i64 432, !8, i64 560, !10, i64 688, !11, i64 704, !8, i64 712, !7, i64 1736}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"timeval", !7, i64 0, !7, i64 8}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!8, !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass