; 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.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [27 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 ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #2

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

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

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

33:                                               ; preds = %11
  store i32 -2, ptr %12, align 4
  store i32 1, ptr %30, align 4
  br label %169

34:                                               ; preds = %11
  %35 = load ptr, ptr %17, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 0
  store i8 0, ptr %36, align 1, !tbaa !11
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 0
  store i8 0, ptr %38, align 1, !tbaa !11
  %39 = call noalias ptr @calloc(i64 noundef 2, i64 noundef 16) #6
  store ptr %39, ptr %25, align 8, !tbaa !5
  %40 = load ptr, ptr %25, align 8, !tbaa !5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %43

42:                                               ; preds = %34
  store i32 -5, ptr %12, align 4
  store i32 1, ptr %30, align 4
  br label %169

43:                                               ; preds = %34
  %44 = load ptr, ptr %25, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.UPNParg, ptr %44, i64 0
  %46 = getelementptr inbounds %struct.UPNParg, ptr %45, i32 0, i32 0
  store ptr @.str.41, ptr %46, align 8, !tbaa !12
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  %48 = load ptr, ptr %25, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.UPNParg, ptr %48, i64 0
  %50 = getelementptr inbounds %struct.UPNParg, ptr %49, i32 0, i32 1
  store ptr %47, ptr %50, align 8, !tbaa !14
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  %53 = load ptr, ptr %25, align 8, !tbaa !5
  %54 = call ptr @simpleUPnPcommand(i32 noundef -1, ptr noundef %51, ptr noundef %52, ptr noundef @.str.42, ptr noundef %53, ptr noundef %27)
  store ptr %54, ptr %26, align 8, !tbaa !5
  %55 = load ptr, ptr %25, align 8, !tbaa !5
  call void @free(ptr noundef %55) #5
  %56 = load ptr, ptr %26, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %59, label %58

58:                                               ; preds = %43
  store i32 -3, ptr %12, align 4
  store i32 1, ptr %30, align 4
  br label %169

59:                                               ; preds = %43
  %60 = load ptr, ptr %26, align 8, !tbaa !5
  %61 = load i32, ptr %27, align 4, !tbaa !9
  call void @ParseNameValue(ptr noundef %60, i32 noundef %61, ptr noundef %24)
  %62 = load ptr, ptr %26, align 8, !tbaa !5
  call void @free(ptr noundef %62) #5
  %63 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.22)
  store ptr %63, ptr %28, align 8, !tbaa !5
  %64 = load ptr, ptr %28, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %75

66:                                               ; preds = %59
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %75

69:                                               ; preds = %66
  %70 = load ptr, ptr %22, align 8, !tbaa !5
  %71 = load ptr, ptr %28, align 8, !tbaa !5
  %72 = call ptr @strncpy(ptr noundef %70, ptr noundef %71, i64 noundef 64) #5
  %73 = load ptr, ptr %22, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 63
  store i8 0, ptr %74, align 1, !tbaa !11
  br label %75

75:                                               ; preds = %69, %66, %59
  %76 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.23)
  store ptr %76, ptr %28, align 8, !tbaa !5
  %77 = load ptr, ptr %28, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %88

79:                                               ; preds = %75
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %88

82:                                               ; preds = %79
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = load ptr, ptr %28, align 8, !tbaa !5
  %85 = call ptr @strncpy(ptr noundef %83, ptr noundef %84, i64 noundef 6) #5
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 5
  store i8 0, ptr %87, align 1, !tbaa !11
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %82, %79, %75
  %89 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.24)
  store ptr %89, ptr %28, align 8, !tbaa !5
  %90 = load ptr, ptr %28, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %101

92:                                               ; preds = %88
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %101

95:                                               ; preds = %92
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = load ptr, ptr %28, align 8, !tbaa !5
  %98 = call ptr @strncpy(ptr noundef %96, ptr noundef %97, i64 noundef 4) #5
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 3
  store i8 0, ptr %100, align 1, !tbaa !11
  br label %101

101:                                              ; preds = %95, %92, %88
  %102 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.26)
  store ptr %102, ptr %28, align 8, !tbaa !5
  %103 = load ptr, ptr %28, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %111

105:                                              ; preds = %101
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = load ptr, ptr %28, align 8, !tbaa !5
  %108 = call ptr @strncpy(ptr noundef %106, ptr noundef %107, i64 noundef 16) #5
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 15
  store i8 0, ptr %110, align 1, !tbaa !11
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %105, %101
  %112 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.25)
  store ptr %112, ptr %28, align 8, !tbaa !5
  %113 = load ptr, ptr %28, align 8, !tbaa !5
  %114 = icmp ne ptr %113, null
  br i1 %114, label %115, label %121

115:                                              ; preds = %111
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  %117 = load ptr, ptr %28, align 8, !tbaa !5
  %118 = call ptr @strncpy(ptr noundef %116, ptr noundef %117, i64 noundef 6) #5
  %119 = load ptr, ptr %18, align 8, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %119, i64 5
  store i8 0, ptr %120, align 1, !tbaa !11
  br label %121

121:                                              ; preds = %115, %111
  %122 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.27)
  store ptr %122, ptr %28, align 8, !tbaa !5
  %123 = load ptr, ptr %28, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %134

125:                                              ; preds = %121
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %134

128:                                              ; preds = %125
  %129 = load ptr, ptr %21, align 8, !tbaa !5
  %130 = load ptr, ptr %28, align 8, !tbaa !5
  %131 = call ptr @strncpy(ptr noundef %129, ptr noundef %130, i64 noundef 4) #5
  %132 = load ptr, ptr %21, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 3
  store i8 0, ptr %133, align 1, !tbaa !11
  br label %134

134:                                              ; preds = %128, %125, %121
  %135 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.29)
  store ptr %135, ptr %28, align 8, !tbaa !5
  %136 = load ptr, ptr %28, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %147

138:                                              ; preds = %134
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  %140 = icmp ne ptr %139, null
  br i1 %140, label %141, label %147

141:                                              ; preds = %138
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  %143 = load ptr, ptr %28, align 8, !tbaa !5
  %144 = call ptr @strncpy(ptr noundef %142, ptr noundef %143, i64 noundef 80) #5
  %145 = load ptr, ptr %20, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 79
  store i8 0, ptr %146, align 1, !tbaa !11
  br label %147

147:                                              ; preds = %141, %138, %134
  %148 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.31)
  store ptr %148, ptr %28, align 8, !tbaa !5
  %149 = load ptr, ptr %28, align 8, !tbaa !5
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %160

151:                                              ; preds = %147
  %152 = load ptr, ptr %23, align 8, !tbaa !5
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %160

154:                                              ; preds = %151
  %155 = load ptr, ptr %23, align 8, !tbaa !5
  %156 = load ptr, ptr %28, align 8, !tbaa !5
  %157 = call ptr @strncpy(ptr noundef %155, ptr noundef %156, i64 noundef 16) #5
  %158 = load ptr, ptr %23, align 8, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %158, i64 15
  store i8 0, ptr %159, align 1, !tbaa !11
  br label %160

160:                                              ; preds = %154, %151, %147
  %161 = call ptr @GetValueFromNameValueList(ptr noundef %24, ptr noundef @.str.13)
  store ptr %161, ptr %28, align 8, !tbaa !5
  %162 = load ptr, ptr %28, align 8, !tbaa !5
  %163 = icmp ne ptr %162, null
  br i1 %163, label %164, label %167

164:                                              ; preds = %160
  store i32 -1, ptr %29, align 4, !tbaa !9
  %165 = load ptr, ptr %28, align 8, !tbaa !5
  %166 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %165, ptr noundef @.str.14, ptr noundef %29) #5
  br label %167

167:                                              ; preds = %164, %160
  call void @ClearNameValueList(ptr noundef %24)
  %168 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %168, ptr %12, align 4
  store i32 1, ptr %30, align 4
  br label %169

169:                                              ; preds = %167, %58, %42, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %24) #5
  %170 = load i32, ptr %12, align 4
  ret i32 %170
}

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


; 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.29 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [27 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: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #3

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

; 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

; Function Attrs: nounwind uwtable
define dso_local i32 @UPNP_GetGenericPortMappingEntry(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, ptr noundef %9, ptr noundef %10) local_unnamed_addr #6 {
  %12 = alloca %struct.NameValueParserData, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  store i32 -1, ptr %14, align 4, !tbaa !5
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %80, label %15

15:                                               ; preds = %11
  store i8 0, ptr %4, align 1, !tbaa !9
  store i8 0, ptr %5, align 1, !tbaa !9
  %16 = tail call noalias dereferenceable_or_null(32) ptr @calloc(i64 noundef 2, i64 noundef 16) #8
  %17 = icmp eq ptr %16, null
  br i1 %17, label %80, label %18

18:                                               ; preds = %15
  store ptr @.str.41, ptr %16, align 8, !tbaa !10
  %19 = getelementptr inbounds i8, ptr %16, i64 8
  store ptr %2, ptr %19, align 8, !tbaa !13
  %20 = call ptr @simpleUPnPcommand(i32 noundef -1, ptr noundef %0, ptr noundef %1, ptr noundef nonnull @.str.42, ptr noundef nonnull %16, ptr noundef nonnull %13) #7
  call void @free(ptr noundef nonnull %16) #7
  %.not83 = icmp eq ptr %20, null
  br i1 %.not83, label %80, label %21

21:                                               ; preds = %18
  %22 = load i32, ptr %13, align 4, !tbaa !5
  call void @ParseNameValue(ptr noundef nonnull %20, i32 noundef %22, ptr noundef nonnull %12) #7
  call void @free(ptr noundef nonnull %20) #7
  %23 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.22) #7
  %24 = icmp ne ptr %23, null
  %25 = icmp ne ptr %9, null
  %or.cond = and i1 %25, %24
  br i1 %or.cond, label %26, label %29

26:                                               ; preds = %21
  %27 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) %23, i64 noundef 64) #7
  %28 = getelementptr inbounds i8, ptr %9, i64 63
  store i8 0, ptr %28, align 1, !tbaa !9
  br label %29

29:                                               ; preds = %26, %21
  %30 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.23) #7
  %31 = icmp ne ptr %30, null
  %32 = icmp ne ptr %3, null
  %or.cond3 = and i1 %32, %31
  br i1 %or.cond3, label %33, label %36

33:                                               ; preds = %29
  %34 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %30, i64 noundef 6) #7
  %35 = getelementptr inbounds i8, ptr %3, i64 5
  store i8 0, ptr %35, align 1, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %33, %29
  %37 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.24) #7
  %38 = icmp ne ptr %37, null
  %39 = icmp ne ptr %6, null
  %or.cond5 = and i1 %39, %38
  br i1 %or.cond5, label %40, label %43

40:                                               ; preds = %36
  %41 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %37, i64 noundef 4) #7
  %42 = getelementptr inbounds i8, ptr %6, i64 3
  store i8 0, ptr %42, align 1, !tbaa !9
  br label %43

43:                                               ; preds = %40, %36
  %44 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.26) #7
  %.not84 = icmp eq ptr %44, null
  br i1 %.not84, label %48, label %45

45:                                               ; preds = %43
  %46 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %44, i64 noundef 16) #7
  %47 = getelementptr inbounds i8, ptr %4, i64 15
  store i8 0, ptr %47, align 1, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %45, %43
  %49 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.25) #7
  %.not85 = icmp eq ptr %49, null
  br i1 %.not85, label %53, label %50

50:                                               ; preds = %48
  %51 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %49, i64 noundef 6) #7
  %52 = getelementptr inbounds i8, ptr %5, i64 5
  store i8 0, ptr %52, align 1, !tbaa !9
  br label %53

53:                                               ; preds = %50, %48
  %54 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.27) #7
  %55 = icmp ne ptr %54, null
  %56 = icmp ne ptr %8, null
  %or.cond7 = and i1 %56, %55
  br i1 %or.cond7, label %57, label %60

57:                                               ; preds = %53
  %58 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) %54, i64 noundef 4) #7
  %59 = getelementptr inbounds i8, ptr %8, i64 3
  store i8 0, ptr %59, align 1, !tbaa !9
  br label %60

60:                                               ; preds = %57, %53
  %61 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.29) #7
  %62 = icmp ne ptr %61, null
  %63 = icmp ne ptr %7, null
  %or.cond9 = and i1 %63, %62
  br i1 %or.cond9, label %64, label %67

64:                                               ; preds = %60
  %65 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %61, i64 noundef 80) #7
  %66 = getelementptr inbounds i8, ptr %7, i64 79
  store i8 0, ptr %66, align 1, !tbaa !9
  br label %67

67:                                               ; preds = %64, %60
  %68 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.31) #7
  %69 = icmp ne ptr %68, null
  %70 = icmp ne ptr %10, null
  %or.cond11 = and i1 %70, %69
  br i1 %or.cond11, label %71, label %74

71:                                               ; preds = %67
  %72 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %10, ptr noundef nonnull dereferenceable(1) %68, i64 noundef 16) #7
  %73 = getelementptr inbounds i8, ptr %10, i64 15
  store i8 0, ptr %73, align 1, !tbaa !9
  br label %74

74:                                               ; preds = %71, %67
  %75 = call ptr @GetValueFromNameValueList(ptr noundef nonnull %12, ptr noundef nonnull @.str.13) #7
  %.not86 = icmp eq ptr %75, null
  br i1 %.not86, label %78, label %76

76:                                               ; preds = %74
  store i32 -1, ptr %14, align 4, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %75, ptr noundef nonnull @.str.14, ptr noundef nonnull %14) #7
  br label %78

78:                                               ; preds = %76, %74
  call void @ClearNameValueList(ptr noundef nonnull %12) #7
  %79 = load i32, ptr %14, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %18, %15, %11, %78
  %.0 = phi i32 [ %79, %78 ], [ -2, %11 ], [ -5, %15 ], [ -3, %18 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %12) #7
  ret i32 %.0
}

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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #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 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"UPNParg", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!11, !12, i64 8}


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