; LLVM IR from Dovyski/opengl-demos :: libs/glm-0.9.9.3/test/core/core_func_common.ll (ZN4sign11perf_linearEm)

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

@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign8sign_cmpIiEET_S1_(i32 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign7sign_ifIiEET_S1_(i32 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign9sign_alu1IiEET_S1_(i32 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign9sign_alu2Ei(i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: nounwind
declare i64 @clock() #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign8sign_subIiEET_S1_(i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4sign11perf_linearEm(i64 noundef %0) #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  store i64 %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %21 = load i64, ptr %2, align 8, !tbaa !5
  store i64 %21, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %22 = load i64, ptr %4, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %22)
          to label %23 unwind label %31

23:                                               ; preds = %1
  %24 = load i64, ptr %4, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %24)
          to label %25 unwind label %31

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %40, %25
  %27 = load i64, ptr %9, align 8, !tbaa !5
  %28 = load i64, ptr %4, align 8, !tbaa !5
  %29 = icmp ult i64 %27, %28
  br i1 %29, label %35, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %43

31:                                               ; preds = %23, %1
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  br label %195

35:                                               ; preds = %26
  %36 = load i64, ptr %9, align 8, !tbaa !5
  %37 = trunc i64 %36 to i32
  %38 = load i64, ptr %9, align 8, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %38) #6
  store i32 %37, ptr %39, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %35
  %41 = load i64, ptr %9, align 8, !tbaa !5
  %42 = add i64 %41, 1
  store i64 %42, ptr %9, align 8, !tbaa !5
  br label %26, !llvm.loop !11

43:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %44 = call i64 @clock() #6
  store i64 %44, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %58, %43
  %46 = load i64, ptr %11, align 8, !tbaa !5
  %47 = load i64, ptr %4, align 8, !tbaa !5
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %65

50:                                               ; preds = %45
  %51 = load i64, ptr %11, align 8, !tbaa !5
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %51) #6
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = invoke noundef i32 @_ZN4sign8sign_cmpIiEET_S1_(i32 noundef %53)
          to label %55 unwind label %61

55:                                               ; preds = %50
  %56 = load i64, ptr %11, align 8, !tbaa !5
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %56) #6
  store i32 %54, ptr %57, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %55
  %59 = load i64, ptr %11, align 8, !tbaa !5
  %60 = add i64 %59, 1
  store i64 %60, ptr %11, align 8, !tbaa !5
  br label %45, !llvm.loop !13

61:                                               ; preds = %50
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %194

65:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %66 = call i64 @clock() #6
  store i64 %66, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %80, %65
  %68 = load i64, ptr %13, align 8, !tbaa !5
  %69 = load i64, ptr %4, align 8, !tbaa !5
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %87

72:                                               ; preds = %67
  %73 = load i64, ptr %13, align 8, !tbaa !5
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %73) #6
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = invoke noundef i32 @_ZN4sign7sign_ifIiEET_S1_(i32 noundef %75)
          to label %77 unwind label %83

77:                                               ; preds = %72
  %78 = load i64, ptr %13, align 8, !tbaa !5
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %78) #6
  store i32 %76, ptr %79, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %77
  %81 = load i64, ptr %13, align 8, !tbaa !5
  %82 = add i64 %81, 1
  store i64 %82, ptr %13, align 8, !tbaa !5
  br label %67, !llvm.loop !14

83:                                               ; preds = %72
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %193

87:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %88 = call i64 @clock() #6
  store i64 %88, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %102, %87
  %90 = load i64, ptr %15, align 8, !tbaa !5
  %91 = load i64, ptr %4, align 8, !tbaa !5
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %109

94:                                               ; preds = %89
  %95 = load i64, ptr %15, align 8, !tbaa !5
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %95) #6
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = invoke noundef i32 @_ZN4sign9sign_alu1IiEET_S1_(i32 noundef %97)
          to label %99 unwind label %105

99:                                               ; preds = %94
  %100 = load i64, ptr %15, align 8, !tbaa !5
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %100) #6
  store i32 %98, ptr %101, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %99
  %103 = load i64, ptr %15, align 8, !tbaa !5
  %104 = add i64 %103, 1
  store i64 %104, ptr %15, align 8, !tbaa !5
  br label %89, !llvm.loop !15

105:                                              ; preds = %94
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %7, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %192

109:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %110 = call i64 @clock() #6
  store i64 %110, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %124, %109
  %112 = load i64, ptr %17, align 8, !tbaa !5
  %113 = load i64, ptr %4, align 8, !tbaa !5
  %114 = icmp ult i64 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %131

116:                                              ; preds = %111
  %117 = load i64, ptr %17, align 8, !tbaa !5
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %117) #6
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = invoke noundef i32 @_ZN4sign9sign_alu2Ei(i32 noundef %119)
          to label %121 unwind label %127

121:                                              ; preds = %116
  %122 = load i64, ptr %17, align 8, !tbaa !5
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %122) #6
  store i32 %120, ptr %123, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %121
  %125 = load i64, ptr %17, align 8, !tbaa !5
  %126 = add i64 %125, 1
  store i64 %126, ptr %17, align 8, !tbaa !5
  br label %111, !llvm.loop !16

127:                                              ; preds = %116
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %191

131:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %132 = call i64 @clock() #6
  store i64 %132, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store i64 0, ptr %19, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %146, %131
  %134 = load i64, ptr %19, align 8, !tbaa !5
  %135 = load i64, ptr %4, align 8, !tbaa !5
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %153

138:                                              ; preds = %133
  %139 = load i64, ptr %19, align 8, !tbaa !5
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %139) #6
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = invoke noundef i32 @_ZN4sign8sign_subIiEET_S1_(i32 noundef %141)
          to label %143 unwind label %149

143:                                              ; preds = %138
  %144 = load i64, ptr %19, align 8, !tbaa !5
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %144) #6
  store i32 %142, ptr %145, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %143
  %147 = load i64, ptr %19, align 8, !tbaa !5
  %148 = add i64 %147, 1
  store i64 %148, ptr %19, align 8, !tbaa !5
  br label %133, !llvm.loop !17

149:                                              ; preds = %138
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %7, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %190

153:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %154 = call i64 @clock() #6
  store i64 %154, ptr %20, align 8, !tbaa !5
  %155 = load i64, ptr %12, align 8, !tbaa !5
  %156 = load i64, ptr %10, align 8, !tbaa !5
  %157 = sub nsw i64 %155, %156
  %158 = trunc i64 %157 to i32
  %159 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %158)
          to label %160 unwind label %186

160:                                              ; preds = %153
  %161 = load i64, ptr %14, align 8, !tbaa !5
  %162 = load i64, ptr %12, align 8, !tbaa !5
  %163 = sub nsw i64 %161, %162
  %164 = trunc i64 %163 to i32
  %165 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %164)
          to label %166 unwind label %186

166:                                              ; preds = %160
  %167 = load i64, ptr %16, align 8, !tbaa !5
  %168 = load i64, ptr %14, align 8, !tbaa !5
  %169 = sub nsw i64 %167, %168
  %170 = trunc i64 %169 to i32
  %171 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %170)
          to label %172 unwind label %186

172:                                              ; preds = %166
  %173 = load i64, ptr %18, align 8, !tbaa !5
  %174 = load i64, ptr %16, align 8, !tbaa !5
  %175 = sub nsw i64 %173, %174
  %176 = trunc i64 %175 to i32
  %177 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %176)
          to label %178 unwind label %186

178:                                              ; preds = %172
  %179 = load i64, ptr %20, align 8, !tbaa !5
  %180 = load i64, ptr %18, align 8, !tbaa !5
  %181 = sub nsw i64 %179, %180
  %182 = trunc i64 %181 to i32
  %183 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %182)
          to label %184 unwind label %186

184:                                              ; preds = %178
  %185 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret i32 %185

186:                                              ; preds = %178, %172, %166, %160, %153
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %7, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %190

190:                                              ; preds = %186, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %191

191:                                              ; preds = %190, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %192

192:                                              ; preds = %191, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %193

193:                                              ; preds = %192, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %194

194:                                              ; preds = %193, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %195

195:                                              ; preds = %194, %31
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %7, align 8
  %198 = load i32, ptr %8, align 4
  %199 = insertvalue { ptr, i32 } poison, ptr %197, 0
  %200 = insertvalue { ptr, i32 } %199, i32 %198, 1
  resume { ptr, i32 } %200
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #2 = { 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 #3 = { 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 = !{!"long", !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"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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

@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign8sign_cmpIiEET_S1_(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign7sign_ifIiEET_S1_(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign9sign_alu1IiEET_S1_(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign9sign_alu2Ei(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4sign8sign_subIiEET_S1_(i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4sign11perf_linearEm(i64 noundef %0) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %0)
          to label %4 unwind label %11

4:                                                ; preds = %1
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %0)
          to label %.preheader unwind label %11

.preheader:                                       ; preds = %4
  %.not = icmp eq i64 %0, 0
  br i1 %.not, label %._crit_edge67.thread, label %.lr.ph

._crit_edge67.thread:                             ; preds = %.preheader
  %5 = call i64 @clock() #6
  %6 = call i64 @clock() #6
  %7 = call i64 @clock() #6
  %8 = call i64 @clock() #6
  %9 = call i64 @clock() #6
  br label %._crit_edge71

.lr.ph54.preheader:                               ; preds = %.lr.ph
  %10 = call i64 @clock() #6
  br label %.lr.ph54

11:                                               ; preds = %4, %1
  %12 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %12

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.051 = phi i64 [ %15, %.lr.ph ], [ 0, %.preheader ]
  %13 = trunc i64 %.051 to i32
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.051) #6
  store i32 %13, ptr %14, align 4, !tbaa !5
  %15 = add nuw i64 %.051, 1
  %exitcond.not = icmp eq i64 %15, %0
  br i1 %exitcond.not, label %.lr.ph54.preheader, label %.lr.ph, !llvm.loop !9

.lr.ph58.preheader:                               ; preds = %.lr.ph54
  %16 = call i64 @clock() #6
  br label %.lr.ph58

.lr.ph54:                                         ; preds = %.lr.ph54.preheader, %.lr.ph54
  %.04652 = phi i64 [ %21, %.lr.ph54 ], [ 0, %.lr.ph54.preheader ]
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04652) #6
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = call noundef i32 @_ZN4sign8sign_cmpIiEET_S1_(i32 noundef %18)
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04652) #6
  store i32 %19, ptr %20, align 4, !tbaa !5
  %21 = add nuw i64 %.04652, 1
  %exitcond77.not = icmp eq i64 %21, %0
  br i1 %exitcond77.not, label %.lr.ph58.preheader, label %.lr.ph54, !llvm.loop !11

.lr.ph62.preheader:                               ; preds = %.lr.ph58
  %22 = call i64 @clock() #6
  br label %.lr.ph62

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %.lr.ph58
  %.04856 = phi i64 [ %27, %.lr.ph58 ], [ 0, %.lr.ph58.preheader ]
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04856) #6
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = call noundef i32 @_ZN4sign7sign_ifIiEET_S1_(i32 noundef %24)
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04856) #6
  store i32 %25, ptr %26, align 4, !tbaa !5
  %27 = add nuw i64 %.04856, 1
  %exitcond78.not = icmp eq i64 %27, %0
  br i1 %exitcond78.not, label %.lr.ph62.preheader, label %.lr.ph58, !llvm.loop !12

.lr.ph66.preheader:                               ; preds = %.lr.ph62
  %28 = call i64 @clock() #6
  br label %.lr.ph66

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %.lr.ph62
  %.04960 = phi i64 [ %33, %.lr.ph62 ], [ 0, %.lr.ph62.preheader ]
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04960) #6
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = call noundef i32 @_ZN4sign9sign_alu1IiEET_S1_(i32 noundef %30)
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04960) #6
  store i32 %31, ptr %32, align 4, !tbaa !5
  %33 = add nuw i64 %.04960, 1
  %exitcond79.not = icmp eq i64 %33, %0
  br i1 %exitcond79.not, label %.lr.ph66.preheader, label %.lr.ph62, !llvm.loop !13

.lr.ph70.preheader:                               ; preds = %.lr.ph66
  %34 = call i64 @clock() #6
  br label %.lr.ph70

.lr.ph66:                                         ; preds = %.lr.ph66.preheader, %.lr.ph66
  %.04764 = phi i64 [ %39, %.lr.ph66 ], [ 0, %.lr.ph66.preheader ]
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04764) #6
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = call noundef i32 @_ZN4sign9sign_alu2Ei(i32 noundef %36)
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04764) #6
  store i32 %37, ptr %38, align 4, !tbaa !5
  %39 = add nuw i64 %.04764, 1
  %exitcond80.not = icmp eq i64 %39, %0
  br i1 %exitcond80.not, label %.lr.ph70.preheader, label %.lr.ph66, !llvm.loop !14

._crit_edge71:                                    ; preds = %.lr.ph70, %._crit_edge67.thread
  %40 = phi i64 [ %9, %._crit_edge67.thread ], [ %34, %.lr.ph70 ]
  %41 = phi i64 [ %7, %._crit_edge67.thread ], [ %22, %.lr.ph70 ]
  %42 = phi i64 [ %5, %._crit_edge67.thread ], [ %10, %.lr.ph70 ]
  %43 = phi i64 [ %6, %._crit_edge67.thread ], [ %16, %.lr.ph70 ]
  %44 = phi i64 [ %8, %._crit_edge67.thread ], [ %28, %.lr.ph70 ]
  %45 = call i64 @clock() #6
  %46 = sub nsw i64 %43, %42
  %47 = trunc i64 %46 to i32
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %47)
  %49 = sub nsw i64 %41, %43
  %50 = trunc i64 %49 to i32
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %50)
  %52 = sub nsw i64 %44, %41
  %53 = trunc i64 %52 to i32
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %53)
  %55 = sub nsw i64 %40, %44
  %56 = trunc i64 %55 to i32
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %56)
  %58 = sub nsw i64 %45, %40
  %59 = trunc i64 %58 to i32
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %59)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret i32 0

.lr.ph70:                                         ; preds = %.lr.ph70.preheader, %.lr.ph70
  %.04568 = phi i64 [ %65, %.lr.ph70 ], [ 0, %.lr.ph70.preheader ]
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04568) #6
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = call noundef i32 @_ZN4sign8sign_subIiEET_S1_(i32 noundef %62)
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04568) #6
  store i32 %63, ptr %64, align 4, !tbaa !5
  %65 = add nuw i64 %.04568, 1
  %exitcond81.not = icmp eq i64 %65, %0
  br i1 %exitcond81.not, label %._crit_edge71, label %.lr.ph70, !llvm.loop !15
}

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


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