Skip to content

Commit

Permalink
Made compliant with strict concurrency for Swift 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriebling committed Oct 12, 2024
1 parent 63a4619 commit f8602a3
Show file tree
Hide file tree
Showing 701 changed files with 934 additions and 695 deletions.
24 changes: 24 additions & 0 deletions .swiftpm/BigInt.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations" : [
{
"id" : "A1017C20-4CA5-4409-B8B3-E131A3F2EE7F",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {

},
"testTargets" : [
{
"target" : {
"containerPath" : "container:",
"identifier" : "BigIntTests",
"name" : "BigIntTests"
}
}
],
"version" : 1
}
9 changes: 7 additions & 2 deletions .swiftpm/xcode/xcshareddata/xcschemes/BigInt.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:.swiftpm/BigInt.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1600"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigInt"
BuildableName = "BigInt"
BlueprintName = "BigInt"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:.swiftpm/BigInt.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigIntTests"
BuildableName = "BigIntTests"
BlueprintName = "BigIntTests"
ReferencedContainer = "container:">
</BuildableReference>
<SkippedTests>
<Test
Identifier = "BinomialTest">
</Test>
<Test
Identifier = "BinomialTest/test1()">
</Test>
<Test
Identifier = "DivModBZTest">
</Test>
<Test
Identifier = "FFTTest">
</Test>
<Test
Identifier = "FFTTest/test1()">
</Test>
<Test
Identifier = "FFTTest/test2()">
</Test>
<Test
Identifier = "FFTTest/test3()">
</Test>
<Test
Identifier = "FFTTest/test4()">
</Test>
<Test
Identifier = "FFTTest/test5()">
</Test>
<Test
Identifier = "GcdExtendedTest">
</Test>
<Test
Identifier = "GcdExtendedTest/test1()">
</Test>
<Test
Identifier = "GcdExtendedTest/test2()">
</Test>
<Test
Identifier = "GcdExtendedTest/testRecursiveGCD()">
</Test>
<Test
Identifier = "GcdTest">
</Test>
<Test
Identifier = "GcdTest/test1()">
</Test>
<Test
Identifier = "GcdTest/test2()">
</Test>
<Test
Identifier = "GcdTest/test3()">
</Test>
<Test
Identifier = "GcdTest/testRecursiveGCD()">
</Test>
<Test
Identifier = "RootTest">
</Test>
<Test
Identifier = "RootTest/test1()">
</Test>
<Test
Identifier = "RootTest/test2()">
</Test>
<Test
Identifier = "RootTest/test3()">
</Test>
<Test
Identifier = "RootTest/test4()">
</Test>
<Test
Identifier = "RootTest/test5()">
</Test>
<Test
Identifier = "RootTest/test6()">
</Test>
</SkippedTests>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigInt"
BuildableName = "BigInt"
BlueprintName = "BigInt"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
<dict>
<key>SchemeUserState</key>
<dict>
<key>BigInt Full.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>1</integer>
</dict>
<key>BigInt.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
Expand Down
2 changes: 1 addition & 1 deletion BigInt.doccarchive/data/documentation/bigint.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion BigInt.doccarchive/data/documentation/bigint/aboutcrt.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"abstract":[{"type":"text","text":"Chinese Remainder Theorem"}],"metadata":{"modules":[{"name":"BigInt"}],"role":"article","title":"About CRT","roleHeading":"Article"},"hierarchy":{"paths":[["doc:\/\/bigint.BigInt\/documentation\/BigInt"]]},"schemaVersion":{"patch":0,"major":0,"minor":3},"primaryContentSections":[{"content":[{"type":"heading","anchor":"Overview","text":"Overview","level":2},{"inlineContent":[{"text":"Create a CRT instance from a given set of moduli which fullfill the following conditions:","type":"text"}],"type":"paragraph"},{"items":[{"content":[{"inlineContent":[{"type":"text","text":"at least two moduli"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"all moduli are positive"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"the moduli are pairwise coprime","type":"text"}]}]}],"type":"unorderedList"},{"inlineContent":[{"text":"Then use the ","type":"text"},{"code":"compute","type":"codeVoice"},{"type":"text","text":" method to compute the CRT value for a given set of residues."}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"text":"The same CRT instance can be used for different inputs, as long as the moduli are the same.","type":"text"}]},{"level":3,"text":"Example","type":"heading","anchor":"Example"},{"type":"codeListing","code":["let moduli = [3, 5, 7]","let crt = CRT(moduli)!","","let residues = [2, 2, 6]","print(\"CRT value:\", crt.compute(residues))"],"syntax":"swift"},{"inlineContent":[{"text":"giving:","type":"text"}],"type":"paragraph"},{"syntax":"swift","code":["CRT value: 62"],"type":"codeListing"}],"kind":"content"}],"kind":"article","seeAlsoSections":[{"identifiers":["doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBInt","doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBFraction","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Performance","doc:\/\/bigint.BigInt\/documentation\/BigInt\/References","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Algorithms","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Protocols"],"title":"Articles","generated":true,"anchor":"Articles"}],"identifier":{"url":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutCRT","interfaceLanguage":"swift"},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/bigint\/aboutcrt"]}],"references":{"doc://bigint.BigInt/documentation/BigInt/AboutBInt":{"abstract":[{"type":"text","text":"Signed integers of unbounded size"}],"type":"topic","kind":"article","url":"\/documentation\/bigint\/aboutbint","role":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBInt","title":"About BInt"},"doc://bigint.BigInt/documentation/BigInt/Protocols":{"identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Protocols","kind":"article","type":"topic","role":"article","title":"Protocols and Additions","abstract":[{"type":"text","text":"BigInt supports the standard integer data type’s SignedInteger, BinaryInteger, Codable, and Numeric protocols."}],"url":"\/documentation\/bigint\/protocols"},"doc://bigint.BigInt/documentation/BigInt/References":{"title":"References","type":"topic","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"url":"\/documentation\/bigint\/references","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/References","role":"article","kind":"article"},"doc://bigint.BigInt/documentation/BigInt":{"title":"BigInt","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt","url":"\/documentation\/bigint","type":"topic","kind":"symbol","abstract":[{"text":"Signed integers and fractions of unbounded size","type":"text"}],"role":"collection"},"doc://bigint.BigInt/documentation/BigInt/Algorithms":{"role":"article","type":"topic","abstract":[{"type":"text","text":"Some of the algorithms used in BigInt are described below"}],"url":"\/documentation\/bigint\/algorithms","title":"Algorithms","kind":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Algorithms"},"doc://bigint.BigInt/documentation/BigInt/AboutBFraction":{"role":"article","type":"topic","abstract":[{"type":"text","text":"Signed fractions with numerator and denominator of unbounded size"}],"url":"\/documentation\/bigint\/aboutbfraction","title":"About BFraction","kind":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBFraction"},"doc://bigint.BigInt/documentation/BigInt/Performance":{"role":"article","title":"Performance","kind":"article","type":"topic","abstract":[{"type":"text","text":"Execution times for certain BigInt operations"}],"url":"\/documentation\/bigint\/performance","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Performance"}}}
{"primaryContentSections":[{"content":[{"level":2,"text":"Overview","anchor":"Overview","type":"heading"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Create a CRT instance from a given set of moduli which fullfill the following conditions:"}]},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"text":"at least two moduli","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"all moduli are positive","type":"text"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"the moduli are pairwise coprime"}]}]}]},{"type":"paragraph","inlineContent":[{"text":"Then use the ","type":"text"},{"type":"codeVoice","code":"compute"},{"text":" method to compute the CRT value for a given set of residues.","type":"text"}]},{"type":"paragraph","inlineContent":[{"text":"The same CRT instance can be used for different inputs, as long as the moduli are the same.","type":"text"}]},{"anchor":"Example","level":3,"text":"Example","type":"heading"},{"type":"codeListing","code":["let moduli = [3, 5, 7]","let crt = CRT(moduli)!","","let residues = [2, 2, 6]","print(\"CRT value:\", crt.compute(residues))"],"syntax":"swift"},{"type":"paragraph","inlineContent":[{"type":"text","text":"giving:"}]},{"type":"codeListing","syntax":"swift","code":["CRT value: 62"]}],"kind":"content"}],"variants":[{"paths":["\/documentation\/bigint\/aboutcrt"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"title":"About CRT","modules":[{"name":"BigInt"}],"role":"article","roleHeading":"Article"},"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"abstract":[{"type":"text","text":"Chinese Remainder Theorem"}],"seeAlsoSections":[{"identifiers":["doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBInt","doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBFraction","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Performance","doc:\/\/bigint.BigInt\/documentation\/BigInt\/References","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Algorithms","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Protocols"],"generated":true,"anchor":"Articles","title":"Articles"}],"hierarchy":{"paths":[["doc:\/\/bigint.BigInt\/documentation\/BigInt"]]},"kind":"article","identifier":{"interfaceLanguage":"swift","url":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutCRT"},"references":{"doc://bigint.BigInt/documentation/BigInt/References":{"url":"\/documentation\/bigint\/references","role":"article","title":"References","type":"topic","abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"kind":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/References"},"doc://bigint.BigInt/documentation/BigInt/Performance":{"title":"Performance","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Performance","url":"\/documentation\/bigint\/performance","role":"article","type":"topic","abstract":[{"text":"Execution times for certain BigInt operations","type":"text"}],"kind":"article"},"doc://bigint.BigInt/documentation/BigInt/Protocols":{"url":"\/documentation\/bigint\/protocols","role":"article","title":"Protocols and Additions","type":"topic","abstract":[{"text":"BigInt supports the standard integer data type’s SignedInteger, BinaryInteger, Codable, and Numeric protocols.","type":"text"}],"kind":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Protocols"},"doc://bigint.BigInt/documentation/BigInt/AboutBFraction":{"kind":"article","role":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBFraction","abstract":[{"text":"Signed fractions with numerator and denominator of unbounded size","type":"text"}],"title":"About BFraction","url":"\/documentation\/bigint\/aboutbfraction","type":"topic"},"doc://bigint.BigInt/documentation/BigInt/Algorithms":{"role":"article","url":"\/documentation\/bigint\/algorithms","type":"topic","abstract":[{"text":"Some of the algorithms used in BigInt are described below","type":"text"}],"title":"Algorithms","kind":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Algorithms"},"doc://bigint.BigInt/documentation/BigInt/AboutBInt":{"title":"About BInt","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBInt","url":"\/documentation\/bigint\/aboutbint","role":"article","type":"topic","abstract":[{"text":"Signed integers of unbounded size","type":"text"}],"kind":"article"},"doc://bigint.BigInt/documentation/BigInt":{"kind":"symbol","url":"\/documentation\/bigint","role":"collection","title":"BigInt","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt","abstract":[{"type":"text","text":"Signed integers and fractions of unbounded size"}],"type":"topic"}}}
Loading

0 comments on commit f8602a3

Please sign in to comment.