; LLVM IR from Ubpa/USTC_CG :: Homeworks/6_MassSpring/documents/tetgen/src/TetGene (tetgen)

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

%class.tetgenio = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8tetgenio14load_node_callEP8_IO_FILEiiPc(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef, i32 noundef, i32 noundef, ptr 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: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tetgenio14readnumberlineEPcP8_IO_FILES0_(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef, ptr noundef, ptr noundef) #0 align 2

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef) #3 align 2

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

; 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 noundef zeroext i1 @_ZN8tetgenio9load_nodeEPc(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef %1) #0 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %15 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call ptr @strcpy(ptr noundef %15, ptr noundef %16) #6
  %18 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %19 = call ptr @strcat(ptr noundef %18, ptr noundef @.str.8) #6
  %20 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %21 = call noalias ptr @fopen(ptr noundef %20, ptr noundef @.str.9)
  store ptr %21, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %2
  %25 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %25)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %13, align 4
  br label %119

27:                                               ; preds = %2
  %28 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %28)
  %30 = getelementptr inbounds %class.tetgenio, ptr %14, i32 0, i32 1
  store i32 3, ptr %30, align 4, !tbaa !9
  %31 = getelementptr inbounds %class.tetgenio, ptr %14, i32 0, i32 10
  store i32 0, ptr %31, align 4, !tbaa !12
  store i32 0, ptr %11, align 4, !tbaa !13
  store i32 0, ptr %12, align 4, !tbaa !13
  %32 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %35 = call noundef ptr @_ZN8tetgenio14readnumberlineEPcP8_IO_FILES0_(ptr noundef nonnull align 8 dereferenceable(424) %14, ptr noundef %32, ptr noundef %33, ptr noundef %34)
  store ptr %35, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
  %37 = call noundef ptr @strstr(ptr noundef %36, ptr noundef @.str.12) #7
  store ptr %37, ptr %9, align 8, !tbaa !5
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %92

40:                                               ; preds = %27
  %41 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
  store ptr %41, ptr %9, align 8, !tbaa !5
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call i64 @strtol(ptr noundef %42, ptr noundef %9, i32 noundef 0) #6
  %44 = trunc i64 %43 to i32
  %45 = getelementptr inbounds %class.tetgenio, ptr %14, i32 0, i32 9
  store i32 %44, ptr %45, align 8, !tbaa !14
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = call noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424) %14, ptr noundef %46)
  store ptr %47, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load i8, ptr %48, align 1, !tbaa !15
  %50 = sext i8 %49 to i32
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %57

52:                                               ; preds = %40
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = call i64 @strtol(ptr noundef %53, ptr noundef %9, i32 noundef 0) #6
  %55 = trunc i64 %54 to i32
  %56 = getelementptr inbounds %class.tetgenio, ptr %14, i32 0, i32 1
  store i32 %55, ptr %56, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %52, %40
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = call noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424) %14, ptr noundef %58)
  store ptr %59, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load i8, ptr %60, align 1, !tbaa !15
  %62 = sext i8 %61 to i32
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %69

64:                                               ; preds = %57
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = call i64 @strtol(ptr noundef %65, ptr noundef %9, i32 noundef 0) #6
  %67 = trunc i64 %66 to i32
  %68 = getelementptr inbounds %class.tetgenio, ptr %14, i32 0, i32 10
  store i32 %67, ptr %68, align 4, !tbaa !12
  br label %69

69:                                               ; preds = %64, %57
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = call noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424) %14, ptr noundef %70)
  store ptr %71, ptr %9, align 8, !tbaa !5
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load i8, ptr %72, align 1, !tbaa !15
  %74 = sext i8 %73 to i32
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %80

76:                                               ; preds = %69
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = call i64 @strtol(ptr noundef %77, ptr noundef %9, i32 noundef 0) #6
  %79 = trunc i64 %78 to i32
  store i32 %79, ptr %11, align 4, !tbaa !13
  br label %80

80:                                               ; preds = %76, %69
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = call noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424) %14, ptr noundef %81)
  store ptr %82, ptr %9, align 8, !tbaa !5
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i8, ptr %83, align 1, !tbaa !15
  %85 = sext i8 %84 to i32
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %91

87:                                               ; preds = %80
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = call i64 @strtol(ptr noundef %88, ptr noundef %9, i32 noundef 0) #6
  %90 = trunc i64 %89 to i32
  store i32 %90, ptr %12, align 4, !tbaa !13
  br label %91

91:                                               ; preds = %87, %80
  br label %107

