; LLVM IR from sca-secure-library-sca25519/sca25519 :: cw/sca25519_cw (test)

; 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"

@__const.test_curve25519_DH_TV_once.insk_A = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV_once.insk_B = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV_once.correct_pk_A = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV_once.correct_pk_B = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV_once.correct_ss = external hidden unnamed_addr constant [32 x i8], align 16

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

declare i32 @crypto_scalarmult_base_curve25519(ptr noundef, 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare hidden void @flipEndian(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @test_curve25519_DH_TV_once() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [32 x i8], align 16
  %4 = alloca [32 x i8], align 16
  %5 = alloca [32 x i8], align 16
  %6 = alloca [32 x i8], align 16
  %7 = alloca [32 x i8], align 16
  %8 = alloca [32 x i8], align 16
  %9 = alloca [32 x i8], align 16
  %10 = alloca [32 x i8], align 16
  %11 = alloca [32 x i8], align 16
  %12 = alloca [32 x i8], align 16
  %13 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_curve25519_DH_TV_once.insk_A, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_curve25519_DH_TV_once.insk_B, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  %14 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
  %15 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  call void @flipEndian(ptr noundef %14, ptr noundef %15)
  %16 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %17 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
  call void @flipEndian(ptr noundef %16, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.test_curve25519_DH_TV_once.correct_pk_B, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.test_curve25519_DH_TV_once.correct_ss, i64 32, i1 false)
  %18 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %19 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
  %20 = call i32 @crypto_scalarmult_base_curve25519(ptr noundef %18, ptr noundef %19)
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %40, %0
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 32
  br i1 %23, label %24, label %43

24:                                               ; preds = %21
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = zext i8 %28 to i32
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !9
  %34 = zext i8 %33 to i32
  %35 = icmp ne i32 %29, %34
  br i1 %35, label %36, label %39

36:                                               ; preds = %24
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = or i32 %37, 1
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %43

39:                                               ; preds = %24
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %1, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %1, align 4, !tbaa !5
  br label %21, !llvm.loop !10

43:                                               ; preds = %36, %21
  %44 = load i32, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret i32 %44
}

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 }

!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 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; 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"

@__const.test_curve25519_DH_TV_once.insk_A = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV_once.insk_B = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV_once.correct_pk_A = external hidden unnamed_addr constant [32 x i8], align 16

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

declare i32 @crypto_scalarmult_base_curve25519(ptr noundef, 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare hidden void @flipEndian(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @test_curve25519_DH_TV_once() local_unnamed_addr #3 {
  %1 = alloca [32 x i8], align 16
  %2 = alloca [32 x i8], align 16
  %3 = alloca [32 x i8], align 16
  %4 = alloca [32 x i8], align 16
  %5 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %1, ptr noundef nonnull align 16 dereferenceable(32) @__const.test_curve25519_DH_TV_once.insk_A, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull align 16 dereferenceable(32) @__const.test_curve25519_DH_TV_once.insk_B, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @flipEndian(ptr noundef nonnull %3, ptr noundef nonnull %1)
  call void @flipEndian(ptr noundef nonnull %4, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  %6 = call i32 @crypto_scalarmult_base_curve25519(ptr noundef nonnull %5, ptr noundef nonnull %3) #4
  %7 = load i8, ptr %5, align 16, !tbaa !5
  %8 = load i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, align 16, !tbaa !5
  %.not = icmp eq i8 %7, %8
  br i1 %.not, label %9, label %133

9:                                                ; preds = %0
  %10 = getelementptr inbounds i8, ptr %5, i64 1
  %11 = load i8, ptr %10, align 1, !tbaa !5
  %12 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 1), align 1, !tbaa !5
  %.not.1 = icmp eq i8 %11, %12
  br i1 %.not.1, label %13, label %133

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %5, i64 2
  %15 = load i8, ptr %14, align 2, !tbaa !5
  %16 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 2), align 2, !tbaa !5
  %.not.2 = icmp eq i8 %15, %16
  br i1 %.not.2, label %17, label %133

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %5, i64 3
  %19 = load i8, ptr %18, align 1, !tbaa !5
  %20 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 3), align 1, !tbaa !5
  %.not.3 = icmp eq i8 %19, %20
  br i1 %.not.3, label %21, label %133

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %5, i64 4
  %23 = load i8, ptr %22, align 4, !tbaa !5
  %24 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 4), align 4, !tbaa !5
  %.not.4 = icmp eq i8 %23, %24
  br i1 %.not.4, label %25, label %133

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %5, i64 5
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %28 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 5), align 1, !tbaa !5
  %.not.5 = icmp eq i8 %27, %28
  br i1 %.not.5, label %29, label %133

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %5, i64 6
  %31 = load i8, ptr %30, align 2, !tbaa !5
  %32 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 6), align 2, !tbaa !5
  %.not.6 = icmp eq i8 %31, %32
  br i1 %.not.6, label %33, label %133

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %5, i64 7
  %35 = load i8, ptr %34, align 1, !tbaa !5
  %36 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 7), align 1, !tbaa !5
  %.not.7 = icmp eq i8 %35, %36
  br i1 %.not.7, label %37, label %133

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %5, i64 8
  %39 = load i8, ptr %38, align 8, !tbaa !5
  %40 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 8), align 8, !tbaa !5
  %.not.8 = icmp eq i8 %39, %40
  br i1 %.not.8, label %41, label %133

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %5, i64 9
  %43 = load i8, ptr %42, align 1, !tbaa !5
  %44 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 9), align 1, !tbaa !5
  %.not.9 = icmp eq i8 %43, %44
  br i1 %.not.9, label %45, label %133

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %5, i64 10
  %47 = load i8, ptr %46, align 2, !tbaa !5
  %48 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 10), align 2, !tbaa !5
  %.not.10 = icmp eq i8 %47, %48
  br i1 %.not.10, label %49, label %133

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %5, i64 11
  %51 = load i8, ptr %50, align 1, !tbaa !5
  %52 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 11), align 1, !tbaa !5
  %.not.11 = icmp eq i8 %51, %52
  br i1 %.not.11, label %53, label %133

53:                                               ; preds = %49
  %54 = getelementptr inbounds i8, ptr %5, i64 12
  %55 = load i8, ptr %54, align 4, !tbaa !5
  %56 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 12), align 4, !tbaa !5
  %.not.12 = icmp eq i8 %55, %56
  br i1 %.not.12, label %57, label %133

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %5, i64 13
  %59 = load i8, ptr %58, align 1, !tbaa !5
  %60 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 13), align 1, !tbaa !5
  %.not.13 = icmp eq i8 %59, %60
  br i1 %.not.13, label %61, label %133

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %5, i64 14
  %63 = load i8, ptr %62, align 2, !tbaa !5
  %64 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 14), align 2, !tbaa !5
  %.not.14 = icmp eq i8 %63, %64
  br i1 %.not.14, label %65, label %133

65:                                               ; preds = %61
  %66 = getelementptr inbounds i8, ptr %5, i64 15
  %67 = load i8, ptr %66, align 1, !tbaa !5
  %68 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 15), align 1, !tbaa !5
  %.not.15 = icmp eq i8 %67, %68
  br i1 %.not.15, label %69, label %133

69:                                               ; preds = %65
  %70 = getelementptr inbounds i8, ptr %5, i64 16
  %71 = load i8, ptr %70, align 16, !tbaa !5
  %72 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 16), align 16, !tbaa !5
  %.not.16 = icmp eq i8 %71, %72
  br i1 %.not.16, label %73, label %133

73:                                               ; preds = %69
  %74 = getelementptr inbounds i8, ptr %5, i64 17
  %75 = load i8, ptr %74, align 1, !tbaa !5
  %76 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 17), align 1, !tbaa !5
  %.not.17 = icmp eq i8 %75, %76
  br i1 %.not.17, label %77, label %133

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %5, i64 18
  %79 = load i8, ptr %78, align 2, !tbaa !5
  %80 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 18), align 2, !tbaa !5
  %.not.18 = icmp eq i8 %79, %80
  br i1 %.not.18, label %81, label %133

81:                                               ; preds = %77
  %82 = getelementptr inbounds i8, ptr %5, i64 19
  %83 = load i8, ptr %82, align 1, !tbaa !5
  %84 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 19), align 1, !tbaa !5
  %.not.19 = icmp eq i8 %83, %84
  br i1 %.not.19, label %85, label %133

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %5, i64 20
  %87 = load i8, ptr %86, align 4, !tbaa !5
  %88 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 20), align 4, !tbaa !5
  %.not.20 = icmp eq i8 %87, %88
  br i1 %.not.20, label %89, label %133

89:                                               ; preds = %85
  %90 = getelementptr inbounds i8, ptr %5, i64 21
  %91 = load i8, ptr %90, align 1, !tbaa !5
  %92 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 21), align 1, !tbaa !5
  %.not.21 = icmp eq i8 %91, %92
  br i1 %.not.21, label %93, label %133

93:                                               ; preds = %89
  %94 = getelementptr inbounds i8, ptr %5, i64 22
  %95 = load i8, ptr %94, align 2, !tbaa !5
  %96 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 22), align 2, !tbaa !5
  %.not.22 = icmp eq i8 %95, %96
  br i1 %.not.22, label %97, label %133

97:                                               ; preds = %93
  %98 = getelementptr inbounds i8, ptr %5, i64 23
  %99 = load i8, ptr %98, align 1, !tbaa !5
  %100 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 23), align 1, !tbaa !5
  %.not.23 = icmp eq i8 %99, %100
  br i1 %.not.23, label %101, label %133

101:                                              ; preds = %97
  %102 = getelementptr inbounds i8, ptr %5, i64 24
  %103 = load i8, ptr %102, align 8, !tbaa !5
  %104 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 24), align 8, !tbaa !5
  %.not.24 = icmp eq i8 %103, %104
  br i1 %.not.24, label %105, label %133

105:                                              ; preds = %101
  %106 = getelementptr inbounds i8, ptr %5, i64 25
  %107 = load i8, ptr %106, align 1, !tbaa !5
  %108 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 25), align 1, !tbaa !5
  %.not.25 = icmp eq i8 %107, %108
  br i1 %.not.25, label %109, label %133

109:                                              ; preds = %105
  %110 = getelementptr inbounds i8, ptr %5, i64 26
  %111 = load i8, ptr %110, align 2, !tbaa !5
  %112 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 26), align 2, !tbaa !5
  %.not.26 = icmp eq i8 %111, %112
  br i1 %.not.26, label %113, label %133

113:                                              ; preds = %109
  %114 = getelementptr inbounds i8, ptr %5, i64 27
  %115 = load i8, ptr %114, align 1, !tbaa !5
  %116 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 27), align 1, !tbaa !5
  %.not.27 = icmp eq i8 %115, %116
  br i1 %.not.27, label %117, label %133

117:                                              ; preds = %113
  %118 = getelementptr inbounds i8, ptr %5, i64 28
  %119 = load i8, ptr %118, align 4, !tbaa !5
  %120 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 28), align 4, !tbaa !5
  %.not.28 = icmp eq i8 %119, %120
  br i1 %.not.28, label %121, label %133

121:                                              ; preds = %117
  %122 = getelementptr inbounds i8, ptr %5, i64 29
  %123 = load i8, ptr %122, align 1, !tbaa !5
  %124 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 29), align 1, !tbaa !5
  %.not.29 = icmp eq i8 %123, %124
  br i1 %.not.29, label %125, label %133

125:                                              ; preds = %121
  %126 = getelementptr inbounds i8, ptr %5, i64 30
  %127 = load i8, ptr %126, align 2, !tbaa !5
  %128 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 30), align 2, !tbaa !5
  %.not.30 = icmp eq i8 %127, %128
  br i1 %.not.30, label %129, label %133

129:                                              ; preds = %125
  %130 = getelementptr inbounds i8, ptr %5, i64 31
  %131 = load i8, ptr %130, align 1, !tbaa !5
  %132 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV_once.correct_pk_A, i64 31), align 1, !tbaa !5
  %.not.31 = icmp ne i8 %131, %132
  %spec.select = zext i1 %.not.31 to i32
  br label %133

133:                                              ; preds = %129, %125, %121, %117, %113, %109, %105, %101, %97, %93, %89, %85, %81, %77, %73, %69, %65, %61, %57, %53, %49, %45, %41, %37, %33, %29, %25, %21, %17, %13, %9, %0
  %.06 = phi i32 [ 1, %0 ], [ 1, %9 ], [ 1, %13 ], [ 1, %17 ], [ 1, %21 ], [ 1, %25 ], [ 1, %29 ], [ 1, %33 ], [ 1, %37 ], [ 1, %41 ], [ 1, %45 ], [ 1, %49 ], [ 1, %53 ], [ 1, %57 ], [ 1, %61 ], [ 1, %65 ], [ 1, %69 ], [ 1, %73 ], [ 1, %77 ], [ 1, %81 ], [ 1, %85 ], [ 1, %89 ], [ 1, %93 ], [ 1, %97 ], [ 1, %101 ], [ 1, %105 ], [ 1, %109 ], [ 1, %113 ], [ 1, %117 ], [ 1, %121 ], [ 1, %125 ], [ %spec.select, %129 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #4
  ret i32 %.06
}

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}


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