@@ -229,18 +229,18 @@ define void @fold_strlcpy_s_0(ptr %dst, ptr %s, i64 %n) {
229229define void @call_strlcpy_s0_n (ptr %dst , ptr %s , i64 %n ) {
230230; ANY-LABEL: @call_strlcpy_s0_n(
231231; ANY-NEXT: [[NS_2:%.*]] = call i64 @strlcpy(ptr noundef nonnull dereferenceable(1) [[DST:%.*]], ptr noundef nonnull dereferenceable(1) [[S:%.*]], i64 2)
232- ; ANY-NEXT: call void @sink(ptr [[DST]], i64 [[NS_2]])
233- ; ANY-NEXT: [[NS_N:%.*]] = call i64 @strlcpy(ptr [[DST]], ptr noundef nonnull dereferenceable(1) [[S]], i64 [[N:%.*]])
234- ; ANY-NEXT: call void @sink(ptr [[DST]], i64 [[NS_N]])
232+ ; ANY-NEXT: call void @sink(ptr nonnull [[DST]], i64 [[NS_2]])
233+ ; ANY-NEXT: [[NS_N:%.*]] = call i64 @strlcpy(ptr nonnull [[DST]], ptr noundef nonnull dereferenceable(1) [[S]], i64 [[N:%.*]])
234+ ; ANY-NEXT: call void @sink(ptr nonnull [[DST]], i64 [[NS_N]])
235235; ANY-NEXT: [[NZ:%.*]] = or i64 [[N]], 1
236236; ANY-NEXT: [[NS_NZ:%.*]] = call i64 @strlcpy(ptr noundef nonnull dereferenceable(1) [[DST]], ptr noundef nonnull dereferenceable(1) [[S]], i64 [[NZ]])
237- ; ANY-NEXT: call void @sink(ptr [[DST]], i64 [[NS_NZ]])
238- ; ANY-NEXT: [[NS0_N:%.*]] = call i64 @strlcpy(ptr [[DST]], ptr noundef nonnull dereferenceable(1) getelementptr inbounds nuw (i8, ptr @s4, i64 4), i64 [[N]])
239- ; ANY-NEXT: call void @sink(ptr [[DST]], i64 [[NS0_N]])
240- ; ANY-NEXT: [[NS1_N:%.*]] = call i64 @strlcpy(ptr [[DST]], ptr noundef nonnull dereferenceable(1) getelementptr inbounds nuw (i8, ptr @s4, i64 3), i64 [[N]])
241- ; ANY-NEXT: call void @sink(ptr [[DST]], i64 [[NS1_N]])
242- ; ANY-NEXT: [[NS4_N:%.*]] = call i64 @strlcpy(ptr [[DST]], ptr noundef nonnull dereferenceable(1) @s4, i64 [[N]])
243- ; ANY-NEXT: call void @sink(ptr [[DST]], i64 [[NS4_N]])
237+ ; ANY-NEXT: call void @sink(ptr nonnull [[DST]], i64 [[NS_NZ]])
238+ ; ANY-NEXT: [[NS0_N:%.*]] = call i64 @strlcpy(ptr nonnull [[DST]], ptr noundef nonnull dereferenceable(1) getelementptr inbounds nuw (i8, ptr @s4, i64 4), i64 [[N]])
239+ ; ANY-NEXT: call void @sink(ptr nonnull [[DST]], i64 [[NS0_N]])
240+ ; ANY-NEXT: [[NS1_N:%.*]] = call i64 @strlcpy(ptr nonnull [[DST]], ptr noundef nonnull dereferenceable(1) getelementptr inbounds nuw (i8, ptr @s4, i64 3), i64 [[N]])
241+ ; ANY-NEXT: call void @sink(ptr nonnull [[DST]], i64 [[NS1_N]])
242+ ; ANY-NEXT: [[NS4_N:%.*]] = call i64 @strlcpy(ptr nonnull [[DST]], ptr noundef nonnull dereferenceable(1) @s4, i64 [[N]])
243+ ; ANY-NEXT: call void @sink(ptr nonnull [[DST]], i64 [[NS4_N]])
244244; ANY-NEXT: ret void
245245;
246246 %ns_2 = call i64 @strlcpy (ptr %dst , ptr %s , i64 2 )
0 commit comments