92:                                               ; preds = %27
  %93 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
  store ptr %93, ptr %9, align 8, !tbaa !5
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = call i64 @strtol(ptr noundef %94, ptr noundef %9, i32 noundef 0) #6
  %96 = trunc i64 %95 to i32
  %97 = getelementptr inbounds %class.tetgenio, ptr %14, i32 0, i32 1
  store i32 %96, ptr %97, align 4, !tbaa !9
  %98 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %101 = call noundef ptr @_ZN8tetgenio14readnumberlineEPcP8_IO_FILES0_(ptr noundef nonnull align 8 dereferenceable(424) %14, ptr noundef %98, ptr noundef %99, ptr noundef %100)
  store ptr %101, ptr %9, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = call i64 @strtol(ptr noundef %102, ptr noundef %9, i32 noundef 0) #6
  %104 = trunc i64 %103 to i32
  %105 = getelementptr inbounds %class.tetgenio, ptr %14, i32 0, i32 9
  store i32 %104, ptr %105, align 8, !tbaa !14
  %106 = getelementptr inbounds %class.tetgenio, ptr %14, i32 0, i32 2
  store i32 0, ptr %106, align 8, !tbaa !16
  br label %107

107:                                              ; preds = %92, %91
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load i32, ptr %11, align 4, !tbaa !13
  %110 = load i32, ptr %12, align 4, !tbaa !13
  %111 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %112 = call noundef zeroext i1 @_ZN8tetgenio14load_node_callEP8_IO_FILEiiPc(ptr noundef nonnull align 8 dereferenceable(424) %14, ptr noundef %108, i32 noundef %109, i32 noundef %110, ptr noundef %111)
  %113 = zext i1 %112 to i8
  store i8 %113, ptr %10, align 1, !tbaa !17
  %114 = call i32 @system(ptr noundef @.str.13)
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = call i32 @fclose(ptr noundef %115)
  %117 = load i8, ptr %10, align 1, !tbaa !17, !range !19, !noundef !20
  %118 = trunc i8 %117 to i1
  store i1 %118, ptr %3, align 1
  store i32 1, ptr %13, align 4
  br label %119

119:                                              ; preds = %107, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %120 = load i1, ptr %3, align 1
  ret i1 %120
}

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare noundef ptr @strstr(ptr noundef, ptr noundef) #5

declare i32 @system(ptr noundef) #4

declare i32 @fclose(ptr noundef) #4

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { "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) "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 = { 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, !11, i64 4}
!10 = !{!"_ZTS8tetgenio", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !6, i64 144, !6, i64 152, !11, i64 160, !6, i64 168, !11, i64 176, !6, i64 184, !11, i64 192, !6, i64 200, !11, i64 208, !6, i64 216, !11, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !11, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !11, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !11, i64 352, !11, i64 356, !11, i64 360, !11, i64 364, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 68}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 64}
!15 = !{!7, !7, i64 0}
!16 = !{!10, !11, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}


; 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.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8tetgenio14load_node_callEP8_IO_FILEiiPc(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef, i32 noundef, i32 noundef, ptr 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 uwtable
declare dso_local noundef ptr @_ZN8tetgenio14readnumberlineEPcP8_IO_FILES0_(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef) local_unnamed_addr #3 align 2

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

; 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 noundef zeroext i1 @_ZN8tetgenio9load_nodeEPc(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 align 2 {
  %3 = alloca [1024 x i8], align 16
  %4 = alloca [2048 x i8], align 16
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %6 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %1) #8
  %7 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.8) #8
  %8 = call noalias ptr @fopen(ptr noundef nonnull %3, ptr noundef nonnull @.str.9)
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %12

10:                                               ; preds = %2
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull %3)
  br label %60

12:                                               ; preds = %2
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull %3)
  %14 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 3, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 0, ptr %15, align 4, !tbaa !11
  %16 = call noundef ptr @_ZN8tetgenio14readnumberlineEPcP8_IO_FILES0_(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull %4, ptr noundef nonnull %8, ptr noundef nonnull %3)
  %17 = call noundef ptr @strstr(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.12) #9
  %18 = icmp eq ptr %17, null
  store ptr %4, ptr %5, align 8, !tbaa !12
  %19 = call i64 @strtol(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 0) #8
  %20 = trunc i64 %19 to i32
  br i1 %18, label %21, label %50

21:                                               ; preds = %12
  %22 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %20, ptr %22, align 8, !tbaa !13
  %23 = load ptr, ptr %5, align 8, !tbaa !12
  %24 = call noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef %23)
  store ptr %24, ptr %5, align 8, !tbaa !12
  %25 = load i8, ptr %24, align 1, !tbaa !14
  %.not = icmp eq i8 %25, 0
  br i1 %.not, label %29, label %26

26:                                               ; preds = %21
  %27 = call i64 @strtol(ptr noundef nonnull %24, ptr noundef nonnull %5, i32 noundef 0) #8
  %28 = trunc i64 %27 to i32
  store i32 %28, ptr %14, align 4, !tbaa !5
  %.pre = load ptr, ptr %5, align 8, !tbaa !12
  br label %29

29:                                               ; preds = %26, %21
  %30 = phi ptr [ %.pre, %26 ], [ %24, %21 ]
  %31 = call noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef %30)
  store ptr %31, ptr %5, align 8, !tbaa !12
  %32 = load i8, ptr %31, align 1, !tbaa !14
  %.not13 = icmp eq i8 %32, 0
  br i1 %.not13, label %36, label %33

33:                                               ; preds = %29
  %34 = call i64 @strtol(ptr noundef nonnull %31, ptr noundef nonnull %5, i32 noundef 0) #8
  %35 = trunc i64 %34 to i32
  store i32 %35, ptr %15, align 4, !tbaa !11
  %.pre16 = load ptr, ptr %5, align 8, !tbaa !12
  br label %36

36:                                               ; preds = %33, %29
  %37 = phi ptr [ %.pre16, %33 ], [ %31, %29 ]
  %38 = call noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef %37)
  store ptr %38, ptr %5, align 8, !tbaa !12
  %39 = load i8, ptr %38, align 1, !tbaa !14
  %.not14 = icmp eq i8 %39, 0
  br i1 %.not14, label %43, label %40

40:                                               ; preds = %36
  %41 = call i64 @strtol(ptr noundef nonnull %38, ptr noundef nonnull %5, i32 noundef 0) #8
  %42 = trunc i64 %41 to i32
  %.pre17 = load ptr, ptr %5, align 8, !tbaa !12
  br label %43

43:                                               ; preds = %40, %36
  %44 = phi ptr [ %.pre17, %40 ], [ %38, %36 ]
  %.010 = phi i32 [ %42, %40 ], [ 0, %36 ]
  %45 = call noundef ptr @_ZN8tetgenio14findnextnumberEPc(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef %44)
  store ptr %45, ptr %5, align 8, !tbaa !12
  %46 = load i8, ptr %45, align 1, !tbaa !14
  %.not15 = icmp eq i8 %46, 0
  br i1 %.not15, label %56, label %47

47:                                               ; preds = %43
  %48 = call i64 @strtol(ptr noundef nonnull %45, ptr noundef nonnull %5, i32 noundef 0) #8
  %49 = trunc i64 %48 to i32
  br label %56

50:                                               ; preds = %12
  store i32 %20, ptr %14, align 4, !tbaa !5
  %51 = call noundef ptr @_ZN8tetgenio14readnumberlineEPcP8_IO_FILES0_(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull %4, ptr noundef nonnull %8, ptr noundef nonnull %3)
  store ptr %51, ptr %5, align 8, !tbaa !12
  %52 = call i64 @strtol(ptr noundef %51, ptr noundef nonnull %5, i32 noundef 0) #8
  %53 = trunc i64 %52 to i32
  %54 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %53, ptr %54, align 8, !tbaa !13
  %55 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 0, ptr %55, align 8, !tbaa !15
  br label %56

56:                                               ; preds = %43, %47, %50
  %.1 = phi i32 [ %.010, %47 ], [ %.010, %43 ], [ 0, %50 ]
  %.0 = phi i32 [ %49, %47 ], [ 0, %43 ], [ 0, %50 ]
  %57 = call noundef zeroext i1 @_ZN8tetgenio14load_node_callEP8_IO_FILEiiPc(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull %8, i32 noundef %.1, i32 noundef %.0, ptr noundef nonnull %3)
  %58 = call i32 @system(ptr noundef nonnull @.str.13)
  %59 = call i32 @fclose(ptr noundef nonnull %8)
  br label %60

60:                                               ; preds = %56, %10
  %.011 = phi i1 [ false, %10 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #8
  ret i1 %.011
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

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

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

; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #7

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

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn "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 = { 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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #7 = { nofree "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 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 4}
!6 = !{!"_ZTS8tetgenio", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !7, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !10, i64 144, !10, i64 152, !7, i64 160, !10, i64 168, !7, i64 176, !10, i64 184, !7, i64 192, !10, i64 200, !7, i64 208, !10, i64 216, !7, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !7, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !7, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !7, i64 352, !7, i64 356, !7, i64 360, !7, i64 364, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 68}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !7, i64 64}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !7, i64 8}


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