; LLVM IR from davidesantangelo/krep :: test (test_directory)

; 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.search_params = type { ptr, i64, ptr, ptr, i64, i8, i8, i8, i8, i8, i8, ptr, ptr, i64 }

@.str = external hidden unnamed_addr constant [45 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [46 x i8], align 1
@global_match_found_flag = external global i8, align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [53 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @test_recursive_directory_search() #0 {
  %1 = alloca %struct.search_params, align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @create_test_directory_structure()
  call void @llvm.lifetime.start.p0(i64 72, ptr %1) #7
  call void @llvm.memset.p0.i64(ptr align 8 %1, i8 0, i64 72, i1 false)
  %9 = call noalias ptr @malloc(i64 noundef 8) #8
  %10 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 2
  store ptr %9, ptr %10, align 8, !tbaa !5
  %11 = call noalias ptr @malloc(i64 noundef 8) #8
  %12 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 3
  store ptr %11, ptr %12, align 8, !tbaa !12
  %13 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %20

16:                                               ; preds = %0
  %17 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 3
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  %19 = icmp ne ptr %18, null
  br i1 %19, label %23, label %20

20:                                               ; preds = %16, %0
  %21 = load ptr, ptr @stderr, align 8, !tbaa !13
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.1) #7
  call void @cleanup_test_directory_structure()
  store i32 1, ptr %2, align 4
  br label %71

23:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store ptr @.str.2, ptr %3, align 8, !tbaa !13
  %24 = load ptr, ptr %3, align 8, !tbaa !13
  %25 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 2
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds ptr, ptr %26, i64 0
  store ptr %24, ptr %27, align 8, !tbaa !13
  %28 = load ptr, ptr %3, align 8, !tbaa !13
  %29 = call i64 @strlen(ptr noundef %28) #9
  %30 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  %32 = getelementptr inbounds i64, ptr %31, i64 0
  store i64 %29, ptr %32, align 8, !tbaa !14
  %33 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 4
  store i64 1, ptr %33, align 8, !tbaa !15
  %34 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 5
  store i8 1, ptr %34, align 8, !tbaa !16
  %35 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 6
  store i8 0, ptr %35, align 1, !tbaa !17
  %36 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 7
  store i8 0, ptr %36, align 2, !tbaa !18
  %37 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 9
  store i8 1, ptr %37, align 4, !tbaa !19
  %38 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 13
  store i64 -1, ptr %38, align 8, !tbaa !20
  %39 = load ptr, ptr %3, align 8, !tbaa !13
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %39)
  store i8 0, ptr %4, align 1, !tbaa !21
  %41 = load i8, ptr %4, align 1
  store atomic i8 %41, ptr @global_match_found_flag seq_cst, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %42 = call i32 @search_directory_recursive(ptr noundef @.str.4, ptr noundef %1, i32 noundef 1)
  store i32 %42, ptr %5, align 4, !tbaa !22
  %43 = load i32, ptr %5, align 4, !tbaa !22
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %43)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  %45 = load atomic i8, ptr @global_match_found_flag seq_cst, align 1
  store i8 %45, ptr %7, align 1
  %46 = load i8, ptr %7, align 1, !tbaa !21, !range !24, !noundef !25
  %47 = trunc i8 %46 to i1
  %48 = zext i1 %47 to i8
  store i8 %48, ptr %6, align 1, !tbaa !21
  %49 = load i8, ptr %6, align 1, !tbaa !21, !range !24, !noundef !25
  %50 = trunc i8 %49 to i1
  %51 = zext i1 %50 to i64
  %52 = select i1 %50, ptr @.str.7, ptr @.str.8
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %52)
  %54 = load i32, ptr %5, align 4, !tbaa !22
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %23
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %66

58:                                               ; preds = %23
  %59 = load i8, ptr %6, align 1, !tbaa !21, !range !24, !noundef !25
  %60 = trunc i8 %59 to i1
  br i1 %60, label %63, label %61

61:                                               ; preds = %58
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %65

63:                                               ; preds = %58
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %65

65:                                               ; preds = %63, %61
  br label %66

66:                                               ; preds = %65, %56
  %67 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  call void @free(ptr noundef %68) #7
  %69 = getelementptr inbounds %struct.search_params, ptr %1, i32 0, i32 3
  %70 = load ptr, ptr %69, align 8, !tbaa !12
  call void @free(ptr noundef %70) #7
  call void @cleanup_test_directory_structure()
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  store i32 0, ptr %2, align 4
  br label %71

71:                                               ; preds = %66, %20
  call void @llvm.lifetime.end.p0(i64 72, ptr %1) #7
  %72 = load i32, ptr %2, align 4
  switch i32 %72, label %74 [
    i32 0, label %73
    i32 1, label %73
  ]

73:                                               ; preds = %71, %71
  ret void

74:                                               ; preds = %71
  unreachable
}

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare hidden void @create_test_directory_structure() #0

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: nounwind uwtable
declare hidden void @cleanup_test_directory_structure() #0

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

declare i32 @search_directory_recursive(ptr noundef, ptr noundef, i32 noundef) #1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 = { nounwind willreturn memory(read) "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) }
attributes #9 = { nounwind willreturn memory(read) }

!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 = !{!"search_params", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !11, i64 41, !11, i64 42, !11, i64 43, !11, i64 44, !11, i64 45, !7, i64 48, !7, i64 56, !10, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!6, !7, i64 24}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !10, i64 32}
!16 = !{!6, !11, i64 40}
!17 = !{!6, !11, i64 41}
!18 = !{!6, !11, i64 42}
!19 = !{!6, !11, i64 44}
!20 = !{!6, !10, i64 64}
!21 = !{!11, !11, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"int", !8, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}


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

%struct.search_params = type { ptr, i64, ptr, ptr, i64, i8, i8, i8, i8, i8, i8, ptr, ptr, i64 }

@.str = external hidden unnamed_addr constant [45 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [46 x i8], align 1
@global_match_found_flag = external local_unnamed_addr global i8, align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [53 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @test_recursive_directory_search() local_unnamed_addr #0 {
  %1 = alloca %struct.search_params, align 8
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  tail call void @create_test_directory_structure()
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %1) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %1, i8 0, i64 64, i1 false)
  %3 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #9
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  store ptr %3, ptr %4, align 8, !tbaa !5
  %5 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #9
  %6 = getelementptr inbounds i8, ptr %1, i64 24
  store ptr %5, ptr %6, align 8, !tbaa !12
  %7 = icmp ne ptr %3, null
  %8 = icmp ne ptr %5, null
  %or.cond = and i1 %7, %8
  br i1 %or.cond, label %12, label %9

9:                                                ; preds = %0
  %10 = load ptr, ptr @stderr, align 8, !tbaa !13
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.1) #10
  tail call void @cleanup_test_directory_structure()
  br label %31

12:                                               ; preds = %0
  store ptr @.str.2, ptr %3, align 8, !tbaa !13
  %13 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.2) #11
  store i64 %13, ptr %5, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %1, i64 32
  store i64 1, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %1, i64 40
  store i8 1, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %1, i64 41
  store i8 0, ptr %16, align 1, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %1, i64 42
  store i8 0, ptr %17, align 2, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %1, i64 44
  store i8 1, ptr %18, align 4, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %1, i64 64
  store i64 -1, ptr %19, align 8, !tbaa !20
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull @.str.2)
  store atomic i8 0, ptr @global_match_found_flag seq_cst, align 1
  %21 = call i32 @search_directory_recursive(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, i32 noundef 1) #8
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %21)
  %23 = load atomic i8, ptr @global_match_found_flag seq_cst, align 1
  %24 = trunc i8 %23 to i1
  %25 = select i1 %24, ptr @.str.7, ptr @.str.8
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull %25)
  %27 = icmp sgt i32 %21, 0
  %.str.11..str.10 = select i1 %24, ptr @.str.11, ptr @.str.10
  %.str.10.sink = select i1 %27, ptr @.str.9, ptr %.str.11..str.10
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.10.sink)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %29) #8
  %30 = load ptr, ptr %6, align 8, !tbaa !12
  call void @free(ptr noundef %30) #8
  call void @cleanup_test_directory_structure()
  br label %31

31:                                               ; preds = %12, %9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #8
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @create_test_directory_structure() local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @cleanup_test_directory_structure() local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

declare i32 @search_directory_recursive(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { "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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { cold nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!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 = !{!"search_params", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !11, i64 41, !11, i64 42, !11, i64 43, !11, i64 44, !11, i64 45, !7, i64 48, !7, i64 56, !10, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!6, !7, i64 24}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !10, i64 32}
!16 = !{!6, !11, i64 40}
!17 = !{!6, !11, i64 41}
!18 = !{!6, !11, i64 42}
!19 = !{!6, !11, i64 44}
!20 = !{!6, !10, i64 64}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass