; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Mesh.ll (ZN6R3Mesh8ReadFileEPKc)

; 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.46 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [53 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: mustprogress uwtable
define dso_local noundef i32 @_ZN6R3Mesh8ReadFileEPKc(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %8 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  %10 = call noundef ptr @strrchr(ptr noundef %9, i32 noundef 46) #6
  store ptr %10, ptr %6, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %15, label %12

12:                                               ; preds = %2
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.46, ptr noundef %13)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

15:                                               ; preds = %2
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call i32 @strncmp(ptr noundef %16, ptr noundef @.str.47, i64 noundef 4) #6
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %28, label %19

19:                                               ; preds = %15
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %8, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 49
  %23 = load ptr, ptr %22, align 8
  %24 = call noundef i32 %23(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %20)
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %27, label %26

26:                                               ; preds = %19
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

27:                                               ; preds = %19
  br label %143

28:                                               ; preds = %15
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call i32 @strncmp(ptr noundef %29, ptr noundef @.str.48, i64 noundef 4) #6
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %41, label %32

32:                                               ; preds = %28
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 50
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef i32 %36(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %33)
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %40, label %39

39:                                               ; preds = %32
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

40:                                               ; preds = %32
  br label %142

41:                                               ; preds = %28
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call i32 @strncmp(ptr noundef %42, ptr noundef @.str.49, i64 noundef 4) #6
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %54, label %45

45:                                               ; preds = %41
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %8, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 51
  %49 = load ptr, ptr %48, align 8
  %50 = call noundef i32 %49(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %46)
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %53, label %52

52:                                               ; preds = %45
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

53:                                               ; preds = %45
  br label %141

54:                                               ; preds = %41
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = call i32 @strncmp(ptr noundef %55, ptr noundef @.str.50, i64 noundef 4) #6
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %67, label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load ptr, ptr %8, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %60, i64 52
  %62 = load ptr, ptr %61, align 8
  %63 = call noundef i32 %62(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %59)
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %66, label %65

65:                                               ; preds = %58
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

66:                                               ; preds = %58
  br label %140

67:                                               ; preds = %54
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = call i32 @strncmp(ptr noundef %68, ptr noundef @.str.51, i64 noundef 4) #6
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %80, label %71

71:                                               ; preds = %67
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %8, align 8, !tbaa !9
  %74 = getelementptr inbounds ptr, ptr %73, i64 53
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef i32 %75(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %72)
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %79, label %78

78:                                               ; preds = %71
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

79:                                               ; preds = %71
  br label %139

80:                                               ; preds = %67
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = call i32 @strncmp(ptr noundef %81, ptr noundef @.str.52, i64 noundef 4) #6
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %93, label %84

84:                                               ; preds = %80
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = load ptr, ptr %8, align 8, !tbaa !9
  %87 = getelementptr inbounds ptr, ptr %86, i64 54
  %88 = load ptr, ptr %87, align 8
  %89 = call noundef i32 %88(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %85)
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %92, label %91

91:                                               ; preds = %84
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

92:                                               ; preds = %84
  br label %138

93:                                               ; preds = %80
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = call i32 @strncmp(ptr noundef %94, ptr noundef @.str.53, i64 noundef 4) #6
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %106, label %97

97:                                               ; preds = %93
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load ptr, ptr %8, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %99, i64 55
  %101 = load ptr, ptr %100, align 8
  %102 = call noundef i32 %101(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %98)
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %105, label %104

104:                                              ; preds = %97
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

105:                                              ; preds = %97
  br label %137

106:                                              ; preds = %93
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = call i32 @strncmp(ptr noundef %107, ptr noundef @.str.54, i64 noundef 4) #6
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %119, label %110

110:                                              ; preds = %106
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %8, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %112, i64 56
  %114 = load ptr, ptr %113, align 8
  %115 = call noundef i32 %114(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %111)
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %118, label %117

117:                                              ; preds = %110
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

118:                                              ; preds = %110
  br label %136

119:                                              ; preds = %106
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = call i32 @strncmp(ptr noundef %120, ptr noundef @.str.55, i64 noundef 4) #6
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %132, label %123

123:                                              ; preds = %119
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !9
  %126 = getelementptr inbounds ptr, ptr %125, i64 57
  %127 = load ptr, ptr %126, align 8
  %128 = call noundef i32 %127(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %124)
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %131, label %130

130:                                              ; preds = %123
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

131:                                              ; preds = %123
  br label %135

132:                                              ; preds = %119
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.56, ptr noundef %133, ptr noundef %134)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

