content
stringlengths
1
103k
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nlet a = 1\n\n_ = -a + -a - -a + -a - -a\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar31439825.swift
rdar31439825.swift
Swift
149
0.8
0
0.5
python-kit
615
2023-07-19T21:32:57.757841
BSD-3-Clause
true
3097ea77cb83a137a563bca3447a7359
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc test(header_field_mark: Bool?, header_value_mark: Bool?,\n url_mark: Bool?, body_mark: Bool?, status_mark: Bool?) {\n assert(((header_field_mark != nil ? 1 : 0) +\n (header_value_mark != nil ? 1...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar32221800.swift
rdar32221800.swift
Swift
436
0.8
0
0.2
vue-tools
10
2024-06-18T03:34:41.894791
GPL-3.0
true
a8a31284f55129c72bb201eb0bfa15df
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n// REQUIRES: OS=macosx\n\nfunc rdar32998180(value: UInt16) -> UInt16 {\n let result = ((((value >> 1) ^ (value >> 1) ^ (value >> 1) ^ (value >> 1)) & 1) << 1)\n | (((((value >> 1) ^ (value >> 1) ^ (value >>...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar32998180.swift
rdar32998180.swift
Swift
369
0.8
0
0.375
react-lib
553
2025-06-02T22:08:39.791286
MIT
true
2b37f0e0176a86935c4791d32b3a2ea2
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nlet _ = 1 | UInt32(0) << 0 | UInt32(1) << 1 | UInt32(2) << 2 | UInt32(3) << 3 | UInt32(4) << 4\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar33688063.swift
rdar33688063.swift
Swift
206
0.8
0
0.666667
react-lib
799
2025-04-14T05:07:16.157099
Apache-2.0
true
c7b260340df71967049620f2d8186477
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nclass P {\n var x : Int = 0\n var y : Int = 1\n}\n\nfunc fn<T>(_ n: T) -> T where T : FloatingPoint { fatalError() }\nfunc fn(_ n: Double) -> Double { return 0.0 }\n\nlet _: (P, P) -> Double = {\n (p : P...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar33806601.swift
rdar33806601.swift
Swift
401
0.95
0.066667
0.166667
awesome-app
89
2023-10-07T13:04:45.063301
GPL-3.0
true
b8e045a972763caa7f65d4182c38f5fd
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n// REQUIRES: OS=macosx\n\nstruct T {\n enum B {\n case a\n case b\n }\n\n let name: String\n let b: B\n}\n\nstruct A {\n enum C {\n case a\n case b\n case c\n }\n\n let name: String\n l...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar36838495.swift
rdar36838495.swift
Swift
645
0.8
0
0.096774
python-kit
819
2024-04-09T13:58:25.232501
GPL-3.0
true
0c930165307d53ccee418cb09e38c951
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\nfunc f(tail: UInt64, byteCount: UInt64) {\n if tail & ~(1 << ((byteCount & 7) << 3) - 1) == 0 { }\n}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar42672946.swift
rdar42672946.swift
Swift
175
0.8
0.25
0.25
python-kit
243
2024-04-22T14:05:44.837392
MIT
true
f40d85f606b586e36b8b8b51b25db525
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: OS=macosx,no_asan\n\nimport simd\nimport CoreGraphics\nimport Foundation\n\nclass SomeView {\n func layoutSubviews() {\n let descriptionTextViewFrame = CGRect.zero\n let availableBounds = CGRect()\n let descriptionLabelPr...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar46541800.swift
rdar46541800.swift
Swift
2,017
0.95
0.032787
0.058824
react-lib
545
2024-09-27T18:25:44.632578
Apache-2.0
true
6e6592e718d9e8e0419696d2867c8300
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n\nfunc test(_ d: Double) -> Double {\n return d + d - d - (d / 2) + (d / 2) + (d / 2.0)\n}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar46687985.swift
rdar46687985.swift
Swift
164
0.8
0
0.25
node-utils
996
2025-02-26T03:01:20.753316
GPL-3.0
true
314aa94c51e51d96f5621317221f0ec2
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc wrap<T>(_ key: String, _ value: T) -> T { return value }\nfunc wrap<T: ExpressibleByIntegerLiteral>(_ key: String, _ value: T) -> T { return value }\nfunc wrap<T: ExpressibleByFloatLiteral>(_ key: Stri...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar46713933_concrete_args.swift
rdar46713933_concrete_args.swift
Swift
543
0.8
0
0.222222
vue-tools
981
2025-02-03T18:34:56.191262
MIT
true
0a8198e90b4e6ca96a936c1ca9dc76a4
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n\nstruct S {\n let a: Int\n let b: Int\n let c: Int\n let d: Int\n\n init(_ a: Int, _ b: Int, _ c: Int, _ d: Int) {\n self.a = a\n self.b = b\n self.c = c\n self.d = d\n }\n}\n\nfunc foo(_ lhs: S, _ rhs: S) -> Int {\n return ...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar46939892.swift
rdar46939892.swift
Swift
387
0.8
0
0.0625
node-utils
777
2024-11-26T03:06:40.165978
Apache-2.0
true
4c350d0bb152ebf36fac533490f1c5cc
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: objc_interop,no_asan\n\nimport CoreGraphics\nimport simd\n\nfunc test(foo: CGFloat, bar: CGFloat) {\n _ = CGRect(x: 0.0 + 1.0, y: 0.0 + foo, width: 3.0 - 1 - 1 - 1.0, height: bar)\n}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar47492691.swift
rdar47492691.swift
Swift
265
0.95
0
0.285714
node-utils
147
2023-10-04T07:07:53.515147
GPL-3.0
true
29be17fd2b4d20570c6cff8b7e2e00dc
// RUN: %scale-test --begin 1 --end 20 --step 1 --select NumLeafScopes %s -Xfrontend=-solver-expression-time-threshold=1\n// REQUIRES: asserts,no_asan\n\n// UNSUPPORTED: OS=linux-gnu\n\nenum Val {\n case d([String: Val])\n case f(Double)\n}\n\nstruct X {\n var x : Float\n}\n\nextension X {\n func val() -> Val {\n ...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar54580427.swift
rdar54580427.swift
Swift
388
0.8
0.043478
0.157895
node-utils
903
2024-11-04T06:49:42.361086
GPL-3.0
true
d7320124f834cb806260ab4cfbc0bc67
// RUN: %scale-test --begin 1 --end 10 --step 1 --select NumLeafScopes %s --expected-exit-code 1 -Xfrontend=-solver-expression-time-threshold=1\n// REQUIRES: asserts,no_asan\n\nclass God {\n public func isEqual(_ other: God) -> Bool {\n return (\n (self.form == other.form)\n%for i in range(1, N):\n && (self....
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar54926602.swift
rdar54926602.swift
Swift
351
0.95
0.153846
0.166667
node-utils
743
2025-05-25T23:02:12.246899
MIT
true
0ee78a5e12a000b82e055781dabd617f
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n// REQUIRES: OS=macosx\n\nstruct Value {\n let debugDescription: String\n}\n\nfunc test(values: [[Value]]) -> String {\n values.map({ "[" + $0.map({ $0.debugDescription }).joined(separator: ", ") + "]" }).j...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar74035425.swift
rdar74035425.swift
Swift
336
0.8
0
0.333333
node-utils
427
2023-10-24T00:24:47.964901
BSD-3-Clause
true
196a488afbab6d630dfbe58e9f55abc2
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc makeString(_ strings: [String]) -> String { "" }\nfunc makeString(_ string: String) -> String { "" }\n\nfunc test(message: inout String, d: [String: String]?) {\n message += d.map {\n $0.reduce("")...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar74853403.swift
rdar74853403.swift
Swift
423
0.8
0
0.181818
python-kit
697
2024-03-21T20:11:57.261387
Apache-2.0
true
13751fd81f45547002240cefc628f5b2
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -solver-expression-time-threshold=1 -swift-version 5\n// REQUIRES: tools-release,no_asan,objc_interop\n// REQUIRES: OS=macosx\n\nimport Combine\nimport Foundation\nimport simd\n\nclass Entry : NSObject {}\n\nclass Query : NSObject {\n}\n\nclas...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\rdar75476311.swift
rdar75476311.swift
Swift
822
0.95
0.125
0.115385
python-kit
505
2024-11-22T01:12:41.643593
Apache-2.0
true
9802945d52362e0895af6bc5ea2db3b6
// RUN: %target-swift-frontend -typecheck %s -solver-scope-threshold=80000\n\n// REQUIRES: tools-release,no_asan\n\nfunc f2() { let _ = 0 << (~(~(~(~(~(~(~(~(~(~(~(0 << 0)))))))))))) }\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\should_skip_bitwise.swift
should_skip_bitwise.swift
Swift
181
0.8
0
0.666667
python-kit
639
2025-04-09T09:31:00.445473
BSD-3-Clause
true
316bf4a5185200461611cff58c65efc0
// RUN: %target-swift-frontend -typecheck %s -solver-scope-threshold=2000\n\nfunc f896() { let _ = ((0 >> ((0 >> 0) + ((0 / 0) & 0))) >> (0 << ((0 << 0) >> (0 << (0 << 0))))) }\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\should_skip_bitwise_2.swift
should_skip_bitwise_2.swift
Swift
175
0.8
0
0.5
python-kit
440
2023-12-06T22:32:46.051850
BSD-3-Clause
true
60c7e64cbe1b962fdd8b1004b9c2d6e0
// RUN: %target-swift-frontend -typecheck %s -solver-scope-threshold=15000\n\n// REQUIRES: tools-release,no_asan\n\n// Reduced from https://github.com/leif-ibsen/SwiftHPKE\n\nstruct Field25519 {\n static let mask51 = UInt64(0x7ffffffffffff)\n \n var l0: UInt64\n var l1: UInt64\n var l2: UInt64\n var l...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\should_skip_bitwise_3.swift
should_skip_bitwise_3.swift
Swift
1,284
0.8
0
0.166667
react-lib
177
2025-03-24T02:17:01.286731
MIT
true
8f0af8f34856abe23f08e16abecf6b1c
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=2000\n\n// We don't use anything from Foundation below, but Foundation adds a\n// large number of == overloads. Import it if we can, because it makes\n// the problem instance harder.\n#if canImport(Foundation)\nimport Foundation\n#endif\n\nstruct Graph {\n ...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\fast\swift_docc.swift
swift_docc.swift
Swift
889
0.95
0.057143
0.214286
vue-tools
410
2025-02-24T12:30:00.940913
MIT
true
2c65c7b7521c0ab289272d39aa2d976a
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=5\n// REQUIRES: tools-release,no_asan\n\n// Hits the default memory threshold\n// https://github.com/apple/swift/issues/43369\n\nstruct A {}\nstruct B {}\n\nfunc - (lhs: A, rhs: A) -> B {}\nfunc / (lhs: B, rhs: Double) -> B {}\nfunc - (lhs: B, rhs...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\issue-43369.swift
issue-43369.swift
Swift
543
0.8
0
0.294118
awesome-app
824
2024-02-16T03:38:40.704860
Apache-2.0
true
c659089367ad63a1bf2dc0fe4b7e2b52
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\n// TODO(performance): This should be converted in a scale test once performance issue is fixed\nfunc test(bytes: Int, length: UInt32) {\n // left-hand side of `>=` is `Int` and right-hand side is a chain o...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\operator_chain_with_hetergeneous_arguments.swift
operator_chain_with_hetergeneous_arguments.swift
Swift
457
0.8
0
0.625
node-utils
246
2024-06-23T15:28:29.111147
Apache-2.0
true
e4a19d694c9780a7506b0b052032f6df
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nlet i: Int? = 1\nlet j: Int?\nlet k: Int? = 2\n\n// expected-error@+1 {{the compiler is unable to type-check this expression in reasonable time}}\nlet _ = [i, j, k].reduce(0 as Int?) {\n $0 != nil && $1 !=...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar17170728.swift
rdar17170728.swift
Swift
376
0.8
0
0.333333
node-utils
602
2025-03-27T10:29:04.561693
Apache-2.0
true
e9ee773238a53f42aae94d373a6d260f
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\n// Mixed Float and Double arithmetic\nfunc rdar18800950(v: Float) -> Double {\n let c1: Float = 1.0\n let c2 = 2.0\n let r = v / c1\n let _ = (c2 * 2 * (3 * (1 - c1 / v) - 4) * r + 5) * (c2 * 2 * (3 * (...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar18800950.swift
rdar18800950.swift
Swift
383
0.8
0
0.4
vue-tools
742
2025-03-13T12:59:46.444027
Apache-2.0
true
3957f058a93ac106194ee1c8666cfdfd
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nprecedencegroup ExponentiationPrecedence {\n associativity: right\n higherThan: BitwiseShiftPrecedence\n}\n\ninfix operator ** : ExponentiationPrecedence\n\nfunc ** (num: Float, power: Float) -> Float {\n...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar18994321.swift
rdar18994321.swift
Swift
807
0.8
0.086957
0.222222
vue-tools
349
2025-04-08T15:49:16.052208
GPL-3.0
true
2eb2a5c85e3dee478307ccc6f4cdc5a8
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\n// Missing force of optional result of dictionary lookup.\nfunc rdar19368383(d: [String : String]) -> [String] {\n var r = [String]()\n r += [ // expected-error {{reasonable time}}\n "1" + d["2"] + "3"...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar19368383.swift
rdar19368383.swift
Swift
452
0.8
0
0.2
vue-tools
82
2024-01-01T10:06:14.805255
BSD-3-Clause
true
79c8892f2a14e6f4d1114f37588eff9f
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\nstruct Stringly {\n init(string: String) {}\n init(format: String, _ args: Any...) {}\n init(stringly: Stringly) {}\n}\n\nstruct rdar19612086 {\n let i = 0\n let x = 1.0\n\n var description : String {\n...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar19612086.swift
rdar19612086.swift
Swift
661
0.8
0
0.105263
python-kit
13
2025-03-11T00:30:51.051422
Apache-2.0
true
92eb90d6976db288882767fed618fcce
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nlet a = "a"\nlet b = "b"\nlet c = 42\nlet d = 0.0\nlet e: Float = 1.0\n\n_ = "a=" + a + ";b=" + b + ";c=" + c + ";d=" + d + ";e=" + e\n// expected-error@-1 {{reasonable time}}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar19737632.swift
rdar19737632.swift
Swift
280
0.8
0
0.333333
node-utils
80
2024-03-02T21:38:28.841909
BSD-3-Clause
true
99c2b1a8f0eca150698f9099bed5fedb
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nvar counts = [ 0, 0, 0, 0 ]\n// NOTE: This is using mixed types, and would result in a type checking error if it completed.\nlet d = counts[0] * 1000 + counts[1] * 100 + counts[2] * 10 + counts\n// expected...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar19915443.swift
rdar19915443.swift
Swift
462
0.8
0.285714
0.666667
node-utils
831
2025-02-09T21:37:19.378928
GPL-3.0
true
d9644784d8a27b93c6e23b931ec5bafc
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nstruct Stringly {\n init(string: String) {}\n init(format: String, _ args: Any...) {}\n init(stringly: Stringly) {}\n}\n\n[Int](0..<1).map {\n // expected-error@-1 {{reasonable time}}\n print(Stringly(...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar20859567.swift
rdar20859567.swift
Swift
456
0.8
0
0.2
python-kit
259
2025-03-28T17:51:16.140459
MIT
true
016c62fbb9f8e021294e8e4d1b8b6c13
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nlet _ = (0...1).lazy.flatMap { // expected-error {{reasonable time}}\n a in (1...2).lazy.map { b in (a, b) }\n}.filter {\n 1 < $0 && $0 < $1 && $0 + $1 < 3\n}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar22079400.swift
rdar22079400.swift
Swift
268
0.8
0
0.285714
vue-tools
520
2023-09-24T07:33:22.958782
BSD-3-Clause
true
a76f1ade27cd06d6e272ceec4e4b5737
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc test(n: Int) -> Int {\n // expected-error@+1 {{the compiler is unable to type-check this expression in reasonable time}}\n return n == 0 ? 0 : (0..<n).reduce(0) {\n ($0 > 0 && $1 % 2 == 0) ? ((($0...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar22770433.swift
rdar22770433.swift
Swift
384
0.8
0
0.375
python-kit
524
2025-01-15T12:49:03.382037
BSD-3-Clause
true
e3e874da757a6c8205b2b9ca2094e1d8
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nlet j = 1\n\n_ = "a" + j + "b" + j + "c" + j + "d" + j\n// expected-error@-1 {{reasonable time}}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar22877285.swift
rdar22877285.swift
Swift
205
0.8
0
0.6
react-lib
468
2024-05-05T05:17:12.021201
Apache-2.0
true
0b46ad734b902f7da680bf543c4e6dfe
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\n_ = [0,1,2,3].lazy.map { String($0)+"hi" }.sorted(by: { $0 > $1 && $1 < $0 && ($1 + $0) < 1000 })\n// expected-error@-1 {{reasonable time}}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar22949523.swift
rdar22949523.swift
Swift
250
0.8
0
0.75
react-lib
290
2025-05-17T05:24:37.338742
MIT
true
eda355cffab4f6a053dcd47369e0b7aa
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\n// Mixed UInt32 and Double\nlet x: UInt32 = 1\nlet _ = x > (33 + 55 + 6 + 55 + 6 + 55 + 6 + 55 + 6 + 27.5)\n// expected-error@-1 {{reasonable time}}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar23224583.swift
rdar23224583.swift
Swift
257
0.8
0
0.666667
python-kit
599
2025-06-02T06:31:12.820411
BSD-3-Clause
true
0a2882eb15afd41802d2a7f85b018f48
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc memoize<T: Hashable, U>( body: @escaping ((T)->U, T)->U ) -> (T)->U {\n var memo = Dictionary<T, U>()\n var result: ((T)->U)!\n result = { x in\n if let q = memo[x] { return q }\n let r = body...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar23682605.swift
rdar23682605.swift
Swift
523
0.8
0.05
0.166667
node-utils
941
2025-02-24T22:04:44.810875
GPL-3.0
true
0e808a09be051143488d98c2365d99f7
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1 -solver-disable-shrink\n// REQUIRES: tools-release,no_asan\n// UNSUPPORTED: swift_test_mode_optimize_none && OS=linux-gnu\n\nfunc rdar26564101(a: [Double], m: Double) -> Double {\n // expected-error@+1 {{unable to type-check this expression in ...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar26564101.swift
rdar26564101.swift
Swift
422
0.8
0
0.444444
awesome-app
766
2024-12-20T00:29:47.273766
MIT
true
3cd79a5c96d873c8055f1487e1bbff90
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc fun(_ x: Double) -> Double { fatalError() }\n\nfunc test(l: Double, s: Float) {\n _ = fun((l / 2.0) * (l / 2.0) * (l / 2.0) / (1.0 + s * s))\n // expected-error@-1 {{reasonable time}}\n}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar30631148.swift
rdar30631148.swift
Swift
300
0.8
0
0.428571
python-kit
159
2023-08-21T19:06:50.905241
BSD-3-Clause
true
d94ea32117cde3ea4594be0c63ab50fc
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc rdar31742586() -> Double {\n return -(1 + 2) + -(3 + 4) + 5 - (-(1 + 2) + -(3 + 4) + 5)\n // expected-error@-1 {{the compiler is unable to type-check this expression in reasonable time}}\n}\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar31742586.swift
rdar31742586.swift
Swift
305
0.8
0
0.5
node-utils
300
2023-12-28T05:34:18.967050
Apache-2.0
true
4f6f928ca0fd087f2d05e7a2f8824911
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: rdar42744631,no_asan\n// REQUIRES: tools-release,no_asan\n\nstruct S {\n var A: [[UInt32]]\n\n func rdar32034560(x: UInt32) -> UInt32 {\n return ((self.A[0][Int(x >> 24) & 0xFF] &+ self.A[1][Int(x >> 16) & 0xFF]) ^ self.A[2][I...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar32034560.swift
rdar32034560.swift
Swift
830
0.8
0
0.307692
node-utils
855
2023-09-25T12:47:12.466157
BSD-3-Clause
true
82b73a7a6a93c7ebc34065a41f575cce
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\n// Mixed Int/Double slow to emit diagnostics\nfunc rdar33476240(col: Int, row: Int, maxCol: Int, maxRow: Int) {\n let _ = (-(maxCol - 1) + (col * 2)) * 0.1 * 0.2 * 0.3\n // expected-error@-1 {{reasonable ...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar33476240.swift
rdar33476240.swift
Swift
323
0.8
0
0.571429
python-kit
563
2025-02-21T08:33:02.274572
MIT
true
d74dbc09bdb8fa31614457406d40879b
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\n// Mixed Int/Float arithmetic\nfunc rdar33935430(a: Int, b: Int, c: Float, d: Float, n: Int) {\n let _ = ((a * c) + ((b * d - a * c) / (b - a)) * (n - a)) / n\n // expected-error@-1 {{reasonable time}}\n}...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar33935430.swift
rdar33935430.swift
Swift
314
0.8
0
0.571429
python-kit
866
2023-11-16T22:26:40.777855
MIT
true
6ad77a1a208bc6379296aec541d6e797
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc test() {\n let _: UInt = 1 * 2 + 3 * 4 + 5 * 6 + 7 * 8 + 9 * 10 + 11 * 12 + 13 * 14\n // expected-error@-1 {{the compiler is unable to type-check this expression in reasonable time}}\n}\n\n
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar35213699.swift
rdar35213699.swift
Swift
302
0.8
0
0.5
node-utils
719
2023-11-13T01:41:10.718843
MIT
true
5dad7b9a8dbbbce2afa61d53cf2e3b5a
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc wrap<T>(_ key: String, _ value: T) -> T { return value }\nfunc wrap<T: ExpressibleByIntegerLiteral>(_ key: String, _ value: T) -> T { return value }\nfunc wrap<T: ExpressibleByFloatLiteral>(_ key: Stri...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar46713933_literal_arg.swift
rdar46713933_literal_arg.swift
Swift
666
0.8
0
0.3
vue-tools
868
2023-11-14T20:34:41.574835
GPL-3.0
true
ad4228a0987cea034c4f0c2545eb62aa
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n// REQUIRES: rdar36854536\n\nclass Color {\n init(hue: Double, saturation: Double, brightness: Double, alpha: Double) {}\n init(red: Double, green: Double, blue: Double, alpha: Double) {}\n}\n\n// expected-...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar53589951.swift
rdar53589951.swift
Swift
992
0.95
0.035714
0.153846
awesome-app
409
2024-01-26T12:40:13.971475
GPL-3.0
true
756e657520105984a7afa17b4926f8b0
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1\n// REQUIRES: tools-release,no_asan\n\nfunc compute(_ cont: () -> Void) {}\n\nfunc test() {\n compute {\n let x = 42\n compute {\n print(x)\n let v: UInt64 = UInt64((24 / UInt32(1)) + UInt32(0) - UInt32(0) - 24 / 42 - 42)\n ...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\rdar91310777.swift
rdar91310777.swift
Swift
496
0.8
0.0625
0.214286
react-lib
147
2024-10-08T08:02:54.537148
GPL-3.0
true
a6c78511de7fa39d01a2943dd1e32de3
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=1000\n// REQUIRES: tools-release,no_asan\n\npublic class Cookie {\n public var url: String!\n public var port: Int16?\n public var name: String!\n public var path: String!\n public var value: String!\n public var comment: String?\n publ...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\swift_package_index_1.swift
swift_package_index_1.swift
Swift
844
0.95
0.04
0.090909
react-lib
738
2025-01-09T19:05:51.054995
GPL-3.0
true
50476d595fe3aba90aeae7886c53cb4b
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=50000\n// REQUIRES: tools-release,no_asan\n\nextension String {\n func replacingOccurrences(of: String, with: String) -> String { return "" }\n func components(separatedBy: String) -> [String] { return [] }\n}\n\nfunc getProperties(\n from ics: String\...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\swift_package_index_3.swift
swift_package_index_3.swift
Swift
725
0.8
0
0.125
node-utils
589
2024-04-30T14:40:08.180737
Apache-2.0
true
80a7c30c76aa9f58a9d8bd452854228e
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=60000\n// REQUIRES: tools-release,no_asan\n\nprotocol ArgumentProtocol {}\n\nextension String: ArgumentProtocol {}\nextension Bool: ArgumentProtocol {}\n\nstruct ConcreteError: Error {}\n\nstruct Option<T> {\n init(key: String, defaultValue: T, usage: Stri...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\swift_package_index_4.swift
swift_package_index_4.swift
Swift
3,064
0.8
0
0.04
react-lib
761
2025-04-01T09:02:21.826650
GPL-3.0
true
d7320b87fdf004202db2982d633e5dec
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=1000 -swift-version 5\n// REQUIRES: tools-release,no_asan\n\nfunc g<T>(_: T) throws {\n let _: T? = //expected-error {{the compiler is unable to type-check this expression in reasonable time}}\n (try? f() as? T) ??\n (try? f() as? T) ??\n ...
dataset_sample\swift\apple_swift\validation-test\Sema\type_checker_perf\slow\swift_package_index_5.swift
swift_package_index_5.swift
Swift
431
0.8
0.384615
0.181818
node-utils
427
2024-01-31T02:29:05.530121
Apache-2.0
true
caa15b802ddbac625a28a057e1771207
// RUN: %empty-directory(%t)\n\n// RUN: %target-build-swift -emit-module -emit-executable %s -g -I %S/Inputs/bridging-header-first/ -disable-bridging-pch -import-objc-header %S/Inputs/bridging-header-first/bridging.h -o %t/main\n// RUN: llvm-bcanalyzer -dump %t/main.swiftmodule | %FileCheck -check-prefix CHECK-DUMP %s\...
dataset_sample\swift\apple_swift\validation-test\Serialization\bridging-header-first.swift
bridging-header-first.swift
Swift
1,045
0.95
0.035714
0.761905
react-lib
522
2025-03-03T00:41:24.929977
Apache-2.0
true
50a9246ac9f6922a5f49ab82136cfd53
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -emit-module -emit-module-path %t/SwiftLib.swiftmodule -I %S/Inputs/conformance-removed/ %S/Inputs/conformance-removed/SwiftLib.swift -Xcc -DUSE_PROTO\n// RUN: not grep SomeProto %t/SwiftLib.swiftmodule\n// RUN: %target-build-swift -typecheck -I %t -I %S/Inputs/...
dataset_sample\swift\apple_swift\validation-test\Serialization\conformance-removed.swift
conformance-removed.swift
Swift
407
0.95
0.111111
0.714286
vue-tools
937
2023-09-10T20:58:43.120507
BSD-3-Clause
true
2a97623f46023ef1eb502541eae77f90
// RUN: %empty-directory(%t)\n// RUN: cp -r %S/Inputs/crash-nested-extension/* %t\n// RUN: cd %t\n// RUN: %swiftc_driver -output-file-map %t/output.json -incremental ./f1.swift ./f2.swift -module-name MyMod -j1 -disable-batch-mode -emit-module -emit-module-path MyMod.swiftmodule -v\n\n// RUN: %empty-directory(%t)\n// R...
dataset_sample\swift\apple_swift\validation-test\Serialization\crash-nested-extension.swift
crash-nested-extension.swift
Swift
670
0.95
0.111111
1
awesome-app
709
2024-06-08T06:17:03.578031
Apache-2.0
true
c77cad25a82804c68ac091d1532a7b13
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -o %t/Lib.swiftmodule -I %S/Inputs/custom-modules %s\n\n// FIXME: We need a way to handle the cyclic dependency here.\n// rdar://problem/50835214\n// RUN: not --crash %target-swift-ide-test -source-filename=x -print-module -module-to-print Lib -I...
dataset_sample\swift\apple_swift\validation-test\Serialization\crash-superclass-dependency-cycle.swift
crash-superclass-dependency-cycle.swift
Swift
501
0.95
0.307692
0.454545
react-lib
9
2023-12-06T12:46:15.179513
MIT
true
4bcc85464dabc0423732df8bfbca282f
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -o %t/Lib.swiftmodule -enable-objc-interop -I %S/Inputs/custom-modules %s\n// RUN: %target-swift-ide-test -source-filename=x -print-module -module-to-print Lib -enable-objc-interop -I %t -I %S/Inputs/custom-modules | %FileCheck %s\n\n// RUN: %tar...
dataset_sample\swift\apple_swift\validation-test\Serialization\crash-superclass-dependency-removal.swift
crash-superclass-dependency-removal.swift
Swift
654
0.95
0.285714
0.5
node-utils
456
2025-01-11T16:07:59.499921
BSD-3-Clause
true
67147e7457557c6770ea7dccb2cb1671
// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/Darwin/Foundation/*.swift `dirname %t`/../../../stdlib/public/Darwin/Foundation/8/*.swift -emit-module-path %t.1.swiftmodule -whole-module-optimization\n// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/....
dataset_sample\swift\apple_swift\validation-test\Serialization\Foundation-determinism-wmo.swift
Foundation-determinism-wmo.swift
Swift
1,309
0.8
0
1
awesome-app
334
2024-11-08T06:22:36.611691
MIT
true
1ca2e46da358cf9075e73faecd5d452e
// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/Darwin/Foundation/*.swift `dirname %t`/../../../stdlib/public/Darwin/Foundation/8/*.swift -emit-module-path %t.1.swiftmodule\n// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/Darwin/F...
dataset_sample\swift\apple_swift\validation-test\Serialization\Foundation-determinism.swift
Foundation-determinism.swift
Swift
1,259
0.8
0
1
node-utils
845
2023-12-15T07:06:29.039252
BSD-3-Clause
true
63813d6afc214909cbc5e30473f3e8e3
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -emit-module -o %t/M.swiftmodule %s %S/Inputs/issue-46500-other.swift\n\n// https://github.com/apple/swift/issues/46500\n\npublic enum A {}\n\npublic extension A {\n public enum B {}\n}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\issue-46500.swift
issue-46500.swift
Swift
236
0.8
0
0.428571
react-lib
865
2024-02-18T20:15:09.848080
GPL-3.0
true
9876e52d856372290e3132e98a389b9a
// RUN: %target-build-swift -emit-module %s\n\n// REQUIRES: objc_interop\n\n// https://github.com/apple/swift/issues/46794\n\nimport Foundation\n\n/// Set of notifications that can be sent by this manager\nextension Notification.Name {\n /// Notifications that can be posted by the BLE code.\n class BLE {\n ...
dataset_sample\swift\apple_swift\validation-test\Serialization\issue-46794.swift
issue-46794.swift
Swift
484
0.95
0.125
0.5
node-utils
677
2025-03-08T12:07:17.557368
Apache-2.0
true
613852d0e44508440c34f9bd3f7f946f
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -module-name SwiftCrash -emit-module -o %t/M.swiftmodule %s %S/Inputs/issue-47767-other.swift\n// RUN: %target-build-swift -module-name SwiftCrash -emit-module -o %t/M_reversed.swiftmodule %S/Inputs/issue-47767-other.swift %s\n\n// REQUIRES: objc_interop\n// The...
dataset_sample\swift\apple_swift\validation-test\Serialization\issue-47767.swift
issue-47767.swift
Swift
656
0.95
0.0625
0.666667
node-utils
217
2024-07-09T03:08:02.846325
Apache-2.0
true
16edd096068862c07a387cbb6aac01e7
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -emit-module -o %t/Lib.swiftmodule %s -DLIB\n// RUN: %target-build-swift -emit-module -o %t/main.swiftmodule -I %t %s\n\n// https://github.com/apple/swift/issues/49885\n\n#if LIB\n\nprotocol Proto {}\n\nopen class Base<T> {}\npublic struct ArbitraryStruct {}\n\n...
dataset_sample\swift\apple_swift\validation-test\Serialization\issue-49885.swift
issue-49885.swift
Swift
438
0.95
0.142857
0.538462
awesome-app
220
2024-09-25T11:34:27.142465
MIT
true
fec2dfcc6e7df0b6083b594b8b3442b8
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -emit-module-path %t/main4.swiftmodule -swift-version 4 %s\n// RUN: %target-build-swift -emit-module-path %t/main4_2.swiftmodule -swift-version 4.2 %s\n\n// REQUIRES: OS=ios\n\n// https://github.com/apple/swift/issues/50414\n\nimport UIKit\n\npublic func testIns...
dataset_sample\swift\apple_swift\validation-test\Serialization\issue-50414.swift
issue-50414.swift
Swift
390
0.95
0
0.625
node-utils
823
2025-01-15T23:46:28.348610
MIT
true
3b2115a6a5ab2c1c2ac8fdc5584925cd
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -emit-module-path %t/Lib.swiftmodule %s -module-name Lib\n// RUN: echo 'import Lib; _ = MyClass(with: "test", and: 341)' | %target-build-swift -I %t -typecheck -\n\n// https://github.com/apple/swift/issues/50512\n\npublic protocol MyProtocol {\n var string: Str...
dataset_sample\swift\apple_swift\validation-test\Serialization\issue-50512.swift
issue-50512.swift
Swift
938
0.95
0.166667
0.173913
react-lib
754
2024-09-15T05:22:22.943146
BSD-3-Clause
true
4706ed657e218658f660bbfe482a03ca
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -emit-module-path %t/main.swiftmodule -module-name main %s %S/Inputs/issue-50578-other.swift\n\n// https://github.com/apple/swift/issues/50578\n\npublic class Sub: Super {\n public override func foo(_ f: @escaping Alias<Bool>) {}\n}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\issue-50578.swift
issue-50578.swift
Swift
285
0.95
0.125
0.5
python-kit
681
2024-10-08T15:58:29.373798
MIT
true
2c5f388c2827ce68a599eacda158c2f5
// RUN: %empty-directory(%t)\n// FIXME: Crashes with PCH (https://github.com/swiftlang/swift/issues/76641)\n// RUN: %target-build-swift %s -disable-bridging-pch -import-objc-header %S/Inputs/rdar29694978.h -emit-module -o %t/Library.swiftmodule\n// RUN: %target-swift-ide-test -print-module -module-to-print=Library -sou...
dataset_sample\swift\apple_swift\validation-test\Serialization\rdar29694978.swift
rdar29694978.swift
Swift
1,380
0.95
0
0.75
python-kit
868
2023-12-02T23:16:44.660063
BSD-3-Clause
true
081468b0359e5782d6f3b65456522415
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -emit-module-path %t/main4.swiftmodule -swift-version 4 -Fsystem %sdk/System/Library/PrivateFrameworks/ %s\n// RUN: %target-build-swift -emit-module-path %t/main4_2.swiftmodule -swift-version 4.2 -Fsystem %sdk/System/Library/PrivateFrameworks/ %s\n\n// REQUIRES:...
dataset_sample\swift\apple_swift\validation-test\Serialization\rdar40839486.swift
rdar40839486.swift
Swift
623
0.95
0
0.285714
react-lib
152
2023-09-26T20:22:30.662166
GPL-3.0
true
3ac010788abbd223ad31057ffe0e47b8
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -emit-module -o %t/Library.swiftmodule -I %S/Inputs/custom-modules -DLIBRARY -Xfrontend -enable-objc-interop -Xfrontend -disable-objc-attr-requires-foundation-module\n// RUN: %target-swift-frontend %s -I %t -I %S/Inputs/custom-modules -enable-objc-interop -em...
dataset_sample\swift\apple_swift\validation-test\Serialization\rdar40899824.swift
rdar40899824.swift
Swift
1,037
0.95
0.052632
0.296296
awesome-app
350
2023-09-03T03:51:47.473642
BSD-3-Clause
true
e3921c7f6e3e8aa4dfb08b808ea409ac
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module-path %t/WrappedParameter.swiftmodule -emit-module-source-info-path %t/WrappedParameter.swiftsourceinfo -module-name WrappedParameter -enable-testing %s\n// RUN: %target-swift-frontend -merge-modules -emit-module %t/WrappedParameter.swiftmodule -m...
dataset_sample\swift\apple_swift\validation-test\Serialization\rdar77804605.swift
rdar77804605.swift
Swift
752
0.8
0
0.357143
react-lib
542
2025-01-27T13:25:06.870259
Apache-2.0
true
ef629e667c3f60256eaf0a790c52660d
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module %s\n\n@propertyWrapper\npublic struct TestWrapper {\n public var wrappedValue: Int\n public init(wrappedValue: Int) { self.wrappedValue = wrappedValue }\n}\n\n@frozen public struct Test {\n @TestWrapper public var x: Int = 42\n}\n\n
dataset_sample\swift\apple_swift\validation-test\Serialization\rdar80449046.swift
rdar80449046.swift
Swift
296
0.8
0
0.2
python-kit
827
2024-08-20T10:15:12.727086
Apache-2.0
true
ef57e05efd28223fd8d970a2ae82e1d3
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -import-objc-header %S/Inputs/serialization_loops.h -o %t %S/Inputs/serialization_loops_helper.swift\n// RUN: %target-swift-frontend -emit-module -import-objc-header %S/Inputs/serialization_loops.h -I %t -o %t %S/Inputs/serialization_loops_helper...
dataset_sample\swift\apple_swift\validation-test\Serialization\serialization_loops.swift
serialization_loops.swift
Swift
614
0.95
0
0.666667
node-utils
5
2025-06-15T12:35:37.074703
BSD-3-Clause
true
5e43215ccc2b914f6846770f6a74deb6
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -module-name errors -emit-module -o %t/errors.swiftmodule -experimental-allow-module-with-compiler-errors %s\n\n// Property wrappers are invalid on top level code, check allowing errors\n// does not crash\n\n@propertyWrapper\npublic struct Wrapper<T> {\n p...
dataset_sample\swift\apple_swift\validation-test\Serialization\AllowErrors\invalid-attr-refs.swift
invalid-attr-refs.swift
Swift
400
0.8
0
0.363636
awesome-app
648
2025-04-13T23:59:08.639035
BSD-3-Clause
true
1d502bcc7726c15bd964369ef3524f2b
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -module-name errors -emit-module -o %t/errors.swiftmodule -experimental-allow-module-with-compiler-errors %s\n\n// @discardableResult is not allowed on a struct, make sure we don't crash\n// when allowing errors\n\n@discardableResult\nstruct SomeStruct {}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\AllowErrors\invalid-attr.swift
invalid-attr.swift
Swift
311
0.8
0
0.666667
node-utils
605
2025-02-04T10:21:13.133142
BSD-3-Clause
true
b67c2a759184ed255c8a7c8977661bb7
// RUN: %empty-directory(%t)\n\n// -parse-as-library added so that the PDB isn't added to a TopLevelCodeDecl,\n// which isn't serialized at all\n// RUN: %target-swift-frontend -emit-module -o %t/errors.swiftmodule -module-name errors -experimental-allow-module-with-compiler-errors -parse-as-library %s\n\nlet self = 1\n
dataset_sample\swift\apple_swift\validation-test\Serialization\AllowErrors\invalid-pattern.swift
invalid-pattern.swift
Swift
313
0.8
0
0.8
awesome-app
946
2024-03-12T03:02:07.950122
GPL-3.0
true
7732a5eecbee20f2c28a4be7fbea1361
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -module-name errors -emit-module -o %t/errors.partial.swiftmodule -experimental-allow-module-with-compiler-errors %s\n// RUN: %target-swift-frontend -merge-modules -module-name errors -emit-module -o %t/errors.swiftmodule -experimental-allow-module-with-com...
dataset_sample\swift\apple_swift\validation-test\Serialization\AllowErrors\invalid-witness.swift
invalid-witness.swift
Swift
507
0.8
0
0.272727
python-kit
747
2024-01-23T18:55:39.287950
BSD-3-Clause
true
55833a7eee599043602009b70cd18a46
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -module-name errors -emit-module -o %t/errors.swiftmodule -experimental-allow-module-with-compiler-errors %s\n\nprotocol SomeProto {}\n\nextension SomeProto {\n func someFunc(arg:\n\nenum SomeEnum {\n case a\n}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\AllowErrors\unresolved-type.swift
unresolved-type.swift
Swift
269
0.8
0
0.25
python-kit
690
2023-12-10T08:26:54.777490
MIT
true
c540fb0bf17ddff89cca412bc9f62d89
protocol FooBaseProto {}\n\nprotocol FooProto: FooBaseProto {}\n\nprotocol BarProto {\n associatedtype Foo: FooProto\n init(foo: Foo)\n}\n\nprotocol BazProto {\n associatedtype Bar: BarProto\n init(bar: Bar)\n}\n\nstruct BarImpl: BarProto {\n init(foo: FooImpl) {}\n}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\Inputs\issue-47767-other.swift
issue-47767-other.swift
Swift
257
0.7
0
0
python-kit
835
2024-06-12T03:34:41.990701
GPL-3.0
true
bb8e06727e8fcafaa2f45c13e6249f93
public typealias Alias<T> = (T) -> ()\n\npublic class Super {\n public func foo(_ f: @escaping Alias<Bool>) {}\n}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\Inputs\issue-50578-other.swift
issue-50578-other.swift
Swift
111
0.85
0.2
0
awesome-app
664
2024-11-09T18:57:13.796018
MIT
true
3a01594ebbbc51eeab51bba472184fba
import Foundation\nimport serialization_loops_helper\n\npublic class SubSub : Sub {\n public override init() {\n super.init()\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\Inputs\serialization_loops_helper2.swift
serialization_loops_helper2.swift
Swift
131
0.85
0.125
0
awesome-app
178
2024-11-28T21:50:21.817635
MIT
true
4a7c19aaf799fbd86aa2f60ff1ad4b1c
public class MyCls {\n public static func doIt(_: Inner1.Inner2) {}\n\n public struct Inner1 {}\n}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\Inputs\crash-nested-extension\f1.swift
f1.swift
Swift
97
0.65
0.2
0
awesome-app
632
2024-10-30T10:29:15.510672
Apache-2.0
true
138fff87abacf30e5af1cc78729d0b04
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend %S/Inputs/itermod.swift -module-name itermod -emit-module -o %t/itermod.swiftmodule\n// RUN: %target-swift-frontend %S/Inputs/basemod.swift -module-name basemod -emit-module -o %t/basemod.swiftmodule -I %t\n// RUN: %target-swift-frontend %S/Inputs/dependmod.s...
dataset_sample\swift\apple_swift\validation-test\Serialization\xref-badtag-49336277\main.swift
main.swift
Swift
628
0.95
0
0.5
node-utils
611
2024-09-08T20:03:15.124026
Apache-2.0
true
83420630e7ae3320d15985b3598e3ae9
import itermod\n\npublic protocol MySequence {\n associatedtype Element\n associatedtype Iterator: MyIter where Iterator.Element == Element\n}\n\npublic struct MyBar: MySequence, MyIter {\n public func callme() {}\n\n public typealias Element = UInt8\n public typealias Iterator = MyBar\n}\n
dataset_sample\swift\apple_swift\validation-test\Serialization\xref-badtag-49336277\Inputs\basemod.swift
basemod.swift
Swift
283
0.85
0
0
node-utils
399
2023-07-13T17:56:50.648291
GPL-3.0
true
1d80547d606bc97ce23a693c82cf30ce
// RUN: %target-swift-frontend -emit-sil %s\n\n// https://github.com/apple/swift/issues/54666\n// Use-after-free in `SILFunction::print`\n\nfunc outer<C>(_ x: C) {\n func inner<C>(_ x: C) {}\n}\n
dataset_sample\swift\apple_swift\validation-test\SIL\crashers_fixed\047-swift-silfunction-print.swift
047-swift-silfunction-print.swift
Swift
188
0.8
0
0.5
node-utils
9
2024-06-14T04:48:30.639284
MIT
true
3496a0751ffc5ebd8c19c092a42d592f
// RUN: %target-swift-emit-silgen %s -verify\n\n// Check that SILGen does not crash because of a parenthesized try expression\nclass Class {\n var num: Int = 1\n\n init() throws {}\n}\n_ = (try Class().num)\n
dataset_sample\swift\apple_swift\validation-test\SILGen\issue-73244.swift
issue-73244.swift
Swift
201
0.95
0.333333
0.285714
awesome-app
610
2023-11-29T14:06:02.766712
Apache-2.0
true
639efebc6d535ea4882d6ac614cfe8ff
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n// RUN: %target-swift-emit-silgen -module-name Conformance -I %t %t/Conformance.swift -disable-availability-checking | %FileCheck %s\n\n// REQUIRES: concurrency\n// REQUIRES: objc_interop\n\n//--- module.modulemap\nmodule ObjCProto {\n header "objc_proto.h"\n ex...
dataset_sample\swift\apple_swift\validation-test\SILGen\rdar119732084.swift
rdar119732084.swift
Swift
2,816
0.95
0.029851
0.754386
node-utils
141
2025-01-16T16:54:09.044388
BSD-3-Clause
true
2b59a244228ae1968ba41f84f5128d71
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types %s | %FileCheck %s\n// RUN: %target-swift-emit-sil -Xllvm -sil-print-types %s -verify\n\nstruct NC : ~Copyable {}\n\nfunc loadClosure(_ umrp: UnsafeMutableRawPointer) {\n typealias Enumerator = (borrowing NC) -> Void\n let body = umrp.load(as: Enumerator.self)...
dataset_sample\swift\apple_swift\validation-test\SILGen\rdar128710064.swift
rdar128710064.swift
Swift
1,145
0.95
0.04
0.727273
react-lib
906
2023-09-08T09:15:13.563512
BSD-3-Clause
true
2255629cfb25f233950025f0ad346d32
// RUN: %target-swift-emit-silgen %s | %FileCheck %s\n// RUN: %target-swift-emit-sil %s -verify\n\nprotocol Summable_2: ~Copyable {\n static var zero: Self { get }\n}\n\nstruct NCInt_2: ~Copyable, Summable_2 {\n var rawValue: Int\n\n static var zero: Self {\n .init(rawValue: 0)\n }\n}\n\n// CHECK-LABEL: sil {{.*...
dataset_sample\swift\apple_swift\validation-test\SILGen\rdar129010265.swift
rdar129010265.swift
Swift
1,404
0.95
0.029412
0.7
vue-tools
310
2025-01-09T09:10:34.753492
GPL-3.0
true
fab8dba48c1196d95de730f23662ec67
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/rdar81421394.m -I %S/Inputs -c -o %t/rdar81421394.o\n// RUN: %target-build-swift -Xfrontend -disable-availability-checking -import-objc-header %S/Inputs/rdar81421394.h -Xlinker %t/rdar81421394.o %s -o %t/main\n// RUN: %target-codesign %t/main\n// RUN: %targe...
dataset_sample\swift\apple_swift\validation-test\SILGen\rdar81421394.swift
rdar81421394.swift
Swift
1,026
0.95
0.022222
0.305556
python-kit
82
2025-02-25T20:02:39.362321
BSD-3-Clause
true
c29314b7918d7fdb374298c731725712
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/rdar85526916.m -I %S/Inputs -c -o %t/rdar85526916.o\n// RUN: %target-build-swift -Xfrontend -disable-availability-checking -import-objc-header %S/Inputs/rdar85526916.h -Xlinker %t/rdar85526916.o -parse-as-library %s -o %t/main\n// RUN: %target-codesign %t/ma...
dataset_sample\swift\apple_swift\validation-test\SILGen\rdar85526916.swift
rdar85526916.swift
Swift
1,118
0.95
0.029412
0.517241
python-kit
281
2023-11-30T08:20:07.627123
Apache-2.0
true
9e2c12b082d320914686667e39be4c24
// RUN: %target-swift-frontend -emit-silgen %s -target %target-cpu-apple-macosx11 -swift-version 5\n\n// REQUIRES: objc_interop\n// REQUIRES: OS=macosx\n\nimport SwiftUI\n\nstruct MyView: View {\n @State private var isPresented = false\n\n var body: some View {\n NavigationView {\n Form {\n ...
dataset_sample\swift\apple_swift\validation-test\SILGen\SwiftUI\opaque_result_type_erasure.swift
opaque_result_type_erasure.swift
Swift
630
0.95
0
0.136364
node-utils
909
2024-12-29T21:24:32.956482
Apache-2.0
true
468c88ab8822ea8d49a7394f3348a3e3
// RUN: %target-swift-frontend \\n// RUN: -emit-sil -verify \\n// RUN: %s \\n// RUN: -sil-verify-all\n\n////////////////////////////////////////////////////////////////////////////////\n// https://github.com/apple/swift/issues/69252 {{\n/////////////////////////////////////////...
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\consume_checking.swift
consume_checking.swift
Swift
1,570
0.8
0
0.405405
vue-tools
262
2025-05-04T16:21:58.585209
MIT
true
05c1e3599e9c6d46651aefcae074a18c
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -o %t/bin\n// RUN: %target-codesign %t/bin\n// RUN: %target-run %t/bin 2> %t/out.txt || true\n// RUN: %FileCheck %s < %t/out.txt\n\n// REQUIRES: executable_test\n\nstruct Example: ~Copyable {\n private var failureString: String { "Goodbye." }\n deinit {...
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\gh68328.swift
gh68328.swift
Swift
438
0.8
0
0.466667
python-kit
746
2025-02-07T18:21:36.016246
Apache-2.0
true
e6d8a4a63b3809e2849f7333e088389c
// RUN: %target-swift-frontend -emit-sil -verify %s\n\n// REQUIRES: objc_interop\n\nimport Foundation\n\nfunc mutateText(_ rawText: NSString?) -> String {\n guard let text = consume rawText else {\n return "text unavailable"\n }\n return String(text)\n}\n
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\gh70234.swift
gh70234.swift
Swift
249
0.95
0
0.222222
react-lib
393
2025-01-11T13:56:34.682765
GPL-3.0
true
2e2b759d23322958dca2a791aa242c8e
// RUN: %target-swift-frontend -emit-sil -verify %s\n\nstruct PinnedInfo {\n var hasPinnedCells: Bool {\n return !allPins.isEmpty\n }\n\n var allPins: ContiguousArray<Int>\n\n init(allPins: ContiguousArray<Int> = []) {\n self.allPins = allPins\n }\n}\n\nenum ModelState: Hashable, CaseIterab...
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\gh72055.swift
gh72055.swift
Swift
1,587
0.8
0.019231
0.025
python-kit
499
2023-10-10T21:56:58.425442
Apache-2.0
true
c4d948d9c254271689a1bff7a9592095
// RUN: %target-swift-frontend -c -O %s\n\nprotocol P {}\nenum E {\n case c(any P)\n var d: [String:String] { [:] }\n}\n\nfinal class C {\n var o: [String:String]?\n}\n\nfunc f(_ e: E?) {\n if let e {\n C().o?.merge(e.d) { c, _ in c }\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\gh77693.swift
gh77693.swift
Swift
234
0.95
0.117647
0.071429
node-utils
435
2025-05-29T03:01:29.654576
Apache-2.0
true
25ce5850197c5a0e3e4de9c1693b3b2e
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all)\n// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all)\n\n// REQUIRES: executable_test\n\n/// A unique value represented by a heap memory location.\nstruct Handle: ~Copyable {\n var address: UnsafeMutableRawPointer\n\n init() {\n self.address =...
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\issue-71495.swift
issue-71495.swift
Swift
1,094
0.8
0
0.131579
vue-tools
96
2024-08-10T20:46:54.125208
Apache-2.0
true
936630c002877b42d2dc7b46f0094192
// RUN: %target-swift-frontend \\n// RUN: %s \\n// RUN: -emit-sil -verify \\n// RUN: -sil-verify-all\n\nfunc doStuffUniquely(with value: consuming [Int]) {\n // If we received the last remaining reference to `value`, we'd like\n // to be able to efficiently update it without incurring mor...
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\issue-72615.swift
issue-72615.swift
Swift
793
0.95
0.034483
0.434783
vue-tools
829
2025-05-21T11:05:16.338155
Apache-2.0
true
9b515529e551e580200cf7e525e81e30
// RUN: %target-run-simple-swift | %FileCheck %s\n\n// REQUIRES: executable_test\n\nclass Object {\n deinit { print("deinit object") }\n}\n\nstruct Noncopyable: ~Copyable {\n deinit { print("deinit noncopyable") }\n}\n\nfunc testDeinitAfterConsume() {\n do {\n let object = Object()\n // CHECK: be...
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\issue-73859.swift
issue-73859.swift
Swift
780
0.95
0.027027
0.266667
awesome-app
510
2025-05-13T11:42:00.299296
Apache-2.0
true
461ab27bf5f43fa3624b100ba88f72ec
// RUN: %target-build-swift %s -I %S/Inputs\n\nimport Issue_78447_C\n\nfunc foo<T> (ptr: UnsafePointer<T>?) -> String? {\n return nil\n}\n\nclass A {\n internal let ptr: xmlNsPtr\n internal init(ptr: xmlNsPtr) {\n self.ptr = ptr\n }\n}\n\nclass B : A {\n func bar() -> String? {\n return foo(ptr: ptr.pointee....
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\issue-78447.swift
issue-78447.swift
Swift
317
0.95
0.1
0.0625
react-lib
353
2025-04-01T06:54:37.554861
BSD-3-Clause
true
e898d8c436358e711ac821b17164a50a
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// The compiler should finish in less than 20 seconds. To give some slack,\n// specify a timeout of 3 minutes.\n// If the compiler needs more than 3 minutes, there is probably a real problem.\n// So please don't just increase the timeout in case this fails.\n\n/...
dataset_sample\swift\apple_swift\validation-test\SILOptimizer\large_c_struct.swift
large_c_struct.swift
Swift
27,292
0.95
0
0.010508
react-lib
818
2023-11-08T17:50:35.715399
GPL-3.0
true
d8576159749f0a98c0697edfa427ea83