; LLVM IR from gem5/gem5 :: ext/mcpat/xmlParser.ll (ZN7XMLNode14openFileHelperEPKcS1_)

; 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.XMLNode = type { ptr }
%struct.XMLResults = type { i32, i32, i32 }

@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL18guessWideCharChars = external hidden global i8, align 1
@_ZL14dropWhiteSpace = external hidden global i8, align 1
@_ZL28removeCommentsInMiddleOfText = external hidden global i8, align 1
@.str.24 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7XMLNode8getErrorE8XMLError(i32 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7XMLNode14openFileHelperEPKcS1_(ptr dead_on_unwind noalias writable sret(%struct.XMLNode) align 8 %0, ptr noundef %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [205 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca %struct.XMLResults, align 4
  %11 = alloca i1, align 1
  %12 = alloca [2000 x i8], align 16
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call noundef ptr @_ZL6xfopenPKcS0_(ptr noundef %18, ptr noundef @.str.23)
  store ptr %19, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %36

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 205, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %23 = getelementptr inbounds [205 x i8], ptr %8, i64 0, i64 0
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call i64 @fread(ptr noundef %23, i64 noundef 1, i64 noundef 200, ptr noundef %24)
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %9, align 4, !tbaa !9
  %27 = getelementptr inbounds [205 x i8], ptr %8, i64 0, i64 0
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = call noundef i32 @_ZN7XMLNode17guessCharEncodingEPvic(ptr noundef %27, i32 noundef %28, i8 noundef signext 1)
  %30 = load i8, ptr @_ZL18guessWideCharChars, align 1, !tbaa !11
  %31 = load i8, ptr @_ZL14dropWhiteSpace, align 1, !tbaa !11
  %32 = load i8, ptr @_ZL28removeCommentsInMiddleOfText, align 1, !tbaa !11
  %33 = call noundef signext i8 @_ZN7XMLNode16setGlobalOptionsENS_15XMLCharEncodingEccc(i32 noundef %29, i8 noundef signext %30, i8 noundef signext %31, i8 noundef signext %32)
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = call i32 @fclose(ptr noundef %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 205, ptr %8) #7
  br label %36

36:                                               ; preds = %22, %3
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  store i1 false, ptr %11, align 1
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7XMLNode9parseFileEPKcS1_P10XMLResults(ptr dead_on_unwind writable sret(%struct.XMLNode) align 8 %0, ptr noundef %37, ptr noundef %38, ptr noundef %10)
  %39 = getelementptr inbounds %struct.XMLResults, ptr %10, i32 0, i32 0
  %40 = load i32, ptr %39, align 4, !tbaa !12
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %69

42:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 2000, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr @.str.24, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store ptr @.str.24, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr @.str.24, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.XMLResults, ptr %10, i32 0, i32 0
  %44 = load i32, ptr %43, align 4, !tbaa !12
  %45 = icmp eq i32 %44, 11
  br i1 %45, label %46, label %48

46:                                               ; preds = %42
  store ptr @.str.25, ptr %13, align 8, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %47, ptr %15, align 8, !tbaa !5
  store ptr @.str.26, ptr %14, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %46, %42
  %49 = getelementptr inbounds [2000 x i8], ptr %12, i64 0, i64 0
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.XMLResults, ptr %10, i32 0, i32 0
  %52 = load i32, ptr %51, align 4, !tbaa !12
  %53 = call noundef ptr @_ZN7XMLNode8getErrorE8XMLError(i32 noundef %52)
  %54 = getelementptr inbounds %struct.XMLResults, ptr %10, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !15
  %56 = getelementptr inbounds %struct.XMLResults, ptr %10, i32 0, i32 2
  %57 = load i32, ptr %56, align 4, !tbaa !16
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %49, ptr noundef @.str.27, ptr noundef %50, ptr noundef %53, i32 noundef %55, i32 noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60) #7
  %62 = getelementptr inbounds [2000 x i8], ptr %12, i64 0, i64 0
  %63 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef %62)
          to label %64 unwind label %65

64:                                               ; preds = %48
  call void @exit(i32 noundef 255) #8
  unreachable

65:                                               ; preds = %48
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %16, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 2000, ptr %12) #7
  call void @_ZN7XMLNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %73

69:                                               ; preds = %36
  store i1 true, ptr %11, align 1
  %70 = load i1, ptr %11, align 1
  br i1 %70, label %72, label %71

71:                                               ; preds = %69
  call void @_ZN7XMLNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  br label %72

72:                                               ; preds = %71, %69
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void

73:                                               ; preds = %65
  %74 = load ptr, ptr %16, align 8
  %75 = load i32, ptr %17, align 4
  %76 = insertvalue { ptr, i32 } poison, ptr %74, 0
  %77 = insertvalue { ptr, i32 } %76, i32 %75, 1
  resume { ptr, i32 } %77
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @_ZL6xfopenPKcS0_(ptr noundef, ptr noundef) #3

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN7XMLNode16setGlobalOptionsENS_15XMLCharEncodingEccc(i32 noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7XMLNode17guessCharEncodingEPvic(ptr noundef, i32 noundef, i8 noundef signext) #2 align 2

declare i32 @fclose(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7XMLNode9parseFileEPKcS1_P10XMLResults(ptr dead_on_unwind noalias writable sret(%struct.XMLNode) align 8, ptr noundef, ptr noundef, ptr noundef) #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

declare void @_ZN7XMLNodeD1Ev(ptr)

attributes #0 = { mustprogress 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS10XMLResults", !14, i64 0, !10, i64 4, !10, i64 8}
!14 = !{!"_ZTS8XMLError", !7, i64 0}
!15 = !{!13, !10, i64 4}
!16 = !{!13, !10, i64 8}


; 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.XMLNode = type { ptr }
%struct.XMLResults = type { i32, i32, i32 }

@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL18guessWideCharChars = external hidden local_unnamed_addr global i8, align 1
@_ZL14dropWhiteSpace = external hidden local_unnamed_addr global i8, align 1
@_ZL28removeCommentsInMiddleOfText = external hidden local_unnamed_addr global i8, align 1
@.str.24 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7XMLNode8getErrorE8XMLError(i32 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7XMLNode14openFileHelperEPKcS1_(ptr dead_on_unwind noalias writable sret(%struct.XMLNode) align 8 %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca [205 x i8], align 16
  %5 = alloca %struct.XMLResults, align 4
  %6 = alloca [2000 x i8], align 16
  %7 = tail call noundef ptr @_ZL6xfopenPKcS0_(ptr noundef %1, ptr noundef nonnull @.str.23)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %17, label %8

8:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 205, ptr nonnull %4) #6
  %9 = call i64 @fread(ptr noundef nonnull %4, i64 noundef 1, i64 noundef 200, ptr noundef nonnull %7)
  %10 = trunc i64 %9 to i32
  %11 = call noundef i32 @_ZN7XMLNode17guessCharEncodingEPvic(ptr noundef nonnull %4, i32 noundef %10, i8 noundef signext 1)
  %12 = load i8, ptr @_ZL18guessWideCharChars, align 1, !tbaa !5
  %13 = load i8, ptr @_ZL14dropWhiteSpace, align 1, !tbaa !5
  %14 = load i8, ptr @_ZL28removeCommentsInMiddleOfText, align 1, !tbaa !5
  %15 = call noundef signext i8 @_ZN7XMLNode16setGlobalOptionsENS_15XMLCharEncodingEccc(i32 noundef %11, i8 noundef signext %12, i8 noundef signext %13, i8 noundef signext %14)
  %16 = call i32 @fclose(ptr noundef nonnull %7)
  call void @llvm.lifetime.end.p0(i64 205, ptr nonnull %4) #6
  br label %17

17:                                               ; preds = %8, %3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @_ZN7XMLNode9parseFileEPKcS1_P10XMLResults(ptr dead_on_unwind writable sret(%struct.XMLNode) align 8 %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %5)
  %18 = load i32, ptr %5, align 4, !tbaa !8
  %.not15 = icmp eq i32 %18, 0
  br i1 %.not15, label %28, label %19

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %6) #6
  %20 = icmp eq i32 %18, 11
  %.013 = select i1 %20, ptr @.str.25, ptr @.str.24
  %.012 = select i1 %20, ptr @.str.26, ptr @.str.24
  %.0 = select i1 %20, ptr %2, ptr @.str.24
  %21 = call noundef ptr @_ZN7XMLNode8getErrorE8XMLError(i32 noundef %18)
  %22 = getelementptr inbounds i8, ptr %5, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !12
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  %25 = load i32, ptr %24, align 4, !tbaa !13
  %26 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.27, ptr noundef %1, ptr noundef %21, i32 noundef %23, i32 noundef %25, ptr noundef nonnull %.013, ptr noundef %.0, ptr noundef nonnull %.012) #6
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull %6)
  call void @exit(i32 noundef 255) #7
  unreachable

28:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @_ZL6xfopenPKcS0_(ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN7XMLNode16setGlobalOptionsENS_15XMLCharEncodingEccc(i32 noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7XMLNode17guessCharEncodingEPvic(ptr noundef, i32 noundef, i8 noundef signext) local_unnamed_addr #2 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7XMLNode9parseFileEPKcS1_P10XMLResults(ptr dead_on_unwind noalias writable sret(%struct.XMLNode) align 8, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTS10XMLResults", !10, i64 0, !11, i64 4, !11, i64 8}
!10 = !{!"_ZTS8XMLError", !6, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = !{!9, !11, i64 4}
!13 = !{!9, !11, i64 8}


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