135:                                              ; preds = %131
  br label %136

136:                                              ; preds = %135, %118
  br label %137

137:                                              ; preds = %136, %105
  br label %138

138:                                              ; preds = %137, %92
  br label %139

139:                                              ; preds = %138, %79
  br label %140

140:                                              ; preds = %139, %66
  br label %141

141:                                              ; preds = %140, %53
  br label %142

142:                                              ; preds = %141, %40
  br label %143

143:                                              ; preds = %142, %27
  %144 = call noundef ptr @_ZNK6R3Mesh4NameEv(ptr noundef nonnull align 8 dereferenceable(272) %8)
  %145 = call i64 @strlen(ptr noundef %144) #6
  %146 = icmp eq i64 %145, 0
  br i1 %146, label %147, label %149

147:                                              ; preds = %143
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN6R3Mesh7SetNameEPKc(ptr noundef nonnull align 8 dereferenceable(272) %8, ptr noundef %148)
  br label %149

149:                                              ; preds = %147, %143
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

150:                                              ; preds = %149, %132, %130, %117, %104, %91, %78, %65, %52, %39, %26, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %151 = load i32, ptr %3, align 4
  ret i32 %151
}

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

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

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

declare void @_Z6RNFailPKcz(ptr noundef, ...) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh4NameEv(ptr noundef nonnull align 8 dereferenceable(272)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6R3Mesh7SetNameEPKc(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { inlinehint 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 #5 = { nounwind }
attributes #6 = { 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, !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 = !{!"vtable pointer", !8, i64 0}


; 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.46 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [53 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN6R3Mesh8ReadFileEPKc(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = tail call noundef ptr @strrchr(ptr noundef nonnull dereferenceable(1) %1, i32 noundef 46) #5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %6

4:                                                ; preds = %2
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46, ptr noundef %1)
  br label %74

6:                                                ; preds = %2
  %7 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.47, i64 noundef 4) #5
  %.not25 = icmp eq i32 %7, 0
  br i1 %.not25, label %8, label %13

8:                                                ; preds = %6
  %9 = load ptr, ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 392
  %11 = load ptr, ptr %10, align 8
  %12 = tail call noundef i32 %11(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not26 = icmp eq i32 %12, 0
  br i1 %.not26, label %74, label %70

13:                                               ; preds = %6
  %14 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.48, i64 noundef 4) #5
  %.not27 = icmp eq i32 %14, 0
  br i1 %.not27, label %15, label %20

15:                                               ; preds = %13
  %16 = load ptr, ptr %0, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 400
  %18 = load ptr, ptr %17, align 8
  %19 = tail call noundef i32 %18(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not28 = icmp eq i32 %19, 0
  br i1 %.not28, label %74, label %70

20:                                               ; preds = %13
  %21 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.49, i64 noundef 4) #5
  %.not29 = icmp eq i32 %21, 0
  br i1 %.not29, label %22, label %27

22:                                               ; preds = %20
  %23 = load ptr, ptr %0, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 408
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef i32 %25(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not30 = icmp eq i32 %26, 0
  br i1 %.not30, label %74, label %70

27:                                               ; preds = %20
  %28 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.50, i64 noundef 4) #5
  %.not31 = icmp eq i32 %28, 0
  br i1 %.not31, label %29, label %34

29:                                               ; preds = %27
  %30 = load ptr, ptr %0, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 416
  %32 = load ptr, ptr %31, align 8
  %33 = tail call noundef i32 %32(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not32 = icmp eq i32 %33, 0
  br i1 %.not32, label %74, label %70

34:                                               ; preds = %27
  %35 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.51, i64 noundef 4) #5
  %.not33 = icmp eq i32 %35, 0
  br i1 %.not33, label %36, label %41

36:                                               ; preds = %34
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 424
  %39 = load ptr, ptr %38, align 8
  %40 = tail call noundef i32 %39(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not34 = icmp eq i32 %40, 0
  br i1 %.not34, label %74, label %70

41:                                               ; preds = %34
  %42 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.52, i64 noundef 4) #5
  %.not35 = icmp eq i32 %42, 0
  br i1 %.not35, label %43, label %48

43:                                               ; preds = %41
  %44 = load ptr, ptr %0, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 432
  %46 = load ptr, ptr %45, align 8
  %47 = tail call noundef i32 %46(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not36 = icmp eq i32 %47, 0
  br i1 %.not36, label %74, label %70

48:                                               ; preds = %41
  %49 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.53, i64 noundef 4) #5
  %.not37 = icmp eq i32 %49, 0
  br i1 %.not37, label %50, label %55

50:                                               ; preds = %48
  %51 = load ptr, ptr %0, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 440
  %53 = load ptr, ptr %52, align 8
  %54 = tail call noundef i32 %53(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not38 = icmp eq i32 %54, 0
  br i1 %.not38, label %74, label %70

55:                                               ; preds = %48
  %56 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.54, i64 noundef 4) #5
  %.not39 = icmp eq i32 %56, 0
  br i1 %.not39, label %57, label %62

57:                                               ; preds = %55
  %58 = load ptr, ptr %0, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 448
  %60 = load ptr, ptr %59, align 8
  %61 = tail call noundef i32 %60(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not40 = icmp eq i32 %61, 0
  br i1 %.not40, label %74, label %70

62:                                               ; preds = %55
  %63 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.55, i64 noundef 4) #5
  %.not41 = icmp eq i32 %63, 0
  br i1 %.not41, label %64, label %69

64:                                               ; preds = %62
  %65 = load ptr, ptr %0, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 456
  %67 = load ptr, ptr %66, align 8
  %68 = tail call noundef i32 %67(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  %.not42 = icmp eq i32 %68, 0
  br i1 %.not42, label %74, label %70

69:                                               ; preds = %62
  tail call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.56, ptr noundef %1, ptr noundef nonnull %3)
  br label %74

70:                                               ; preds = %15, %29, %43, %57, %64, %50, %36, %22, %8
  %71 = tail call noundef ptr @_ZNK6R3Mesh4NameEv(ptr noundef nonnull align 8 dereferenceable(272) %0)
  %char0 = load i8, ptr %71, align 1
  %72 = icmp eq i8 %char0, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  tail call void @_ZN6R3Mesh7SetNameEPKc(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1)
  br label %74

74:                                               ; preds = %70, %73, %64, %57, %50, %43, %36, %29, %22, %15, %8, %69, %4
  %.0 = phi i32 [ 0, %69 ], [ 0, %4 ], [ 0, %8 ], [ 0, %15 ], [ 0, %22 ], [ 0, %29 ], [ 0, %36 ], [ 0, %43 ], [ 0, %50 ], [ 0, %57 ], [ 0, %64 ], [ 1, %73 ], [ 1, %70 ]
  ret i32 %.0
}

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

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

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

declare void @_Z6RNFailPKcz(ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh4NameEv(ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6R3Mesh7SetNameEPKc(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) local_unnamed_addr #4 align 2

attributes #0 = { 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 #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 = { 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 #3 = { "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 = { inlinehint 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 #5 = { 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, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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