; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (imgui)

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

@.str.3 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm = external hidden unnamed_addr constant [105 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [59 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 nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i64 %3, ptr %11, align 8, !tbaa !9
  store i64 %4, ptr %12, align 8, !tbaa !9
  store i64 %5, ptr %13, align 8, !tbaa !9
  store i64 %6, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  store i8 0, ptr %15, align 1, !tbaa !11
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = call i32 @strcmp(ptr noundef %16, ptr noundef @.str.101) #5
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %30

19:                                               ; preds = %7
  store i8 1, ptr %15, align 1, !tbaa !11
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = call i32 @strcmp(ptr noundef %20, ptr noundef @.str.101) #5
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  br label %24

24:                                               ; preds = %23, %19
  %25 = phi i1 [ false, %19 ], [ true, %23 ]
  br i1 %25, label %26, label %27

26:                                               ; preds = %24
  br label %29

27:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.187, ptr noundef @.str.3, i32 noundef 8985, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #6
  unreachable

28:                                               ; No predecessors!
  br label %29

29:                                               ; preds = %28, %26
  br label %30

30:                                               ; preds = %29, %7
  %31 = load i64, ptr %9, align 8, !tbaa !9
  %32 = icmp ne i64 %31, 14280
  br i1 %32, label %33, label %43

33:                                               ; preds = %30
  store i8 1, ptr %15, align 1, !tbaa !11
  %34 = load i64, ptr %9, align 8, !tbaa !9
  %35 = icmp eq i64 %34, 14280
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  br label %37

37:                                               ; preds = %36, %33
  %38 = phi i1 [ false, %33 ], [ true, %36 ]
  br i1 %38, label %39, label %40

39:                                               ; preds = %37
  br label %42

40:                                               ; preds = %37
  call void @__assert_fail(ptr noundef @.str.189, ptr noundef @.str.3, i32 noundef 8986, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #6
  unreachable

41:                                               ; No predecessors!
  br label %42

42:                                               ; preds = %41, %39
  br label %43

43:                                               ; preds = %42, %30
  %44 = load i64, ptr %10, align 8, !tbaa !9
  %45 = icmp ne i64 %44, 1068
  br i1 %45, label %46, label %56

46:                                               ; preds = %43
  store i8 1, ptr %15, align 1, !tbaa !11
  %47 = load i64, ptr %10, align 8, !tbaa !9
  %48 = icmp eq i64 %47, 1068
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  br label %50

50:                                               ; preds = %49, %46
  %51 = phi i1 [ false, %46 ], [ true, %49 ]
  br i1 %51, label %52, label %53

52:                                               ; preds = %50
  br label %55

53:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.190, ptr noundef @.str.3, i32 noundef 8987, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #6
  unreachable

54:                                               ; No predecessors!
  br label %55

55:                                               ; preds = %54, %52
  br label %56

56:                                               ; preds = %55, %43
  %57 = load i64, ptr %11, align 8, !tbaa !9
  %58 = icmp ne i64 %57, 8
  br i1 %58, label %59, label %69

59:                                               ; preds = %56
  store i8 1, ptr %15, align 1, !tbaa !11
  %60 = load i64, ptr %11, align 8, !tbaa !9
  %61 = icmp eq i64 %60, 8
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  br label %63

63:                                               ; preds = %62, %59
  %64 = phi i1 [ false, %59 ], [ true, %62 ]
  br i1 %64, label %65, label %66

65:                                               ; preds = %63
  br label %68

66:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.191, ptr noundef @.str.3, i32 noundef 8988, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #6
  unreachable

67:                                               ; No predecessors!
  br label %68

68:                                               ; preds = %67, %65
  br label %69

69:                                               ; preds = %68, %56
  %70 = load i64, ptr %12, align 8, !tbaa !9
  %71 = icmp ne i64 %70, 16
  br i1 %71, label %72, label %82

72:                                               ; preds = %69
  store i8 1, ptr %15, align 1, !tbaa !11
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = icmp eq i64 %73, 16
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  br label %76

76:                                               ; preds = %75, %72
  %77 = phi i1 [ false, %72 ], [ true, %75 ]
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  br label %81

79:                                               ; preds = %76
  call void @__assert_fail(ptr noundef @.str.192, ptr noundef @.str.3, i32 noundef 8989, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #6
  unreachable

80:                                               ; No predecessors!
  br label %81

81:                                               ; preds = %80, %78
  br label %82

82:                                               ; preds = %81, %69
  %83 = load i64, ptr %13, align 8, !tbaa !9
  %84 = icmp ne i64 %83, 20
  br i1 %84, label %85, label %95

85:                                               ; preds = %82
  store i8 1, ptr %15, align 1, !tbaa !11
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = icmp eq i64 %86, 20
  br i1 %87, label %88, label %89

88:                                               ; preds = %85
  br label %89

89:                                               ; preds = %88, %85
  %90 = phi i1 [ false, %85 ], [ true, %88 ]
  br i1 %90, label %91, label %92

91:                                               ; preds = %89
  br label %94

92:                                               ; preds = %89
  call void @__assert_fail(ptr noundef @.str.193, ptr noundef @.str.3, i32 noundef 8990, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #6
  unreachable

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93, %91
  br label %95

95:                                               ; preds = %94, %82
  %96 = load i64, ptr %14, align 8, !tbaa !9
  %97 = icmp ne i64 %96, 2
  br i1 %97, label %98, label %108

98:                                               ; preds = %95
  store i8 1, ptr %15, align 1, !tbaa !11
  %99 = load i64, ptr %14, align 8, !tbaa !9
  %100 = icmp eq i64 %99, 2
  br i1 %100, label %101, label %102

101:                                              ; preds = %98
  br label %102

102:                                              ; preds = %101, %98
  %103 = phi i1 [ false, %98 ], [ true, %101 ]
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  br label %107

105:                                              ; preds = %102
  call void @__assert_fail(ptr noundef @.str.194, ptr noundef @.str.3, i32 noundef 8991, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #6
  unreachable

106:                                              ; No predecessors!
  br label %107

107:                                              ; preds = %106, %104
  br label %108

108:                                              ; preds = %107, %95
  %109 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %110 = trunc i8 %109 to i1
  %111 = xor i1 %110, true
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  ret i1 %111
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }
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, !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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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.3 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm = external hidden unnamed_addr constant [105 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm(ptr nocapture noundef readonly %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6) local_unnamed_addr #2 {
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.101) #3
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %10, label %9

9:                                                ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.187, ptr noundef nonnull @.str.3, i32 noundef 8985, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #4
  unreachable

10:                                               ; preds = %7
  %.not20 = icmp eq i64 %1, 14280
  br i1 %.not20, label %12, label %11

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.189, ptr noundef nonnull @.str.3, i32 noundef 8986, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #4
  unreachable

12:                                               ; preds = %10
  %.not21 = icmp eq i64 %2, 1068
  br i1 %.not21, label %14, label %13

13:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.190, ptr noundef nonnull @.str.3, i32 noundef 8987, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #4
  unreachable

14:                                               ; preds = %12
  %.not22 = icmp eq i64 %3, 8
  br i1 %.not22, label %16, label %15

15:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.191, ptr noundef nonnull @.str.3, i32 noundef 8988, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #4
  unreachable

16:                                               ; preds = %14
  %.not23 = icmp eq i64 %4, 16
  br i1 %.not23, label %18, label %17

17:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.192, ptr noundef nonnull @.str.3, i32 noundef 8989, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #4
  unreachable

18:                                               ; preds = %16
  %.not24 = icmp eq i64 %5, 20
  br i1 %.not24, label %20, label %19

19:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.193, ptr noundef nonnull @.str.3, i32 noundef 8990, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #4
  unreachable

20:                                               ; preds = %18
  %.not25 = icmp eq i64 %6, 2
  br i1 %.not25, label %22, label %21

21:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.194, ptr noundef nonnull @.str.3, i32 noundef 8991, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm) #4
  unreachable

22:                                               ; preds = %20
  ret i1 true
}

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { nounwind willreturn memory(read) }
attributes #4 = { 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)"}


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