; LLVM IR from sca-secure-library-sca25519/sca25519 :: STM32F407-unprotected (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)
  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 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %45 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %46 = call i32 @crypto_scalarmult_base_curve25519(ptr noundef %44, ptr noundef %45)
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %66, %43
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 32
  br i1 %49, label %50, label %69

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

62:                                               ; preds = %50
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = or i32 %63, 2
  store i32 %64, ptr %2, align 4, !tbaa !5
  br label %69

65:                                               ; preds = %50
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %1, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %1, align 4, !tbaa !5
  br label %47, !llvm.loop !12

69:                                               ; preds = %62, %47
  %70 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %71 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
  %72 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %73 = call i32 @crypto_scalarmult_curve25519(ptr noundef %70, ptr noundef %71, ptr noundef %72)
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %93, %69
  %75 = load i32, ptr %1, align 4, !tbaa !5
  %76 = icmp slt i32 %75, 32
  br i1 %76, label %77, label %96

77:                                               ; preds = %74
  %78 = load i32, ptr %1, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !9
  %82 = zext i8 %81 to i32
  %83 = load i32, ptr %1, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !9
  %87 = zext i8 %86 to i32
  %88 = icmp ne i32 %82, %87
  br i1 %88, label %89, label %92

89:                                               ; preds = %77
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = or i32 %90, 4
  store i32 %91, ptr %2, align 4, !tbaa !5
  br label %96

92:                                               ; preds = %77
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %1, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %1, align 4, !tbaa !5
  br label %74, !llvm.loop !13

96:                                               ; preds = %89, %74
  %97 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
  %98 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %99 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %100 = call i32 @crypto_scalarmult_curve25519(ptr noundef %97, ptr noundef %98, ptr noundef %99)
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %120, %96
  %102 = load i32, ptr %1, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 32
  br i1 %103, label %104, label %123

104:                                              ; preds = %101
  %105 = load i32, ptr %1, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !9
  %109 = zext i8 %108 to i32
  %110 = load i32, ptr %1, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !9
  %114 = zext i8 %113 to i32
  %115 = icmp ne i32 %109, %114
  br i1 %115, label %116, label %119

116:                                              ; preds = %104
  %117 = load i32, ptr %2, align 4, !tbaa !5
  %118 = or i32 %117, 8
  store i32 %118, ptr %2, align 4, !tbaa !5
  br label %123

119:                                              ; preds = %104
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %1, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %1, align 4, !tbaa !5
  br label %101, !llvm.loop !14

123:                                              ; preds = %116, %101
  %124 = 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 %124
}

; 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 range(i32 0, 16) 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 ne i8 %134, %135
  %spec.select = zext i1 %.not.31 to i32
  br 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
  %.0 = phi i32 [ 1, %0 ], [ 1, %12 ], [ 1, %16 ], [ 1, %20 ], [ 1, %24 ], [ 1, %28 ], [ 1, %32 ], [ 1, %36 ], [ 1, %40 ], [ 1, %44 ], [ 1, %48 ], [ 1, %52 ], [ 1, %56 ], [ 1, %60 ], [ 1, %64 ], [ 1, %68 ], [ 1, %72 ], [ 1, %76 ], [ 1, %80 ], [ 1, %84 ], [ 1, %88 ], [ 1, %92 ], [ 1, %96 ], [ 1, %100 ], [ 1, %104 ], [ 1, %108 ], [ 1, %112 ], [ 1, %116 ], [ 1, %120 ], [ 1, %124 ], [ 1, %128 ], [ %spec.select, %132 ]
  %137 = call i32 @crypto_scalarmult_base_curve25519(ptr noundef nonnull %6, ptr noundef nonnull %4) #4
  %138 = load i8, ptr %6, align 16, !tbaa !5
  %139 = load i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, align 16, !tbaa !5
  %.not25 = icmp eq i8 %138, %139
  br i1 %.not25, label %140, label %264

140:                                              ; preds = %136
  %141 = getelementptr inbounds i8, ptr %6, i64 1
  %142 = load i8, ptr %141, align 1, !tbaa !5
  %143 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 1), align 1, !tbaa !5
  %.not25.1 = icmp eq i8 %142, %143
  br i1 %.not25.1, label %144, label %264

144:                                              ; preds = %140
  %145 = getelementptr inbounds i8, ptr %6, i64 2
  %146 = load i8, ptr %145, align 2, !tbaa !5
  %147 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 2), align 2, !tbaa !5
  %.not25.2 = icmp eq i8 %146, %147
  br i1 %.not25.2, label %148, label %264

148:                                              ; preds = %144
  %149 = getelementptr inbounds i8, ptr %6, i64 3
  %150 = load i8, ptr %149, align 1, !tbaa !5
  %151 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 3), align 1, !tbaa !5
  %.not25.3 = icmp eq i8 %150, %151
  br i1 %.not25.3, label %152, label %264

152:                                              ; preds = %148
  %153 = getelementptr inbounds i8, ptr %6, i64 4
  %154 = load i8, ptr %153, align 4, !tbaa !5
  %155 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 4), align 4, !tbaa !5
  %.not25.4 = icmp eq i8 %154, %155
  br i1 %.not25.4, label %156, label %264

156:                                              ; preds = %152
  %157 = getelementptr inbounds i8, ptr %6, i64 5
  %158 = load i8, ptr %157, align 1, !tbaa !5
  %159 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 5), align 1, !tbaa !5
  %.not25.5 = icmp eq i8 %158, %159
  br i1 %.not25.5, label %160, label %264

160:                                              ; preds = %156
  %161 = getelementptr inbounds i8, ptr %6, i64 6
  %162 = load i8, ptr %161, align 2, !tbaa !5
  %163 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 6), align 2, !tbaa !5
  %.not25.6 = icmp eq i8 %162, %163
  br i1 %.not25.6, label %164, label %264

164:                                              ; preds = %160
  %165 = getelementptr inbounds i8, ptr %6, i64 7
  %166 = load i8, ptr %165, align 1, !tbaa !5
  %167 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 7), align 1, !tbaa !5
  %.not25.7 = icmp eq i8 %166, %167
  br i1 %.not25.7, label %168, label %264

168:                                              ; preds = %164
  %169 = getelementptr inbounds i8, ptr %6, i64 8
  %170 = load i8, ptr %169, align 8, !tbaa !5
  %171 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 8), align 8, !tbaa !5
  %.not25.8 = icmp eq i8 %170, %171
  br i1 %.not25.8, label %172, label %264

172:                                              ; preds = %168
  %173 = getelementptr inbounds i8, ptr %6, i64 9
  %174 = load i8, ptr %173, align 1, !tbaa !5
  %175 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 9), align 1, !tbaa !5
  %.not25.9 = icmp eq i8 %174, %175
  br i1 %.not25.9, label %176, label %264

176:                                              ; preds = %172
  %177 = getelementptr inbounds i8, ptr %6, i64 10
  %178 = load i8, ptr %177, align 2, !tbaa !5
  %179 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 10), align 2, !tbaa !5
  %.not25.10 = icmp eq i8 %178, %179
  br i1 %.not25.10, label %180, label %264

180:                                              ; preds = %176
  %181 = getelementptr inbounds i8, ptr %6, i64 11
  %182 = load i8, ptr %181, align 1, !tbaa !5
  %183 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 11), align 1, !tbaa !5
  %.not25.11 = icmp eq i8 %182, %183
  br i1 %.not25.11, label %184, label %264

184:                                              ; preds = %180
  %185 = getelementptr inbounds i8, ptr %6, i64 12
  %186 = load i8, ptr %185, align 4, !tbaa !5
  %187 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 12), align 4, !tbaa !5
  %.not25.12 = icmp eq i8 %186, %187
  br i1 %.not25.12, label %188, label %264

188:                                              ; preds = %184
  %189 = getelementptr inbounds i8, ptr %6, i64 13
  %190 = load i8, ptr %189, align 1, !tbaa !5
  %191 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 13), align 1, !tbaa !5
  %.not25.13 = icmp eq i8 %190, %191
  br i1 %.not25.13, label %192, label %264

192:                                              ; preds = %188
  %193 = getelementptr inbounds i8, ptr %6, i64 14
  %194 = load i8, ptr %193, align 2, !tbaa !5
  %195 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 14), align 2, !tbaa !5
  %.not25.14 = icmp eq i8 %194, %195
  br i1 %.not25.14, label %196, label %264

196:                                              ; preds = %192
  %197 = getelementptr inbounds i8, ptr %6, i64 15
  %198 = load i8, ptr %197, align 1, !tbaa !5
  %199 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 15), align 1, !tbaa !5
  %.not25.15 = icmp eq i8 %198, %199
  br i1 %.not25.15, label %200, label %264

200:                                              ; preds = %196
  %201 = getelementptr inbounds i8, ptr %6, i64 16
  %202 = load i8, ptr %201, align 16, !tbaa !5
  %203 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 16), align 16, !tbaa !5
  %.not25.16 = icmp eq i8 %202, %203
  br i1 %.not25.16, label %204, label %264

204:                                              ; preds = %200
  %205 = getelementptr inbounds i8, ptr %6, i64 17
  %206 = load i8, ptr %205, align 1, !tbaa !5
  %207 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 17), align 1, !tbaa !5
  %.not25.17 = icmp eq i8 %206, %207
  br i1 %.not25.17, label %208, label %264

208:                                              ; preds = %204
  %209 = getelementptr inbounds i8, ptr %6, i64 18
  %210 = load i8, ptr %209, align 2, !tbaa !5
  %211 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 18), align 2, !tbaa !5
  %.not25.18 = icmp eq i8 %210, %211
  br i1 %.not25.18, label %212, label %264

212:                                              ; preds = %208
  %213 = getelementptr inbounds i8, ptr %6, i64 19
  %214 = load i8, ptr %213, align 1, !tbaa !5
  %215 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 19), align 1, !tbaa !5
  %.not25.19 = icmp eq i8 %214, %215
  br i1 %.not25.19, label %216, label %264

216:                                              ; preds = %212
  %217 = getelementptr inbounds i8, ptr %6, i64 20
  %218 = load i8, ptr %217, align 4, !tbaa !5
  %219 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 20), align 4, !tbaa !5
  %.not25.20 = icmp eq i8 %218, %219
  br i1 %.not25.20, label %220, label %264

220:                                              ; preds = %216
  %221 = getelementptr inbounds i8, ptr %6, i64 21
  %222 = load i8, ptr %221, align 1, !tbaa !5
  %223 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 21), align 1, !tbaa !5
  %.not25.21 = icmp eq i8 %222, %223
  br i1 %.not25.21, label %224, label %264

224:                                              ; preds = %220
  %225 = getelementptr inbounds i8, ptr %6, i64 22
  %226 = load i8, ptr %225, align 2, !tbaa !5
  %227 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 22), align 2, !tbaa !5
  %.not25.22 = icmp eq i8 %226, %227
  br i1 %.not25.22, label %228, label %264

228:                                              ; preds = %224
  %229 = getelementptr inbounds i8, ptr %6, i64 23
  %230 = load i8, ptr %229, align 1, !tbaa !5
  %231 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 23), align 1, !tbaa !5
  %.not25.23 = icmp eq i8 %230, %231
  br i1 %.not25.23, label %232, label %264

232:                                              ; preds = %228
  %233 = getelementptr inbounds i8, ptr %6, i64 24
  %234 = load i8, ptr %233, align 8, !tbaa !5
  %235 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 24), align 8, !tbaa !5
  %.not25.24 = icmp eq i8 %234, %235
  br i1 %.not25.24, label %236, label %264

236:                                              ; preds = %232
  %237 = getelementptr inbounds i8, ptr %6, i64 25
  %238 = load i8, ptr %237, align 1, !tbaa !5
  %239 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 25), align 1, !tbaa !5
  %.not25.25 = icmp eq i8 %238, %239
  br i1 %.not25.25, label %240, label %264

240:                                              ; preds = %236
  %241 = getelementptr inbounds i8, ptr %6, i64 26
  %242 = load i8, ptr %241, align 2, !tbaa !5
  %243 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 26), align 2, !tbaa !5
  %.not25.26 = icmp eq i8 %242, %243
  br i1 %.not25.26, label %244, label %264

244:                                              ; preds = %240
  %245 = getelementptr inbounds i8, ptr %6, i64 27
  %246 = load i8, ptr %245, align 1, !tbaa !5
  %247 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 27), align 1, !tbaa !5
  %.not25.27 = icmp eq i8 %246, %247
  br i1 %.not25.27, label %248, label %264

248:                                              ; preds = %244
  %249 = getelementptr inbounds i8, ptr %6, i64 28
  %250 = load i8, ptr %249, align 4, !tbaa !5
  %251 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 28), align 4, !tbaa !5
  %.not25.28 = icmp eq i8 %250, %251
  br i1 %.not25.28, label %252, label %264

252:                                              ; preds = %248
  %253 = getelementptr inbounds i8, ptr %6, i64 29
  %254 = load i8, ptr %253, align 1, !tbaa !5
  %255 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 29), align 1, !tbaa !5
  %.not25.29 = icmp eq i8 %254, %255
  br i1 %.not25.29, label %256, label %264

256:                                              ; preds = %252
  %257 = getelementptr inbounds i8, ptr %6, i64 30
  %258 = load i8, ptr %257, align 2, !tbaa !5
  %259 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 30), align 2, !tbaa !5
  %.not25.30 = icmp eq i8 %258, %259
  br i1 %.not25.30, label %260, label %264

260:                                              ; preds = %256
  %261 = getelementptr inbounds i8, ptr %6, i64 31
  %262 = load i8, ptr %261, align 1, !tbaa !5
  %263 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_pk_B, i64 31), align 1, !tbaa !5
  %.not25.31 = icmp eq i8 %262, %263
  br i1 %.not25.31, label %.loopexit29, label %264

264:                                              ; preds = %260, %256, %252, %248, %244, %240, %236, %232, %228, %224, %220, %216, %212, %208, %204, %200, %196, %192, %188, %184, %180, %176, %172, %168, %164, %160, %156, %152, %148, %144, %140, %136
  %265 = or disjoint i32 %.0, 2
  br label %.loopexit29

.loopexit29:                                      ; preds = %260, %264
  %.1 = phi i32 [ %265, %264 ], [ %.0, %260 ]
  %266 = call i32 @crypto_scalarmult_curve25519(ptr noundef nonnull %7, ptr noundef nonnull %3, ptr noundef nonnull %6) #4
  %267 = load i8, ptr %7, align 16, !tbaa !5
  %268 = load i8, ptr @__const.test_curve25519_DH_TV.correct_ss, align 16, !tbaa !5
  %.not26 = icmp eq i8 %267, %268
  br i1 %.not26, label %269, label %393

269:                                              ; preds = %.loopexit29
  %270 = getelementptr inbounds i8, ptr %7, i64 1
  %271 = load i8, ptr %270, align 1, !tbaa !5
  %272 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 1), align 1, !tbaa !5
  %.not26.1 = icmp eq i8 %271, %272
  br i1 %.not26.1, label %273, label %393

273:                                              ; preds = %269
  %274 = getelementptr inbounds i8, ptr %7, i64 2
  %275 = load i8, ptr %274, align 2, !tbaa !5
  %276 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 2), align 2, !tbaa !5
  %.not26.2 = icmp eq i8 %275, %276
  br i1 %.not26.2, label %277, label %393

277:                                              ; preds = %273
  %278 = getelementptr inbounds i8, ptr %7, i64 3
  %279 = load i8, ptr %278, align 1, !tbaa !5
  %280 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 3), align 1, !tbaa !5
  %.not26.3 = icmp eq i8 %279, %280
  br i1 %.not26.3, label %281, label %393

281:                                              ; preds = %277
  %282 = getelementptr inbounds i8, ptr %7, i64 4
  %283 = load i8, ptr %282, align 4, !tbaa !5
  %284 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 4), align 4, !tbaa !5
  %.not26.4 = icmp eq i8 %283, %284
  br i1 %.not26.4, label %285, label %393

285:                                              ; preds = %281
  %286 = getelementptr inbounds i8, ptr %7, i64 5
  %287 = load i8, ptr %286, align 1, !tbaa !5
  %288 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 5), align 1, !tbaa !5
  %.not26.5 = icmp eq i8 %287, %288
  br i1 %.not26.5, label %289, label %393

289:                                              ; preds = %285
  %290 = getelementptr inbounds i8, ptr %7, i64 6
  %291 = load i8, ptr %290, align 2, !tbaa !5
  %292 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 6), align 2, !tbaa !5
  %.not26.6 = icmp eq i8 %291, %292
  br i1 %.not26.6, label %293, label %393

293:                                              ; preds = %289
  %294 = getelementptr inbounds i8, ptr %7, i64 7
  %295 = load i8, ptr %294, align 1, !tbaa !5
  %296 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 7), align 1, !tbaa !5
  %.not26.7 = icmp eq i8 %295, %296
  br i1 %.not26.7, label %297, label %393

297:                                              ; preds = %293
  %298 = getelementptr inbounds i8, ptr %7, i64 8
  %299 = load i8, ptr %298, align 8, !tbaa !5
  %300 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 8), align 8, !tbaa !5
  %.not26.8 = icmp eq i8 %299, %300
  br i1 %.not26.8, label %301, label %393

301:                                              ; preds = %297
  %302 = getelementptr inbounds i8, ptr %7, i64 9
  %303 = load i8, ptr %302, align 1, !tbaa !5
  %304 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 9), align 1, !tbaa !5
  %.not26.9 = icmp eq i8 %303, %304
  br i1 %.not26.9, label %305, label %393

305:                                              ; preds = %301
  %306 = getelementptr inbounds i8, ptr %7, i64 10
  %307 = load i8, ptr %306, align 2, !tbaa !5
  %308 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 10), align 2, !tbaa !5
  %.not26.10 = icmp eq i8 %307, %308
  br i1 %.not26.10, label %309, label %393

309:                                              ; preds = %305
  %310 = getelementptr inbounds i8, ptr %7, i64 11
  %311 = load i8, ptr %310, align 1, !tbaa !5
  %312 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 11), align 1, !tbaa !5
  %.not26.11 = icmp eq i8 %311, %312
  br i1 %.not26.11, label %313, label %393

313:                                              ; preds = %309
  %314 = getelementptr inbounds i8, ptr %7, i64 12
  %315 = load i8, ptr %314, align 4, !tbaa !5
  %316 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 12), align 4, !tbaa !5
  %.not26.12 = icmp eq i8 %315, %316
  br i1 %.not26.12, label %317, label %393

317:                                              ; preds = %313
  %318 = getelementptr inbounds i8, ptr %7, i64 13
  %319 = load i8, ptr %318, align 1, !tbaa !5
  %320 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 13), align 1, !tbaa !5
  %.not26.13 = icmp eq i8 %319, %320
  br i1 %.not26.13, label %321, label %393

321:                                              ; preds = %317
  %322 = getelementptr inbounds i8, ptr %7, i64 14
  %323 = load i8, ptr %322, align 2, !tbaa !5
  %324 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 14), align 2, !tbaa !5
  %.not26.14 = icmp eq i8 %323, %324
  br i1 %.not26.14, label %325, label %393

325:                                              ; preds = %321
  %326 = getelementptr inbounds i8, ptr %7, i64 15
  %327 = load i8, ptr %326, align 1, !tbaa !5
  %328 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 15), align 1, !tbaa !5
  %.not26.15 = icmp eq i8 %327, %328
  br i1 %.not26.15, label %329, label %393

329:                                              ; preds = %325
  %330 = getelementptr inbounds i8, ptr %7, i64 16
  %331 = load i8, ptr %330, align 16, !tbaa !5
  %332 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 16), align 16, !tbaa !5
  %.not26.16 = icmp eq i8 %331, %332
  br i1 %.not26.16, label %333, label %393

333:                                              ; preds = %329
  %334 = getelementptr inbounds i8, ptr %7, i64 17
  %335 = load i8, ptr %334, align 1, !tbaa !5
  %336 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 17), align 1, !tbaa !5
  %.not26.17 = icmp eq i8 %335, %336
  br i1 %.not26.17, label %337, label %393

337:                                              ; preds = %333
  %338 = getelementptr inbounds i8, ptr %7, i64 18
  %339 = load i8, ptr %338, align 2, !tbaa !5
  %340 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 18), align 2, !tbaa !5
  %.not26.18 = icmp eq i8 %339, %340
  br i1 %.not26.18, label %341, label %393

341:                                              ; preds = %337
  %342 = getelementptr inbounds i8, ptr %7, i64 19
  %343 = load i8, ptr %342, align 1, !tbaa !5
  %344 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 19), align 1, !tbaa !5
  %.not26.19 = icmp eq i8 %343, %344
  br i1 %.not26.19, label %345, label %393

345:                                              ; preds = %341
  %346 = getelementptr inbounds i8, ptr %7, i64 20
  %347 = load i8, ptr %346, align 4, !tbaa !5
  %348 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 20), align 4, !tbaa !5
  %.not26.20 = icmp eq i8 %347, %348
  br i1 %.not26.20, label %349, label %393

349:                                              ; preds = %345
  %350 = getelementptr inbounds i8, ptr %7, i64 21
  %351 = load i8, ptr %350, align 1, !tbaa !5
  %352 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 21), align 1, !tbaa !5
  %.not26.21 = icmp eq i8 %351, %352
  br i1 %.not26.21, label %353, label %393

353:                                              ; preds = %349
  %354 = getelementptr inbounds i8, ptr %7, i64 22
  %355 = load i8, ptr %354, align 2, !tbaa !5
  %356 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 22), align 2, !tbaa !5
  %.not26.22 = icmp eq i8 %355, %356
  br i1 %.not26.22, label %357, label %393

357:                                              ; preds = %353
  %358 = getelementptr inbounds i8, ptr %7, i64 23
  %359 = load i8, ptr %358, align 1, !tbaa !5
  %360 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 23), align 1, !tbaa !5
  %.not26.23 = icmp eq i8 %359, %360
  br i1 %.not26.23, label %361, label %393

361:                                              ; preds = %357
  %362 = getelementptr inbounds i8, ptr %7, i64 24
  %363 = load i8, ptr %362, align 8, !tbaa !5
  %364 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 24), align 8, !tbaa !5
  %.not26.24 = icmp eq i8 %363, %364
  br i1 %.not26.24, label %365, label %393

365:                                              ; preds = %361
  %366 = getelementptr inbounds i8, ptr %7, i64 25
  %367 = load i8, ptr %366, align 1, !tbaa !5
  %368 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 25), align 1, !tbaa !5
  %.not26.25 = icmp eq i8 %367, %368
  br i1 %.not26.25, label %369, label %393

369:                                              ; preds = %365
  %370 = getelementptr inbounds i8, ptr %7, i64 26
  %371 = load i8, ptr %370, align 2, !tbaa !5
  %372 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 26), align 2, !tbaa !5
  %.not26.26 = icmp eq i8 %371, %372
  br i1 %.not26.26, label %373, label %393

373:                                              ; preds = %369
  %374 = getelementptr inbounds i8, ptr %7, i64 27
  %375 = load i8, ptr %374, align 1, !tbaa !5
  %376 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 27), align 1, !tbaa !5
  %.not26.27 = icmp eq i8 %375, %376
  br i1 %.not26.27, label %377, label %393

377:                                              ; preds = %373
  %378 = getelementptr inbounds i8, ptr %7, i64 28
  %379 = load i8, ptr %378, align 4, !tbaa !5
  %380 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 28), align 4, !tbaa !5
  %.not26.28 = icmp eq i8 %379, %380
  br i1 %.not26.28, label %381, label %393

381:                                              ; preds = %377
  %382 = getelementptr inbounds i8, ptr %7, i64 29
  %383 = load i8, ptr %382, align 1, !tbaa !5
  %384 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 29), align 1, !tbaa !5
  %.not26.29 = icmp eq i8 %383, %384
  br i1 %.not26.29, label %385, label %393

385:                                              ; preds = %381
  %386 = getelementptr inbounds i8, ptr %7, i64 30
  %387 = load i8, ptr %386, align 2, !tbaa !5
  %388 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 30), align 2, !tbaa !5
  %.not26.30 = icmp eq i8 %387, %388
  br i1 %.not26.30, label %389, label %393

389:                                              ; preds = %385
  %390 = getelementptr inbounds i8, ptr %7, i64 31
  %391 = load i8, ptr %390, align 1, !tbaa !5
  %392 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 31), align 1, !tbaa !5
  %.not26.31 = icmp eq i8 %391, %392
  br i1 %.not26.31, label %.loopexit28, label %393

393:                                              ; preds = %389, %385, %381, %377, %373, %369, %365, %361, %357, %353, %349, %345, %341, %337, %333, %329, %325, %321, %317, %313, %309, %305, %301, %297, %293, %289, %285, %281, %277, %273, %269, %.loopexit29
  %394 = or i32 %.1, 4
  br label %.loopexit28

.loopexit28:                                      ; preds = %389, %393
  %.2 = phi i32 [ %394, %393 ], [ %.1, %389 ]
  %395 = call i32 @crypto_scalarmult_curve25519(ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5) #4
  %396 = load i8, ptr %8, align 16, !tbaa !5
  %.not27 = icmp eq i8 %396, %268
  br i1 %.not27, label %397, label %521

397:                                              ; preds = %.loopexit28
  %398 = getelementptr inbounds i8, ptr %8, i64 1
  %399 = load i8, ptr %398, align 1, !tbaa !5
  %400 = load i8, ptr getelementptr inbounds (i8, ptr @__const.test_curve25519_DH_TV.correct_ss, i64 1), align 1, !tbaa !5
  %.not27.1 = icmp eq i8 %399, %400
  br i1 %.not27.1, label %401, label %521

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

521:                                              ; preds = %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, %397, %.loopexit28
  %522 = or i32 %.2, 8
  br label %.loopexit

.loopexit:                                        ; preds = %517, %521
  %.3 = phi i32 [ %522, %521 ], [ %.2, %517 ]
  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,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass