<commit_before>; RUN: opt -loop-accesses -analyze < %s | FileCheck %s

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"

; We shouldn't quit the analysis if we encounter a pointer without known
; bounds *unless* we actually need to emit a memcheck for it.  (We only
; compute bounds for SCEVAddRecs so A[i*I] is deemed not having known bounds.)
;
; for (i = 0; i < 20; ++i)
;   A[i*i] *= 2;

; CHECK: for.body:
; CHECK:     Report: unsafe dependent memory operations in loop
; CHECK-NOT: Report: cannot identify array bounds
; CHECK:     Interesting Dependences:
; CHECK:       Unknown:
; CHECK:           %loadA = load i16, i16* %arrayidxA, align 2 ->
; CHECK:           store i16 %mul, i16* %arrayidxA, align 2

define void @f(i16* %a) {
entry:
  br label %for.body

for.body:                                         ; preds = %for.body, %entry
  %ind = phi i64 [ 0, %entry ], [ %add, %for.body ]

  %access_ind = mul i64 %ind, %ind<commit_msg>[LAA] Fix typo in test<commit_after>; RUN: opt -loop-accesses -analyze < %s | FileCheck %s

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"

; We shouldn't quit the analysis if we encounter a pointer without known
; bounds *unless* we actually need to emit a memcheck for it.  (We only
; compute bounds for SCEVAddRecs so A[i*i] is deemed not having known bounds.)
;
; for (i = 0; i < 20; ++i)
;   A[i*i] *= 2;

; CHECK: for.body:
; CHECK:     Report: unsafe dependent memory operations in loop
; CHECK-NOT: Report: cannot identify array bounds
; CHECK:     Interesting Dependences:
; CHECK:       Unknown:
; CHECK:           %loadA = load i16, i16* %arrayidxA, align 2 ->
; CHECK:           store i16 %mul, i16* %arrayidxA, align 2

define void @f(i16* %a) {
entry:
  br label %for.body

for.body:                                         ; preds = %for.body, %entry
  %ind = phi i64 [ 0, %entry ], [ %add, %for.body ]

  %access_ind = mul i64 %ind, %ind
{'fraction_non_alphanumeric': 0.1310452418096724, 'fraction_numerical': 0.04160166406656266, 'mean_word_length': 2.7799607072691552, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6613941', 'n_tokens_mistral': 731, 'n_tokens_neox': 669, 'n_words': 239}