; LLVM IR from introlab/odas :: src/sink (snk_hops)

; 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.snk_hops_obj = type { i64, i32, i32, i32, ptr, ptr, ptr, i32, ptr, %struct.sockaddr_in, i32, [4 x i8], ptr }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.msg_hops_cfg = type { i32, i32, i32 }
%struct.snk_hops_cfg = type { i32, ptr, ptr }
%struct.interface_obj = type { i32, ptr, ptr, i32, ptr }
%struct.format_obj = type { i32 }

@.str = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @snk_hops_construct(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %6 = call noalias ptr @malloc(i64 noundef 96) #7
  store ptr %6, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.snk_hops_obj, ptr %7, i32 0, i32 0
  store i64 0, ptr %8, align 8, !tbaa !9
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.msg_hops_cfg, ptr %9, i32 0, i32 0
  %11 = load i32, ptr %10, align 4, !tbaa !16
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.snk_hops_obj, ptr %12, i32 0, i32 1
  store i32 %11, ptr %13, align 8, !tbaa !18
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.msg_hops_cfg, ptr %14, i32 0, i32 1
  %16 = load i32, ptr %15, align 4, !tbaa !19
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.snk_hops_obj, ptr %17, i32 0, i32 2
  store i32 %16, ptr %18, align 4, !tbaa !20
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.snk_hops_cfg, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !21
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.snk_hops_obj, ptr %22, i32 0, i32 3
  store i32 %21, ptr %23, align 8, !tbaa !23
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.snk_hops_cfg, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !24
  %27 = call ptr @format_clone(ptr noundef %26)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.snk_hops_obj, ptr %28, i32 0, i32 4
  store ptr %27, ptr %29, align 8, !tbaa !25
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.snk_hops_cfg, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !26
  %33 = call ptr @interface_clone(ptr noundef %32)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.snk_hops_obj, ptr %34, i32 0, i32 5
  store ptr %33, ptr %35, align 8, !tbaa !27
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.snk_hops_obj, ptr %36, i32 0, i32 11
  %38 = getelementptr inbounds [4 x i8], ptr %37, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %38, i8 0, i64 4, i1 false)
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.snk_hops_obj, ptr %39, i32 0, i32 5
  %41 = load ptr, ptr %40, align 8, !tbaa !27
  %42 = getelementptr inbounds %struct.interface_obj, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 8, !tbaa !28
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %52

45:                                               ; preds = %2
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.snk_hops_obj, ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !25
  %49 = getelementptr inbounds %struct.format_obj, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 4, !tbaa !30
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %166, label %52

52:                                               ; preds = %45, %2
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.snk_hops_obj, ptr %53, i32 0, i32 5
  %55 = load ptr, ptr %54, align 8, !tbaa !27
  %56 = getelementptr inbounds %struct.interface_obj, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !28
  %58 = icmp eq i32 %57, 2
  br i1 %58, label %59, label %66

59:                                               ; preds = %52
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.snk_hops_obj, ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !25
  %63 = getelementptr inbounds %struct.format_obj, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 4, !tbaa !30
  %65 = icmp eq i32 %64, 8
  br i1 %65, label %166, label %66

66:                                               ; preds = %59, %52
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.snk_hops_obj, ptr %67, i32 0, i32 5
  %69 = load ptr, ptr %68, align 8, !tbaa !27
  %70 = getelementptr inbounds %struct.interface_obj, ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !28
  %72 = icmp eq i32 %71, 2
  br i1 %72, label %73, label %80

73:                                               ; preds = %66
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.snk_hops_obj, ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !25
  %77 = getelementptr inbounds %struct.format_obj, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !30
  %79 = icmp eq i32 %78, 16
  br i1 %79, label %166, label %80

80:                                               ; preds = %73, %66
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.snk_hops_obj, ptr %81, i32 0, i32 5
  %83 = load ptr, ptr %82, align 8, !tbaa !27
  %84 = getelementptr inbounds %struct.interface_obj, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !28
  %86 = icmp eq i32 %85, 2
  br i1 %86, label %87, label %94

87:                                               ; preds = %80
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.snk_hops_obj, ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !25
  %91 = getelementptr inbounds %struct.format_obj, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 4, !tbaa !30
  %93 = icmp eq i32 %92, 24
  br i1 %93, label %166, label %94

94:                                               ; preds = %87, %80
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.snk_hops_obj, ptr %95, i32 0, i32 5
  %97 = load ptr, ptr %96, align 8, !tbaa !27
  %98 = getelementptr inbounds %struct.interface_obj, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 8, !tbaa !28
  %100 = icmp eq i32 %99, 2
  br i1 %100, label %101, label %108

101:                                              ; preds = %94
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.snk_hops_obj, ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = getelementptr inbounds %struct.format_obj, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 4, !tbaa !30
  %107 = icmp eq i32 %106, 32
  br i1 %107, label %166, label %108

108:                                              ; preds = %101, %94
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.snk_hops_obj, ptr %109, i32 0, i32 5
  %111 = load ptr, ptr %110, align 8, !tbaa !27
  %112 = getelementptr inbounds %struct.interface_obj, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !28
  %114 = icmp eq i32 %113, 3
  br i1 %114, label %115, label %122

115:                                              ; preds = %108
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.snk_hops_obj, ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !25
  %119 = getelementptr inbounds %struct.format_obj, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 4, !tbaa !30
  %121 = icmp eq i32 %120, 8
  br i1 %121, label %166, label %122

122:                                              ; preds = %115, %108
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.snk_hops_obj, ptr %123, i32 0, i32 5
  %125 = load ptr, ptr %124, align 8, !tbaa !27
  %126 = getelementptr inbounds %struct.interface_obj, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !28
  %128 = icmp eq i32 %127, 3
  br i1 %128, label %129, label %136

129:                                              ; preds = %122
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.snk_hops_obj, ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = getelementptr inbounds %struct.format_obj, ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 4, !tbaa !30
  %135 = icmp eq i32 %134, 16
  br i1 %135, label %166, label %136

136:                                              ; preds = %129, %122
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.snk_hops_obj, ptr %137, i32 0, i32 5
  %139 = load ptr, ptr %138, align 8, !tbaa !27
  %140 = getelementptr inbounds %struct.interface_obj, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !28
  %142 = icmp eq i32 %141, 3
  br i1 %142, label %143, label %150

143:                                              ; preds = %136
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.snk_hops_obj, ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !25
  %147 = getelementptr inbounds %struct.format_obj, ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 4, !tbaa !30
  %149 = icmp eq i32 %148, 24
  br i1 %149, label %166, label %150

150:                                              ; preds = %143, %136
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.snk_hops_obj, ptr %151, i32 0, i32 5
  %153 = load ptr, ptr %152, align 8, !tbaa !27
  %154 = getelementptr inbounds %struct.interface_obj, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 8, !tbaa !28
  %156 = icmp eq i32 %155, 3
  br i1 %156, label %157, label %164

157:                                              ; preds = %150
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.snk_hops_obj, ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !25
  %161 = getelementptr inbounds %struct.format_obj, ptr %160, i32 0, i32 0
  %162 = load i32, ptr %161, align 4, !tbaa !30
  %163 = icmp eq i32 %162, 32
  br i1 %163, label %166, label %164

164:                                              ; preds = %157, %150
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @exit(i32 noundef 1) #8
  unreachable

166:                                              ; preds = %157, %143, %129, %115, %101, %87, %73, %59, %45
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.msg_hops_cfg, ptr %167, i32 0, i32 1
  %169 = load i32, ptr %168, align 4, !tbaa !19
  %170 = zext i32 %169 to i64
  %171 = mul i64 1, %170
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.msg_hops_cfg, ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 4, !tbaa !16
  %175 = zext i32 %174 to i64
  %176 = mul i64 %171, %175
  %177 = mul i64 %176, 4
  %178 = call noalias ptr @malloc(i64 noundef %177) #7
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.snk_hops_obj, ptr %179, i32 0, i32 6
  store ptr %178, ptr %180, align 8, !tbaa !32
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.snk_hops_obj, ptr %181, i32 0, i32 6
  %183 = load ptr, ptr %182, align 8, !tbaa !32
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.msg_hops_cfg, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !19
  %187 = zext i32 %186 to i64
  %188 = mul i64 1, %187
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.msg_hops_cfg, ptr %189, i32 0, i32 0
  %191 = load i32, ptr %190, align 4, !tbaa !16
  %192 = zext i32 %191 to i64
  %193 = mul i64 %188, %192
  %194 = mul i64 %193, 4
  call void @llvm.memset.p0.i64(ptr align 1 %183, i8 0, i64 %194, i1 false)
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.snk_hops_obj, ptr %195, i32 0, i32 7
  store i32 0, ptr %196, align 8, !tbaa !33
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.snk_hops_obj, ptr %197, i32 0, i32 12
  store ptr null, ptr %198, align 8, !tbaa !34
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret ptr %199
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

declare ptr @format_clone(ptr noundef) #3

declare ptr @interface_clone(ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; 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 = { nounwind allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 allocsize(0) }
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 0}
!10 = !{!"snk_hops_obj", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !13, i64 64, !12, i64 80, !7, i64 84, !6, i64 88}
!11 = !{!"long long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"sockaddr_in", !14, i64 0, !14, i64 2, !15, i64 4, !7, i64 8}
!14 = !{!"short", !7, i64 0}
!15 = !{!"in_addr", !12, i64 0}
!16 = !{!17, !12, i64 0}
!17 = !{!"msg_hops_cfg", !12, i64 0, !12, i64 4, !12, i64 8}
!18 = !{!10, !12, i64 8}
!19 = !{!17, !12, i64 4}
!20 = !{!10, !12, i64 12}
!21 = !{!22, !12, i64 0}
!22 = !{!"snk_hops_cfg", !12, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!10, !12, i64 16}
!24 = !{!22, !6, i64 8}
!25 = !{!10, !6, i64 24}
!26 = !{!22, !6, i64 16}
!27 = !{!10, !6, i64 32}
!28 = !{!29, !12, i64 0}
!29 = !{!"interface_obj", !12, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 32}
!30 = !{!31, !12, i64 0}
!31 = !{!"format_obj", !12, i64 0}
!32 = !{!10, !6, i64 40}
!33 = !{!10, !12, i64 48}
!34 = !{!10, !6, i64 88}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @snk_hops_construct(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = tail call noalias dereferenceable_or_null(96) ptr @malloc(i64 noundef 96) #7
  store i64 0, ptr %3, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = load <2 x i32>, ptr %1, align 4, !tbaa !15
  store <2 x i32> %5, ptr %4, align 8, !tbaa !15
  %6 = load i32, ptr %0, align 8, !tbaa !16
  %7 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 %6, ptr %7, align 8, !tbaa !18
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !19
  %10 = tail call ptr @format_clone(ptr noundef %9) #8
  %11 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %10, ptr %11, align 8, !tbaa !20
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !21
  %14 = tail call ptr @interface_clone(ptr noundef %13) #8
  %15 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %14, ptr %15, align 8, !tbaa !22
  %16 = getelementptr inbounds i8, ptr %3, i64 84
  store i32 0, ptr %16, align 4
  %17 = load i32, ptr %14, align 8, !tbaa !23
  switch i32 %17, label %.thread46 [
    i32 1, label %18
    i32 2, label %21
    i32 3, label %25
  ]

18:                                               ; preds = %2
  %19 = load i32, ptr %10, align 4, !tbaa !25
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %30, label %.thread46

21:                                               ; preds = %2
  %22 = load i32, ptr %10, align 4, !tbaa !25
  %23 = add i32 %22, -8
  %24 = tail call i32 @llvm.fshl.i32(i32 %23, i32 %23, i32 29)
  %switch = icmp ult i32 %24, 4
  br i1 %switch, label %30, label %.thread46

25:                                               ; preds = %2
  %26 = load i32, ptr %10, align 4, !tbaa !25
  %27 = add i32 %26, -8
  %28 = tail call i32 @llvm.fshl.i32(i32 %27, i32 %27, i32 29)
  %switch50 = icmp ult i32 %28, 4
  br i1 %switch50, label %30, label %.thread46

.thread46:                                        ; preds = %25, %21, %2, %18
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  tail call void @exit(i32 noundef 1) #9
  unreachable

30:                                               ; preds = %25, %21, %18
  %31 = getelementptr inbounds i8, ptr %1, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !27
  %33 = zext i32 %32 to i64
  %34 = load i32, ptr %1, align 4, !tbaa !29
  %35 = zext i32 %34 to i64
  %36 = shl nuw nsw i64 %33, 2
  %37 = mul i64 %36, %35
  %calloc = tail call ptr @calloc(i64 1, i64 %37)
  %38 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %calloc, ptr %38, align 8, !tbaa !30
  %39 = getelementptr inbounds i8, ptr %3, i64 48
  store i32 0, ptr %39, align 8, !tbaa !31
  %40 = getelementptr inbounds i8, ptr %3, i64 88
  store ptr null, ptr %40, align 8, !tbaa !32
  ret ptr %3
}

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

declare ptr @format_clone(ptr noundef) local_unnamed_addr #2

declare ptr @interface_clone(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #6

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { 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 0}
!6 = !{!"snk_hops_obj", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !10, i64 48, !11, i64 56, !12, i64 64, !10, i64 80, !8, i64 84, !11, i64 88}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"sockaddr_in", !13, i64 0, !13, i64 2, !14, i64 4, !8, i64 8}
!13 = !{!"short", !8, i64 0}
!14 = !{!"in_addr", !10, i64 0}
!15 = !{!10, !10, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"snk_hops_cfg", !10, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!6, !10, i64 16}
!19 = !{!17, !11, i64 8}
!20 = !{!6, !11, i64 24}
!21 = !{!17, !11, i64 16}
!22 = !{!6, !11, i64 32}
!23 = !{!24, !10, i64 0}
!24 = !{!"interface_obj", !10, i64 0, !11, i64 8, !11, i64 16, !10, i64 24, !11, i64 32}
!25 = !{!26, !10, i64 0}
!26 = !{!"format_obj", !10, i64 0}
!27 = !{!28, !10, i64 4}
!28 = !{!"msg_hops_cfg", !10, i64 0, !10, i64 4, !10, i64 8}
!29 = !{!28, !10, i64 0}
!30 = !{!6, !11, i64 40}
!31 = !{!6, !10, i64 48}
!32 = !{!6, !11, i64 88}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass