; LLVM IR from sca-secure-library-sca25519/sca25519 :: STM32F407-ephemeral (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.insk_A = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV.insk_B = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV.correct_pk_A = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV.correct_pk_B = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV.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

declare i32 @crypto_scalarmult_curve25519(ptr noundef, 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: nounwind uwtable
define dso_local i32 @test_curve25519_DH_TV() #2 {
  %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.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.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.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.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.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)
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = or i32 %21, %20
  store i32 %22, ptr %2, align 4, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %42, %0
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 32
  br i1 %25, label %26, label %45

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

38:                                               ; preds = %26
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = or i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !5
  br label %45

41:                                               ; preds = %26
  br label %42

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

45:                                               ; preds = %38, %23
  %46 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %47 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %48 = call i32 @crypto_scalarmult_base_curve25519(ptr noundef %46, ptr noundef %47)
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = or i32 %49, %48
  store i32 %50, ptr %2, align 4, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %70, %45
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 32
  br i1 %53, label %54, label %73

54:                                               ; preds = %51
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = zext i8 %58 to i32
  %60 = load i32, ptr %1, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !9
  %64 = zext i8 %63 to i32
  %65 = icmp ne i32 %59, %64
  br i1 %65, label %66, label %69

66:                                               ; preds = %54
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = or i32 %67, 2
  store i32 %68, ptr %2, align 4, !tbaa !5
  br label %73

69:                                               ; preds = %54
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %1, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %1, align 4, !tbaa !5
  br label %51, !llvm.loop !12

73:                                               ; preds = %66, %51
  %74 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %75 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
  %76 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %77 = call i32 @crypto_scalarmult_curve25519(ptr noundef %74, ptr noundef %75, ptr noundef %76)
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = or i32 %78, %77
  store i32 %79, ptr %2, align 4, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %99, %73
  %81 = load i32, ptr %1, align 4, !tbaa !5
  %82 = icmp slt i32 %81, 32
  br i1 %82, label %83, label %102

83:                                               ; preds = %80
  %84 = load i32, ptr %1, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !9
  %88 = zext i8 %87 to i32
  %89 = load i32, ptr %1, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !9
  %93 = zext i8 %92 to i32
  %94 = icmp ne i32 %88, %93
  br i1 %94, label %95, label %98

95:                                               ; preds = %83
  %96 = load i32, ptr %2, align 4, !tbaa !5
  %97 = or i32 %96, 4
  store i32 %97, ptr %2, align 4, !tbaa !5
  br label %102

98:                                               ; preds = %83
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %1, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %1, align 4, !tbaa !5
  br label %80, !llvm.loop !13

102:                                              ; preds = %95, %80
  %103 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  %104 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %105 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %106 = call i32 @crypto_scalarmult_curve25519(ptr noundef %103, ptr noundef %104, ptr noundef %105)
  %107 = load i32, ptr %2, align 4, !tbaa !5
  %108 = or i32 %107, %106
  store i32 %108, ptr %2, align 4, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %128, %102
  %110 = load i32, ptr %1, align 4, !tbaa !5
  %111 = icmp slt i32 %110, 32
  br i1 %111, label %112, label %131

112:                                              ; preds = %109
  %113 = load i32, ptr %1, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !9
  %117 = zext i8 %116 to i32
  %118 = load i32, ptr %1, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 %119
  %121 = load i8, ptr %120, align 1, !tbaa !9
  %122 = zext i8 %121 to i32
  %123 = icmp ne i32 %117, %122
  br i1 %123, label %124, label %127

124:                                              ; preds = %112
  %125 = load i32, ptr %2, align 4, !tbaa !5
  %126 = or i32 %125, 8
  store i32 %126, ptr %2, align 4, !tbaa !5
  br label %131

127:                                              ; preds = %112
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %1, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %1, align 4, !tbaa !5
  br label %109, !llvm.loop !14

131:                                              ; preds = %124, %109
  %132 = 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 %132
}

; 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) #3

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

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 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


; 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.insk_A = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV.insk_B = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV.correct_pk_A = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV.correct_pk_B = external hidden unnamed_addr constant [32 x i8], align 16
@__const.test_curve25519_DH_TV.correct_ss = 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

declare i32 @crypto_scalarmult_curve25519(ptr noundef, 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: nounwind uwtable
define dso_local i32 @test_curve25519_DH_TV() local_unnamed_addr #2 {
  %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
  %6 = alloca [32 x i8], align 16
  %7 = alloca [32 x i8], align 16
  %8 = 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.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.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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  %9 = call i32 @crypto_scalarmult_base_curve25519(ptr noundef nonnull %5, ptr noundef nonnull %3) #4
  %10 = load i8, ptr %5, align 16, !tbaa !5
  %11 = load i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, align 16, !tbaa !5
  %.not = icmp eq i8 %10, %11
  br i1 %.not, label %12, label %136

12:                                               ; preds = %0
  %13 = getelementptr inbounds i8, ptr %5, i64 1
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %15 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 1), align 1, !tbaa !5
  %.not.1 = icmp eq i8 %14, %15
  br i1 %.not.1, label %16, label %136

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %5, i64 2
  %18 = load i8, ptr %17, align 2, !tbaa !5
  %19 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 2), align 2, !tbaa !5
  %.not.2 = icmp eq i8 %18, %19
  br i1 %.not.2, label %20, label %136

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %5, i64 3
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 3), align 1, !tbaa !5
  %.not.3 = icmp eq i8 %22, %23
  br i1 %.not.3, label %24, label %136

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %5, i64 4
  %26 = load i8, ptr %25, align 4, !tbaa !5
  %27 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 4), align 4, !tbaa !5
  %.not.4 = icmp eq i8 %26, %27
  br i1 %.not.4, label %28, label %136

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %5, i64 5
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %31 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 5), align 1, !tbaa !5
  %.not.5 = icmp eq i8 %30, %31
  br i1 %.not.5, label %32, label %136

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %5, i64 6
  %34 = load i8, ptr %33, align 2, !tbaa !5
  %35 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 6), align 2, !tbaa !5
  %.not.6 = icmp eq i8 %34, %35
  br i1 %.not.6, label %36, label %136

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %5, i64 7
  %38 = load i8, ptr %37, align 1, !tbaa !5
  %39 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 7), align 1, !tbaa !5
  %.not.7 = icmp eq i8 %38, %39
  br i1 %.not.7, label %40, label %136

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %5, i64 8
  %42 = load i8, ptr %41, align 8, !tbaa !5
  %43 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 8), align 8, !tbaa !5
  %.not.8 = icmp eq i8 %42, %43
  br i1 %.not.8, label %44, label %136

44:                                               ; preds = %40
  %45 = getelementptr inbounds i8, ptr %5, i64 9
  %46 = load i8, ptr %45, align 1, !tbaa !5
  %47 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 9), align 1, !tbaa !5
  %.not.9 = icmp eq i8 %46, %47
  br i1 %.not.9, label %48, label %136

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %5, i64 10
  %50 = load i8, ptr %49, align 2, !tbaa !5
  %51 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 10), align 2, !tbaa !5
  %.not.10 = icmp eq i8 %50, %51
  br i1 %.not.10, label %52, label %136

52:                                               ; preds = %48
  %53 = getelementptr inbounds i8, ptr %5, i64 11
  %54 = load i8, ptr %53, align 1, !tbaa !5
  %55 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 11), align 1, !tbaa !5
  %.not.11 = icmp eq i8 %54, %55
  br i1 %.not.11, label %56, label %136

56:                                               ; preds = %52
  %57 = getelementptr inbounds i8, ptr %5, i64 12
  %58 = load i8, ptr %57, align 4, !tbaa !5
  %59 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 12), align 4, !tbaa !5
  %.not.12 = icmp eq i8 %58, %59
  br i1 %.not.12, label %60, label %136

60:                                               ; preds = %56
  %61 = getelementptr inbounds i8, ptr %5, i64 13
  %62 = load i8, ptr %61, align 1, !tbaa !5
  %63 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 13), align 1, !tbaa !5
  %.not.13 = icmp eq i8 %62, %63
  br i1 %.not.13, label %64, label %136

64:                                               ; preds = %60
  %65 = getelementptr inbounds i8, ptr %5, i64 14
  %66 = load i8, ptr %65, align 2, !tbaa !5
  %67 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 14), align 2, !tbaa !5
  %.not.14 = icmp eq i8 %66, %67
  br i1 %.not.14, label %68, label %136

68:                                               ; preds = %64
  %69 = getelementptr inbounds i8, ptr %5, i64 15
  %70 = load i8, ptr %69, align 1, !tbaa !5
  %71 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 15), align 1, !tbaa !5
  %.not.15 = icmp eq i8 %70, %71
  br i1 %.not.15, label %72, label %136

72:                                               ; preds = %68
  %73 = getelementptr inbounds i8, ptr %5, i64 16
  %74 = load i8, ptr %73, align 16, !tbaa !5
  %75 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 16), align 16, !tbaa !5
  %.not.16 = icmp eq i8 %74, %75
  br i1 %.not.16, label %76, label %136

76:                                               ; preds = %72
  %77 = getelementptr inbounds i8, ptr %5, i64 17
  %78 = load i8, ptr %77, align 1, !tbaa !5
  %79 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 17), align 1, !tbaa !5
  %.not.17 = icmp eq i8 %78, %79
  br i1 %.not.17, label %80, label %136

80:                                               ; preds = %76
  %81 = getelementptr inbounds i8, ptr %5, i64 18
  %82 = load i8, ptr %81, align 2, !tbaa !5
  %83 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 18), align 2, !tbaa !5
  %.not.18 = icmp eq i8 %82, %83
  br i1 %.not.18, label %84, label %136

84:                                               ; preds = %80
  %85 = getelementptr inbounds i8, ptr %5, i64 19
  %86 = load i8, ptr %85, align 1, !tbaa !5
  %87 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 19), align 1, !tbaa !5
  %.not.19 = icmp eq i8 %86, %87
  br i1 %.not.19, label %88, label %136

88:                                               ; preds = %84
  %89 = getelementptr inbounds i8, ptr %5, i64 20
  %90 = load i8, ptr %89, align 4, !tbaa !5
  %91 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 20), align 4, !tbaa !5
  %.not.20 = icmp eq i8 %90, %91
  br i1 %.not.20, label %92, label %136

92:                                               ; preds = %88
  %93 = getelementptr inbounds i8, ptr %5, i64 21
  %94 = load i8, ptr %93, align 1, !tbaa !5
  %95 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 21), align 1, !tbaa !5
  %.not.21 = icmp eq i8 %94, %95
  br i1 %.not.21, label %96, label %136

96:                                               ; preds = %92
  %97 = getelementptr inbounds i8, ptr %5, i64 22
  %98 = load i8, ptr %97, align 2, !tbaa !5
  %99 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 22), align 2, !tbaa !5
  %.not.22 = icmp eq i8 %98, %99
  br i1 %.not.22, label %100, label %136

100:                                              ; preds = %96
  %101 = getelementptr inbounds i8, ptr %5, i64 23
  %102 = load i8, ptr %101, align 1, !tbaa !5
  %103 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 23), align 1, !tbaa !5
  %.not.23 = icmp eq i8 %102, %103
  br i1 %.not.23, label %104, label %136

104:                                              ; preds = %100
  %105 = getelementptr inbounds i8, ptr %5, i64 24
  %106 = load i8, ptr %105, align 8, !tbaa !5
  %107 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 24), align 8, !tbaa !5
  %.not.24 = icmp eq i8 %106, %107
  br i1 %.not.24, label %108, label %136

108:                                              ; preds = %104
  %109 = getelementptr inbounds i8, ptr %5, i64 25
  %110 = load i8, ptr %109, align 1, !tbaa !5
  %111 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 25), align 1, !tbaa !5
  %.not.25 = icmp eq i8 %110, %111
  br i1 %.not.25, label %112, label %136

112:                                              ; preds = %108
  %113 = getelementptr inbounds i8, ptr %5, i64 26
  %114 = load i8, ptr %113, align 2, !tbaa !5
  %115 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 26), align 2, !tbaa !5
  %.not.26 = icmp eq i8 %114, %115
  br i1 %.not.26, label %116, label %136

116:                                              ; preds = %112
  %117 = getelementptr inbounds i8, ptr %5, i64 27
  %118 = load i8, ptr %117, align 1, !tbaa !5
  %119 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 27), align 1, !tbaa !5
  %.not.27 = icmp eq i8 %118, %119
  br i1 %.not.27, label %120, label %136

120:                                              ; preds = %116
  %121 = getelementptr inbounds i8, ptr %5, i64 28
  %122 = load i8, ptr %121, align 4, !tbaa !5
  %123 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 28), align 4, !tbaa !5
  %.not.28 = icmp eq i8 %122, %123
  br i1 %.not.28, label %124, label %136

124:                                              ; preds = %120
  %125 = getelementptr inbounds i8, ptr %5, i64 29
  %126 = load i8, ptr %125, align 1, !tbaa !5
  %127 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 29), align 1, !tbaa !5
  %.not.29 = icmp eq i8 %126, %127
  br i1 %.not.29, label %128, label %136

128:                                              ; preds = %124
  %129 = getelementptr inbounds i8, ptr %5, i64 30
  %130 = load i8, ptr %129, align 2, !tbaa !5
  %131 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 30), align 2, !tbaa !5
  %.not.30 = icmp eq i8 %130, %131
  br i1 %.not.30, label %132, label %136

132:                                              ; preds = %128
  %133 = getelementptr inbounds i8, ptr %5, i64 31
  %134 = load i8, ptr %133, align 1, !tbaa !5
  %135 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_A, i64 31), align 1, !tbaa !5
  %.not.31 = icmp eq i8 %134, %135
  br i1 %.not.31, label %.loopexit34, label %136

136:                                              ; preds = %132, %128, %124, %120, %116, %112, %108, %104, %100, %96, %92, %88, %84, %80, %76, %72, %68, %64, %60, %56, %52, %48, %44, %40, %36, %32, %28, %24, %20, %16, %12, %0
  %137 = or i32 %9, 1
  br label %.loopexit34

.loopexit34:                                      ; preds = %132, %136
  %.0 = phi i32 [ %137, %136 ], [ %9, %132 ]
  %138 = call i32 @crypto_scalarmult_base_curve25519(ptr noundef nonnull %6, ptr noundef nonnull %4) #4
  %139 = or i32 %138, %.0
  %140 = load i8, ptr %6, align 16, !tbaa !5
  %141 = load i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, align 16, !tbaa !5
  %.not29 = icmp eq i8 %140, %141
  br i1 %.not29, label %142, label %266

142:                                              ; preds = %.loopexit34
  %143 = getelementptr inbounds i8, ptr %6, i64 1
  %144 = load i8, ptr %143, align 1, !tbaa !5
  %145 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 1), align 1, !tbaa !5
  %.not29.1 = icmp eq i8 %144, %145
  br i1 %.not29.1, label %146, label %266

146:                                              ; preds = %142
  %147 = getelementptr inbounds i8, ptr %6, i64 2
  %148 = load i8, ptr %147, align 2, !tbaa !5
  %149 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 2), align 2, !tbaa !5
  %.not29.2 = icmp eq i8 %148, %149
  br i1 %.not29.2, label %150, label %266

150:                                              ; preds = %146
  %151 = getelementptr inbounds i8, ptr %6, i64 3
  %152 = load i8, ptr %151, align 1, !tbaa !5
  %153 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 3), align 1, !tbaa !5
  %.not29.3 = icmp eq i8 %152, %153
  br i1 %.not29.3, label %154, label %266

154:                                              ; preds = %150
  %155 = getelementptr inbounds i8, ptr %6, i64 4
  %156 = load i8, ptr %155, align 4, !tbaa !5
  %157 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 4), align 4, !tbaa !5
  %.not29.4 = icmp eq i8 %156, %157
  br i1 %.not29.4, label %158, label %266

158:                                              ; preds = %154
  %159 = getelementptr inbounds i8, ptr %6, i64 5
  %160 = load i8, ptr %159, align 1, !tbaa !5
  %161 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 5), align 1, !tbaa !5
  %.not29.5 = icmp eq i8 %160, %161
  br i1 %.not29.5, label %162, label %266

162:                                              ; preds = %158
  %163 = getelementptr inbounds i8, ptr %6, i64 6
  %164 = load i8, ptr %163, align 2, !tbaa !5
  %165 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 6), align 2, !tbaa !5
  %.not29.6 = icmp eq i8 %164, %165
  br i1 %.not29.6, label %166, label %266

166:                                              ; preds = %162
  %167 = getelementptr inbounds i8, ptr %6, i64 7
  %168 = load i8, ptr %167, align 1, !tbaa !5
  %169 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 7), align 1, !tbaa !5
  %.not29.7 = icmp eq i8 %168, %169
  br i1 %.not29.7, label %170, label %266

170:                                              ; preds = %166
  %171 = getelementptr inbounds i8, ptr %6, i64 8
  %172 = load i8, ptr %171, align 8, !tbaa !5
  %173 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 8), align 8, !tbaa !5
  %.not29.8 = icmp eq i8 %172, %173
  br i1 %.not29.8, label %174, label %266

174:                                              ; preds = %170
  %175 = getelementptr inbounds i8, ptr %6, i64 9
  %176 = load i8, ptr %175, align 1, !tbaa !5
  %177 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 9), align 1, !tbaa !5
  %.not29.9 = icmp eq i8 %176, %177
  br i1 %.not29.9, label %178, label %266

178:                                              ; preds = %174
  %179 = getelementptr inbounds i8, ptr %6, i64 10
  %180 = load i8, ptr %179, align 2, !tbaa !5
  %181 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 10), align 2, !tbaa !5
  %.not29.10 = icmp eq i8 %180, %181
  br i1 %.not29.10, label %182, label %266

182:                                              ; preds = %178
  %183 = getelementptr inbounds i8, ptr %6, i64 11
  %184 = load i8, ptr %183, align 1, !tbaa !5
  %185 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 11), align 1, !tbaa !5
  %.not29.11 = icmp eq i8 %184, %185
  br i1 %.not29.11, label %186, label %266

186:                                              ; preds = %182
  %187 = getelementptr inbounds i8, ptr %6, i64 12
  %188 = load i8, ptr %187, align 4, !tbaa !5
  %189 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 12), align 4, !tbaa !5
  %.not29.12 = icmp eq i8 %188, %189
  br i1 %.not29.12, label %190, label %266

190:                                              ; preds = %186
  %191 = getelementptr inbounds i8, ptr %6, i64 13
  %192 = load i8, ptr %191, align 1, !tbaa !5
  %193 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 13), align 1, !tbaa !5
  %.not29.13 = icmp eq i8 %192, %193
  br i1 %.not29.13, label %194, label %266

194:                                              ; preds = %190
  %195 = getelementptr inbounds i8, ptr %6, i64 14
  %196 = load i8, ptr %195, align 2, !tbaa !5
  %197 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 14), align 2, !tbaa !5
  %.not29.14 = icmp eq i8 %196, %197
  br i1 %.not29.14, label %198, label %266

198:                                              ; preds = %194
  %199 = getelementptr inbounds i8, ptr %6, i64 15
  %200 = load i8, ptr %199, align 1, !tbaa !5
  %201 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 15), align 1, !tbaa !5
  %.not29.15 = icmp eq i8 %200, %201
  br i1 %.not29.15, label %202, label %266

202:                                              ; preds = %198
  %203 = getelementptr inbounds i8, ptr %6, i64 16
  %204 = load i8, ptr %203, align 16, !tbaa !5
  %205 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 16), align 16, !tbaa !5
  %.not29.16 = icmp eq i8 %204, %205
  br i1 %.not29.16, label %206, label %266

206:                                              ; preds = %202
  %207 = getelementptr inbounds i8, ptr %6, i64 17
  %208 = load i8, ptr %207, align 1, !tbaa !5
  %209 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 17), align 1, !tbaa !5
  %.not29.17 = icmp eq i8 %208, %209
  br i1 %.not29.17, label %210, label %266

210:                                              ; preds = %206
  %211 = getelementptr inbounds i8, ptr %6, i64 18
  %212 = load i8, ptr %211, align 2, !tbaa !5
  %213 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 18), align 2, !tbaa !5
  %.not29.18 = icmp eq i8 %212, %213
  br i1 %.not29.18, label %214, label %266

214:                                              ; preds = %210
  %215 = getelementptr inbounds i8, ptr %6, i64 19
  %216 = load i8, ptr %215, align 1, !tbaa !5
  %217 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 19), align 1, !tbaa !5
  %.not29.19 = icmp eq i8 %216, %217
  br i1 %.not29.19, label %218, label %266

218:                                              ; preds = %214
  %219 = getelementptr inbounds i8, ptr %6, i64 20
  %220 = load i8, ptr %219, align 4, !tbaa !5
  %221 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 20), align 4, !tbaa !5
  %.not29.20 = icmp eq i8 %220, %221
  br i1 %.not29.20, label %222, label %266

222:                                              ; preds = %218
  %223 = getelementptr inbounds i8, ptr %6, i64 21
  %224 = load i8, ptr %223, align 1, !tbaa !5
  %225 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 21), align 1, !tbaa !5
  %.not29.21 = icmp eq i8 %224, %225
  br i1 %.not29.21, label %226, label %266

226:                                              ; preds = %222
  %227 = getelementptr inbounds i8, ptr %6, i64 22
  %228 = load i8, ptr %227, align 2, !tbaa !5
  %229 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 22), align 2, !tbaa !5
  %.not29.22 = icmp eq i8 %228, %229
  br i1 %.not29.22, label %230, label %266

230:                                              ; preds = %226
  %231 = getelementptr inbounds i8, ptr %6, i64 23
  %232 = load i8, ptr %231, align 1, !tbaa !5
  %233 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 23), align 1, !tbaa !5
  %.not29.23 = icmp eq i8 %232, %233
  br i1 %.not29.23, label %234, label %266

234:                                              ; preds = %230
  %235 = getelementptr inbounds i8, ptr %6, i64 24
  %236 = load i8, ptr %235, align 8, !tbaa !5
  %237 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 24), align 8, !tbaa !5
  %.not29.24 = icmp eq i8 %236, %237
  br i1 %.not29.24, label %238, label %266

238:                                              ; preds = %234
  %239 = getelementptr inbounds i8, ptr %6, i64 25
  %240 = load i8, ptr %239, align 1, !tbaa !5
  %241 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 25), align 1, !tbaa !5
  %.not29.25 = icmp eq i8 %240, %241
  br i1 %.not29.25, label %242, label %266

242:                                              ; preds = %238
  %243 = getelementptr inbounds i8, ptr %6, i64 26
  %244 = load i8, ptr %243, align 2, !tbaa !5
  %245 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 26), align 2, !tbaa !5
  %.not29.26 = icmp eq i8 %244, %245
  br i1 %.not29.26, label %246, label %266

246:                                              ; preds = %242
  %247 = getelementptr inbounds i8, ptr %6, i64 27
  %248 = load i8, ptr %247, align 1, !tbaa !5
  %249 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 27), align 1, !tbaa !5
  %.not29.27 = icmp eq i8 %248, %249
  br i1 %.not29.27, label %250, label %266

250:                                              ; preds = %246
  %251 = getelementptr inbounds i8, ptr %6, i64 28
  %252 = load i8, ptr %251, align 4, !tbaa !5
  %253 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 28), align 4, !tbaa !5
  %.not29.28 = icmp eq i8 %252, %253
  br i1 %.not29.28, label %254, label %266

254:                                              ; preds = %250
  %255 = getelementptr inbounds i8, ptr %6, i64 29
  %256 = load i8, ptr %255, align 1, !tbaa !5
  %257 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 29), align 1, !tbaa !5
  %.not29.29 = icmp eq i8 %256, %257
  br i1 %.not29.29, label %258, label %266

258:                                              ; preds = %254
  %259 = getelementptr inbounds i8, ptr %6, i64 30
  %260 = load i8, ptr %259, align 2, !tbaa !5
  %261 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 30), align 2, !tbaa !5
  %.not29.30 = icmp eq i8 %260, %261
  br i1 %.not29.30, label %262, label %266

262:                                              ; preds = %258
  %263 = getelementptr inbounds i8, ptr %6, i64 31
  %264 = load i8, ptr %263, align 1, !tbaa !5
  %265 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 31), align 1, !tbaa !5
  %.not29.31 = icmp eq i8 %264, %265
  br i1 %.not29.31, label %.loopexit33, label %266

266:                                              ; preds = %262, %258, %254, %250, %246, %242, %238, %234, %230, %226, %222, %218, %214, %210, %206, %202, %198, %194, %190, %186, %182, %178, %174, %170, %166, %162, %158, %154, %150, %146, %142, %.loopexit34
  %267 = or i32 %139, 2
  br label %.loopexit33

.loopexit33:                                      ; preds = %262, %266
  %.1 = phi i32 [ %267, %266 ], [ %139, %262 ]
  %268 = call i32 @crypto_scalarmult_curve25519(ptr noundef nonnull %7, ptr noundef nonnull %3, ptr noundef nonnull %6) #4
  %269 = or i32 %268, %.1
  %270 = load i8, ptr %7, align 16, !tbaa !5
  %271 = load i8, ptr @__const.test_curve25519_DH_TV.correct_ss, align 16, !tbaa !5
  %.not30 = icmp eq i8 %270, %271
  br i1 %.not30, label %272, label %396

272:                                              ; preds = %.loopexit33
  %273 = getelementptr inbounds i8, ptr %7, i64 1
  %274 = load i8, ptr %273, align 1, !tbaa !5
  %275 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 1), align 1, !tbaa !5
  %.not30.1 = icmp eq i8 %274, %275
  br i1 %.not30.1, label %276, label %396

276:                                              ; preds = %272
  %277 = getelementptr inbounds i8, ptr %7, i64 2
  %278 = load i8, ptr %277, align 2, !tbaa !5
  %279 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 2), align 2, !tbaa !5
  %.not30.2 = icmp eq i8 %278, %279
  br i1 %.not30.2, label %280, label %396

280:                                              ; preds = %276
  %281 = getelementptr inbounds i8, ptr %7, i64 3
  %282 = load i8, ptr %281, align 1, !tbaa !5
  %283 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 3), align 1, !tbaa !5
  %.not30.3 = icmp eq i8 %282, %283
  br i1 %.not30.3, label %284, label %396

284:                                              ; preds = %280
  %285 = getelementptr inbounds i8, ptr %7, i64 4
  %286 = load i8, ptr %285, align 4, !tbaa !5
  %287 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 4), align 4, !tbaa !5
  %.not30.4 = icmp eq i8 %286, %287
  br i1 %.not30.4, label %288, label %396

288:                                              ; preds = %284
  %289 = getelementptr inbounds i8, ptr %7, i64 5
  %290 = load i8, ptr %289, align 1, !tbaa !5
  %291 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 5), align 1, !tbaa !5
  %.not30.5 = icmp eq i8 %290, %291
  br i1 %.not30.5, label %292, label %396

292:                                              ; preds = %288
  %293 = getelementptr inbounds i8, ptr %7, i64 6
  %294 = load i8, ptr %293, align 2, !tbaa !5
  %295 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 6), align 2, !tbaa !5
  %.not30.6 = icmp eq i8 %294, %295
  br i1 %.not30.6, label %296, label %396

296:                                              ; preds = %292
  %297 = getelementptr inbounds i8, ptr %7, i64 7
  %298 = load i8, ptr %297, align 1, !tbaa !5
  %299 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 7), align 1, !tbaa !5
  %.not30.7 = icmp eq i8 %298, %299
  br i1 %.not30.7, label %300, label %396

300:                                              ; preds = %296
  %301 = getelementptr inbounds i8, ptr %7, i64 8
  %302 = load i8, ptr %301, align 8, !tbaa !5
  %303 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 8), align 8, !tbaa !5
  %.not30.8 = icmp eq i8 %302, %303
  br i1 %.not30.8, label %304, label %396

304:                                              ; preds = %300
  %305 = getelementptr inbounds i8, ptr %7, i64 9
  %306 = load i8, ptr %305, align 1, !tbaa !5
  %307 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 9), align 1, !tbaa !5
  %.not30.9 = icmp eq i8 %306, %307
  br i1 %.not30.9, label %308, label %396

308:                                              ; preds = %304
  %309 = getelementptr inbounds i8, ptr %7, i64 10
  %310 = load i8, ptr %309, align 2, !tbaa !5
  %311 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 10), align 2, !tbaa !5
  %.not30.10 = icmp eq i8 %310, %311
  br i1 %.not30.10, label %312, label %396

312:                                              ; preds = %308
  %313 = getelementptr inbounds i8, ptr %7, i64 11
  %314 = load i8, ptr %313, align 1, !tbaa !5
  %315 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 11), align 1, !tbaa !5
  %.not30.11 = icmp eq i8 %314, %315
  br i1 %.not30.11, label %316, label %396

316:                                              ; preds = %312
  %317 = getelementptr inbounds i8, ptr %7, i64 12
  %318 = load i8, ptr %317, align 4, !tbaa !5
  %319 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 12), align 4, !tbaa !5
  %.not30.12 = icmp eq i8 %318, %319
  br i1 %.not30.12, label %320, label %396

320:                                              ; preds = %316
  %321 = getelementptr inbounds i8, ptr %7, i64 13
  %322 = load i8, ptr %321, align 1, !tbaa !5
  %323 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 13), align 1, !tbaa !5
  %.not30.13 = icmp eq i8 %322, %323
  br i1 %.not30.13, label %324, label %396

324:                                              ; preds = %320
  %325 = getelementptr inbounds i8, ptr %7, i64 14
  %326 = load i8, ptr %325, align 2, !tbaa !5
  %327 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 14), align 2, !tbaa !5
  %.not30.14 = icmp eq i8 %326, %327
  br i1 %.not30.14, label %328, label %396

328:                                              ; preds = %324
  %329 = getelementptr inbounds i8, ptr %7, i64 15
  %330 = load i8, ptr %329, align 1, !tbaa !5
  %331 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 15), align 1, !tbaa !5
  %.not30.15 = icmp eq i8 %330, %331
  br i1 %.not30.15, label %332, label %396

332:                                              ; preds = %328
  %333 = getelementptr inbounds i8, ptr %7, i64 16
  %334 = load i8, ptr %333, align 16, !tbaa !5
  %335 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 16), align 16, !tbaa !5
  %.not30.16 = icmp eq i8 %334, %335
  br i1 %.not30.16, label %336, label %396

336:                                              ; preds = %332
  %337 = getelementptr inbounds i8, ptr %7, i64 17
  %338 = load i8, ptr %337, align 1, !tbaa !5
  %339 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 17), align 1, !tbaa !5
  %.not30.17 = icmp eq i8 %338, %339
  br i1 %.not30.17, label %340, label %396

340:                                              ; preds = %336
  %341 = getelementptr inbounds i8, ptr %7, i64 18
  %342 = load i8, ptr %341, align 2, !tbaa !5
  %343 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 18), align 2, !tbaa !5
  %.not30.18 = icmp eq i8 %342, %343
  br i1 %.not30.18, label %344, label %396

344:                                              ; preds = %340
  %345 = getelementptr inbounds i8, ptr %7, i64 19
  %346 = load i8, ptr %345, align 1, !tbaa !5
  %347 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 19), align 1, !tbaa !5
  %.not30.19 = icmp eq i8 %346, %347
  br i1 %.not30.19, label %348, label %396

348:                                              ; preds = %344
  %349 = getelementptr inbounds i8, ptr %7, i64 20
  %350 = load i8, ptr %349, align 4, !tbaa !5
  %351 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 20), align 4, !tbaa !5
  %.not30.20 = icmp eq i8 %350, %351
  br i1 %.not30.20, label %352, label %396

352:                                              ; preds = %348
  %353 = getelementptr inbounds i8, ptr %7, i64 21
  %354 = load i8, ptr %353, align 1, !tbaa !5
  %355 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 21), align 1, !tbaa !5
  %.not30.21 = icmp eq i8 %354, %355
  br i1 %.not30.21, label %356, label %396

356:                                              ; preds = %352
  %357 = getelementptr inbounds i8, ptr %7, i64 22
  %358 = load i8, ptr %357, align 2, !tbaa !5
  %359 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 22), align 2, !tbaa !5
  %.not30.22 = icmp eq i8 %358, %359
  br i1 %.not30.22, label %360, label %396

360:                                              ; preds = %356
  %361 = getelementptr inbounds i8, ptr %7, i64 23
  %362 = load i8, ptr %361, align 1, !tbaa !5
  %363 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 23), align 1, !tbaa !5
  %.not30.23 = icmp eq i8 %362, %363
  br i1 %.not30.23, label %364, label %396

364:                                              ; preds = %360
  %365 = getelementptr inbounds i8, ptr %7, i64 24
  %366 = load i8, ptr %365, align 8, !tbaa !5
  %367 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 24), align 8, !tbaa !5
  %.not30.24 = icmp eq i8 %366, %367
  br i1 %.not30.24, label %368, label %396

368:                                              ; preds = %364
  %369 = getelementptr inbounds i8, ptr %7, i64 25
  %370 = load i8, ptr %369, align 1, !tbaa !5
  %371 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 25), align 1, !tbaa !5
  %.not30.25 = icmp eq i8 %370, %371
  br i1 %.not30.25, label %372, label %396

372:                                              ; preds = %368
  %373 = getelementptr inbounds i8, ptr %7, i64 26
  %374 = load i8, ptr %373, align 2, !tbaa !5
  %375 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 26), align 2, !tbaa !5
  %.not30.26 = icmp eq i8 %374, %375
  br i1 %.not30.26, label %376, label %396

376:                                              ; preds = %372
  %377 = getelementptr inbounds i8, ptr %7, i64 27
  %378 = load i8, ptr %377, align 1, !tbaa !5
  %379 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 27), align 1, !tbaa !5
  %.not30.27 = icmp eq i8 %378, %379
  br i1 %.not30.27, label %380, label %396

380:                                              ; preds = %376
  %381 = getelementptr inbounds i8, ptr %7, i64 28
  %382 = load i8, ptr %381, align 4, !tbaa !5
  %383 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 28), align 4, !tbaa !5
  %.not30.28 = icmp eq i8 %382, %383
  br i1 %.not30.28, label %384, label %396

384:                                              ; preds = %380
  %385 = getelementptr inbounds i8, ptr %7, i64 29
  %386 = load i8, ptr %385, align 1, !tbaa !5
  %387 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 29), align 1, !tbaa !5
  %.not30.29 = icmp eq i8 %386, %387
  br i1 %.not30.29, label %388, label %396

388:                                              ; preds = %384
  %389 = getelementptr inbounds i8, ptr %7, i64 30
  %390 = load i8, ptr %389, align 2, !tbaa !5
  %391 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 30), align 2, !tbaa !5
  %.not30.30 = icmp eq i8 %390, %391
  br i1 %.not30.30, label %392, label %396

392:                                              ; preds = %388
  %393 = getelementptr inbounds i8, ptr %7, i64 31
  %394 = load i8, ptr %393, align 1, !tbaa !5
  %395 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 31), align 1, !tbaa !5
  %.not30.31 = icmp eq i8 %394, %395
  br i1 %.not30.31, label %.loopexit32, label %396

396:                                              ; preds = %392, %388, %384, %380, %376, %372, %368, %364, %360, %356, %352, %348, %344, %340, %336, %332, %328, %324, %320, %316, %312, %308, %304, %300, %296, %292, %288, %284, %280, %276, %272, %.loopexit33
  %397 = or i32 %269, 4
  br label %.loopexit32

.loopexit32:                                      ; preds = %392, %396
  %.2 = phi i32 [ %397, %396 ], [ %269, %392 ]
  %398 = call i32 @crypto_scalarmult_curve25519(ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5) #4
  %399 = or i32 %398, %.2
  %400 = load i8, ptr %8, align 16, !tbaa !5
  %.not31 = icmp eq i8 %400, %271
  br i1 %.not31, label %401, label %525

401:                                              ; preds = %.loopexit32
  %402 = getelementptr inbounds i8, ptr %8, i64 1
  %403 = load i8, ptr %402, align 1, !tbaa !5
  %404 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 1), align 1, !tbaa !5
  %.not31.1 = icmp eq i8 %403, %404
  br i1 %.not31.1, label %405, label %525

405:                                              ; preds = %401
  %406 = getelementptr inbounds i8, ptr %8, i64 2
  %407 = load i8, ptr %406, align 2, !tbaa !5
  %408 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 2), align 2, !tbaa !5
  %.not31.2 = icmp eq i8 %407, %408
  br i1 %.not31.2, label %409, label %525

409:                                              ; preds = %405
  %410 = getelementptr inbounds i8, ptr %8, i64 3
  %411 = load i8, ptr %410, align 1, !tbaa !5
  %412 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 3), align 1, !tbaa !5
  %.not31.3 = icmp eq i8 %411, %412
  br i1 %.not31.3, label %413, label %525

413:                                              ; preds = %409
  %414 = getelementptr inbounds i8, ptr %8, i64 4
  %415 = load i8, ptr %414, align 4, !tbaa !5
  %416 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 4), align 4, !tbaa !5
  %.not31.4 = icmp eq i8 %415, %416
  br i1 %.not31.4, label %417, label %525

417:                                              ; preds = %413
  %418 = getelementptr inbounds i8, ptr %8, i64 5
  %419 = load i8, ptr %418, align 1, !tbaa !5
  %420 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 5), align 1, !tbaa !5
  %.not31.5 = icmp eq i8 %419, %420
  br i1 %.not31.5, label %421, label %525

421:                                              ; preds = %417
  %422 = getelementptr inbounds i8, ptr %8, i64 6
  %423 = load i8, ptr %422, align 2, !tbaa !5
  %424 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 6), align 2, !tbaa !5
  %.not31.6 = icmp eq i8 %423, %424
  br i1 %.not31.6, label %425, label %525

425:                                              ; preds = %421
  %426 = getelementptr inbounds i8, ptr %8, i64 7
  %427 = load i8, ptr %426, align 1, !tbaa !5
  %428 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 7), align 1, !tbaa !5
  %.not31.7 = icmp eq i8 %427, %428
  br i1 %.not31.7, label %429, label %525

429:                                              ; preds = %425
  %430 = getelementptr inbounds i8, ptr %8, i64 8
  %431 = load i8, ptr %430, align 8, !tbaa !5
  %432 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 8), align 8, !tbaa !5
  %.not31.8 = icmp eq i8 %431, %432
  br i1 %.not31.8, label %433, label %525

433:                                              ; preds = %429
  %434 = getelementptr inbounds i8, ptr %8, i64 9
  %435 = load i8, ptr %434, align 1, !tbaa !5
  %436 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 9), align 1, !tbaa !5
  %.not31.9 = icmp eq i8 %435, %436
  br i1 %.not31.9, label %437, label %525

437:                                              ; preds = %433
  %438 = getelementptr inbounds i8, ptr %8, i64 10
  %439 = load i8, ptr %438, align 2, !tbaa !5
  %440 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 10), align 2, !tbaa !5
  %.not31.10 = icmp eq i8 %439, %440
  br i1 %.not31.10, label %441, label %525

441:                                              ; preds = %437
  %442 = getelementptr inbounds i8, ptr %8, i64 11
  %443 = load i8, ptr %442, align 1, !tbaa !5
  %444 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 11), align 1, !tbaa !5
  %.not31.11 = icmp eq i8 %443, %444
  br i1 %.not31.11, label %445, label %525

445:                                              ; preds = %441
  %446 = getelementptr inbounds i8, ptr %8, i64 12
  %447 = load i8, ptr %446, align 4, !tbaa !5
  %448 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 12), align 4, !tbaa !5
  %.not31.12 = icmp eq i8 %447, %448
  br i1 %.not31.12, label %449, label %525

449:                                              ; preds = %445
  %450 = getelementptr inbounds i8, ptr %8, i64 13
  %451 = load i8, ptr %450, align 1, !tbaa !5
  %452 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 13), align 1, !tbaa !5
  %.not31.13 = icmp eq i8 %451, %452
  br i1 %.not31.13, label %453, label %525

453:                                              ; preds = %449
  %454 = getelementptr inbounds i8, ptr %8, i64 14
  %455 = load i8, ptr %454, align 2, !tbaa !5
  %456 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 14), align 2, !tbaa !5
  %.not31.14 = icmp eq i8 %455, %456
  br i1 %.not31.14, label %457, label %525

457:                                              ; preds = %453
  %458 = getelementptr inbounds i8, ptr %8, i64 15
  %459 = load i8, ptr %458, align 1, !tbaa !5
  %460 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 15), align 1, !tbaa !5
  %.not31.15 = icmp eq i8 %459, %460
  br i1 %.not31.15, label %461, label %525

461:                                              ; preds = %457
  %462 = getelementptr inbounds i8, ptr %8, i64 16
  %463 = load i8, ptr %462, align 16, !tbaa !5
  %464 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 16), align 16, !tbaa !5
  %.not31.16 = icmp eq i8 %463, %464
  br i1 %.not31.16, label %465, label %525

465:                                              ; preds = %461
  %466 = getelementptr inbounds i8, ptr %8, i64 17
  %467 = load i8, ptr %466, align 1, !tbaa !5
  %468 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 17), align 1, !tbaa !5
  %.not31.17 = icmp eq i8 %467, %468
  br i1 %.not31.17, label %469, label %525

469:                                              ; preds = %465
  %470 = getelementptr inbounds i8, ptr %8, i64 18
  %471 = load i8, ptr %470, align 2, !tbaa !5
  %472 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 18), align 2, !tbaa !5
  %.not31.18 = icmp eq i8 %471, %472
  br i1 %.not31.18, label %473, label %525

473:                                              ; preds = %469
  %474 = getelementptr inbounds i8, ptr %8, i64 19
  %475 = load i8, ptr %474, align 1, !tbaa !5
  %476 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 19), align 1, !tbaa !5
  %.not31.19 = icmp eq i8 %475, %476
  br i1 %.not31.19, label %477, label %525

477:                                              ; preds = %473
  %478 = getelementptr inbounds i8, ptr %8, i64 20
  %479 = load i8, ptr %478, align 4, !tbaa !5
  %480 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 20), align 4, !tbaa !5
  %.not31.20 = icmp eq i8 %479, %480
  br i1 %.not31.20, label %481, label %525

481:                                              ; preds = %477
  %482 = getelementptr inbounds i8, ptr %8, i64 21
  %483 = load i8, ptr %482, align 1, !tbaa !5
  %484 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 21), align 1, !tbaa !5
  %.not31.21 = icmp eq i8 %483, %484
  br i1 %.not31.21, label %485, label %525

485:                                              ; preds = %481
  %486 = getelementptr inbounds i8, ptr %8, i64 22
  %487 = load i8, ptr %486, align 2, !tbaa !5
  %488 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 22), align 2, !tbaa !5
  %.not31.22 = icmp eq i8 %487, %488
  br i1 %.not31.22, label %489, label %525

489:                                              ; preds = %485
  %490 = getelementptr inbounds i8, ptr %8, i64 23
  %491 = load i8, ptr %490, align 1, !tbaa !5
  %492 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 23), align 1, !tbaa !5
  %.not31.23 = icmp eq i8 %491, %492
  br i1 %.not31.23, label %493, label %525

493:                                              ; preds = %489
  %494 = getelementptr inbounds i8, ptr %8, i64 24
  %495 = load i8, ptr %494, align 8, !tbaa !5
  %496 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 24), align 8, !tbaa !5
  %.not31.24 = icmp eq i8 %495, %496
  br i1 %.not31.24, label %497, label %525

497:                                              ; preds = %493
  %498 = getelementptr inbounds i8, ptr %8, i64 25
  %499 = load i8, ptr %498, align 1, !tbaa !5
  %500 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 25), align 1, !tbaa !5
  %.not31.25 = icmp eq i8 %499, %500
  br i1 %.not31.25, label %501, label %525

501:                                              ; preds = %497
  %502 = getelementptr inbounds i8, ptr %8, i64 26
  %503 = load i8, ptr %502, align 2, !tbaa !5
  %504 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 26), align 2, !tbaa !5
  %.not31.26 = icmp eq i8 %503, %504
  br i1 %.not31.26, label %505, label %525

505:                                              ; preds = %501
  %506 = getelementptr inbounds i8, ptr %8, i64 27
  %507 = load i8, ptr %506, align 1, !tbaa !5
  %508 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 27), align 1, !tbaa !5
  %.not31.27 = icmp eq i8 %507, %508
  br i1 %.not31.27, label %509, label %525

509:                                              ; preds = %505
  %510 = getelementptr inbounds i8, ptr %8, i64 28
  %511 = load i8, ptr %510, align 4, !tbaa !5
  %512 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 28), align 4, !tbaa !5
  %.not31.28 = icmp eq i8 %511, %512
  br i1 %.not31.28, label %513, label %525

513:                                              ; preds = %509
  %514 = getelementptr inbounds i8, ptr %8, i64 29
  %515 = load i8, ptr %514, align 1, !tbaa !5
  %516 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 29), align 1, !tbaa !5
  %.not31.29 = icmp eq i8 %515, %516
  br i1 %.not31.29, label %517, label %525

517:                                              ; preds = %513
  %518 = getelementptr inbounds i8, ptr %8, i64 30
  %519 = load i8, ptr %518, align 2, !tbaa !5
  %520 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 30), align 2, !tbaa !5
  %.not31.30 = icmp eq i8 %519, %520
  br i1 %.not31.30, label %521, label %525

521:                                              ; preds = %517
  %522 = getelementptr inbounds i8, ptr %8, i64 31
  %523 = load i8, ptr %522, align 1, !tbaa !5
  %524 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 31), align 1, !tbaa !5
  %.not31.31 = icmp eq i8 %523, %524
  br i1 %.not31.31, label %.loopexit, label %525

525:                                              ; preds = %521, %517, %513, %509, %505, %501, %497, %493, %489, %485, %481, %477, %473, %469, %465, %461, %457, %453, %449, %445, %441, %437, %433, %429, %425, %421, %417, %413, %409, %405, %401, %.loopexit32
  %526 = or i32 %399, 8
  br label %.loopexit

.loopexit:                                        ; preds = %521, %525
  %.3 = phi i32 [ %526, %525 ], [ %399, %521 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  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 %.3
}

; 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) #3

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

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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass