; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/misc/user_guide/chpt7.1/testbench.ll (ZN9testbench5entryEv)

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

%class.QTIsaac = type { ptr, %"struct.QTIsaac<>::randctx" }
%"struct.QTIsaac<>::randctx" = type <{ i32, [4 x i8], ptr, ptr, i32, i32, i32, [4 x i8] }>
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@rng = external dso_local global %class.QTIsaac, align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z9adder_subiiiPi(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9testbench5entryEv(ptr noundef nonnull align 8 dereferenceable(416) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [8192 x i8], align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %34, %1
  %12 = load i32, ptr %8, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 10
  br i1 %13, label %14, label %37

14:                                               ; preds = %11
  %15 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %16 = and i32 %15, 268435455
  store i32 %16, ptr %3, align 4, !tbaa !9
  %17 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %18 = and i32 %17, 268435455
  store i32 %18, ptr %4, align 4, !tbaa !9
  %19 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %20 = and i32 %19, 268435455
  store i32 %20, ptr %5, align 4, !tbaa !9
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %21, i32 noundef %22, i32 noundef %23, ptr noundef %6)
  store i32 %24, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8192, ptr %9) #6
  %25 = getelementptr inbounds [8192 x i8], ptr %9, i64 0, i64 0
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %25, ptr noundef @.str, i32 noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef %30) #6
  %32 = getelementptr inbounds [8192 x i8], ptr %9, i64 0, i64 0
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %32)
  call void @llvm.lifetime.end.p0(i64 8192, ptr %9) #6
  br label %34

34:                                               ; preds = %14
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %8, align 4, !tbaa !9
  br label %11, !llvm.loop !11

37:                                               ; preds = %11
  call void @_ZN7sc_core7sc_stopEv()
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare void @_ZN7sc_core7sc_stopEv() #5

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint 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 #4 = { 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 #5 = { "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 #6 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%class.QTIsaac = type { ptr, %"struct.QTIsaac<>::randctx" }
%"struct.QTIsaac<>::randctx" = type <{ i32, [4 x i8], ptr, ptr, i32, i32, i32, [4 x i8] }>
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@rng = external dso_local global %class.QTIsaac, align 8
@.str = external hidden unnamed_addr constant [42 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z9adder_subiiiPi(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9testbench5entryEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(416) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca [8192 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %4 = tail call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %5 = and i32 %4, 268435455
  %6 = tail call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %7 = and i32 %6, 268435455
  %8 = tail call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %9 = and i32 %8, 268435455
  %10 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %5, i32 noundef %7, i32 noundef %9, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %5, i32 noundef %7, i32 noundef %9, i32 noundef %11, i32 noundef %10) #6
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %14 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %15 = and i32 %14, 268435455
  %16 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %17 = and i32 %16, 268435455
  %18 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %19 = and i32 %18, 268435455
  %20 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %15, i32 noundef %17, i32 noundef %19, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %15, i32 noundef %17, i32 noundef %19, i32 noundef %21, i32 noundef %20) #6
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %24 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %25 = and i32 %24, 268435455
  %26 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %27 = and i32 %26, 268435455
  %28 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %29 = and i32 %28, 268435455
  %30 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %25, i32 noundef %27, i32 noundef %29, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %25, i32 noundef %27, i32 noundef %29, i32 noundef %31, i32 noundef %30) #6
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %34 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %35 = and i32 %34, 268435455
  %36 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %37 = and i32 %36, 268435455
  %38 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %39 = and i32 %38, 268435455
  %40 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %35, i32 noundef %37, i32 noundef %39, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %35, i32 noundef %37, i32 noundef %39, i32 noundef %41, i32 noundef %40) #6
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %44 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %45 = and i32 %44, 268435455
  %46 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %47 = and i32 %46, 268435455
  %48 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %49 = and i32 %48, 268435455
  %50 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %45, i32 noundef %47, i32 noundef %49, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %45, i32 noundef %47, i32 noundef %49, i32 noundef %51, i32 noundef %50) #6
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %54 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %55 = and i32 %54, 268435455
  %56 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %57 = and i32 %56, 268435455
  %58 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %59 = and i32 %58, 268435455
  %60 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %55, i32 noundef %57, i32 noundef %59, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %55, i32 noundef %57, i32 noundef %59, i32 noundef %61, i32 noundef %60) #6
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %64 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %65 = and i32 %64, 268435455
  %66 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %67 = and i32 %66, 268435455
  %68 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %69 = and i32 %68, 268435455
  %70 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %65, i32 noundef %67, i32 noundef %69, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %65, i32 noundef %67, i32 noundef %69, i32 noundef %71, i32 noundef %70) #6
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %74 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %75 = and i32 %74, 268435455
  %76 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %77 = and i32 %76, 268435455
  %78 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %79 = and i32 %78, 268435455
  %80 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %75, i32 noundef %77, i32 noundef %79, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %75, i32 noundef %77, i32 noundef %79, i32 noundef %81, i32 noundef %80) #6
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %84 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %85 = and i32 %84, 268435455
  %86 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %87 = and i32 %86, 268435455
  %88 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %89 = and i32 %88, 268435455
  %90 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %85, i32 noundef %87, i32 noundef %89, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %85, i32 noundef %87, i32 noundef %89, i32 noundef %91, i32 noundef %90) #6
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  %94 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %95 = and i32 %94, 268435455
  %96 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %97 = and i32 %96, 268435455
  %98 = call noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48) @rng)
  %99 = and i32 %98, 268435455
  %100 = call noundef i32 @_Z9adder_subiiiPi(i32 noundef %95, i32 noundef %97, i32 noundef %99, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %3) #6
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %95, i32 noundef %97, i32 noundef %99, i32 noundef %101, i32 noundef %100) #6
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %3) #6
  call void @_ZN7sc_core7sc_stopEv()
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN7QTIsaacILj8EE4randEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

declare void @_ZN7sc_core7sc_stopEv() local_unnamed_addr #5

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint 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 #4 = { 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 #5 = { "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 #6 = { 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++ TBAA"}


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