; LLVM IR from stivalaa/EstimNetDirected :: src (configparser)

; 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.param_config_s = type { i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr }
%struct.string_pair_s = type { ptr, ptr }
%struct.graph_s = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, ptr, i32, ptr, i32, ptr, ptr, i32, i32, ptr, i32, ptr }
%struct.uint_pair_s = type { i32, i32 }

@stderr = external global ptr, align 8
@.str.27 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [78 x i8], align 1
@__PRETTY_FUNCTION__.build_attr_interaction_pair_indices_from_names = external hidden unnamed_addr constant [86 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_attr_interaction_param_type(ptr noundef) #3

declare ptr @safe_malloc(i64 noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local i32 @build_attr_interaction_pair_indices_from_names(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.param_config_s, ptr %12, i32 0, i32 19
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = zext i32 %14 to i64
  %16 = mul i64 %15, 8
  %17 = call ptr @safe_malloc(i64 noundef %16)
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.param_config_s, ptr %18, i32 0, i32 22
  store ptr %17, ptr %19, align 8, !tbaa !12
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %20

20:                                               ; preds = %176, %2
  %21 = load i32, ptr %6, align 4, !tbaa !13
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.param_config_s, ptr %22, i32 0, i32 19
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = icmp ult i32 %21, %24
  br i1 %25, label %26, label %179

26:                                               ; preds = %20
  store i32 0, ptr %8, align 4, !tbaa !13
  br label %27

27:                                               ; preds = %172, %26
  %28 = load i32, ptr %8, align 4, !tbaa !13
  %29 = icmp ult i32 %28, 2
  br i1 %29, label %30, label %175

30:                                               ; preds = %27
  store i32 0, ptr %9, align 4, !tbaa !13
  %31 = load i32, ptr %8, align 4, !tbaa !13
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %42

33:                                               ; preds = %30
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.param_config_s, ptr %34, i32 0, i32 21
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = load i32, ptr %6, align 4, !tbaa !13
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds %struct.string_pair_s, ptr %36, i64 %38
  %40 = getelementptr inbounds %struct.string_pair_s, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  store ptr %41, ptr %10, align 8, !tbaa !5
  br label %51

42:                                               ; preds = %30
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.param_config_s, ptr %43, i32 0, i32 21
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = load i32, ptr %6, align 4, !tbaa !13
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds %struct.string_pair_s, ptr %45, i64 %47
  %49 = getelementptr inbounds %struct.string_pair_s, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  store ptr %50, ptr %10, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %42, %33
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.param_config_s, ptr %52, i32 0, i32 23
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %55 = load i32, ptr %6, align 4, !tbaa !13
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %54, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = call i32 @get_attr_interaction_param_type(ptr noundef %58)
  switch i32 %59, label %166 [
    i32 1, label %60
    i32 2, label %112
    i32 3, label %164
    i32 4, label %165
  ]

60:                                               ; preds = %51
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %61

61:                                               ; preds = %101, %60
  %62 = load i32, ptr %7, align 4, !tbaa !13
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.graph_s, ptr %63, i32 0, i32 15
  %65 = load i32, ptr %64, align 8, !tbaa !19
  %66 = icmp ult i32 %62, %65
  br i1 %66, label %67, label %104

67:                                               ; preds = %61
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.graph_s, ptr %69, i32 0, i32 16
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  %72 = load i32, ptr %7, align 4, !tbaa !13
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = call i32 @strcasecmp(ptr noundef %68, ptr noundef %75) #7
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %100

78:                                               ; preds = %67
  store i32 1, ptr %9, align 4, !tbaa !13
  %79 = load i32, ptr %8, align 4, !tbaa !13
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %90

81:                                               ; preds = %78
  %82 = load i32, ptr %7, align 4, !tbaa !13
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.param_config_s, ptr %83, i32 0, i32 22
  %85 = load ptr, ptr %84, align 8, !tbaa !12
  %86 = load i32, ptr %6, align 4, !tbaa !13
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds %struct.uint_pair_s, ptr %85, i64 %87
  %89 = getelementptr inbounds %struct.uint_pair_s, ptr %88, i32 0, i32 0
  store i32 %82, ptr %89, align 4, !tbaa !22
  br label %99

90:                                               ; preds = %78
  %91 = load i32, ptr %7, align 4, !tbaa !13
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.param_config_s, ptr %92, i32 0, i32 22
  %94 = load ptr, ptr %93, align 8, !tbaa !12
  %95 = load i32, ptr %6, align 4, !tbaa !13
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds %struct.uint_pair_s, ptr %94, i64 %96
  %98 = getelementptr inbounds %struct.uint_pair_s, ptr %97, i32 0, i32 1
  store i32 %91, ptr %98, align 4, !tbaa !24
  br label %99

99:                                               ; preds = %90, %81
  br label %100

100:                                              ; preds = %99, %67
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %7, align 4, !tbaa !13
  %103 = add i32 %102, 1
  store i32 %103, ptr %7, align 4, !tbaa !13
  br label %61, !llvm.loop !25

104:                                              ; preds = %61
  %105 = load i32, ptr %9, align 4, !tbaa !13
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %111, label %107

107:                                              ; preds = %104
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.27, ptr noundef %109) #6
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %180

111:                                              ; preds = %104
  br label %171

112:                                              ; preds = %51
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %113

113:                                              ; preds = %153, %112
  %114 = load i32, ptr %7, align 4, !tbaa !13
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.graph_s, ptr %115, i32 0, i32 18
  %117 = load i32, ptr %116, align 8, !tbaa !27
  %118 = icmp ult i32 %114, %117
  br i1 %118, label %119, label %156

119:                                              ; preds = %113
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.graph_s, ptr %121, i32 0, i32 19
  %123 = load ptr, ptr %122, align 8, !tbaa !28
  %124 = load i32, ptr %7, align 4, !tbaa !13
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds ptr, ptr %123, i64 %125
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = call i32 @strcasecmp(ptr noundef %120, ptr noundef %127) #7
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %152

130:                                              ; preds = %119
  store i32 1, ptr %9, align 4, !tbaa !13
  %131 = load i32, ptr %8, align 4, !tbaa !13
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %142

133:                                              ; preds = %130
  %134 = load i32, ptr %7, align 4, !tbaa !13
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.param_config_s, ptr %135, i32 0, i32 22
  %137 = load ptr, ptr %136, align 8, !tbaa !12
  %138 = load i32, ptr %6, align 4, !tbaa !13
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds %struct.uint_pair_s, ptr %137, i64 %139
  %141 = getelementptr inbounds %struct.uint_pair_s, ptr %140, i32 0, i32 0
  store i32 %134, ptr %141, align 4, !tbaa !22
  br label %151

142:                                              ; preds = %130
  %143 = load i32, ptr %7, align 4, !tbaa !13
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.param_config_s, ptr %144, i32 0, i32 22
  %146 = load ptr, ptr %145, align 8, !tbaa !12
  %147 = load i32, ptr %6, align 4, !tbaa !13
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds %struct.uint_pair_s, ptr %146, i64 %148
  %150 = getelementptr inbounds %struct.uint_pair_s, ptr %149, i32 0, i32 1
  store i32 %143, ptr %150, align 4, !tbaa !24
  br label %151

151:                                              ; preds = %142, %133
  br label %152

152:                                              ; preds = %151, %119
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %7, align 4, !tbaa !13
  %155 = add i32 %154, 1
  store i32 %155, ptr %7, align 4, !tbaa !13
  br label %113, !llvm.loop !29

156:                                              ; preds = %113
  %157 = load i32, ptr %9, align 4, !tbaa !13
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %163, label %159

159:                                              ; preds = %156
  %160 = load ptr, ptr @stderr, align 8, !tbaa !5
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.28, ptr noundef %161) #6
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %180

163:                                              ; preds = %156
  br label %171

164:                                              ; preds = %51
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.33, i32 noundef 1702, ptr noundef @__PRETTY_FUNCTION__.build_attr_interaction_pair_indices_from_names) #8
  unreachable

165:                                              ; preds = %51
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.33, i32 noundef 1706, ptr noundef @__PRETTY_FUNCTION__.build_attr_interaction_pair_indices_from_names) #8
  unreachable

166:                                              ; preds = %51
  %167 = load ptr, ptr @stderr, align 8, !tbaa !5
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = call i32 @get_attr_interaction_param_type(ptr noundef %168)
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.31, i32 noundef %169) #6
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %180

171:                                              ; preds = %163, %111
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %8, align 4, !tbaa !13
  %174 = add i32 %173, 1
  store i32 %174, ptr %8, align 4, !tbaa !13
  br label %27, !llvm.loop !30

175:                                              ; preds = %27
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %6, align 4, !tbaa !13
  %178 = add i32 %177, 1
  store i32 %178, ptr %6, align 4, !tbaa !13
  br label %20, !llvm.loop !31

179:                                              ; preds = %20
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %180

180:                                              ; preds = %179, %166, %159, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %181 = load i32, ptr %3, align 4
  ret i32 %181
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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, !11, i64 152}
!10 = !{!"param_config_s", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !11, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 176}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 168}
!15 = !{!16, !6, i64 0}
!16 = !{!"string_pair_s", !6, i64 0, !6, i64 8}
!17 = !{!16, !6, i64 8}
!18 = !{!10, !6, i64 184}
!19 = !{!20, !11, i64 96}
!20 = !{!"graph_s", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !6, i64 104, !6, i64 112, !11, i64 120, !6, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !6, i64 160, !11, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !6, i64 224, !11, i64 232, !11, i64 236, !6, i64 240, !6, i64 248, !11, i64 256, !6, i64 264, !11, i64 272, !6, i64 280, !6, i64 288, !11, i64 296, !11, i64 300, !6, i64 304, !11, i64 312, !6, i64 320}
!21 = !{!20, !6, i64 104}
!22 = !{!23, !11, i64 0}
!23 = !{!"uint_pair_s", !11, i64 0, !11, i64 4}
!24 = !{!23, !11, i64 4}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!20, !11, i64 120}
!28 = !{!20, !6, i64 128}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}


; 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.string_pair_s = type { ptr, ptr }
%struct.uint_pair_s = type { i32, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.27 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [78 x i8], align 1
@__PRETTY_FUNCTION__.build_attr_interaction_pair_indices_from_names = external hidden unnamed_addr constant [86 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_attr_interaction_param_type(ptr noundef) local_unnamed_addr #2

declare ptr @safe_malloc(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @build_attr_interaction_pair_indices_from_names(ptr nocapture noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 152
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = zext i32 %4 to i64
  %6 = shl nuw nsw i64 %5, 3
  %7 = tail call ptr @safe_malloc(i64 noundef %6) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 176
  store ptr %7, ptr %8, align 8, !tbaa !11
  %9 = load i32, ptr %3, align 8, !tbaa !5
  %.not68 = icmp eq i32 %9, 0
  br i1 %.not68, label %.loopexit, label %.preheader53.lr.ph

.preheader53.lr.ph:                               ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = getelementptr inbounds i8, ptr %0, i64 168
  %12 = getelementptr inbounds i8, ptr %1, i64 120
  %13 = getelementptr inbounds i8, ptr %1, i64 128
  %14 = getelementptr inbounds i8, ptr %1, i64 96
  %15 = getelementptr inbounds i8, ptr %1, i64 104
  br label %16

16:                                               ; preds = %.preheader53.lr.ph, %84
  %indvars.iv = phi i64 [ 0, %.preheader53.lr.ph ], [ %indvars.iv.next, %84 ]
  %17 = load ptr, ptr %11, align 8, !tbaa !12
  %18 = getelementptr inbounds %struct.string_pair_s, ptr %17, i64 %indvars.iv
  %.0 = load ptr, ptr %18, align 8, !tbaa !13
  %19 = load ptr, ptr %10, align 8, !tbaa !14
  %20 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = tail call i32 @get_attr_interaction_param_type(ptr noundef %21)
  switch i32 %22, label %51 [
    i32 1, label %.preheader
    i32 2, label %.preheader52
    i32 3, label %49
    i32 4, label %50
  ]

.preheader52:                                     ; preds = %16
  %23 = load i32, ptr %12, align 8, !tbaa !15
  %.not69 = icmp eq i32 %23, 0
  br i1 %.not69, label %._crit_edge.thread, label %.lr.ph.split.us.preheader

.lr.ph.split.us.preheader:                        ; preds = %.preheader52
  %24 = load ptr, ptr %13, align 8, !tbaa !17
  %wide.trip.count82 = zext i32 %23 to i64
  br label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph.split.us.preheader, %33
  %indvars.iv79 = phi i64 [ 0, %.lr.ph.split.us.preheader ], [ %indvars.iv.next80, %33 ]
  %.259.us = phi i32 [ 0, %.lr.ph.split.us.preheader ], [ %.3.us, %33 ]
  %25 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv79
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %27 = tail call i32 @strcasecmp(ptr noundef %.0, ptr noundef %26) #6
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %.lr.ph.split.us
  %30 = load ptr, ptr %8, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.uint_pair_s, ptr %30, i64 %indvars.iv
  %32 = trunc nuw i64 %indvars.iv79 to i32
  store i32 %32, ptr %31, align 4, !tbaa !18
  br label %33

33:                                               ; preds = %29, %.lr.ph.split.us
  %.3.us = phi i32 [ 1, %29 ], [ %.259.us, %.lr.ph.split.us ]
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count82
  br i1 %exitcond83.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !20

.preheader:                                       ; preds = %16
  %34 = load i32, ptr %14, align 8, !tbaa !22
  %.not70 = icmp eq i32 %34, 0
  br i1 %.not70, label %._crit_edge63.thread, label %.lr.ph62.split.us.preheader

.lr.ph62.split.us.preheader:                      ; preds = %.preheader
  %35 = load ptr, ptr %15, align 8, !tbaa !23
  %wide.trip.count92 = zext i32 %34 to i64
  br label %.lr.ph62.split.us

.lr.ph62.split.us:                                ; preds = %.lr.ph62.split.us.preheader, %44
  %indvars.iv89 = phi i64 [ 0, %.lr.ph62.split.us.preheader ], [ %indvars.iv.next90, %44 ]
  %.04561.us = phi i32 [ 0, %.lr.ph62.split.us.preheader ], [ %.1.us, %44 ]
  %36 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv89
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = tail call i32 @strcasecmp(ptr noundef %.0, ptr noundef %37) #6
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %44

40:                                               ; preds = %.lr.ph62.split.us
  %41 = load ptr, ptr %8, align 8, !tbaa !11
  %42 = getelementptr inbounds %struct.uint_pair_s, ptr %41, i64 %indvars.iv
  %43 = trunc nuw i64 %indvars.iv89 to i32
  store i32 %43, ptr %42, align 4, !tbaa !18
  br label %44

44:                                               ; preds = %40, %.lr.ph62.split.us
  %.1.us = phi i32 [ 1, %40 ], [ %.04561.us, %.lr.ph62.split.us ]
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count92
  br i1 %exitcond93.not, label %._crit_edge63, label %.lr.ph62.split.us, !llvm.loop !24

._crit_edge63:                                    ; preds = %44
  %.not51 = icmp eq i32 %.1.us, 0
  br i1 %.not51, label %._crit_edge63.thread, label %55

._crit_edge63.thread:                             ; preds = %.preheader.1, %.preheader, %._crit_edge63.1, %._crit_edge63
  %.0.lcssa76 = phi ptr [ %.0, %._crit_edge63 ], [ %.0.1, %._crit_edge63.1 ], [ %.0, %.preheader ], [ %.0.1, %.preheader.1 ]
  %45 = load ptr, ptr @stderr, align 8, !tbaa !13
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.27, ptr noundef %.0.lcssa76) #7
  br label %.loopexit

._crit_edge:                                      ; preds = %33
  %.not = icmp eq i32 %.3.us, 0
  br i1 %.not, label %._crit_edge.thread, label %55

._crit_edge.thread:                               ; preds = %.preheader52.1, %.preheader52, %._crit_edge.1, %._crit_edge
  %.0.lcssa75 = phi ptr [ %.0, %._crit_edge ], [ %.0.1, %._crit_edge.1 ], [ %.0, %.preheader52 ], [ %.0.1, %.preheader52.1 ]
  %47 = load ptr, ptr @stderr, align 8, !tbaa !13
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.28, ptr noundef %.0.lcssa75) #7
  br label %.loopexit

49:                                               ; preds = %55, %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.33, i32 noundef 1702, ptr noundef nonnull @__PRETTY_FUNCTION__.build_attr_interaction_pair_indices_from_names) #8
  unreachable

50:                                               ; preds = %55, %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.33, i32 noundef 1706, ptr noundef nonnull @__PRETTY_FUNCTION__.build_attr_interaction_pair_indices_from_names) #8
  unreachable

51:                                               ; preds = %55, %16
  %.0.lcssa = phi ptr [ %.0, %16 ], [ %.0.1, %55 ]
  %52 = load ptr, ptr @stderr, align 8, !tbaa !13
  %53 = tail call i32 @get_attr_interaction_param_type(ptr noundef %.0.lcssa)
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.31, i32 noundef %53) #7
  br label %.loopexit

55:                                               ; preds = %._crit_edge63, %._crit_edge
  %56 = load ptr, ptr %11, align 8, !tbaa !12
  %57 = getelementptr inbounds %struct.string_pair_s, ptr %56, i64 %indvars.iv, i32 1
  %.0.1 = load ptr, ptr %57, align 8, !tbaa !13
  %58 = load ptr, ptr %10, align 8, !tbaa !14
  %59 = getelementptr inbounds ptr, ptr %58, i64 %indvars.iv
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = tail call i32 @get_attr_interaction_param_type(ptr noundef %60)
  switch i32 %61, label %51 [
    i32 1, label %.preheader.1
    i32 2, label %.preheader52.1
    i32 3, label %49
    i32 4, label %50
  ]

.preheader52.1:                                   ; preds = %55
  %62 = load i32, ptr %12, align 8, !tbaa !15
  %.not69.1 = icmp eq i32 %62, 0
  br i1 %.not69.1, label %._crit_edge.thread, label %.lr.ph.split.preheader.1

.lr.ph.split.preheader.1:                         ; preds = %.preheader52.1
  %63 = load ptr, ptr %13, align 8, !tbaa !17
  %wide.trip.count.1 = zext i32 %62 to i64
  br label %.lr.ph.split.1

.lr.ph.split.1:                                   ; preds = %72, %.lr.ph.split.preheader.1
  %indvars.iv.1 = phi i64 [ 0, %.lr.ph.split.preheader.1 ], [ %indvars.iv.next.1, %72 ]
  %.259.1 = phi i32 [ 0, %.lr.ph.split.preheader.1 ], [ %.3.1, %72 ]
  %64 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv.1
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = tail call i32 @strcasecmp(ptr noundef %.0.1, ptr noundef %65) #6
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %72

68:                                               ; preds = %.lr.ph.split.1
  %69 = load ptr, ptr %8, align 8, !tbaa !11
  %70 = getelementptr inbounds %struct.uint_pair_s, ptr %69, i64 %indvars.iv, i32 1
  %71 = trunc nuw i64 %indvars.iv.1 to i32
  store i32 %71, ptr %70, align 4, !tbaa !25
  br label %72

72:                                               ; preds = %68, %.lr.ph.split.1
  %.3.1 = phi i32 [ 1, %68 ], [ %.259.1, %.lr.ph.split.1 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count.1
  br i1 %exitcond.1.not, label %._crit_edge.1, label %.lr.ph.split.1, !llvm.loop !20

._crit_edge.1:                                    ; preds = %72
  %.not.1 = icmp eq i32 %.3.1, 0
  br i1 %.not.1, label %._crit_edge.thread, label %84

.preheader.1:                                     ; preds = %55
  %73 = load i32, ptr %14, align 8, !tbaa !22
  %.not70.1 = icmp eq i32 %73, 0
  br i1 %.not70.1, label %._crit_edge63.thread, label %.lr.ph62.split.preheader.1

.lr.ph62.split.preheader.1:                       ; preds = %.preheader.1
  %74 = load ptr, ptr %15, align 8, !tbaa !23
  %wide.trip.count87.1 = zext i32 %73 to i64
  br label %.lr.ph62.split.1

.lr.ph62.split.1:                                 ; preds = %83, %.lr.ph62.split.preheader.1
  %indvars.iv84.1 = phi i64 [ 0, %.lr.ph62.split.preheader.1 ], [ %indvars.iv.next85.1, %83 ]
  %.04561.1 = phi i32 [ 0, %.lr.ph62.split.preheader.1 ], [ %.1.1, %83 ]
  %75 = getelementptr inbounds ptr, ptr %74, i64 %indvars.iv84.1
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = tail call i32 @strcasecmp(ptr noundef %.0.1, ptr noundef %76) #6
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %83

79:                                               ; preds = %.lr.ph62.split.1
  %80 = load ptr, ptr %8, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.uint_pair_s, ptr %80, i64 %indvars.iv, i32 1
  %82 = trunc nuw i64 %indvars.iv84.1 to i32
  store i32 %82, ptr %81, align 4, !tbaa !25
  br label %83

83:                                               ; preds = %79, %.lr.ph62.split.1
  %.1.1 = phi i32 [ 1, %79 ], [ %.04561.1, %.lr.ph62.split.1 ]
  %indvars.iv.next85.1 = add nuw nsw i64 %indvars.iv84.1, 1
  %exitcond88.1.not = icmp eq i64 %indvars.iv.next85.1, %wide.trip.count87.1
  br i1 %exitcond88.1.not, label %._crit_edge63.1, label %.lr.ph62.split.1, !llvm.loop !24

._crit_edge63.1:                                  ; preds = %83
  %.not51.1 = icmp eq i32 %.1.1, 0
  br i1 %.not51.1, label %._crit_edge63.thread, label %84

84:                                               ; preds = %._crit_edge63.1, %._crit_edge.1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %85 = load i32, ptr %3, align 8, !tbaa !5
  %86 = zext i32 %85 to i64
  %87 = icmp ult i64 %indvars.iv.next, %86
  br i1 %87, label %16, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %84, %2, %51, %._crit_edge.thread, %._crit_edge63.thread
  %.050 = phi i32 [ 1, %51 ], [ 1, %._crit_edge.thread ], [ 1, %._crit_edge63.thread ], [ 0, %2 ], [ 0, %84 ]
  ret i32 %.050
}

attributes #0 = { 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 #1 = { mustprogress nofree 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 #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { cold nounwind }
attributes #8 = { 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, !7, i64 152}
!6 = !{!"param_config_s", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !7, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 176}
!12 = !{!6, !10, i64 168}
!13 = !{!10, !10, i64 0}
!14 = !{!6, !10, i64 184}
!15 = !{!16, !7, i64 120}
!16 = !{!"graph_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !10, i64 104, !10, i64 112, !7, i64 120, !10, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !10, i64 224, !7, i64 232, !7, i64 236, !10, i64 240, !10, i64 248, !7, i64 256, !10, i64 264, !7, i64 272, !10, i64 280, !10, i64 288, !7, i64 296, !7, i64 300, !10, i64 304, !7, i64 312, !10, i64 320}
!17 = !{!16, !10, i64 128}
!18 = !{!19, !7, i64 0}
!19 = !{!"uint_pair_s", !7, i64 0, !7, i64 4}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!16, !7, i64 96}
!23 = !{!16, !10, i64 104}
!24 = distinct !{!24, !21}
!25 = !{!19, !7, i64 4}
!26 = distinct !{!26, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass