File: coverage_maps.sil

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (31 lines) | stat: -rw-r--r-- 1,056 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// RUN: %target-sil-opt %s -module-name=coverage_maps | %target-sil-opt -verify -module-name=coverage_maps | %FileCheck %s

sil @someFunction : $@convention(thin) () -> () {
bb0:
  %0 = tuple ()
  return %0 : $()
}

// CHECK-LABEL: sil_coverage_map "coverage_maps.sil" "someFunction" "coverage_maps.sil:someFunction" 0 {
// CHECK: }
sil_coverage_map "coverage_maps.sil" "someFunction" "coverage_maps.sil:someFunction" 0 {
}

// CHECK-LABEL: sil_coverage_map "/some/other/file.sil" "someFunction" "/some/other/file.sil:someFunction" 0 {
// CHECK: 4:19 -> 31:1 : 0
// CHECK: 7:9 -> 7:16 : (0 + 1)
// CHECK: 7:18 -> 9:3 : zero
// CHECK: 17:9 -> 17:17 : ((0 + 2) - 3)
// CHECK: 17:9 -> 17:17 : ((0 + 2) - 3)
// CHECK: 22:11 -> 139:2 : 1
// CHECK: 54:1 -> 55:1 : skipped
// CHECK: }
sil_coverage_map "/some/other/file.sil" "someFunction" "/some/other/file.sil:someFunction" 0 {
  4:19 -> 31:1 : 0
  7:9  -> 7:16 : (0 + 1)
  7:18 -> 9:3  : zero
  17:9 -> 17:17: ((0 + 2) - 3)
  17:9 -> 17:17: (0 + (2 - 3))
  22:11->139:2 : (zero + 1)
  54:1 -> 55:1 : skipped
}