; LLVM IR from Discngine/fpocket :: src (fparams)

; 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.s_fparams = type { [2000 x i8], [2000 x i8], [2000 x i8], [8000 x i8], ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i8, i8, i32, i32, i16, i32, i32, i32, i16, i32, i32, i32, i16, float, float, float, float, float, [20 x ptr], i16, i16, [20 x ptr], i32, [10 x i8] }

@.str.75 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [26 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @print_fparams(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8, !tbaa !5
  %6 = icmp ne ptr %5, null
  br i1 %6, label %7, label %73

7:                                                ; preds = %2
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef @.str.75) #2
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.s_fparams, ptr %11, i32 0, i32 27
  %13 = load float, ptr %12, align 8, !tbaa !9
  %14 = fpext float %13 to double
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str.76, double noundef %14) #2
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.s_fparams, ptr %17, i32 0, i32 29
  %19 = load float, ptr %18, align 8, !tbaa !14
  %20 = fpext float %19 to double
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.77, double noundef %20) #2
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.s_fparams, ptr %23, i32 0, i32 21
  %25 = load i32, ptr %24, align 8, !tbaa !15
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.78, i32 noundef %25) #2
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.s_fparams, ptr %28, i32 0, i32 25
  %30 = load float, ptr %29, align 8, !tbaa !16
  %31 = fpext float %30 to double
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.79, double noundef %31) #2
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.s_fparams, ptr %34, i32 0, i32 13
  %36 = load i8, ptr %35, align 1, !tbaa !17
  %37 = sext i8 %36 to i32
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.80, i32 noundef %37) #2
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.s_fparams, ptr %40, i32 0, i32 26
  %42 = load float, ptr %41, align 4, !tbaa !18
  %43 = fpext float %42 to double
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.81, double noundef %43) #2
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.s_fparams, ptr %46, i32 0, i32 22
  %48 = load i32, ptr %47, align 4, !tbaa !19
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.82, i32 noundef %48) #2
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.s_fparams, ptr %51, i32 0, i32 23
  %53 = load i32, ptr %52, align 8, !tbaa !20
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.83, i32 noundef %53) #2
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.s_fparams, ptr %56, i32 0, i32 20
  %58 = load i16, ptr %57, align 4, !tbaa !21
  %59 = zext i16 %58 to i32
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.84, i32 noundef %59) #2
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.s_fparams, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds [2000 x i8], ptr %63, i64 0, i64 0
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.85, ptr noundef %64) #2
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.s_fparams, ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds [2000 x i8], ptr %68, i64 0, i64 0
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.86, ptr noundef %69) #2
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.87) #2
  br label %76

73:                                               ; preds = %2
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.88) #2
  br label %76

76:                                               ; preds = %73, %7
  ret void
}

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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, !13, i64 14112}
!10 = !{!"s_fparams", !7, i64 0, !7, i64 2000, !7, i64 4000, !7, i64 6000, !6, i64 14000, !6, i64 14008, !6, i64 14016, !11, i64 14024, !11, i64 14028, !6, i64 14032, !6, i64 14040, !6, i64 14048, !7, i64 14056, !7, i64 14057, !11, i64 14060, !11, i64 14064, !12, i64 14068, !11, i64 14072, !11, i64 14076, !11, i64 14080, !12, i64 14084, !11, i64 14088, !11, i64 14092, !11, i64 14096, !12, i64 14100, !13, i64 14104, !13, i64 14108, !13, i64 14112, !13, i64 14116, !13, i64 14120, !7, i64 14128, !12, i64 14288, !12, i64 14290, !7, i64 14296, !11, i64 14456, !7, i64 14460}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!10, !13, i64 14120}
!15 = !{!10, !11, i64 14088}
!16 = !{!10, !13, i64 14104}
!17 = !{!10, !7, i64 14057}
!18 = !{!10, !13, i64 14108}
!19 = !{!10, !11, i64 14092}
!20 = !{!10, !11, i64 14096}
!21 = !{!10, !12, i64 14084}


; 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.75 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [26 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @print_fparams(ptr noundef %0, ptr nocapture noundef %1) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %41, label %3

3:                                                ; preds = %2
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.75) #2
  %5 = getelementptr inbounds i8, ptr %0, i64 14112
  %6 = load float, ptr %5, align 8, !tbaa !5
  %7 = fpext float %6 to double
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.76, double noundef %7) #2
  %9 = getelementptr inbounds i8, ptr %0, i64 14120
  %10 = load float, ptr %9, align 8, !tbaa !13
  %11 = fpext float %10 to double
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.77, double noundef %11) #2
  %13 = getelementptr inbounds i8, ptr %0, i64 14088
  %14 = load i32, ptr %13, align 8, !tbaa !14
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.78, i32 noundef %14) #2
  %16 = getelementptr inbounds i8, ptr %0, i64 14104
  %17 = load float, ptr %16, align 8, !tbaa !15
  %18 = fpext float %17 to double
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.79, double noundef %18) #2
  %20 = getelementptr inbounds i8, ptr %0, i64 14057
  %21 = load i8, ptr %20, align 1, !tbaa !16
  %22 = sext i8 %21 to i32
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.80, i32 noundef %22) #2
  %24 = getelementptr inbounds i8, ptr %0, i64 14108
  %25 = load float, ptr %24, align 4, !tbaa !17
  %26 = fpext float %25 to double
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.81, double noundef %26) #2
  %28 = getelementptr inbounds i8, ptr %0, i64 14092
  %29 = load i32, ptr %28, align 4, !tbaa !18
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.82, i32 noundef %29) #2
  %31 = getelementptr inbounds i8, ptr %0, i64 14096
  %32 = load i32, ptr %31, align 8, !tbaa !19
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.83, i32 noundef %32) #2
  %34 = getelementptr inbounds i8, ptr %0, i64 14084
  %35 = load i16, ptr %34, align 4, !tbaa !20
  %36 = zext i16 %35 to i32
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.84, i32 noundef %36) #2
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.85, ptr noundef nonnull %0) #2
  %39 = getelementptr inbounds i8, ptr %0, i64 2000
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.86, ptr noundef nonnull %39) #2
  br label %41

41:                                               ; preds = %2, %3
  %.str.88.sink = phi ptr [ @.str.87, %3 ], [ @.str.88, %2 ]
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull %.str.88.sink) #2
  ret void
}

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree 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 #2 = { 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, !12, i64 14112}
!6 = !{!"s_fparams", !7, i64 0, !7, i64 2000, !7, i64 4000, !7, i64 6000, !9, i64 14000, !9, i64 14008, !9, i64 14016, !10, i64 14024, !10, i64 14028, !9, i64 14032, !9, i64 14040, !9, i64 14048, !7, i64 14056, !7, i64 14057, !10, i64 14060, !10, i64 14064, !11, i64 14068, !10, i64 14072, !10, i64 14076, !10, i64 14080, !11, i64 14084, !10, i64 14088, !10, i64 14092, !10, i64 14096, !11, i64 14100, !12, i64 14104, !12, i64 14108, !12, i64 14112, !12, i64 14116, !12, i64 14120, !7, i64 14128, !11, i64 14288, !11, i64 14290, !7, i64 14296, !10, i64 14456, !7, i64 14460}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!6, !12, i64 14120}
!14 = !{!6, !10, i64 14088}
!15 = !{!6, !12, i64 14104}
!16 = !{!6, !7, i64 14057}
!17 = !{!6, !12, i64 14108}
!18 = !{!6, !10, i64 14092}
!19 = !{!6, !10, i64 14096}
!20 = !{!6, !11, i64 14084}


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