; LLVM IR from dssgabriel/lattice-boltzmann-method :: v0-base/src (lbm_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.lbm_config_s = type { i32, i32, i32, double, double, double, double, double, double, double, ptr, i32 }

@lbm_gbl_config = external dso_local global %struct.lbm_config_s, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 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 [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@stderr = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @setup_default_values() #0

; Function Attrs: nounwind uwtable
declare dso_local void @update_derived_parameter() #0

; Function Attrs: nounwind uwtable
define dso_local void @load_config(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [1024 x i8], align 16
  %5 = alloca [1024 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = call noalias ptr @fopen(ptr noundef %9, ptr noundef @.str)
  store ptr %10, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %15

13:                                               ; preds = %1
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  call void @perror(ptr noundef %14)
  call void @abort() #6
  unreachable

15:                                               ; preds = %1
  call void @setup_default_values()
  br label %16

16:                                               ; preds = %152, %15
  %17 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call ptr @fgets(ptr noundef %17, i32 noundef 1024, ptr noundef %18)
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %153

21:                                               ; preds = %16
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %8, align 4, !tbaa !9
  %24 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %25 = load i8, ptr %24, align 16, !tbaa !11
  %26 = sext i8 %25 to i32
  %27 = icmp eq i32 %26, 35
  br i1 %27, label %28, label %29

28:                                               ; preds = %21
  br label %152

29:                                               ; preds = %21
  %30 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %31 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %30, ptr noundef @.str.1, ptr noundef %6) #5
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %35

33:                                               ; preds = %29
  %34 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %34, ptr @lbm_gbl_config, align 8, !tbaa !12
  br label %151

35:                                               ; preds = %29
  %36 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %37 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %36, ptr noundef @.str.2, ptr noundef %6) #5
  %38 = icmp eq i32 %37, 1
  br i1 %38, label %39, label %49

39:                                               ; preds = %35
  %40 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %40, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 1), align 4, !tbaa !15
  %41 = load double, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 3), align 8, !tbaa !16
  %42 = fcmp oeq double %41, 0.000000e+00
  br i1 %42, label %43, label %48

43:                                               ; preds = %39
  %44 = load i32, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 1), align 4, !tbaa !15
  %45 = uitofp i32 %44 to double
  %46 = fdiv double %45, 5.000000e+00
  %47 = fadd double %46, 1.000000e+00
  store double %47, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 3), align 8, !tbaa !16
  br label %48

48:                                               ; preds = %43, %39
  br label %150

49:                                               ; preds = %35
  %50 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %51 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %50, ptr noundef @.str.3, ptr noundef %6) #5
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %67

53:                                               ; preds = %49
  %54 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %54, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 2), align 8, !tbaa !17
  %55 = load double, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 4), align 8, !tbaa !18
  %56 = fcmp oeq double %55, 0.000000e+00
  br i1 %56, label %57, label %66

57:                                               ; preds = %53
  %58 = load i32, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 2), align 8, !tbaa !17
  %59 = uitofp i32 %58 to double
  %60 = fdiv double %59, 2.000000e+00
  %61 = fadd double %60, 3.000000e+00
  store double %61, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 4), align 8, !tbaa !18
  %62 = load i32, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 2), align 8, !tbaa !17
  %63 = uitofp i32 %62 to double
  %64 = fdiv double %63, 1.000000e+01
  %65 = fadd double %64, 1.000000e+00
  store double %65, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 5), align 8, !tbaa !19
  br label %66

66:                                               ; preds = %57, %53
  br label %149

67:                                               ; preds = %49
  %68 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %69 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %68, ptr noundef @.str.4, ptr noundef %7) #5
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %77

71:                                               ; preds = %67
  %72 = load double, ptr %7, align 8, !tbaa !20
  %73 = fcmp une double %72, 0.000000e+00
  br i1 %73, label %74, label %76

74:                                               ; preds = %71
  %75 = load double, ptr %7, align 8, !tbaa !20
  store double %75, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 3), align 8, !tbaa !16
  br label %76

76:                                               ; preds = %74, %71
  br label %148

77:                                               ; preds = %67
  %78 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %79 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %78, ptr noundef @.str.5, ptr noundef %7) #5
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %81, label %87

81:                                               ; preds = %77
  %82 = load double, ptr %7, align 8, !tbaa !20
  %83 = fcmp une double %82, 0.000000e+00
  br i1 %83, label %84, label %86

84:                                               ; preds = %81
  %85 = load double, ptr %7, align 8, !tbaa !20
  store double %85, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 4), align 8, !tbaa !18
  br label %86

86:                                               ; preds = %84, %81
  br label %147

87:                                               ; preds = %77
  %88 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %89 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %88, ptr noundef @.str.6, ptr noundef %7) #5
  %90 = icmp eq i32 %89, 1
  br i1 %90, label %91, label %97

91:                                               ; preds = %87
  %92 = load double, ptr %7, align 8, !tbaa !20
  %93 = fcmp une double %92, 0.000000e+00
  br i1 %93, label %94, label %96

94:                                               ; preds = %91
  %95 = load double, ptr %7, align 8, !tbaa !20
  store double %95, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 5), align 8, !tbaa !19
  br label %96

96:                                               ; preds = %94, %91
  br label %146

97:                                               ; preds = %87
  %98 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %99 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %98, ptr noundef @.str.7, ptr noundef %7) #5
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %103

101:                                              ; preds = %97
  %102 = load double, ptr %7, align 8, !tbaa !20
  store double %102, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 6), align 8, !tbaa !21
  br label %145

103:                                              ; preds = %97
  %104 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %105 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %104, ptr noundef @.str.8, ptr noundef %7) #5
  %106 = icmp eq i32 %105, 1
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = load double, ptr %7, align 8, !tbaa !20
  store double %108, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 7), align 8, !tbaa !22
  br label %144

109:                                              ; preds = %103
  %110 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %111 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %110, ptr noundef @.str.9, ptr noundef %7) #5
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %113, label %115

113:                                              ; preds = %109
  %114 = load double, ptr %7, align 8, !tbaa !20
  store double %114, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 8), align 8, !tbaa !23
  br label %143

115:                                              ; preds = %109
  %116 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %117 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %116, ptr noundef @.str.10, ptr noundef %7) #5
  %118 = icmp eq i32 %117, 1
  br i1 %118, label %119, label %121

119:                                              ; preds = %115
  %120 = load double, ptr %7, align 8, !tbaa !20
  store double %120, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 9), align 8, !tbaa !24
  br label %142

121:                                              ; preds = %115
  %122 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %123 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %122, ptr noundef @.str.11, ptr noundef %6) #5
  %124 = icmp eq i32 %123, 1
  br i1 %124, label %125, label %127

125:                                              ; preds = %121
  %126 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %126, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 11), align 8, !tbaa !25
  br label %141

127:                                              ; preds = %121
  %128 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %129 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
  %130 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %128, ptr noundef @.str.12, ptr noundef %129) #5
  %131 = icmp eq i32 %130, 1
  br i1 %131, label %132, label %135

132:                                              ; preds = %127
  %133 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
  %134 = call noalias ptr @strdup(ptr noundef %133) #5
  store ptr %134, ptr getelementptr inbounds (%struct.lbm_config_s, ptr @lbm_gbl_config, i32 0, i32 10), align 8, !tbaa !26
  br label %140

135:                                              ; preds = %127
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  %137 = load i32, ptr %8, align 4, !tbaa !9
  %138 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.13, i32 noundef %137, ptr noundef %138) #5
  call void @abort() #6
  unreachable

140:                                              ; preds = %132
  br label %141

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

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

143:                                              ; preds = %142, %113
  br label %144

144:                                              ; preds = %143, %107
  br label %145

145:                                              ; preds = %144, %101
  br label %146

146:                                              ; preds = %145, %96
  br label %147

147:                                              ; preds = %146, %86
  br label %148

148:                                              ; preds = %147, %76
  br label %149

149:                                              ; preds = %148, %66
  br label %150

150:                                              ; preds = %149, %48
  br label %151

151:                                              ; preds = %150, %33
  br label %152

152:                                              ; preds = %151, %28
  br label %16, !llvm.loop !27

153:                                              ; preds = %16
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = call i32 @feof(ptr noundef %154) #5
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %159, label %157

157:                                              ; preds = %153
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  call void @perror(ptr noundef %158)
  call void @abort() #6
  unreachable

159:                                              ; preds = %153
  call void @update_derived_parameter()
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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

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

declare void @perror(ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @abort() #3

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

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

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

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

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #4

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #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 }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"lbm_config_s", !10, i64 0, !10, i64 4, !10, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !6, i64 72, !10, i64 80}
!14 = !{!"double", !7, i64 0}
!15 = !{!13, !10, i64 4}
!16 = !{!13, !14, i64 16}
!17 = !{!13, !10, i64 8}
!18 = !{!13, !14, i64 24}
!19 = !{!13, !14, i64 32}
!20 = !{!14, !14, i64 0}
!21 = !{!13, !14, i64 40}
!22 = !{!13, !14, i64 48}
!23 = !{!13, !14, i64 56}
!24 = !{!13, !14, i64 64}
!25 = !{!13, !10, i64 80}
!26 = !{!13, !6, i64 72}
!27 = distinct !{!27, !28}
!28 = !{!"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"

%struct.lbm_config_s = type { i32, i32, i32, double, double, double, double, double, double, double, ptr, i32 }

@lbm_gbl_config = external dso_local local_unnamed_addr global %struct.lbm_config_s, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 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 [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @setup_default_values() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @update_derived_parameter() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @load_config(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = alloca [1024 x i8], align 16
  %3 = alloca [1024 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %6 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %1
  tail call void @perror(ptr noundef %0) #6
  tail call void @abort() #7
  unreachable

9:                                                ; preds = %1
  tail call void @setup_default_values()
  %10 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 1024, ptr noundef nonnull %6)
  %.not12 = icmp eq ptr %10, null
  br i1 %.not12, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9, %98
  %.013 = phi i32 [ %11, %98 ], [ 0, %9 ]
  %11 = add nuw nsw i32 %.013, 1
  %12 = load i8, ptr %2, align 16, !tbaa !5
  %13 = icmp eq i8 %12, 35
  br i1 %13, label %98, label %14

14:                                               ; preds = %.lr.ph
  %15 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.1, ptr noundef nonnull %4) #5
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %19

17:                                               ; preds = %14
  %18 = load i32, ptr %4, align 4, !tbaa !8
  store i32 %18, ptr @lbm_gbl_config, align 8, !tbaa !10
  br label %98

19:                                               ; preds = %14
  %20 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.2, ptr noundef nonnull %4) #5
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %30

22:                                               ; preds = %19
  %23 = load i32, ptr %4, align 4, !tbaa !8
  store i32 %23, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 4), align 4, !tbaa !14
  %24 = load double, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 16), align 8, !tbaa !15
  %25 = fcmp oeq double %24, 0.000000e+00
  br i1 %25, label %26, label %98

26:                                               ; preds = %22
  %27 = uitofp i32 %23 to double
  %28 = fdiv double %27, 5.000000e+00
  %29 = fadd double %28, 1.000000e+00
  store double %29, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 16), align 8, !tbaa !15
  br label %98

30:                                               ; preds = %19
  %31 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.3, ptr noundef nonnull %4) #5
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %44

33:                                               ; preds = %30
  %34 = load i32, ptr %4, align 4, !tbaa !8
  store i32 %34, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 8), align 8, !tbaa !16
  %35 = load double, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 24), align 8, !tbaa !17
  %36 = fcmp oeq double %35, 0.000000e+00
  br i1 %36, label %37, label %98

37:                                               ; preds = %33
  %38 = uitofp i32 %34 to double
  %39 = fmul double %38, 5.000000e-01
  %40 = fdiv double %38, 1.000000e+01
  %41 = insertelement <2 x double> poison, double %39, i64 0
  %42 = insertelement <2 x double> %41, double %40, i64 1
  %43 = fadd <2 x double> %42, <double 3.000000e+00, double 1.000000e+00>
  store <2 x double> %43, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 24), align 8, !tbaa !18
  br label %98

44:                                               ; preds = %30
  %45 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.4, ptr noundef nonnull %5) #5
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %47, label %51

47:                                               ; preds = %44
  %48 = load double, ptr %5, align 8, !tbaa !18
  %49 = fcmp une double %48, 0.000000e+00
  br i1 %49, label %50, label %98

50:                                               ; preds = %47
  store double %48, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 16), align 8, !tbaa !15
  br label %98

51:                                               ; preds = %44
  %52 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.5, ptr noundef nonnull %5) #5
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %58

54:                                               ; preds = %51
  %55 = load double, ptr %5, align 8, !tbaa !18
  %56 = fcmp une double %55, 0.000000e+00
  br i1 %56, label %57, label %98

57:                                               ; preds = %54
  store double %55, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 24), align 8, !tbaa !17
  br label %98

58:                                               ; preds = %51
  %59 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.6, ptr noundef nonnull %5) #5
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %65

61:                                               ; preds = %58
  %62 = load double, ptr %5, align 8, !tbaa !18
  %63 = fcmp une double %62, 0.000000e+00
  br i1 %63, label %64, label %98

64:                                               ; preds = %61
  store double %62, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 32), align 8, !tbaa !19
  br label %98

65:                                               ; preds = %58
  %66 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.7, ptr noundef nonnull %5) #5
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %70

68:                                               ; preds = %65
  %69 = load double, ptr %5, align 8, !tbaa !18
  store double %69, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 40), align 8, !tbaa !20
  br label %98

70:                                               ; preds = %65
  %71 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.8, ptr noundef nonnull %5) #5
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = load double, ptr %5, align 8, !tbaa !18
  store double %74, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 48), align 8, !tbaa !21
  br label %98

75:                                               ; preds = %70
  %76 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.9, ptr noundef nonnull %5) #5
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %78, label %80

78:                                               ; preds = %75
  %79 = load double, ptr %5, align 8, !tbaa !18
  store double %79, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 56), align 8, !tbaa !22
  br label %98

80:                                               ; preds = %75
  %81 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.10, ptr noundef nonnull %5) #5
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %85

83:                                               ; preds = %80
  %84 = load double, ptr %5, align 8, !tbaa !18
  store double %84, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 64), align 8, !tbaa !23
  br label %98

85:                                               ; preds = %80
  %86 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.11, ptr noundef nonnull %4) #5
  %87 = icmp eq i32 %86, 1
  br i1 %87, label %88, label %90

88:                                               ; preds = %85
  %89 = load i32, ptr %4, align 4, !tbaa !8
  store i32 %89, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 80), align 8, !tbaa !24
  br label %98

90:                                               ; preds = %85
  %91 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.12, ptr noundef nonnull %3) #5
  %92 = icmp eq i32 %91, 1
  br i1 %92, label %93, label %95

93:                                               ; preds = %90
  %94 = call noalias ptr @strdup(ptr noundef nonnull %3) #5
  store ptr %94, ptr getelementptr inbounds (i8, ptr @lbm_gbl_config, i64 72), align 8, !tbaa !25
  br label %98

95:                                               ; preds = %90
  %96 = load ptr, ptr @stderr, align 8, !tbaa !26
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.13, i32 noundef %11, ptr noundef nonnull %2) #8
  call void @abort() #7
  unreachable

98:                                               ; preds = %17, %37, %33, %57, %54, %68, %78, %88, %93, %83, %73, %61, %64, %47, %50, %22, %26, %.lr.ph
  %99 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 1024, ptr noundef nonnull %6)
  %.not = icmp eq ptr %99, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !27

._crit_edge:                                      ; preds = %98, %9
  %100 = call i32 @feof(ptr noundef nonnull %6) #5
  %.not11 = icmp eq i32 %100, 0
  br i1 %.not11, label %101, label %102

101:                                              ; preds = %._crit_edge
  call void @perror(ptr noundef %0) #6
  call void @abort() #7
  unreachable

102:                                              ; preds = %._crit_edge
  call void @update_derived_parameter()
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %2) #5
  ret void
}

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

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

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #4

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

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

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

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { mustprogress nofree nounwind willreturn 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 = { nounwind }
attributes #6 = { cold }
attributes #7 = { noreturn nounwind }
attributes #8 = { cold nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !9, i64 0}
!11 = !{!"lbm_config_s", !9, i64 0, !9, i64 4, !9, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !13, i64 72, !9, i64 80}
!12 = !{!"double", !6, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = !{!11, !9, i64 4}
!15 = !{!11, !12, i64 16}
!16 = !{!11, !9, i64 8}
!17 = !{!11, !12, i64 24}
!18 = !{!12, !12, i64 0}
!19 = !{!11, !12, i64 32}
!20 = !{!11, !12, i64 40}
!21 = !{!11, !12, i64 48}
!22 = !{!11, !12, i64 56}
!23 = !{!11, !12, i64 64}
!24 = !{!11, !9, i64 80}
!25 = !{!11, !13, i64 72}
!26 = !{!13, !13, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass