<commit_before>// RUN: %target-swift-frontend -O -primary-file %s -emit-ir -g -o - | FileCheck %s

// CHECK-LABEL: define{{.*}}2fn
func fn() {
  println("two")
  println(0 - UInt(Process.arguments.count))
  println(1 - UInt(Process.arguments.count))
  println("three")
}

// CHECK: ret
// CHECK-NOT: define
// CHECK: call void @llvm.trap(), !dbg ![[LOC:.*]]
// CHECK-NEXT: unreachable, !dbg ![[LOC]]
// CHECK: call void @llvm.trap(), !dbg ![[LOC2:.*]]
// CHECK-NEXT: unreachable, !dbg ![[LOC2]]
// CHECK: ![[LOC]] = !MDLocation(line: 6, column
// CHECK: ![[LOC2]] = !MDLocation(line: 7, column
<commit_msg>Rewrite this testcase to be more robust.<commit_after>// RUN: %target-swift-frontend -O -primary-file %s -emit-ir -g -o - | FileCheck %s

// CHECK-LABEL: define{{.*}}2fn
func fn() {
  println("two")
// CHECK-DAG: ![[LOC:.*]] = !MDLocation(line: [[@LINE+1]], column 13,
  println(0 - UInt(Process.arguments.count))
// CHECK-DAG: ![[LOC2:.*]] = !MDLocation(line: [[@LINE+1]], column 13,
  println(1 - UInt(Process.arguments.count))
  println("three")
}

// CHECK-DAG: call void @llvm.trap(), !dbg ![[LOC]]
// CHECK-DAG: unreachable, !dbg ![[LOC]]
// CHECK-DAG: call void @llvm.trap(), !dbg ![[LOC2]]
// CHECK-DAG: unreachable, !dbg ![[LOC2]]

{'fraction_non_alphanumeric': 0.24237560192616373, 'fraction_numerical': 0.016051364365971106, 'mean_word_length': 3.8521400778210118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '912249', 'n_tokens_mistral': 496, 'n_tokens_neox': 481, 'n_words': 114}