; LLVM IR from tsotchke/quantum_geometric_tensor :: src/quantum_geometric/core (quantum_geometric_config)

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

@global_config_context = external hidden global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @geometric_init_config(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [256 x i8], align 16
  %7 = alloca [128 x i8], align 16
  %8 = alloca [128 x i8], align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  %9 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %1
  store i32 -17, ptr %2, align 4
  br label %108

12:                                               ; preds = %1
  %13 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 24) #7
  store ptr %13, ptr @global_config_context, align 8, !tbaa !5
  %14 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  store i32 -2, ptr %2, align 4
  br label %108

17:                                               ; preds = %12
  %18 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.config_context_t, ptr %18, i32 0, i32 0
  store i32 4, ptr %19, align 8, !tbaa !9
  %20 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.config_context_t, ptr %20, i32 0, i32 1
  store i64 1073741824, ptr %21, align 8, !tbaa !14
  %22 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.config_context_t, ptr %22, i32 0, i32 2
  store i8 0, ptr %23, align 8, !tbaa !15
  %24 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.config_context_t, ptr %24, i32 0, i32 3
  store i32 1, ptr %25, align 4, !tbaa !16
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %107

28:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call noalias ptr @fopen(ptr noundef %29, ptr noundef @.str)
  store ptr %30, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %35, label %33

33:                                               ; preds = %28
  %34 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  call void @free(ptr noundef %34) #8
  store ptr null, ptr @global_config_context, align 8, !tbaa !5
  store i32 -16, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %104

35:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #8
  br label %36

36:                                               ; preds = %100, %35
  %37 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call ptr @fgets(ptr noundef %37, i32 noundef 256, ptr noundef %38)
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %101

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #8
  %42 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %43 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %44 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %45 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %42, ptr noundef @.str.1, ptr noundef %43, ptr noundef %44) #8
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %47, label %100

47:                                               ; preds = %41
  %48 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %49 = call i32 @strcmp(ptr noundef %48, ptr noundef @.str.2) #9
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %56

51:                                               ; preds = %47
  %52 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %53 = call i32 @atoi(ptr noundef %52) #9
  %54 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.config_context_t, ptr %54, i32 0, i32 0
  store i32 %53, ptr %55, align 8, !tbaa !9
  br label %99

56:                                               ; preds = %47
  %57 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %58 = call i32 @strcmp(ptr noundef %57, ptr noundef @.str.3) #9
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %65

60:                                               ; preds = %56
  %61 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %62 = call i64 @strtoull(ptr noundef %61, ptr noundef null, i32 noundef 10) #8
  %63 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.config_context_t, ptr %63, i32 0, i32 1
  store i64 %62, ptr %64, align 8, !tbaa !14
  br label %98

65:                                               ; preds = %56
  %66 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %67 = call i32 @strcmp(ptr noundef %66, ptr noundef @.str.4) #9
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %76

69:                                               ; preds = %65
  %70 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %71 = call i32 @strcmp(ptr noundef %70, ptr noundef @.str.5) #9
  %72 = icmp eq i32 %71, 0
  %73 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.config_context_t, ptr %73, i32 0, i32 2
  %75 = zext i1 %72 to i8
  store i8 %75, ptr %74, align 8, !tbaa !15
  br label %97

76:                                               ; preds = %65
  %77 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %78 = call i32 @strcmp(ptr noundef %77, ptr noundef @.str.6) #9
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %96

80:                                               ; preds = %76
  %81 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %82 = call i32 @strcmp(ptr noundef %81, ptr noundef @.str.7) #9
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %80
  %85 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.config_context_t, ptr %85, i32 0, i32 3
  store i32 0, ptr %86, align 4, !tbaa !16
  br label %95

87:                                               ; preds = %80
  %88 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %89 = call i32 @strcmp(ptr noundef %88, ptr noundef @.str.8) #9
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %94

91:                                               ; preds = %87
  %92 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.config_context_t, ptr %92, i32 0, i32 3
  store i32 2, ptr %93, align 4, !tbaa !16
  br label %94

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

95:                                               ; preds = %94, %84
  br label %96

96:                                               ; preds = %95, %76
  br label %97

97:                                               ; preds = %96, %69
  br label %98

98:                                               ; preds = %97, %60
  br label %99

99:                                               ; preds = %98, %51
  br label %100

100:                                              ; preds = %99, %41
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #8
  br label %36, !llvm.loop !17

101:                                              ; preds = %36
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = call i32 @fclose(ptr noundef %102)
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #8
  store i32 0, ptr %5, align 4
  br label %104

104:                                              ; preds = %101, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %105 = load i32, ptr %5, align 4
  switch i32 %105, label %110 [
    i32 0, label %106
    i32 1, label %108
  ]

106:                                              ; preds = %104
  br label %107

107:                                              ; preds = %106, %17
  store i32 0, ptr %2, align 4
  br label %108

108:                                              ; preds = %107, %104, %16, %11
  %109 = load i32, ptr %2, align 4
  ret i32 %109

110:                                              ; preds = %104
  unreachable
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #1

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

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

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

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #4

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #6

; Function Attrs: nounwind
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #4

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

declare i32 @fclose(ptr noundef) #3

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 = { nounwind allocsize(0,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 = { "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 "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 = { inlinehint nounwind willreturn memory(read) 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 #7 = { nounwind allocsize(0,1) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !12, i64 8, !13, i64 16, !11, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!10, !12, i64 8}
!15 = !{!10, !13, i64 16}
!16 = !{!10, !11, i64 20}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

@global_config_context = external hidden local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -17, 1) i32 @geometric_init_config(ptr noundef readonly %0) local_unnamed_addr #0 {
  %2 = alloca [256 x i8], align 16
  %3 = alloca [128 x i8], align 16
  %4 = alloca [128 x i8], align 16
  %5 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %58

6:                                                ; preds = %1
  %7 = tail call noalias dereferenceable_or_null(24) ptr @calloc(i64 noundef 1, i64 noundef 24) #8
  store ptr %7, ptr @global_config_context, align 8, !tbaa !5
  %.not10 = icmp eq ptr %7, null
  br i1 %.not10, label %58, label %8

8:                                                ; preds = %6
  store i32 4, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 1073741824, ptr %9, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %7, i64 20
  store i32 1, ptr %10, align 4, !tbaa !15
  %.not11 = icmp eq ptr %0, null
  br i1 %.not11, label %58, label %11

11:                                               ; preds = %8
  %12 = tail call noalias ptr @fopen(ptr noundef nonnull %0, ptr noundef nonnull @.str)
  %.not12.not = icmp eq ptr %12, null
  br i1 %.not12.not, label %.thread, label %14

.thread:                                          ; preds = %11
  %13 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  tail call void @free(ptr noundef %13) #9
  store ptr null, ptr @global_config_context, align 8, !tbaa !5
  br label %58

14:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #9
  %15 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %12)
  %.not1315 = icmp eq ptr %15, null
  br i1 %.not1315, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %14, %55
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #9
  %16 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %4) #9
  %17 = icmp eq i32 %16, 2
  br i1 %17, label %18, label %55

18:                                               ; preds = %.lr.ph
  %19 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.2) #10
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %18
  %22 = call i32 @atoi(ptr nocapture noundef %4) #10
  %23 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  store i32 %22, ptr %23, align 8, !tbaa !9
  br label %55

24:                                               ; preds = %18
  %25 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.3) #10
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %31

27:                                               ; preds = %24
  %28 = call i64 @strtoull(ptr nocapture noundef nonnull %4, ptr noundef null, i32 noundef 10) #9
  %29 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  store i64 %28, ptr %30, align 8, !tbaa !14
  br label %55

31:                                               ; preds = %24
  %32 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.4) #10
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %40

34:                                               ; preds = %31
  %35 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.5) #10
  %36 = icmp eq i32 %35, 0
  %37 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %39 = zext i1 %36 to i8
  store i8 %39, ptr %38, align 8, !tbaa !16
  br label %55

40:                                               ; preds = %31
  %41 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.6) #10
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %55

43:                                               ; preds = %40
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.7) #10
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %43
  %47 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 20
  store i32 0, ptr %48, align 4, !tbaa !15
  br label %55

49:                                               ; preds = %43
  %50 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.8) #10
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %49
  %53 = load ptr, ptr @global_config_context, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 20
  store i32 2, ptr %54, align 4, !tbaa !15
  br label %55

55:                                               ; preds = %21, %34, %46, %52, %49, %40, %27, %.lr.ph
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #9
  %56 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %12)
  %.not13 = icmp eq ptr %56, null
  br i1 %.not13, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %55, %14
  %57 = call i32 @fclose(ptr noundef nonnull %12)
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #9
  br label %58

58:                                               ; preds = %8, %._crit_edge, %.thread, %6, %1
  %.1 = phi i32 [ -17, %1 ], [ -2, %6 ], [ -16, %.thread ], [ 0, %._crit_edge ], [ 0, %8 ]
  ret i32 %.1
}

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoull(ptr noundef readonly, ptr nocapture noundef, i32 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

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

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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #7 = { 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 #8 = { nounwind allocsize(0,1) }
attributes #9 = { nounwind }
attributes #10 = { 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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !12, i64 8, !13, i64 16, !11, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!10, !12, i64 8}
!15 = !{!10, !11, i64 20}
!16 = !{!10, !13, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ConstraintEliminationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass