; LLVM IR from dynexcoin/Dynex :: external/miniupnpc (upnpcommands)

; 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.NameValueParserData = type { ptr, [64 x i8], ptr, i32, i32, ptr, i32 }
%struct.UPNParg = type { ptr, ptr }

@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [15 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

declare ptr @simpleUPnPcommand(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @ParseNameValue(ptr noundef, i32 noundef, ptr noundef) #1

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

declare ptr @GetValueFromNameValueList(ptr noundef, ptr noundef) #1

declare void @ClearNameValueList(ptr noundef) #1

; 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 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @UPNP_AddPortMapping(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %struct.NameValueParserData, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 104, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %38

29:                                               ; preds = %9
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  %33 = load ptr, ptr %17, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %39, label %38

38:                                               ; preds = %35, %32, %29, %9
  store i32 -2, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %133

39:                                               ; preds = %35
  %40 = call noalias ptr @calloc(i64 noundef 9, i64 noundef 16) #6
  store ptr %40, ptr %20, align 8, !tbaa !5
  %41 = load ptr, ptr %20, align 8, !tbaa !5
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %44

43:                                               ; preds = %39
  store i32 -5, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %133

44:                                               ; preds = %39
  %45 = load ptr, ptr %20, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.UPNParg, ptr %45, i64 0
  %47 = getelementptr inbounds %struct.UPNParg, ptr %46, i32 0, i32 0
  store ptr @.str.22, ptr %47, align 8, !tbaa !9
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  %49 = load ptr, ptr %20, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.UPNParg, ptr %49, i64 0
  %51 = getelementptr inbounds %struct.UPNParg, ptr %50, i32 0, i32 1
  store ptr %48, ptr %51, align 8, !tbaa !11
  %52 = load ptr, ptr %20, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.UPNParg, ptr %52, i64 1
  %54 = getelementptr inbounds %struct.UPNParg, ptr %53, i32 0, i32 0
  store ptr @.str.23, ptr %54, align 8, !tbaa !9
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = load ptr, ptr %20, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.UPNParg, ptr %56, i64 1
  %58 = getelementptr inbounds %struct.UPNParg, ptr %57, i32 0, i32 1
  store ptr %55, ptr %58, align 8, !tbaa !11
  %59 = load ptr, ptr %20, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.UPNParg, ptr %59, i64 2
  %61 = getelementptr inbounds %struct.UPNParg, ptr %60, i32 0, i32 0
  store ptr @.str.24, ptr %61, align 8, !tbaa !9
  %62 = load ptr, ptr %17, align 8, !tbaa !5
  %63 = load ptr, ptr %20, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.UPNParg, ptr %63, i64 2
  %65 = getelementptr inbounds %struct.UPNParg, ptr %64, i32 0, i32 1
  store ptr %62, ptr %65, align 8, !tbaa !11
  %66 = load ptr, ptr %20, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.UPNParg, ptr %66, i64 3
  %68 = getelementptr inbounds %struct.UPNParg, ptr %67, i32 0, i32 0
  store ptr @.str.25, ptr %68, align 8, !tbaa !9
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %20, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.UPNParg, ptr %70, i64 3
  %72 = getelementptr inbounds %struct.UPNParg, ptr %71, i32 0, i32 1
  store ptr %69, ptr %72, align 8, !tbaa !11
  %73 = load ptr, ptr %20, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.UPNParg, ptr %73, i64 4
  %75 = getelementptr inbounds %struct.UPNParg, ptr %74, i32 0, i32 0
  store ptr @.str.26, ptr %75, align 8, !tbaa !9
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  %77 = load ptr, ptr %20, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.UPNParg, ptr %77, i64 4
  %79 = getelementptr inbounds %struct.UPNParg, ptr %78, i32 0, i32 1
  store ptr %76, ptr %79, align 8, !tbaa !11
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.UPNParg, ptr %80, i64 5
  %82 = getelementptr inbounds %struct.UPNParg, ptr %81, i32 0, i32 0
  store ptr @.str.27, ptr %82, align 8, !tbaa !9
  %83 = load ptr, ptr %20, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.UPNParg, ptr %83, i64 5
  %85 = getelementptr inbounds %struct.UPNParg, ptr %84, i32 0, i32 1
  store ptr @.str.28, ptr %85, align 8, !tbaa !11
  %86 = load ptr, ptr %20, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.UPNParg, ptr %86, i64 6
  %88 = getelementptr inbounds %struct.UPNParg, ptr %87, i32 0, i32 0
  store ptr @.str.29, ptr %88, align 8, !tbaa !9
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %93

91:                                               ; preds = %44
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  br label %94

93:                                               ; preds = %44
  br label %94

94:                                               ; preds = %93, %91
  %95 = phi ptr [ %92, %91 ], [ @.str.30, %93 ]
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.UPNParg, ptr %96, i64 6
  %98 = getelementptr inbounds %struct.UPNParg, ptr %97, i32 0, i32 1
  store ptr %95, ptr %98, align 8, !tbaa !11
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.UPNParg, ptr %99, i64 7
  %101 = getelementptr inbounds %struct.UPNParg, ptr %100, i32 0, i32 0
  store ptr @.str.31, ptr %101, align 8, !tbaa !9
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %106

104:                                              ; preds = %94
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  br label %107

106:                                              ; preds = %94
  br label %107

107:                                              ; preds = %106, %104
  %108 = phi ptr [ %105, %104 ], [ @.str.32, %106 ]
  %109 = load ptr, ptr %20, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.UPNParg, ptr %109, i64 7
  %111 = getelementptr inbounds %struct.UPNParg, ptr %110, i32 0, i32 1
  store ptr %108, ptr %111, align 8, !tbaa !11
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = load ptr, ptr %20, align 8, !tbaa !5
  %115 = call ptr @simpleUPnPcommand(i32 noundef -1, ptr noundef %112, ptr noundef %113, ptr noundef @.str.33, ptr noundef %114, ptr noundef %22)
  store ptr %115, ptr %21, align 8, !tbaa !5
  %116 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %116) #5
  %117 = load ptr, ptr %21, align 8, !tbaa !5
  %118 = icmp ne ptr %117, null
  br i1 %118, label %120, label %119

119:                                              ; preds = %107
  store i32 -3, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %133

120:                                              ; preds = %107
  %121 = load ptr, ptr %21, align 8, !tbaa !5
  %122 = load i32, ptr %22, align 4, !tbaa !12
  call void @ParseNameValue(ptr noundef %121, i32 noundef %122, ptr noundef %23)
  %123 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %123) #5
  %124 = call ptr @GetValueFromNameValueList(ptr noundef %23, ptr noundef @.str.13)
  store ptr %124, ptr %24, align 8, !tbaa !5
  %125 = load ptr, ptr %24, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %130

127:                                              ; preds = %120
  store i32 -1, ptr %25, align 4, !tbaa !12
  %128 = load ptr, ptr %24, align 8, !tbaa !5
  %129 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %128, ptr noundef @.str.14, ptr noundef %25) #5
  br label %131

130:                                              ; preds = %120
  store i32 0, ptr %25, align 4, !tbaa !12
  br label %131

131:                                              ; preds = %130, %127
  call void @ClearNameValueList(ptr noundef %23)
  %132 = load i32, ptr %25, align 4, !tbaa !12
  store i32 %132, ptr %10, align 4
  store i32 1, ptr %26, align 4
  br label %133

133:                                              ; preds = %131, %119, %43, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %134 = load i32, ptr %10, align 4
  ret i32 %134
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nounwind allocsize(0,1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }

!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 = !{!"UPNParg", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}


; 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.NameValueParserData = type { ptr, [64 x i8], ptr, i32, i32, ptr, i32 }

@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [15 x i8], align 1

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

declare ptr @simpleUPnPcommand(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @ParseNameValue(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

declare ptr @GetValueFromNameValueList(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @ClearNameValueList(ptr noundef) local_unnamed_addr #1

; 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 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local i32 @UPNP_AddPortMapping(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #4 {
  %10 = alloca i32, align 4
  %11 = alloca %struct.NameValueParserData, align 8
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %13 = insertelement <4 x ptr> poison, ptr %3, i64 0
  %14 = insertelement <4 x ptr> %13, ptr %4, i64 1
  %15 = insertelement <4 x ptr> %14, ptr %6, i64 2
  %16 = insertelement <4 x ptr> %15, ptr %2, i64 3
  %17 = icmp eq <4 x ptr> %16, zeroinitializer
  %18 = bitcast <4 x i1> %17 to i4
  %19 = icmp eq i4 %18, 0
  br i1 %19, label %20, label %50

20:                                               ; preds = %9
  %21 = tail call noalias dereferenceable_or_null(144) ptr @calloc(i64 noundef 9, i64 noundef 16) #7
  %22 = icmp eq ptr %21, null
  br i1 %22, label %50, label %23

23:                                               ; preds = %20
  store ptr @.str.22, ptr %21, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %21, i64 8
  store ptr %7, ptr %24, align 8, !tbaa !10
  %25 = getelementptr inbounds i8, ptr %21, i64 16
  store ptr @.str.23, ptr %25, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %21, i64 24
  store ptr %2, ptr %26, align 8, !tbaa !10
  %27 = getelementptr inbounds i8, ptr %21, i64 32
  store ptr @.str.24, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %21, i64 40
  store ptr %6, ptr %28, align 8, !tbaa !10
  %29 = getelementptr inbounds i8, ptr %21, i64 48
  store ptr @.str.25, ptr %29, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %21, i64 56
  store ptr %3, ptr %30, align 8, !tbaa !10
  %31 = getelementptr inbounds i8, ptr %21, i64 64
  store ptr @.str.26, ptr %31, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %21, i64 72
  store ptr %4, ptr %32, align 8, !tbaa !10
  %33 = getelementptr inbounds i8, ptr %21, i64 80
  store ptr @.str.27, ptr %33, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %21, i64 88
  store ptr @.str.28, ptr %34, align 8, !tbaa !10
  %35 = getelementptr inbounds i8, ptr %21, i64 96
  store ptr @.str.29, ptr %35, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  %36 = select i1 %.not, ptr @.str.30, ptr %5
  %37 = getelementptr inbounds i8, ptr %21, i64 104
  store ptr %36, ptr %37, align 8, !tbaa !10
  %38 = getelementptr inbounds i8, ptr %21, i64 112
  store ptr @.str.31, ptr %38, align 8, !tbaa !5
  %.not51 = icmp eq ptr %8, null
  %39 = select i1 %.not51, ptr @.str.32, ptr %8
  %40 = getelementptr inbounds i8, ptr %21, i64 120
  store ptr %39, ptr %40, align 8, !tbaa !10
  %41 = call ptr @simpleUPnPcommand(i32 noundef -1, ptr noundef %0, ptr noundef %1, ptr noundef nonnull @.str.33, ptr noundef nonnull %21, ptr noundef nonnull %10) #6
  call void @free(ptr noundef nonnull %21) #6
  %.not52 = icmp eq ptr %41, null
  br i1 %.not52, label %50, label %42

42:                                               ; preds = %23
  %43 = load i32, ptr %10, align 4, !tbaa !11
  call void @ParseNameValue(ptr noundef nonnull %41, i32 noundef %43, ptr noundef nonnull %11) #6
  call void @free(ptr noundef nonnull %41) #6
  %44 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %11, ptr noundef nonnull @.str.13) #6
  %.not53 = icmp eq ptr %44, null
  br i1 %.not53, label %47, label %45

45:                                               ; preds = %42
  store i32 -1, ptr %12, align 4, !tbaa !11
  %46 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %44, ptr noundef nonnull @.str.14, ptr noundef nonnull %12) #6
  br label %48

47:                                               ; preds = %42
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %48

48:                                               ; preds = %47, %45
  call void @ClearNameValueList(ptr noundef nonnull %11) #6
  %49 = load i32, ptr %12, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %23, %20, %9, %48
  %.0 = phi i32 [ %49, %48 ], [ -2, %9 ], [ -5, %20 ], [ -3, %23 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  ret i32 %.0
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 #5 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }

!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 = !{!"UPNParg", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass