; LLVM IR from intuitive-robots/mdt_policy :: pyhash-0.9.3/src/smhasher/KeysetTest.ll (Z10SanityTestPFvPKvijPvEi)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Rand = type { i32, i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 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: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z10SanityTestPFvPKvijPvEi(ptr noundef %0, i32 noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.Rand, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  call void @_ZN4RandC2Ej(ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef 883741)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  store i8 1, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %24 = load i32, ptr %4, align 4, !tbaa !9
  %25 = sdiv i32 %24, 8
  store i32 %25, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 10, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 256, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 16, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 304, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %26 = call noalias noundef nonnull ptr @_Znam(i64 noundef 304) #8
  store ptr %26, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %27 = call noalias noundef nonnull ptr @_Znam(i64 noundef 304) #8
  store ptr %27, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  store ptr %30, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = call noalias noundef nonnull ptr @_Znam(i64 noundef %32) #8
  store ptr %33, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %121, %2
  %35 = load i32, ptr %16, align 4, !tbaa !9
  %36 = icmp slt i32 %35, 10
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %124

38:                                               ; preds = %34
  %39 = load i32, ptr %16, align 4, !tbaa !9
  %40 = srem i32 %39, 1
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %38
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %44

44:                                               ; preds = %42, %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 4, ptr %18, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %117, %44
  %46 = load i32, ptr %18, align 4, !tbaa !9
  %47 = icmp sle i32 %46, 256
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %120

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 16, ptr %19, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %113, %49
  %51 = load i32, ptr %19, align 4, !tbaa !9
  %52 = icmp slt i32 %51, 32
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %116

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  store ptr %56, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load i32, ptr %19, align 4, !tbaa !9
  %59 = add nsw i32 16, %58
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i8, ptr %57, i64 %60
  store ptr %61, ptr %21, align 8, !tbaa !5
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN4Rand6rand_pEPvi(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef %62, i32 noundef 304)
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN4Rand6rand_pEPvi(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef %63, i32 noundef 304)
  %64 = load ptr, ptr %21, align 8, !tbaa !5
  %65 = load ptr, ptr %20, align 8, !tbaa !5
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %64, ptr align 1 %65, i64 %67, i1 false)
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = load ptr, ptr %20, align 8, !tbaa !5
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  call void %68(ptr noundef %69, i32 noundef %70, i32 noundef 0, ptr noundef %71)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %109, %54
  %73 = load i32, ptr %22, align 4, !tbaa !9
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = mul nsw i32 %74, 8
  %76 = icmp slt i32 %73, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %72
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %112

78:                                               ; preds = %72
  %79 = load ptr, ptr %21, align 8, !tbaa !5
  %80 = load i32, ptr %18, align 4, !tbaa !9
  %81 = load i32, ptr %22, align 4, !tbaa !9
  call void @_Z7flipbitPvij(ptr noundef %79, i32 noundef %80, i32 noundef %81)
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = load ptr, ptr %21, align 8, !tbaa !5
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  call void %82(ptr noundef %83, i32 noundef %84, i32 noundef 0, ptr noundef %85)
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = call i32 @memcmp(ptr noundef %86, ptr noundef %87, i64 noundef %89) #9
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %78
  store i8 0, ptr %6, align 1, !tbaa !11
  br label %93

93:                                               ; preds = %92, %78
  %94 = load ptr, ptr %21, align 8, !tbaa !5
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = load i32, ptr %22, align 4, !tbaa !9
  call void @_Z7flipbitPvij(ptr noundef %94, i32 noundef %95, i32 noundef %96)
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = load ptr, ptr %21, align 8, !tbaa !5
  %99 = load i32, ptr %18, align 4, !tbaa !9
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  call void %97(ptr noundef %98, i32 noundef %99, i32 noundef 0, ptr noundef %100)
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = call i32 @memcmp(ptr noundef %101, ptr noundef %102, i64 noundef %104) #9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %93
  store i8 0, ptr %6, align 1, !tbaa !11
  br label %108

108:                                              ; preds = %107, %93
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %22, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %22, align 4, !tbaa !9
  br label %72, !llvm.loop !13

112:                                              ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %19, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %19, align 4, !tbaa !9
  br label %50, !llvm.loop !15

116:                                              ; preds = %53
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %18, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %18, align 4, !tbaa !9
  br label %45, !llvm.loop !16

120:                                              ; preds = %48
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %16, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %16, align 4, !tbaa !9
  br label %34, !llvm.loop !17

124:                                              ; preds = %37
  %125 = load i8, ptr %6, align 1, !tbaa !11, !range !18, !noundef !19
  %126 = trunc i8 %125 to i1
  %127 = zext i1 %126 to i32
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %131

129:                                              ; preds = %124
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %133

131:                                              ; preds = %124
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %133

133:                                              ; preds = %131, %129
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = icmp eq ptr %134, null
  br i1 %135, label %137, label %136

136:                                              ; preds = %133
  call void @_ZdaPv(ptr noundef %134) #10
  br label %137

137:                                              ; preds = %136, %133
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = icmp eq ptr %138, null
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  call void @_ZdaPv(ptr noundef %138) #10
  br label %141

141:                                              ; preds = %140, %137
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  %143 = icmp eq ptr %142, null
  br i1 %143, label %145, label %144

144:                                              ; preds = %141
  call void @_ZdaPv(ptr noundef %142) #10
  br label %145

145:                                              ; preds = %144, %141
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = icmp eq ptr %146, null
  br i1 %147, label %149, label %148

148:                                              ; preds = %145
  call void @_ZdaPv(ptr noundef %146) #10
  br label %149

149:                                              ; preds = %148, %145
  %150 = load i8, ptr %6, align 1, !tbaa !11, !range !18, !noundef !19
  %151 = trunc i8 %150 to i1
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  ret i1 %151
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4RandC2Ej(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Rand6rand_pEPvi(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef, i32 noundef) #4 align 2

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

declare void @_Z7flipbitPvij(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{i8 0, i8 2}
!19 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Rand = type { i32, i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 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: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z10SanityTestPFvPKvijPvEi(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #4 {
  %3 = alloca %struct.Rand, align 4
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @_ZN4RandC2Ej(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 883741)
  %5 = sdiv i32 %1, 8
  %6 = call noalias noundef nonnull dereferenceable(304) ptr @_Znam(i64 noundef 304) #9
  %7 = call noalias noundef nonnull dereferenceable(304) ptr @_Znam(i64 noundef 304) #9
  %8 = sext i32 %5 to i64
  %9 = call noalias noundef nonnull ptr @_Znam(i64 noundef %8) #9
  %10 = call noalias noundef nonnull ptr @_Znam(i64 noundef %8) #9
  %11 = getelementptr inbounds i8, ptr %6, i64 16
  %invariant.gep = getelementptr inbounds i8, ptr %7, i64 16
  br label %16

12:                                               ; preds = %19
  %.mask = and i8 %.5, 1
  %13 = icmp eq i8 %.mask, 0
  %.str.4..str.5 = select i1 %13, ptr @.str.4, ptr @.str.5
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.4..str.5)
  call void @_ZdaPv(ptr noundef nonnull %6) #10
  call void @_ZdaPv(ptr noundef nonnull %7) #10
  call void @_ZdaPv(ptr noundef nonnull %9) #10
  call void @_ZdaPv(ptr noundef nonnull %10) #10
  %15 = trunc nuw i8 %.5 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  ret i1 %15

16:                                               ; preds = %2, %19
  %.05062 = phi i8 [ 1, %2 ], [ %.5, %19 ]
  %.05161 = phi i32 [ 0, %2 ], [ %20, %19 ]
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %.preheader

.preheader:                                       ; preds = %16, %21
  %indvars.iv66 = phi i64 [ 4, %16 ], [ %indvars.iv.next67, %21 ]
  %indvars.iv = phi i32 [ 32, %16 ], [ %indvars.iv.next, %21 ]
  %.160 = phi i8 [ %.05062, %16 ], [ %.5, %21 ]
  %18 = trunc nuw nsw i64 %indvars.iv66 to i32
  br label %22

19:                                               ; preds = %21
  %20 = add nuw nsw i32 %.05161, 1
  %exitcond69.not = icmp eq i32 %20, 10
  br i1 %exitcond69.not, label %12, label %16, !llvm.loop !5

21:                                               ; preds = %23
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %indvars.iv.next = add nuw nsw i32 %indvars.iv, 8
  %exitcond68.not = icmp eq i64 %indvars.iv.next67, 257
  br i1 %exitcond68.not, label %19, label %.preheader, !llvm.loop !7

22:                                               ; preds = %.preheader, %23
  %indvars.iv63 = phi i64 [ 16, %.preheader ], [ %indvars.iv.next64, %23 ]
  %.258 = phi i8 [ %.160, %.preheader ], [ %.5, %23 ]
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv63
  call void @_ZN4Rand6rand_pEPvi(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull %6, i32 noundef 304)
  call void @_ZN4Rand6rand_pEPvi(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull %7, i32 noundef 304)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %gep, ptr noundef nonnull align 1 dereferenceable(1) %11, i64 %indvars.iv66, i1 false)
  call void %0(ptr noundef nonnull %11, i32 noundef %18, i32 noundef 0, ptr noundef nonnull %9)
  br label %24

23:                                               ; preds = %24
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next64, 32
  br i1 %exitcond65.not, label %21, label %22, !llvm.loop !8

24:                                               ; preds = %22, %24
  %.056 = phi i32 [ 0, %22 ], [ %26, %24 ]
  %.355 = phi i8 [ %.258, %22 ], [ %.5, %24 ]
  call void @_Z7flipbitPvij(ptr noundef nonnull %gep, i32 noundef %18, i32 noundef %.056)
  call void %0(ptr noundef nonnull %gep, i32 noundef %18, i32 noundef 0, ptr noundef nonnull %10)
  %bcmp = call i32 @bcmp(ptr nonnull %9, ptr nonnull %10, i64 %8)
  %25 = icmp eq i32 %bcmp, 0
  %spec.select = select i1 %25, i8 0, i8 %.355
  call void @_Z7flipbitPvij(ptr noundef nonnull %gep, i32 noundef %18, i32 noundef %.056)
  call void %0(ptr noundef nonnull %gep, i32 noundef %18, i32 noundef 0, ptr noundef nonnull %10)
  %bcmp54 = call i32 @bcmp(ptr nonnull %9, ptr nonnull %10, i64 %8)
  %.not = icmp eq i32 %bcmp54, 0
  %.5 = select i1 %.not, i8 %spec.select, i8 0
  %26 = add nuw nsw i32 %.056, 1
  %exitcond.not = icmp eq i32 %26, %indvars.iv
  br i1 %exitcond.not, label %23, label %24, !llvm.loop !9
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4RandC2Ej(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Rand6rand_pEPvi(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef, i32 noundef) local_unnamed_addr #4 align 2

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

declare void @_Z7flipbitPvij(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nofree nounwind willreturn memory(argmem: read) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass