; 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.attr_param_s = type { ptr, i32, i32, i32, i32, ptr }
%struct.dyadic_param_s = type { ptr, i32, i32, i32, ptr }
%struct.attr_interaction_param_s = type { ptr, i32, i32, i32, ptr }
%struct.struct_param_s = type { ptr, i32, i32, i32, ptr }

@stderr = external global ptr, align 8
@ATTR_PARAMS = external hidden constant [39 x %struct.attr_param_s], align 16
@DYADIC_PARAMS = external hidden constant [3 x %struct.dyadic_param_s], align 16
@ATTR_INTERACTION_PARAMS = external hidden constant [2 x %struct.attr_interaction_param_s], align 16
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@STRUCT_PARAMS = external hidden constant [45 x %struct.struct_param_s], align 16
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 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 uwtable
define dso_local void @dump_parameter_names() #2 {
  %1 = alloca i32, align 4
  %2 = alloca [128 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %2) #3
  %3 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
  %4 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %3, i64 noundef 128, ptr noundef @.str.4, double noundef 2.000000e+00) #3
  %5 = load ptr, ptr @stderr, align 8, !tbaa !5
  %6 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef @.str.5, ptr noundef @.str.6) #3
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %41, %0
  %8 = load i32, ptr %1, align 4, !tbaa !9
  %9 = icmp ult i32 %8, 45
  br i1 %9, label %10, label %44

10:                                               ; preds = %7
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = load i32, ptr %1, align 4, !tbaa !9
  %13 = zext i32 %12 to i64
  %14 = getelementptr inbounds [45 x %struct.struct_param_s], ptr @STRUCT_PARAMS, i64 0, i64 %13
  %15 = getelementptr inbounds %struct.struct_param_s, ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %15, align 16, !tbaa !11
  %17 = load i32, ptr %1, align 4, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = getelementptr inbounds [45 x %struct.struct_param_s], ptr @STRUCT_PARAMS, i64 0, i64 %18
  %20 = getelementptr inbounds %struct.struct_param_s, ptr %19, i32 0, i32 2
  %21 = load i32, ptr %20, align 4, !tbaa !13
  %22 = call ptr @network_type_str(i32 noundef %21)
  %23 = load i32, ptr %1, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds [45 x %struct.struct_param_s], ptr @STRUCT_PARAMS, i64 0, i64 %24
  %26 = getelementptr inbounds %struct.struct_param_s, ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 16, !tbaa !14
  %28 = call ptr @network_mode_str(i32 noundef %27)
  %29 = load i32, ptr %1, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds [45 x %struct.struct_param_s], ptr @STRUCT_PARAMS, i64 0, i64 %30
  %32 = getelementptr inbounds %struct.struct_param_s, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !15
  %34 = icmp eq i32 %33, 2
  br i1 %34, label %35, label %37

35:                                               ; preds = %10
  %36 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
  br label %38

37:                                               ; preds = %10
  br label %38

38:                                               ; preds = %37, %35
  %39 = phi ptr [ %36, %35 ], [ @.str.8, %37 ]
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef @.str.7, ptr noundef %16, ptr noundef %22, ptr noundef %28, ptr noundef %39) #3
  br label %41

41:                                               ; preds = %38
  %42 = load i32, ptr %1, align 4, !tbaa !9
  %43 = add i32 %42, 1
  store i32 %43, ptr %1, align 4, !tbaa !9
  br label %7, !llvm.loop !16

44:                                               ; preds = %7
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.9, ptr noundef @.str.10) #3
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %116, %44
  %48 = load i32, ptr %1, align 4, !tbaa !9
  %49 = icmp ult i32 %48, 39
  br i1 %49, label %50, label %119

50:                                               ; preds = %47
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = load i32, ptr %1, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.attr_param_s, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 16, !tbaa !18
  %57 = load i32, ptr %1, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %58
  %60 = getelementptr inbounds %struct.attr_param_s, ptr %59, i32 0, i32 3
  %61 = load i32, ptr %60, align 16, !tbaa !20
  %62 = call ptr @network_type_str(i32 noundef %61)
  %63 = load i32, ptr %1, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.attr_param_s, ptr %65, i32 0, i32 4
  %67 = load i32, ptr %66, align 4, !tbaa !21
  %68 = call ptr @network_mode_str(i32 noundef %67)
  %69 = load i32, ptr %1, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %70
  %72 = getelementptr inbounds %struct.attr_param_s, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 8, !tbaa !22
  %74 = icmp eq i32 %73, 1
  br i1 %74, label %75, label %76

75:                                               ; preds = %50
  br label %105

76:                                               ; preds = %50
  %77 = load i32, ptr %1, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %78
  %80 = getelementptr inbounds %struct.attr_param_s, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !22
  %82 = icmp eq i32 %81, 2
  br i1 %82, label %83, label %84

83:                                               ; preds = %76
  br label %103

84:                                               ; preds = %76
  %85 = load i32, ptr %1, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %86
  %88 = getelementptr inbounds %struct.attr_param_s, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !22
  %90 = icmp eq i32 %89, 3
  br i1 %90, label %91, label %92

91:                                               ; preds = %84
  br label %101

92:                                               ; preds = %84
  %93 = load i32, ptr %1, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %94
  %96 = getelementptr inbounds %struct.attr_param_s, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !22
  %98 = icmp eq i32 %97, 4
  %99 = zext i1 %98 to i64
  %100 = select i1 %98, ptr @.str.15, ptr @.str.16
  br label %101

101:                                              ; preds = %92, %91
  %102 = phi ptr [ @.str.14, %91 ], [ %100, %92 ]
  br label %103

103:                                              ; preds = %101, %83
  %104 = phi ptr [ @.str.13, %83 ], [ %102, %101 ]
  br label %105

105:                                              ; preds = %103, %75
  %106 = phi ptr [ @.str.12, %75 ], [ %104, %103 ]
  %107 = load i32, ptr %1, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %108
  %110 = getelementptr inbounds %struct.attr_param_s, ptr %109, i32 0, i32 2
  %111 = load i32, ptr %110, align 4, !tbaa !23
  %112 = icmp eq i32 %111, 2
  %113 = zext i1 %112 to i64
  %114 = select i1 %112, ptr @.str.17, ptr @.str.8
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.11, ptr noundef %56, ptr noundef %62, ptr noundef %68, ptr noundef %106, ptr noundef %114) #3
  br label %116

116:                                              ; preds = %105
  %117 = load i32, ptr %1, align 4, !tbaa !9
  %118 = add i32 %117, 1
  store i32 %118, ptr %1, align 4, !tbaa !9
  br label %47, !llvm.loop !24

119:                                              ; preds = %47
  %120 = load ptr, ptr @stderr, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.18, ptr noundef @.str.19) #3
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %163, %119
  %123 = load i32, ptr %1, align 4, !tbaa !9
  %124 = icmp ult i32 %123, 3
  br i1 %124, label %125, label %166

125:                                              ; preds = %122
  %126 = load ptr, ptr @stderr, align 8, !tbaa !5
  %127 = load i32, ptr %1, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds [3 x %struct.dyadic_param_s], ptr @DYADIC_PARAMS, i64 0, i64 %128
  %130 = getelementptr inbounds %struct.dyadic_param_s, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 16, !tbaa !25
  %132 = load i32, ptr %1, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds [3 x %struct.dyadic_param_s], ptr @DYADIC_PARAMS, i64 0, i64 %133
  %135 = getelementptr inbounds %struct.dyadic_param_s, ptr %134, i32 0, i32 2
  %136 = load i32, ptr %135, align 4, !tbaa !27
  %137 = call ptr @network_type_str(i32 noundef %136)
  %138 = load i32, ptr %1, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds [3 x %struct.dyadic_param_s], ptr @DYADIC_PARAMS, i64 0, i64 %139
  %141 = getelementptr inbounds %struct.dyadic_param_s, ptr %140, i32 0, i32 3
  %142 = load i32, ptr %141, align 16, !tbaa !28
  %143 = call ptr @network_mode_str(i32 noundef %142)
  %144 = load i32, ptr %1, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds [3 x %struct.dyadic_param_s], ptr @DYADIC_PARAMS, i64 0, i64 %145
  %147 = getelementptr inbounds %struct.dyadic_param_s, ptr %146, i32 0, i32 1
  %148 = load i32, ptr %147, align 8, !tbaa !29
  %149 = icmp eq i32 %148, 1
  br i1 %149, label %150, label %151

150:                                              ; preds = %125
  br label %160

151:                                              ; preds = %125
  %152 = load i32, ptr %1, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds [3 x %struct.dyadic_param_s], ptr @DYADIC_PARAMS, i64 0, i64 %153
  %155 = getelementptr inbounds %struct.dyadic_param_s, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 8, !tbaa !29
  %157 = icmp eq i32 %156, 2
  %158 = zext i1 %157 to i64
  %159 = select i1 %157, ptr @.str.22, ptr @.str.16
  br label %160

160:                                              ; preds = %151, %150
  %161 = phi ptr [ @.str.21, %150 ], [ %159, %151 ]
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.20, ptr noundef %131, ptr noundef %137, ptr noundef %143, ptr noundef %161) #3
  br label %163

163:                                              ; preds = %160
  %164 = load i32, ptr %1, align 4, !tbaa !9
  %165 = add i32 %164, 1
  store i32 %165, ptr %1, align 4, !tbaa !9
  br label %122, !llvm.loop !30

166:                                              ; preds = %122
  %167 = load ptr, ptr @stderr, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.23, ptr noundef @.str.24) #3
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %220, %166
  %170 = load i32, ptr %1, align 4, !tbaa !9
  %171 = icmp ult i32 %170, 2
  br i1 %171, label %172, label %223

172:                                              ; preds = %169
  %173 = load ptr, ptr @stderr, align 8, !tbaa !5
  %174 = load i32, ptr %1, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds [2 x %struct.attr_interaction_param_s], ptr @ATTR_INTERACTION_PARAMS, i64 0, i64 %175
  %177 = getelementptr inbounds %struct.attr_interaction_param_s, ptr %176, i32 0, i32 0
  %178 = load ptr, ptr %177, align 16, !tbaa !31
  %179 = load i32, ptr %1, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds [2 x %struct.attr_interaction_param_s], ptr @ATTR_INTERACTION_PARAMS, i64 0, i64 %180
  %182 = getelementptr inbounds %struct.attr_interaction_param_s, ptr %181, i32 0, i32 2
  %183 = load i32, ptr %182, align 4, !tbaa !33
  %184 = call ptr @network_type_str(i32 noundef %183)
  %185 = load i32, ptr %1, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds [2 x %struct.attr_interaction_param_s], ptr @ATTR_INTERACTION_PARAMS, i64 0, i64 %186
  %188 = getelementptr inbounds %struct.attr_interaction_param_s, ptr %187, i32 0, i32 3
  %189 = load i32, ptr %188, align 16, !tbaa !34
  %190 = call ptr @network_mode_str(i32 noundef %189)
  %191 = load i32, ptr %1, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = getelementptr inbounds [2 x %struct.attr_interaction_param_s], ptr @ATTR_INTERACTION_PARAMS, i64 0, i64 %192
  %194 = getelementptr inbounds %struct.attr_interaction_param_s, ptr %193, i32 0, i32 1
  %195 = load i32, ptr %194, align 8, !tbaa !35
  %196 = icmp eq i32 %195, 1
  br i1 %196, label %197, label %198

197:                                              ; preds = %172
  br label %217

198:                                              ; preds = %172
  %199 = load i32, ptr %1, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = getelementptr inbounds [2 x %struct.attr_interaction_param_s], ptr @ATTR_INTERACTION_PARAMS, i64 0, i64 %200
  %202 = getelementptr inbounds %struct.attr_interaction_param_s, ptr %201, i32 0, i32 1
  %203 = load i32, ptr %202, align 8, !tbaa !35
  %204 = icmp eq i32 %203, 2
  br i1 %204, label %205, label %206

205:                                              ; preds = %198
  br label %215

206:                                              ; preds = %198
  %207 = load i32, ptr %1, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds [2 x %struct.attr_interaction_param_s], ptr @ATTR_INTERACTION_PARAMS, i64 0, i64 %208
  %210 = getelementptr inbounds %struct.attr_interaction_param_s, ptr %209, i32 0, i32 1
  %211 = load i32, ptr %210, align 8, !tbaa !35
  %212 = icmp eq i32 %211, 3
  %213 = zext i1 %212 to i64
  %214 = select i1 %212, ptr @.str.14, ptr @.str.16
  br label %215

215:                                              ; preds = %206, %205
  %216 = phi ptr [ @.str.13, %205 ], [ %214, %206 ]
  br label %217

217:                                              ; preds = %215, %197
  %218 = phi ptr [ @.str.12, %197 ], [ %216, %215 ]
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.25, ptr noundef %178, ptr noundef %184, ptr noundef %190, ptr noundef %218) #3
  br label %220

220:                                              ; preds = %217
  %221 = load i32, ptr %1, align 4, !tbaa !9
  %222 = add i32 %221, 1
  store i32 %222, ptr %1, align 4, !tbaa !9
  br label %169, !llvm.loop !36

223:                                              ; preds = %169
  %224 = load ptr, ptr @stderr, align 8, !tbaa !5
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.26) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  ret void
}

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #1

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

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

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 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 = { 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 = !{!12, !6, i64 0}
!12 = !{!"struct_param_s", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 12}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"attr_param_s", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24}
!20 = !{!19, !10, i64 16}
!21 = !{!19, !10, i64 20}
!22 = !{!19, !10, i64 8}
!23 = !{!19, !10, i64 12}
!24 = distinct !{!24, !17}
!25 = !{!26, !6, i64 0}
!26 = !{!"dyadic_param_s", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24}
!27 = !{!26, !10, i64 12}
!28 = !{!26, !10, i64 16}
!29 = !{!26, !10, i64 8}
!30 = distinct !{!30, !17}
!31 = !{!32, !6, i64 0}
!32 = !{!"attr_interaction_param_s", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24}
!33 = !{!32, !10, i64 12}
!34 = !{!32, !10, i64 16}
!35 = !{!32, !10, i64 8}
!36 = distinct !{!36, !17}


; 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.attr_param_s = type { ptr, i32, i32, i32, i32, ptr }
%struct.dyadic_param_s = type { ptr, i32, i32, i32, ptr }
%struct.attr_interaction_param_s = type { ptr, i32, i32, i32, ptr }
%struct.struct_param_s = type { ptr, i32, i32, i32, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@ATTR_PARAMS = external hidden local_unnamed_addr constant [39 x %struct.attr_param_s], align 16
@DYADIC_PARAMS = external hidden local_unnamed_addr constant [3 x %struct.dyadic_param_s], align 16
@ATTR_INTERACTION_PARAMS = external hidden local_unnamed_addr constant [2 x %struct.attr_interaction_param_s], align 16
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@STRUCT_PARAMS = external hidden local_unnamed_addr constant [45 x %struct.struct_param_s], align 16
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@switch.table.dump_parameter_names = private unnamed_addr constant [3 x ptr] [ptr @.str.12, ptr @.str.13, ptr @.str.14], align 8

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @dump_parameter_names() local_unnamed_addr #2 {
  %1 = alloca [128 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %1) #3
  %2 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %1, i64 noundef 128, ptr noundef nonnull @.str.4, double noundef 2.000000e+00) #3
  %3 = load ptr, ptr @stderr, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6) #4
  br label %5

5:                                                ; preds = %0, %5
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %5 ]
  %6 = load ptr, ptr @stderr, align 8, !tbaa !5
  %7 = getelementptr inbounds [45 x %struct.struct_param_s], ptr @STRUCT_PARAMS, i64 0, i64 %indvars.iv
  %8 = load ptr, ptr %7, align 16, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %7, i64 12
  %10 = load i32, ptr %9, align 4, !tbaa !12
  %11 = call ptr @network_type_str(i32 noundef %10)
  %12 = getelementptr inbounds i8, ptr %7, i64 16
  %13 = load i32, ptr %12, align 16, !tbaa !13
  %14 = call ptr @network_mode_str(i32 noundef %13)
  %15 = getelementptr inbounds i8, ptr %7, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = icmp eq i32 %16, 2
  %18 = select i1 %17, ptr %1, ptr @.str.8
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.7, ptr noundef %8, ptr noundef %11, ptr noundef %14, ptr noundef nonnull %18) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 45
  br i1 %exitcond.not, label %20, label %5, !llvm.loop !15

20:                                               ; preds = %5
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10) #4
  br label %23

23:                                               ; preds = %20, %40
  %indvars.iv41 = phi i64 [ 0, %20 ], [ %indvars.iv.next42, %40 ]
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = getelementptr inbounds [39 x %struct.attr_param_s], ptr @ATTR_PARAMS, i64 0, i64 %indvars.iv41
  %26 = load ptr, ptr %25, align 16, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %25, i64 16
  %28 = load i32, ptr %27, align 16, !tbaa !19
  %29 = call ptr @network_type_str(i32 noundef %28)
  %30 = getelementptr inbounds i8, ptr %25, i64 20
  %31 = load i32, ptr %30, align 4, !tbaa !20
  %32 = call ptr @network_mode_str(i32 noundef %31)
  %33 = getelementptr inbounds i8, ptr %25, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !21
  %switch.tableidx = add i32 %34, -1
  %35 = icmp ult i32 %switch.tableidx, 3
  br i1 %35, label %switch.lookup, label %36

36:                                               ; preds = %23
  %37 = icmp eq i32 %34, 4
  %38 = select i1 %37, ptr @.str.15, ptr @.str.16
  br label %40

switch.lookup:                                    ; preds = %23
  %39 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [3 x ptr], ptr @switch.table.dump_parameter_names, i64 0, i64 %39
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %40

40:                                               ; preds = %switch.lookup, %36
  %41 = phi ptr [ %38, %36 ], [ %switch.load, %switch.lookup ]
  %42 = getelementptr inbounds i8, ptr %25, i64 12
  %43 = load i32, ptr %42, align 4, !tbaa !22
  %44 = icmp eq i32 %43, 2
  %45 = select i1 %44, ptr @.str.17, ptr @.str.8
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.11, ptr noundef %26, ptr noundef %29, ptr noundef %32, ptr noundef nonnull %41, ptr noundef nonnull %45) #4
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %exitcond44.not = icmp eq i64 %indvars.iv.next42, 39
  br i1 %exitcond44.not, label %47, label %23, !llvm.loop !23

47:                                               ; preds = %40
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19) #4
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = load ptr, ptr @DYADIC_PARAMS, align 16, !tbaa !24
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 12), align 4, !tbaa !26
  %53 = call ptr @network_type_str(i32 noundef %52)
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 16), align 16, !tbaa !27
  %55 = call ptr @network_mode_str(i32 noundef %54)
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 8), align 8, !tbaa !28
  %57 = icmp eq i32 %56, 1
  %58 = icmp eq i32 %56, 2
  %59 = select i1 %58, ptr @.str.22, ptr @.str.16
  %60 = select i1 %57, ptr @.str.21, ptr %59
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.20, ptr noundef %51, ptr noundef %53, ptr noundef %55, ptr noundef nonnull %60) #4
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = load ptr, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 32), align 16, !tbaa !24
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 44), align 4, !tbaa !26
  %65 = call ptr @network_type_str(i32 noundef %64)
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 48), align 16, !tbaa !27
  %67 = call ptr @network_mode_str(i32 noundef %66)
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 40), align 8, !tbaa !28
  %69 = icmp eq i32 %68, 1
  %70 = icmp eq i32 %68, 2
  %71 = select i1 %70, ptr @.str.22, ptr @.str.16
  %72 = select i1 %69, ptr @.str.21, ptr %71
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.20, ptr noundef %63, ptr noundef %65, ptr noundef %67, ptr noundef nonnull %72) #4
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 64), align 16, !tbaa !24
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 76), align 4, !tbaa !26
  %77 = call ptr @network_type_str(i32 noundef %76)
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 80), align 16, !tbaa !27
  %79 = call ptr @network_mode_str(i32 noundef %78)
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @DYADIC_PARAMS, i64 72), align 8, !tbaa !28
  %81 = icmp eq i32 %80, 1
  %82 = icmp eq i32 %80, 2
  %83 = select i1 %82, ptr @.str.22, ptr @.str.16
  %84 = select i1 %81, ptr @.str.21, ptr %83
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.20, ptr noundef %75, ptr noundef %77, ptr noundef %79, ptr noundef nonnull %84) #4
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.24) #4
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = load ptr, ptr @ATTR_INTERACTION_PARAMS, align 16, !tbaa !29
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @ATTR_INTERACTION_PARAMS, i64 12), align 4, !tbaa !31
  %91 = call ptr @network_type_str(i32 noundef %90)
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @ATTR_INTERACTION_PARAMS, i64 16), align 16, !tbaa !32
  %93 = call ptr @network_mode_str(i32 noundef %92)
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @ATTR_INTERACTION_PARAMS, i64 8), align 8, !tbaa !33
  switch i32 %94, label %95 [
    i32 1, label %98
    i32 2, label %.fold.split35
  ]

95:                                               ; preds = %47
  %96 = icmp eq i32 %94, 3
  %97 = select i1 %96, ptr @.str.14, ptr @.str.16
  br label %98

.fold.split35:                                    ; preds = %47
  br label %98

98:                                               ; preds = %47, %.fold.split35, %95
  %99 = phi ptr [ @.str.12, %47 ], [ %97, %95 ], [ @.str.13, %.fold.split35 ]
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str.25, ptr noundef %89, ptr noundef %91, ptr noundef %93, ptr noundef nonnull %99) #4
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = load ptr, ptr getelementptr inbounds (i8, ptr @ATTR_INTERACTION_PARAMS, i64 32), align 16, !tbaa !29
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @ATTR_INTERACTION_PARAMS, i64 44), align 4, !tbaa !31
  %104 = call ptr @network_type_str(i32 noundef %103)
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @ATTR_INTERACTION_PARAMS, i64 48), align 16, !tbaa !32
  %106 = call ptr @network_mode_str(i32 noundef %105)
  %107 = load i32, ptr getelementptr inbounds (i8, ptr @ATTR_INTERACTION_PARAMS, i64 40), align 8, !tbaa !33
  switch i32 %107, label %108 [
    i32 1, label %111
    i32 2, label %.fold.split35.1
  ]

.fold.split35.1:                                  ; preds = %98
  br label %111

108:                                              ; preds = %98
  %109 = icmp eq i32 %107, 3
  %110 = select i1 %109, ptr @.str.14, ptr @.str.16
  br label %111

111:                                              ; preds = %108, %.fold.split35.1, %98
  %112 = phi ptr [ @.str.12, %98 ], [ %110, %108 ], [ @.str.13, %.fold.split35.1 ]
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.25, ptr noundef %102, ptr noundef %104, ptr noundef %106, ptr noundef nonnull %112) #4
  %114 = load ptr, ptr @stderr, align 8, !tbaa !5
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef nonnull @.str.26) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %1) #3
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind }
attributes #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"struct_param_s", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 12}
!13 = !{!10, !11, i64 16}
!14 = !{!10, !11, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !6, i64 0}
!18 = !{!"attr_param_s", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24}
!19 = !{!18, !11, i64 16}
!20 = !{!18, !11, i64 20}
!21 = !{!18, !11, i64 8}
!22 = !{!18, !11, i64 12}
!23 = distinct !{!23, !16}
!24 = !{!25, !6, i64 0}
!25 = !{!"dyadic_param_s", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!26 = !{!25, !11, i64 12}
!27 = !{!25, !11, i64 16}
!28 = !{!25, !11, i64 8}
!29 = !{!30, !6, i64 0}
!30 = !{!"attr_interaction_param_s", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!31 = !{!30, !11, i64 12}
!32 = !{!30, !11, i64 16}
!33 = !{!30, !11, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass