diff --git a/.gitignore b/.gitignore index 43b869f..12fe925 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -# Created by https://www.gitignore.io/api/linux,kotlin,intellij+all -# Edit at https://www.gitignore.io/?templates=linux,kotlin,intellij+all +# Created by https://www.gitignore.io/api/linux,kotlin,gradle,intellij+all +# Edit at https://www.gitignore.io/?templates=linux,kotlin,gradle,intellij+all ### Intellij+all ### # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm @@ -101,7 +101,6 @@ modules.xml # Package Files # *.jar -!gradle/**/*.jar *.war *.nar *.ear @@ -127,4 +126,23 @@ hs_err_pid* # .nfs files are created when an open file is removed but is still being accessed .nfs* -# End of https://www.gitignore.io/api/linux,kotlin,intellij+all +### Gradle ### +.gradle +build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Cache of project +.gradletasknamecache + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties + +### Gradle Patch ### +**/build/ + +# End of https://www.gitignore.io/api/linux,kotlin,gradle,intellij+all diff --git a/.gradle/4.10/fileChanges/last-build.bin b/.gradle/4.10/fileChanges/last-build.bin deleted file mode 100644 index f76dd23..0000000 Binary files a/.gradle/4.10/fileChanges/last-build.bin and /dev/null differ diff --git a/.gradle/4.10/fileContent/fileContent.lock b/.gradle/4.10/fileContent/fileContent.lock deleted file mode 100644 index f737a8d..0000000 Binary files a/.gradle/4.10/fileContent/fileContent.lock and /dev/null differ diff --git a/.gradle/4.10/fileHashes/fileHashes.bin b/.gradle/4.10/fileHashes/fileHashes.bin deleted file mode 100644 index 932073c..0000000 Binary files a/.gradle/4.10/fileHashes/fileHashes.bin and /dev/null differ diff --git a/.gradle/4.10/fileHashes/fileHashes.lock b/.gradle/4.10/fileHashes/fileHashes.lock deleted file mode 100644 index 86a4be9..0000000 Binary files a/.gradle/4.10/fileHashes/fileHashes.lock and /dev/null differ diff --git a/.gradle/4.10/gc.properties b/.gradle/4.10/gc.properties deleted file mode 100644 index e69de29..0000000 diff --git a/.gradle/4.10/taskHistory/taskHistory.bin b/.gradle/4.10/taskHistory/taskHistory.bin deleted file mode 100644 index 143f37b..0000000 Binary files a/.gradle/4.10/taskHistory/taskHistory.bin and /dev/null differ diff --git a/.gradle/4.10/taskHistory/taskHistory.lock b/.gradle/4.10/taskHistory/taskHistory.lock deleted file mode 100644 index 8c92dd9..0000000 Binary files a/.gradle/4.10/taskHistory/taskHistory.lock and /dev/null differ diff --git a/.gradle/5.2.1/fileChanges/last-build.bin b/.gradle/5.2.1/fileChanges/last-build.bin deleted file mode 100644 index f76dd23..0000000 Binary files a/.gradle/5.2.1/fileChanges/last-build.bin and /dev/null differ diff --git a/.gradle/5.2.1/fileHashes/fileHashes.lock b/.gradle/5.2.1/fileHashes/fileHashes.lock deleted file mode 100644 index c919105..0000000 Binary files a/.gradle/5.2.1/fileHashes/fileHashes.lock and /dev/null differ diff --git a/.gradle/5.2.1/gc.properties b/.gradle/5.2.1/gc.properties deleted file mode 100644 index e69de29..0000000 diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock deleted file mode 100644 index 656550d..0000000 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and /dev/null differ diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties deleted file mode 100644 index e3df999..0000000 --- a/.gradle/buildOutputCleanup/cache.properties +++ /dev/null @@ -1,2 +0,0 @@ -#Sun Mar 10 15:15:32 CET 2019 -gradle.version=4.10 diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin deleted file mode 100644 index b24b3d2..0000000 Binary files a/.gradle/buildOutputCleanup/outputFiles.bin and /dev/null differ diff --git a/.gradle/vcs-1/gc.properties b/.gradle/vcs-1/gc.properties deleted file mode 100644 index e69de29..0000000 diff --git a/build/classes/kotlin/main/META-INF/data structures and algorithms.kotlin_module b/build/classes/kotlin/main/META-INF/data structures and algorithms.kotlin_module deleted file mode 100644 index 8fb6019..0000000 Binary files a/build/classes/kotlin/main/META-INF/data structures and algorithms.kotlin_module and /dev/null differ diff --git a/build/classes/kotlin/test/META-INF/data structures and algorithms.kotlin_module b/build/classes/kotlin/test/META-INF/data structures and algorithms.kotlin_module deleted file mode 100644 index 8fb6019..0000000 Binary files a/build/classes/kotlin/test/META-INF/data structures and algorithms.kotlin_module and /dev/null differ diff --git a/build/kotlin/compileKotlin/build-history.bin b/build/kotlin/compileKotlin/build-history.bin deleted file mode 100644 index b361780..0000000 Binary files a/build/kotlin/compileKotlin/build-history.bin and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab b/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab deleted file mode 100644 index 38fbd45..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.keystream deleted file mode 100644 index 6166094..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len deleted file mode 100644 index 8a4a2c4..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.len b/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.len deleted file mode 100644 index 93a595b..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.values.at deleted file mode 100644 index fb52b30..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i b/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i deleted file mode 100644 index 6f16a1f..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab deleted file mode 100644 index bdc033e..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream deleted file mode 100644 index 12c52ef..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len deleted file mode 100644 index 892189d..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len deleted file mode 100644 index 9e27f73..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at deleted file mode 100644 index 005f150..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i deleted file mode 100644 index b1de7c2..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab deleted file mode 100644 index a60f8f1..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream deleted file mode 100644 index 630fd05..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len deleted file mode 100644 index 812d25b..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.len deleted file mode 100644 index 01bdaa1..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at deleted file mode 100644 index daaf215..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i deleted file mode 100644 index 8593c78..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab deleted file mode 100644 index bdc033e..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream deleted file mode 100644 index ddfef20..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len deleted file mode 100644 index 892189d..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len deleted file mode 100644 index 9e27f73..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at deleted file mode 100644 index 005f150..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i deleted file mode 100644 index 56ff502..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab deleted file mode 100644 index 4f0ba5f..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream deleted file mode 100644 index 6a5adfd..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len deleted file mode 100644 index 0aec25e..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.len deleted file mode 100644 index 817b326..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at deleted file mode 100644 index 571b095..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i deleted file mode 100644 index c8ccf4f..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab deleted file mode 100644 index d6d33e8..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream deleted file mode 100644 index 6166094..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len deleted file mode 100644 index 8a4a2c4..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len deleted file mode 100644 index 93a595b..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at deleted file mode 100644 index f2b06b5..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i deleted file mode 100644 index 6f16a1f..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab deleted file mode 100644 index 9c4364a..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream deleted file mode 100644 index 2a8a839..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len deleted file mode 100644 index c32b442..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len deleted file mode 100644 index 01bdaa1..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at deleted file mode 100644 index 3771d49..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i deleted file mode 100644 index fade492..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab deleted file mode 100644 index b614181..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream deleted file mode 100644 index 6a4e805..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len deleted file mode 100644 index 812d25b..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len deleted file mode 100644 index 01bdaa1..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at deleted file mode 100644 index 5aba7be..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i deleted file mode 100644 index 3314ea9..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/counters.tab b/build/kotlin/compileKotlin/caches-jvm/lookups/counters.tab deleted file mode 100644 index 26d3b09..0000000 --- a/build/kotlin/compileKotlin/caches-jvm/lookups/counters.tab +++ /dev/null @@ -1,2 +0,0 @@ -4 -0 \ No newline at end of file diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab b/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab deleted file mode 100644 index 78d2953..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.keystream deleted file mode 100644 index e4a9306..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len deleted file mode 100644 index 511ad21..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.len b/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.len deleted file mode 100644 index 93a595b..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.values.at deleted file mode 100644 index 3e23c2a..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i b/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i deleted file mode 100644 index 74403a8..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab b/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab deleted file mode 100644 index 606e66c..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.keystream deleted file mode 100644 index 6e7a926..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len deleted file mode 100644 index eb52963..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.len b/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.len deleted file mode 100644 index 93a595b..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.values.at deleted file mode 100644 index 109c707..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i b/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i deleted file mode 100644 index 6936967..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab b/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab deleted file mode 100644 index 7922c9e..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream b/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream deleted file mode 100644 index 75dcc5b..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream.len b/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream.len deleted file mode 100644 index 0d66d80..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.len b/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.len deleted file mode 100644 index d95c70c..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.values.at b/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.values.at deleted file mode 100644 index 10f27e0..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i b/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i deleted file mode 100644 index 678c479..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i and /dev/null differ diff --git a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i.len b/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileKotlin/last-build.bin b/build/kotlin/compileKotlin/last-build.bin deleted file mode 100644 index be8c4db..0000000 Binary files a/build/kotlin/compileKotlin/last-build.bin and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/build-history.bin b/build/kotlin/compileTestKotlin/build-history.bin deleted file mode 100644 index a1fa9ce..0000000 Binary files a/build/kotlin/compileTestKotlin/build-history.bin and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab b/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab deleted file mode 100644 index 713393d..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.keystream b/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.keystream deleted file mode 100644 index 6f76320..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len b/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len deleted file mode 100644 index 23267c8..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.len b/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.len deleted file mode 100644 index 01bdaa1..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.values.at b/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.values.at deleted file mode 100644 index 8c319b4..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab_i b/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab_i deleted file mode 100644 index 6dc7fae..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab_i and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab_i.len b/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/inputs/source-to-output.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab deleted file mode 100644 index 29a4eb1..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream deleted file mode 100644 index 80c4f97..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len deleted file mode 100644 index 0241cab..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len deleted file mode 100644 index 01bdaa1..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at deleted file mode 100644 index 84281e0..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i deleted file mode 100644 index a97a8d7..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab deleted file mode 100644 index df2339b..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream deleted file mode 100644 index 6c612e5..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len deleted file mode 100644 index 224e03d..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len deleted file mode 100644 index 14f7c06..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at deleted file mode 100644 index 5b4f0d7..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i deleted file mode 100644 index 6bfe3bd..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab deleted file mode 100644 index b66d340..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream deleted file mode 100644 index 7390753..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len deleted file mode 100644 index 5024611..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.len deleted file mode 100644 index a9f80ae..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at deleted file mode 100644 index 79f3f2c..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab_i b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab_i deleted file mode 100644 index f48e802..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab_i and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab deleted file mode 100644 index 34b1680..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream deleted file mode 100644 index 6f76320..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len deleted file mode 100644 index 23267c8..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len deleted file mode 100644 index 01bdaa1..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at deleted file mode 100644 index 852259b..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i deleted file mode 100644 index 6dc7fae..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len b/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/counters.tab b/build/kotlin/compileTestKotlin/caches-jvm/lookups/counters.tab deleted file mode 100644 index 2ceb12b..0000000 --- a/build/kotlin/compileTestKotlin/caches-jvm/lookups/counters.tab +++ /dev/null @@ -1,2 +0,0 @@ -2 -0 \ No newline at end of file diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab b/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab deleted file mode 100644 index 0845b47..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.keystream b/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.keystream deleted file mode 100644 index e93e37e..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len deleted file mode 100644 index f4c8cfc..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.len deleted file mode 100644 index 01bdaa1..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.values.at b/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.values.at deleted file mode 100644 index 7d30a43..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab_i b/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab_i deleted file mode 100644 index 7d2ff8c..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab_i and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab_i.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/file-to-id.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab b/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab deleted file mode 100644 index f95c4b7..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.keystream b/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.keystream deleted file mode 100644 index 100d205..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len deleted file mode 100644 index ccfcbf4..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.len deleted file mode 100644 index 01bdaa1..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.values.at b/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.values.at deleted file mode 100644 index 3e17c7c..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab_i b/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab_i deleted file mode 100644 index f768a77..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab_i and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab_i.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/id-to-file.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab b/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab deleted file mode 100644 index a0c3981..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.keystream b/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.keystream deleted file mode 100644 index e84ac1c..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.keystream and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.keystream.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.keystream.len deleted file mode 100644 index 2c48962..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.keystream.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.len deleted file mode 100644 index 6989e7f..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.values.at b/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.values.at deleted file mode 100644 index 36c4a45..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab.values.at and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab_i b/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab_i deleted file mode 100644 index f268c31..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab_i and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab_i.len b/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab_i.len deleted file mode 100644 index 131e265..0000000 Binary files a/build/kotlin/compileTestKotlin/caches-jvm/lookups/lookups.tab_i.len and /dev/null differ diff --git a/build/kotlin/compileTestKotlin/last-build.bin b/build/kotlin/compileTestKotlin/last-build.bin deleted file mode 100644 index c6e24f5..0000000 Binary files a/build/kotlin/compileTestKotlin/last-build.bin and /dev/null differ diff --git a/build/reports/tests/test/css/base-style.css b/build/reports/tests/test/css/base-style.css deleted file mode 100644 index 4afa73e..0000000 --- a/build/reports/tests/test/css/base-style.css +++ /dev/null @@ -1,179 +0,0 @@ - -body { - margin: 0; - padding: 0; - font-family: sans-serif; - font-size: 12pt; -} - -body, a, a:visited { - color: #303030; -} - -#content { - padding-left: 50px; - padding-right: 50px; - padding-top: 30px; - padding-bottom: 30px; -} - -#content h1 { - font-size: 160%; - margin-bottom: 10px; -} - -#footer { - margin-top: 100px; - font-size: 80%; - white-space: nowrap; -} - -#footer, #footer a { - color: #a0a0a0; -} - -#line-wrapping-toggle { - vertical-align: middle; -} - -#label-for-line-wrapping-toggle { - vertical-align: middle; -} - -ul { - margin-left: 0; -} - -h1, h2, h3 { - white-space: nowrap; -} - -h2 { - font-size: 120%; -} - -ul.tabLinks { - padding-left: 0; - padding-top: 10px; - padding-bottom: 10px; - overflow: auto; - min-width: 800px; - width: auto !important; - width: 800px; -} - -ul.tabLinks li { - float: left; - height: 100%; - list-style: none; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - margin-bottom: 0; - -moz-border-radius: 7px; - border-radius: 7px; - margin-right: 25px; - border: solid 1px #d4d4d4; - background-color: #f0f0f0; -} - -ul.tabLinks li:hover { - background-color: #fafafa; -} - -ul.tabLinks li.selected { - background-color: #c5f0f5; - border-color: #c5f0f5; -} - -ul.tabLinks a { - font-size: 120%; - display: block; - outline: none; - text-decoration: none; - margin: 0; - padding: 0; -} - -ul.tabLinks li h2 { - margin: 0; - padding: 0; -} - -div.tab { -} - -div.selected { - display: block; -} - -div.deselected { - display: none; -} - -div.tab table { - min-width: 350px; - width: auto !important; - width: 350px; - border-collapse: collapse; -} - -div.tab th, div.tab table { - border-bottom: solid #d0d0d0 1px; -} - -div.tab th { - text-align: left; - white-space: nowrap; - padding-left: 6em; -} - -div.tab th:first-child { - padding-left: 0; -} - -div.tab td { - white-space: nowrap; - padding-left: 6em; - padding-top: 5px; - padding-bottom: 5px; -} - -div.tab td:first-child { - padding-left: 0; -} - -div.tab td.numeric, div.tab th.numeric { - text-align: right; -} - -span.code { - display: inline-block; - margin-top: 0em; - margin-bottom: 1em; -} - -span.code pre { - font-size: 11pt; - padding-top: 10px; - padding-bottom: 10px; - padding-left: 10px; - padding-right: 10px; - margin: 0; - background-color: #f7f7f7; - border: solid 1px #d0d0d0; - min-width: 700px; - width: auto !important; - width: 700px; -} - -span.wrapped pre { - word-wrap: break-word; - white-space: pre-wrap; - word-break: break-all; -} - -label.hidden { - display: none; -} \ No newline at end of file diff --git a/build/reports/tests/test/css/style.css b/build/reports/tests/test/css/style.css deleted file mode 100644 index 3dc4913..0000000 --- a/build/reports/tests/test/css/style.css +++ /dev/null @@ -1,84 +0,0 @@ - -#summary { - margin-top: 30px; - margin-bottom: 40px; -} - -#summary table { - border-collapse: collapse; -} - -#summary td { - vertical-align: top; -} - -.breadcrumbs, .breadcrumbs a { - color: #606060; -} - -.infoBox { - width: 110px; - padding-top: 15px; - padding-bottom: 15px; - text-align: center; -} - -.infoBox p { - margin: 0; -} - -.counter, .percent { - font-size: 120%; - font-weight: bold; - margin-bottom: 8px; -} - -#duration { - width: 125px; -} - -#successRate, .summaryGroup { - border: solid 2px #d0d0d0; - -moz-border-radius: 10px; - border-radius: 10px; -} - -#successRate { - width: 140px; - margin-left: 35px; -} - -#successRate .percent { - font-size: 180%; -} - -.success, .success a { - color: #008000; -} - -div.success, #successRate.success { - background-color: #bbd9bb; - border-color: #008000; -} - -.failures, .failures a { - color: #b60808; -} - -.skipped, .skipped a { - color: #c09853; -} - -div.failures, #successRate.failures { - background-color: #ecdada; - border-color: #b60808; -} - -ul.linkList { - padding-left: 0; -} - -ul.linkList li { - list-style: none; - margin-bottom: 5px; -} diff --git a/build/reports/tests/test/index.html b/build/reports/tests/test/index.html deleted file mode 100644 index 65395be..0000000 --- a/build/reports/tests/test/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - -Test results - Test Summary - - - - - -
-

Test Summary

-
- - - - - -
-
- - - - - - - -
-
-
0
-

tests

-
-
-
-
0
-

failures

-
-
-
-
0
-

ignored

-
-
-
-
-
-

duration

-
-
-
-
-
-
-
-

successful

-
-
-
-
- -
-

Classes

- - - - - - - - - - - - -
ClassTestsFailuresIgnoredDurationSuccess rate
-
-
- -
- - diff --git a/build/reports/tests/test/js/report.js b/build/reports/tests/test/js/report.js deleted file mode 100644 index 83bab4a..0000000 --- a/build/reports/tests/test/js/report.js +++ /dev/null @@ -1,194 +0,0 @@ -(function (window, document) { - "use strict"; - - var tabs = {}; - - function changeElementClass(element, classValue) { - if (element.getAttribute("className")) { - element.setAttribute("className", classValue); - } else { - element.setAttribute("class", classValue); - } - } - - function getClassAttribute(element) { - if (element.getAttribute("className")) { - return element.getAttribute("className"); - } else { - return element.getAttribute("class"); - } - } - - function addClass(element, classValue) { - changeElementClass(element, getClassAttribute(element) + " " + classValue); - } - - function removeClass(element, classValue) { - changeElementClass(element, getClassAttribute(element).replace(classValue, "")); - } - - function initTabs() { - var container = document.getElementById("tabs"); - - tabs.tabs = findTabs(container); - tabs.titles = findTitles(tabs.tabs); - tabs.headers = findHeaders(container); - tabs.select = select; - tabs.deselectAll = deselectAll; - tabs.select(0); - - return true; - } - - function getCheckBox() { - return document.getElementById("line-wrapping-toggle"); - } - - function getLabelForCheckBox() { - return document.getElementById("label-for-line-wrapping-toggle"); - } - - function findCodeBlocks() { - var spans = document.getElementById("tabs").getElementsByTagName("span"); - var codeBlocks = []; - for (var i = 0; i < spans.length; ++i) { - if (spans[i].className.indexOf("code") >= 0) { - codeBlocks.push(spans[i]); - } - } - return codeBlocks; - } - - function forAllCodeBlocks(operation) { - var codeBlocks = findCodeBlocks(); - - for (var i = 0; i < codeBlocks.length; ++i) { - operation(codeBlocks[i], "wrapped"); - } - } - - function toggleLineWrapping() { - var checkBox = getCheckBox(); - - if (checkBox.checked) { - forAllCodeBlocks(addClass); - } else { - forAllCodeBlocks(removeClass); - } - } - - function initControls() { - if (findCodeBlocks().length > 0) { - var checkBox = getCheckBox(); - var label = getLabelForCheckBox(); - - checkBox.onclick = toggleLineWrapping; - checkBox.checked = false; - - removeClass(label, "hidden"); - } - } - - function switchTab() { - var id = this.id.substr(1); - - for (var i = 0; i < tabs.tabs.length; i++) { - if (tabs.tabs[i].id === id) { - tabs.select(i); - break; - } - } - - return false; - } - - function select(i) { - this.deselectAll(); - - changeElementClass(this.tabs[i], "tab selected"); - changeElementClass(this.headers[i], "selected"); - - while (this.headers[i].firstChild) { - this.headers[i].removeChild(this.headers[i].firstChild); - } - - var h2 = document.createElement("H2"); - - h2.appendChild(document.createTextNode(this.titles[i])); - this.headers[i].appendChild(h2); - } - - function deselectAll() { - for (var i = 0; i < this.tabs.length; i++) { - changeElementClass(this.tabs[i], "tab deselected"); - changeElementClass(this.headers[i], "deselected"); - - while (this.headers[i].firstChild) { - this.headers[i].removeChild(this.headers[i].firstChild); - } - - var a = document.createElement("A"); - - a.setAttribute("id", "ltab" + i); - a.setAttribute("href", "#tab" + i); - a.onclick = switchTab; - a.appendChild(document.createTextNode(this.titles[i])); - - this.headers[i].appendChild(a); - } - } - - function findTabs(container) { - return findChildElements(container, "DIV", "tab"); - } - - function findHeaders(container) { - var owner = findChildElements(container, "UL", "tabLinks"); - return findChildElements(owner[0], "LI", null); - } - - function findTitles(tabs) { - var titles = []; - - for (var i = 0; i < tabs.length; i++) { - var tab = tabs[i]; - var header = findChildElements(tab, "H2", null)[0]; - - header.parentNode.removeChild(header); - - if (header.innerText) { - titles.push(header.innerText); - } else { - titles.push(header.textContent); - } - } - - return titles; - } - - function findChildElements(container, name, targetClass) { - var elements = []; - var children = container.childNodes; - - for (var i = 0; i < children.length; i++) { - var child = children.item(i); - - if (child.nodeType === 1 && child.nodeName === name) { - if (targetClass && child.className.indexOf(targetClass) < 0) { - continue; - } - - elements.push(child); - } - } - - return elements; - } - - // Entry point. - - window.onload = function() { - initTabs(); - initControls(); - }; -} (window, window.document)); \ No newline at end of file diff --git a/build/test-results/test/binary/output.bin b/build/test-results/test/binary/output.bin deleted file mode 100644 index e69de29..0000000 diff --git a/build/test-results/test/binary/output.bin.idx b/build/test-results/test/binary/output.bin.idx deleted file mode 100644 index f76dd23..0000000 Binary files a/build/test-results/test/binary/output.bin.idx and /dev/null differ diff --git a/build/test-results/test/binary/results.bin b/build/test-results/test/binary/results.bin deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/kotlin/it/norangeb/algorithms/datastructures/queue/LinkedListQueue.kt b/src/main/kotlin/it/norangeb/algorithms/datastructures/queue/LinkedListQueue.kt new file mode 100644 index 0000000..d6645ca --- /dev/null +++ b/src/main/kotlin/it/norangeb/algorithms/datastructures/queue/LinkedListQueue.kt @@ -0,0 +1,115 @@ +/* + * MIT License + * + * Copyright (c) 2019 norangebit + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +package it.norangeb.algorithms.datastructures.queue + +import arrow.core.None +import arrow.core.Option +import arrow.core.Some +import arrow.core.toOption + +class LinkedListQueue() : Queue { + data class Node(val value: T, var next: Option>) + + private var tail: Option> = None + private var head: Option> = None + private var size = 0 + + override fun enqueue(elem: T) { + val node = Node(elem, None).toOption() + tail.map { it.next = node } + tail = node + + if (head is None) + head = node + + size++ + } + + override fun dequeue(): Option { + val elem = peek() + + if (elem is None) + return elem + + head = head.flatMap { it.next } + size-- + + return elem + } + + override fun peek(): Option { + return head.map { it.value } + } + + override fun isEmpty(): Boolean = size == 0 + + override fun size(): Int = size + + override fun clean() { + head = None + tail = None + size = 0 + } + + override fun map(transform: (T) -> A): Queue { + var newHead: Option> = None + var newCurrent: Option> = None + var oldCurrent = head + + while (oldCurrent is Some) { + val node = Node(transform(oldCurrent.t.value), None).toOption() + + if (newHead is None) + newHead = node + + newCurrent.map { it.next = node } + newCurrent = node + + oldCurrent = oldCurrent.flatMap { it.next } + } + + return LinkedListQueue(newHead, newCurrent, size) + } + + private constructor( + head: Option>, + tail: Option>, + size: Int + ) : this() { + this.head = head + this.tail = tail + this.size = size + } + + override fun forEach(action: (T) -> Unit) { + var node = head + + while (node is Some) { + node.map { action(it.value) } + node = node.flatMap { it.next } + } + } +} \ No newline at end of file diff --git a/src/main/kotlin/it/norangeb/algorithms/datastructures/queue/ResizingArrayQueue.kt b/src/main/kotlin/it/norangeb/algorithms/datastructures/queue/ResizingArrayQueue.kt index 6c24d29..34cef38 100644 --- a/src/main/kotlin/it/norangeb/algorithms/datastructures/queue/ResizingArrayQueue.kt +++ b/src/main/kotlin/it/norangeb/algorithms/datastructures/queue/ResizingArrayQueue.kt @@ -107,7 +107,8 @@ class ResizingArrayQueue(capacity: Int = DEFAULT_CAPACITY) : Queue { } override fun map(transform: (T) -> A): Queue { - val transformedQueue: Array = arrayOfNulls(queue.size) as Array + val transformedQueue: Array = arrayOfNulls(queue.size) + as Array for (i in 0 until queue.size) { val elem = queue[i] @@ -127,7 +128,12 @@ class ResizingArrayQueue(capacity: Int = DEFAULT_CAPACITY) : Queue { head = 0 } - private constructor(queue: Array, head: Int, tail: Int, size: Int) : this() { + private constructor( + queue: Array, + head: Int, + tail: Int, + size: Int + ) : this() { this.queue = queue this.head = head this.tail = tail diff --git a/src/main/kotlin/it/norangeb/algorithms/datastructures/stack/LinkedListStack.kt b/src/main/kotlin/it/norangeb/algorithms/datastructures/stack/LinkedListStack.kt new file mode 100644 index 0000000..45ffff0 --- /dev/null +++ b/src/main/kotlin/it/norangeb/algorithms/datastructures/stack/LinkedListStack.kt @@ -0,0 +1,103 @@ +/* + * MIT License + * + * Copyright (c) 2019 norangebit + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +package it.norangeb.algorithms.datastructures.stack + +import arrow.core.None +import arrow.core.Option +import arrow.core.Some +import arrow.core.toOption + +class LinkedListStack() : Stack { + + data class Node(val value: T, var next: Option>) + + private var head: Option> = None + private var size = 0 + + override fun push(elem: T) { + val node = Node(elem, head) + head = node.toOption() + size++ + } + + override fun pop(): Option { + val elem = head.map { it.value } + + if (elem is None) + return elem + + head = head.flatMap { it.next } + size-- + return elem + } + + override fun peek(): Option { + return head.map { it.value } + } + + override fun size(): Int = size + + override fun isEmpty(): Boolean = size == 0 + + override fun clean() { + head = None + size = 0 + } + + override fun map(transform: (T) -> A): Stack { + var newHead: Option> = None + var newCurrent: Option> = None + var oldCurrent = head + + while (oldCurrent is Some) { + val node = Node(transform(oldCurrent.t.value), None).toOption() + + if (newHead is None) + newHead = node + + newCurrent.map { it.next = node } + newCurrent = node + + oldCurrent = oldCurrent.flatMap { it.next } + } + + return LinkedListStack(newHead, size) + } + + private constructor(head: Option>, size: Int) : this() { + this.head = head + this.size = size + } + + override fun forEach(action: (T) -> Unit) { + var next = head + + while (next is Some) { + action(next.t.value) + next = next.t.next + } + } +} \ No newline at end of file diff --git a/src/main/kotlin/it/norangeb/algorithms/datastructures/stack/ResizingArrayStack.kt b/src/main/kotlin/it/norangeb/algorithms/datastructures/stack/ResizingArrayStack.kt index 3cb4fac..645144f 100644 --- a/src/main/kotlin/it/norangeb/algorithms/datastructures/stack/ResizingArrayStack.kt +++ b/src/main/kotlin/it/norangeb/algorithms/datastructures/stack/ResizingArrayStack.kt @@ -81,7 +81,8 @@ class ResizingArrayStack(capacity: Int = DEFAULT_CAPACITY) : Stack { } override fun map(transform: (T) -> A): Stack { - val transformedStack: Array = arrayOfNulls(stack.size) as Array + val transformedStack: Array = arrayOfNulls(stack.size) + as Array for (i in 0 until stack.size) { val elem = stack[i] diff --git a/src/test/kotlin/it/norangeb/algorithms/datastructures/queue/LinkedListQueueTest.kt b/src/test/kotlin/it/norangeb/algorithms/datastructures/queue/LinkedListQueueTest.kt new file mode 100644 index 0000000..1fd4afc --- /dev/null +++ b/src/test/kotlin/it/norangeb/algorithms/datastructures/queue/LinkedListQueueTest.kt @@ -0,0 +1,152 @@ +/* + * MIT License + * + * Copyright (c) 2019 norangebit + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +package it.norangeb.algorithms.datastructures.queue + +import arrow.core.None +import arrow.core.Some +import arrow.core.getOrElse +import org.amshove.kluent.`should be equal to` +import org.junit.Before +import org.junit.jupiter.api.Test + +class LinkedListQueueTest { + private var queue = LinkedListQueue() + + @Before + fun makeQueue() { + queue = LinkedListQueue() + } + + @Test + fun testEnqueue() { + queue.size() `should be equal to` 0 + queue.enqueue(1) + queue.size() `should be equal to` 1 + queue.enqueue(1) + queue.size() `should be equal to` 2 + } + + @Test + fun testIsEmpty() { + queue.isEmpty() `should be equal to` true + queue.enqueue(1) + queue.isEmpty() `should be equal to` false + } + + @Test + fun testDequeue() { + queue.size() `should be equal to` 0 + (queue.dequeue() is None) `should be equal to` true + queue.enqueue(1) + queue.dequeue().getOrElse { 0 } `should be equal to` 1 + queue.size() `should be equal to` 0 + } + + @Test + fun testPeek() { + (queue.peek() is None) `should be equal to` true + queue.enqueue(1) + (queue.peek() is Some) `should be equal to` true + queue.size() `should be equal to` 1 + } + + @Test + fun testIncreaseSize() { + queue.enqueue(1) + queue.enqueue(2) + queue.enqueue(3) + queue.enqueue(4) + queue.enqueue(5) + } + + @Test + fun testDecreaseSize() { + queue.enqueue(1) + queue.enqueue(2) + queue.enqueue(3) + queue.enqueue(4) + queue.enqueue(5) + + queue.dequeue() + queue.dequeue() + queue.dequeue() + queue.dequeue() + queue.dequeue() + } + + @Test + fun testMap() { + queue.enqueue(1) + queue.enqueue(2) + queue.enqueue(3) + queue.enqueue(4) + queue.enqueue(5) + + val newQueue = queue.map { it * 2 } + + newQueue.size() `should be equal to` 5 + newQueue.dequeue().getOrElse { 0 } `should be equal to` 2 + newQueue.dequeue().getOrElse { 0 } `should be equal to` 4 + newQueue.dequeue().getOrElse { 0 } `should be equal to` 6 + newQueue.dequeue().getOrElse { 0 } `should be equal to` 8 + newQueue.dequeue().getOrElse { 0 } `should be equal to` 10 + } + + @Test + fun testForEach() { + queue.enqueue(1) + queue.enqueue(2) + queue.enqueue(3) + queue.enqueue(4) + queue.enqueue(5) + + var x = 0 + queue.forEach { x++ } + + x `should be equal to` 5 + } + + @Test + fun testClean() { + queue.enqueue(1) + queue.enqueue(2) + queue.clean() + + queue.size() `should be equal to` 0 + } + + @Test + fun testReboot() { + queue.enqueue(1) + queue.enqueue(2) + queue.dequeue() + queue.dequeue() + queue.enqueue(3) + queue.enqueue(4) + queue.dequeue().getOrElse { 0 } `should be equal to` 3 + queue.dequeue().getOrElse { 0 } `should be equal to` 4 + } +} \ No newline at end of file diff --git a/src/test/kotlin/it/norangeb/algorithms/datastructures/stack/LinkedListStackTest.kt b/src/test/kotlin/it/norangeb/algorithms/datastructures/stack/LinkedListStackTest.kt new file mode 100644 index 0000000..3f91f2c --- /dev/null +++ b/src/test/kotlin/it/norangeb/algorithms/datastructures/stack/LinkedListStackTest.kt @@ -0,0 +1,136 @@ +/* + * MIT License + * + * Copyright (c) 2019 norangebit + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +package it.norangeb.algorithms.datastructures.stack + +import arrow.core.None +import arrow.core.getOrElse +import org.amshove.kluent.`should be equal to` +import org.junit.Before +import org.junit.jupiter.api.Test + +class LinkedListStackTest { + private var stack = LinkedListStack() + + @Before + fun makeStack() { + stack = LinkedListStack() + } + + @Test + fun testPush() { + stack.size() `should be equal to` 0 + stack.push(1) + stack.size() `should be equal to` 1 + } + + @Test + fun testIsEmpty() { + stack.isEmpty() `should be equal to` true + stack.push(1) + stack.isEmpty() `should be equal to` false + } + + @Test + fun testPeek() { + (stack.peek() is None) `should be equal to` true + stack.push(1) + (stack.peek().getOrElse { 0 }) `should be equal to` 1 + stack.size() `should be equal to` 1 + } + + @Test + fun testPop() { + (stack.pop() is None) `should be equal to` true + stack.push(1) + (stack.pop().getOrElse { 0 }) `should be equal to` 1 + stack.size() `should be equal to` 0 + } + + @Test + fun testIncreaseSize() { + stack.push(1) + stack.push(2) + stack.push(3) + stack.push(4) + stack.push(5) + } + + @Test + fun testDecreaseSize() { + stack.push(1) + stack.push(2) + stack.push(3) + stack.push(4) + stack.push(5) + + stack.pop() + stack.pop() + stack.pop() + stack.pop() + stack.pop() + } + + @Test + fun testMap() { + stack.push(1) + stack.push(2) + stack.push(3) + stack.push(4) + stack.push(5) + + val newStack = stack.map { it * 2 } + + newStack.size() `should be equal to` 5 + newStack.pop().getOrElse { 0 } `should be equal to` 10 + newStack.pop().getOrElse { 0 } `should be equal to` 8 + newStack.pop().getOrElse { 0 } `should be equal to` 6 + newStack.pop().getOrElse { 0 } `should be equal to` 4 + newStack.pop().getOrElse { 0 } `should be equal to` 2 + } + + @Test + fun testForEach() { + stack.push(1) + stack.push(2) + stack.push(3) + stack.push(4) + stack.push(5) + + var x = 0 + stack.forEach { x++ } + + x `should be equal to` 5 + } + + @Test + fun testClean() { + stack.push(1) + stack.push(2) + stack.clean() + + stack.size() `should be equal to` 0 + } +}