; LLVM IR from rweather/lightweight-crypto :: src/genavr/algorithm_gascon.ll (Z25gen_gascon128_permutationR4Code)

; 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.Reg = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [15 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

declare void @_ZN4Code31prologue_permutation_with_countEPKcj(ptr dead_on_unwind writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) #2 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4Code15allocateHighRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) #1

declare void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1

declare void @_ZN4Code3subERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, i8 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2 align 2

declare void @_ZN4Code5logorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code3ldzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext) #2 align 2

declare void @_ZN4Code6logxorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

declare void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25gen_gascon128_permutationR4Code(ptr noundef nonnull align 8 dereferenceable(200) %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.Reg, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %class.Reg, align 8
  %7 = alloca %class.Reg, align 8
  %8 = alloca %class.Reg, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca %class.Reg, align 8
  %12 = alloca %class.Reg, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #4
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN4Code31prologue_permutation_with_countEPKcj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %3, ptr noundef nonnull align 8 dereferenceable(200) %13, ptr noundef @.str.1, i32 noundef 0)
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %14, i32 noundef 32)
          to label %15 unwind label %46

15:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #4
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code15allocateHighRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %6, ptr noundef nonnull align 8 dereferenceable(200) %16, i32 noundef 1)
          to label %17 unwind label %50

17:                                               ; preds = %15
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %18, ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 15)
          to label %19 unwind label %54

19:                                               ; preds = %17
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3subERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200) %20, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %21 unwind label %54

21:                                               ; preds = %19
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
          to label %24 unwind label %54

24:                                               ; preds = %21
  invoke void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200) %22, i32 noundef 56, i8 noundef zeroext %23)
          to label %25 unwind label %54

25:                                               ; preds = %24
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code5logorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200) %26, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %27 unwind label %54

27:                                               ; preds = %25
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200) %28, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %29 unwind label %54

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %7, ptr noundef nonnull align 8 dereferenceable(200) %30, i32 noundef 8)
          to label %31 unwind label %58

31:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %8, ptr noundef nonnull align 8 dereferenceable(200) %32, i32 noundef 8)
          to label %33 unwind label %62

33:                                               ; preds = %31
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3ldzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %34, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 0)
          to label %35 unwind label %66

35:                                               ; preds = %33
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3ldzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %36, ptr noundef nonnull align 8 dereferenceable(24) %8, i8 noundef zeroext 16)
          to label %37 unwind label %66

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  store i8 0, ptr %9, align 1, !tbaa !9
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code5labelERh(ptr noundef nonnull align 8 dereferenceable(200) %38, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %39 unwind label %70

39:                                               ; preds = %37
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code6logxorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200) %40, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %41 unwind label %70

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !10
  br label %42

42:                                               ; preds = %84, %41
  %43 = load i32, ptr %10, align 4, !tbaa !10
  %44 = icmp slt i32 %43, 8
  br i1 %44, label %74, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %101

46:                                               ; preds = %1
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %4, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %5, align 4
  br label %126

50:                                               ; preds = %15
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %4, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %5, align 4
  br label %125

54:                                               ; preds = %27, %25, %24, %21, %19, %17
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %4, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %5, align 4
  br label %124

58:                                               ; preds = %29
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %4, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %5, align 4
  br label %123

62:                                               ; preds = %31
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %4, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %5, align 4
  br label %122

66:                                               ; preds = %35, %33
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %4, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %5, align 4
  br label %121

70:                                               ; preds = %117, %115, %113, %111, %109, %107, %105, %103, %101, %39, %37
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  br label %120

74:                                               ; preds = %42
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  %77 = load i32, ptr %10, align 4, !tbaa !10
  %78 = trunc i32 %77 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext %78, i8 noundef zeroext 1)
          to label %79 unwind label %87

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  %80 = load i32, ptr %10, align 4, !tbaa !10
  %81 = trunc i32 %80 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %8, i8 noundef zeroext %81, i8 noundef zeroext 1)
          to label %82 unwind label %91

82:                                               ; preds = %79
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %75, i32 noundef %76, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %83 unwind label %95

83:                                               ; preds = %82
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %10, align 4, !tbaa !10
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %10, align 4, !tbaa !10
  br label %42, !llvm.loop !12

87:                                               ; preds = %74
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %4, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %5, align 4
  br label %100

91:                                               ; preds = %79
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %4, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %5, align 4
  br label %99

95:                                               ; preds = %82
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %4, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %5, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  br label %99

99:                                               ; preds = %95, %91
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %100

100:                                              ; preds = %99, %87
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %120

101:                                              ; preds = %45
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %102, ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1, i32 noundef 61, i32 noundef 38)
          to label %103 unwind label %70

103:                                              ; preds = %101
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %104, ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 2, i32 noundef 1, i32 noundef 6)
          to label %105 unwind label %70

105:                                              ; preds = %103
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %106, ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 3, i32 noundef 10, i32 noundef 17)
          to label %107 unwind label %70

107:                                              ; preds = %105
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %108, ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 4, i32 noundef 7, i32 noundef 40)
          to label %109 unwind label %70

109:                                              ; preds = %107
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %110, ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0, i32 noundef 19, i32 noundef 28)
          to label %111 unwind label %70

111:                                              ; preds = %109
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3subERK3Regyb(ptr noundef nonnull align 8 dereferenceable(200) %112, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 15, i1 noundef zeroext false)
          to label %113 unwind label %70

113:                                              ; preds = %111
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code16compare_and_loopERK3RegyRh(ptr noundef nonnull align 8 dereferenceable(200) %114, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 60, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %115 unwind label %70

115:                                              ; preds = %113
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %116, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 0)
          to label %117 unwind label %70

117:                                              ; preds = %115
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %118, ptr noundef nonnull align 8 dereferenceable(24) %8, i8 noundef zeroext 16)
          to label %119 unwind label %70

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  ret void

120:                                              ; preds = %100, %70
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  br label %121

121:                                              ; preds = %120, %66
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %122

122:                                              ; preds = %121, %62
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %123

123:                                              ; preds = %122, %58
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  br label %124

124:                                              ; preds = %123, %54
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %125

125:                                              ; preds = %124, %50
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #4
  br label %126

126:                                              ; preds = %125, %46
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %4, align 8
  %129 = load i32, ptr %5, align 4
  %130 = insertvalue { ptr, i32 } poison, ptr %128, 0
  %131 = insertvalue { ptr, i32 } %130, i32 %129, 1
  resume { ptr, i32 } %131
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code5labelERh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

declare void @_ZN4Code3subERK3Regyb(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i1 noundef zeroext) #1

declare void @_ZN4Code16compare_and_loopERK3RegyRh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) #1

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 = { 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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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.Reg = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [15 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

declare void @_ZN4Code31prologue_permutation_with_countEPKcj(ptr dead_on_unwind writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4Code15allocateHighRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) local_unnamed_addr #1

declare void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1

declare void @_ZN4Code3subERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2 align 2

declare void @_ZN4Code5logorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code3ldzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext) local_unnamed_addr #2 align 2

declare void @_ZN4Code6logxorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25gen_gascon128_permutationR4Code(ptr noundef nonnull align 8 dereferenceable(200) %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Reg, align 8
  %3 = alloca %class.Reg, align 8
  %4 = alloca %class.Reg, align 8
  %5 = alloca %class.Reg, align 8
  %6 = alloca i8, align 1
  %7 = alloca %class.Reg, align 8
  %8 = alloca %class.Reg, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @_ZN4Code31prologue_permutation_with_countEPKcj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %2, ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull @.str.1, i32 noundef 0)
  invoke void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 32)
          to label %9 unwind label %23

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  invoke void @_ZN4Code15allocateHighRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %3, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1)
          to label %10 unwind label %25

10:                                               ; preds = %9
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 15)
          to label %11 unwind label %27

11:                                               ; preds = %10
  invoke void @_ZN4Code3subERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %12 unwind label %27

12:                                               ; preds = %11
  %13 = invoke noundef zeroext i8 @_ZNK3Reg3regEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
          to label %14 unwind label %27

14:                                               ; preds = %12
  invoke void @_ZN4Code6oneregEN4Insn4TypeEh(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 56, i8 noundef zeroext %13)
          to label %15 unwind label %27

15:                                               ; preds = %14
  invoke void @_ZN4Code5logorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %16 unwind label %27

16:                                               ; preds = %15
  invoke void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %17 unwind label %27

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %4, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 8)
          to label %18 unwind label %29

18:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %5, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 8)
          to label %19 unwind label %31

19:                                               ; preds = %18
  invoke void @_ZN4Code3ldzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 0)
          to label %20 unwind label %33

20:                                               ; preds = %19
  invoke void @_ZN4Code3ldzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 16)
          to label %21 unwind label %33

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  store i8 0, ptr %6, align 1, !tbaa !5
  invoke void @_ZN4Code5labelERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %22 unwind label %35

22:                                               ; preds = %21
  invoke void @_ZN4Code6logxorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %.preheader.preheader unwind label %35

.preheader.preheader:                             ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 0, i8 noundef zeroext 1)
          to label %37 unwind label %54

23:                                               ; preds = %1
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %77

25:                                               ; preds = %9
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %76

27:                                               ; preds = %16, %15, %14, %12, %11, %10
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %75

29:                                               ; preds = %17
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %74

31:                                               ; preds = %18
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %73

33:                                               ; preds = %20, %19
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %72

35:                                               ; preds = %69, %68, %67, %66, %65, %64, %63, %62, %53, %22, %21
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %71

37:                                               ; preds = %.preheader.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 0, i8 noundef zeroext 1)
          to label %38 unwind label %56

38:                                               ; preds = %37
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %.preheader.1 unwind label %58

.preheader.1:                                     ; preds = %38
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %39 unwind label %54

39:                                               ; preds = %.preheader.1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %40 unwind label %56

40:                                               ; preds = %39
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %.preheader.2 unwind label %58

.preheader.2:                                     ; preds = %40
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %41 unwind label %54

41:                                               ; preds = %.preheader.2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %42 unwind label %56

42:                                               ; preds = %41
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %.preheader.3 unwind label %58

.preheader.3:                                     ; preds = %42
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %43 unwind label %54

43:                                               ; preds = %.preheader.3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %44 unwind label %56

44:                                               ; preds = %43
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %.preheader.4 unwind label %58

.preheader.4:                                     ; preds = %44
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 4, i8 noundef zeroext 1)
          to label %45 unwind label %54

45:                                               ; preds = %.preheader.4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 4, i8 noundef zeroext 1)
          to label %46 unwind label %56

46:                                               ; preds = %45
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %.preheader.5 unwind label %58

.preheader.5:                                     ; preds = %46
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 5, i8 noundef zeroext 1)
          to label %47 unwind label %54

47:                                               ; preds = %.preheader.5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 5, i8 noundef zeroext 1)
          to label %48 unwind label %56

48:                                               ; preds = %47
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 5, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %.preheader.6 unwind label %58

.preheader.6:                                     ; preds = %48
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 6, i8 noundef zeroext 1)
          to label %49 unwind label %54

49:                                               ; preds = %.preheader.6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 6, i8 noundef zeroext 1)
          to label %50 unwind label %56

50:                                               ; preds = %49
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %.preheader.7 unwind label %58

.preheader.7:                                     ; preds = %50
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 7, i8 noundef zeroext 1)
          to label %51 unwind label %54

51:                                               ; preds = %.preheader.7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 7, i8 noundef zeroext 1)
          to label %52 unwind label %56

52:                                               ; preds = %51
  invoke void @_ZL20gascon128_substituteR4CodeiRK3RegS3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %53 unwind label %58

53:                                               ; preds = %52
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1, i32 noundef 61, i32 noundef 38)
          to label %62 unwind label %35

54:                                               ; preds = %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %61

56:                                               ; preds = %51, %49, %47, %45, %43, %41, %39, %37
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %52, %50, %48, %46, %44, %42, %40, %38
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %60

60:                                               ; preds = %58, %56
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %61

61:                                               ; preds = %60, %54
  %.pn.pn = phi { ptr, i32 } [ %.pn, %60 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %71

62:                                               ; preds = %53
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 2, i32 noundef 1, i32 noundef 6)
          to label %63 unwind label %35

63:                                               ; preds = %62
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 3, i32 noundef 10, i32 noundef 17)
          to label %64 unwind label %35

64:                                               ; preds = %63
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 4, i32 noundef 7, i32 noundef 40)
          to label %65 unwind label %35

65:                                               ; preds = %64
  invoke void @_ZL17gascon128_diffuseR4CodeRK3Regiii(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 0, i32 noundef 19, i32 noundef 28)
          to label %66 unwind label %35

66:                                               ; preds = %65
  invoke void @_ZN4Code3subERK3Regyb(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 15, i1 noundef zeroext false)
          to label %67 unwind label %35

67:                                               ; preds = %66
  invoke void @_ZN4Code16compare_and_loopERK3RegyRh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 60, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %68 unwind label %35

68:                                               ; preds = %67
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 0)
          to label %69 unwind label %35

69:                                               ; preds = %68
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 16)
          to label %70 unwind label %35

70:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  ret void

71:                                               ; preds = %61, %35
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %61 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  br label %72

72:                                               ; preds = %71, %33
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %71 ], [ %34, %33 ]
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %73

73:                                               ; preds = %72, %31
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %72 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %74

74:                                               ; preds = %73, %29
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %73 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  br label %75

75:                                               ; preds = %74, %27
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %74 ], [ %28, %27 ]
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %76

76:                                               ; preds = %75, %25
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %75 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %77

77:                                               ; preds = %76, %23
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %76 ], [ %24, %23 ]
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code5labelERh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

declare void @_ZN4Code3subERK3Regyb(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN4Code16compare_and_loopERK3RegyRh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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