; LLVM IR from ryanlayer/giggle :: src (giggle_index)

; 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.giggle_query_iter = type { ptr, i32, i32, i32, ptr, ptr, ptr }
%struct.giggle_index = type { ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.file_data = type { ptr, i32, double }
%struct.input_file = type { ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, ptr, ptr, ptr }

@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [14 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
declare void @errx(i32 noundef, ptr noundef, ...) #1

declare ptr @input_file_init(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @file_index_get(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @giggle_query_next(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [4096 x i8], align 16
  %8 = alloca [4096 x i8], align 16
  %9 = alloca [4096 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.giggle_query_iter, ptr %10, i32 0, i32 3
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %22, label %14

14:                                               ; preds = %2
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.giggle_query_iter, ptr %15, i32 0, i32 2
  %17 = load i32, ptr %16, align 4, !tbaa !12
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.giggle_query_iter, ptr %18, i32 0, i32 3
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = icmp eq i32 %17, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %14, %2
  store i32 -1, ptr %3, align 4
  br label %106

23:                                               ; preds = %14
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.giggle_query_iter, ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %74

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.giggle_query_iter, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = getelementptr inbounds %struct.giggle_index, ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.giggle_query_iter, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 8, !tbaa !17
  %37 = call ptr @file_index_get(ptr noundef %33, i32 noundef %36)
  store ptr %37, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4096, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr %8) #5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.giggle_query_iter, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  %41 = getelementptr inbounds %struct.giggle_index, ptr %40, i32 0, i32 7
  %42 = load ptr, ptr %41, align 8, !tbaa !18
  %43 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %44 = call ptr @realpath(ptr noundef %42, ptr noundef %43) #5
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %52

46:                                               ; preds = %28
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.giggle_query_iter, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.giggle_index, ptr %49, i32 0, i32 7
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.43, ptr noundef %51) #6
  unreachable

52:                                               ; preds = %28
  %53 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %54 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
  call void @safe_dirname(ptr noundef %53, ptr noundef %54)
  call void @llvm.lifetime.start.p0(i64 4096, ptr %9) #5
  %55 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %56 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.file_data, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !19
  %60 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %55, i64 noundef 4096, ptr noundef @.str.27, ptr noundef %56, ptr noundef %59) #5
  %61 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %62 = call ptr @input_file_init(ptr noundef %61)
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.giggle_query_iter, ptr %63, i32 0, i32 4
  store ptr %62, ptr %64, align 8, !tbaa !13
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.giggle_query_iter, ptr %65, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !13
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %73

69:                                               ; preds = %52
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.file_data, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef @.str.14, ptr noundef %72) #6
  unreachable

73:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4096, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %74

74:                                               ; preds = %73, %23
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.giggle_query_iter, ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds %struct.input_file, ptr %77, i32 0, i32 10
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.giggle_query_iter, ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.giggle_query_iter, ptr %83, i32 0, i32 5
  %85 = load ptr, ptr %84, align 8, !tbaa !25
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.giggle_query_iter, ptr %86, i32 0, i32 2
  %88 = load i32, ptr %87, align 4, !tbaa !12
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds i64, ptr %85, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !26
  call void %79(ptr noundef %82, i64 noundef %91)
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.giggle_query_iter, ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = getelementptr inbounds %struct.input_file, ptr %94, i32 0, i32 9
  %96 = load ptr, ptr %95, align 8, !tbaa !27
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.giggle_query_iter, ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !13
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = call i32 %96(ptr noundef %99, ptr noundef %100)
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.giggle_query_iter, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !12
  %105 = add i32 %104, 1
  store i32 %105, ptr %103, align 4, !tbaa !12
  store i32 0, ptr %3, align 4
  br label %106

106:                                              ; preds = %74, %22
  %107 = load i32, ptr %3, align 4
  ret i32 %107
}

; Function Attrs: nounwind
declare ptr @realpath(ptr noundef, ptr noundef) #4

declare void @safe_dirname(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 = { "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 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn }

!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, !11, i64 16}
!10 = !{!"giggle_query_iter", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 12}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 0}
!15 = !{!16, !6, i64 24}
!16 = !{!"giggle_index", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!17 = !{!10, !11, i64 8}
!18 = !{!16, !6, i64 48}
!19 = !{!20, !6, i64 0}
!20 = !{!"file_data", !6, i64 0, !11, i64 8, !21, i64 16}
!21 = !{!"double", !7, i64 0}
!22 = !{!23, !6, i64 80}
!23 = !{!"input_file", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !24, i64 48, !11, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!24 = !{!"long", !7, i64 0}
!25 = !{!10, !6, i64 32}
!26 = !{!24, !24, i64 0}
!27 = !{!23, !6, i64 72}


; 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.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [14 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
declare void @errx(i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare ptr @input_file_init(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @file_index_get(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @giggle_query_next(ptr nocapture noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca [4096 x i8], align 16
  %4 = alloca [4096 x i8], align 16
  %5 = alloca [4096 x i8], align 16
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %57, label %9

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 12
  %11 = load i32, ptr %10, align 4, !tbaa !11
  %12 = icmp eq i32 %11, %7
  br i1 %12, label %57, label %13

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %41

17:                                               ; preds = %13
  %18 = load ptr, ptr %0, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %18, i64 24
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !16
  %23 = tail call ptr @file_index_get(ptr noundef %20, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %4) #5
  %24 = load ptr, ptr %0, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %24, i64 48
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %27 = call ptr @realpath(ptr noundef %26, ptr noundef nonnull %4) #5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %33

29:                                               ; preds = %17
  %30 = load ptr, ptr %0, align 8, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %30, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.43, ptr noundef %32) #6
  unreachable

33:                                               ; preds = %17
  call void @safe_dirname(ptr noundef nonnull %4, ptr noundef nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %5) #5
  %34 = load ptr, ptr %23, align 8, !tbaa !18
  %35 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 4096, ptr noundef nonnull @.str.27, ptr noundef nonnull %3, ptr noundef %34) #5
  %36 = call ptr @input_file_init(ptr noundef nonnull %5) #5
  store ptr %36, ptr %14, align 8, !tbaa !12
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %40

38:                                               ; preds = %33
  %39 = load ptr, ptr %23, align 8, !tbaa !18
  call void (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.14, ptr noundef %39) #6
  unreachable

40:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %3) #5
  %.pre = load i32, ptr %10, align 4, !tbaa !11
  br label %41

41:                                               ; preds = %40, %13
  %42 = phi i32 [ %.pre, %40 ], [ %11, %13 ]
  %43 = phi ptr [ %36, %40 ], [ %15, %13 ]
  %44 = getelementptr inbounds i8, ptr %43, i64 80
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %0, i64 32
  %47 = load ptr, ptr %46, align 8, !tbaa !24
  %48 = zext i32 %42 to i64
  %49 = getelementptr inbounds i64, ptr %47, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !25
  call void %45(ptr noundef nonnull %43, i64 noundef %50) #5
  %51 = load ptr, ptr %14, align 8, !tbaa !12
  %52 = getelementptr inbounds i8, ptr %51, i64 72
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %54 = call i32 %53(ptr noundef %51, ptr noundef %1) #5
  %55 = load i32, ptr %10, align 4, !tbaa !11
  %56 = add i32 %55, 1
  store i32 %56, ptr %10, align 4, !tbaa !11
  br label %57

57:                                               ; preds = %2, %9, %41
  %.0 = phi i32 [ 0, %41 ], [ -1, %9 ], [ -1, %2 ]
  ret i32 %.0
}

; Function Attrs: nofree nounwind
declare noundef ptr @realpath(ptr nocapture noundef readonly, ptr noundef) local_unnamed_addr #4

declare void @safe_dirname(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 = { "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 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 16}
!6 = !{!"giggle_query_iter", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!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 12}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !7, i64 24}
!15 = !{!"giggle_index", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!16 = !{!6, !10, i64 8}
!17 = !{!15, !7, i64 48}
!18 = !{!19, !7, i64 0}
!19 = !{!"file_data", !7, i64 0, !10, i64 8, !20, i64 16}
!20 = !{!"double", !8, i64 0}
!21 = !{!22, !7, i64 80}
!22 = !{!"input_file", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !23, i64 48, !10, i64 56, !7, i64 64, !7, i64 72, !7, i64 80}
!23 = !{!"long", !8, i64 0}
!24 = !{!6, !7, i64 32}
!25 = !{!23, !23, i64 0}
!26 = !{!22, !7, i64 72}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass