Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix double values mutations
  • Loading branch information
Markoutte committed Dec 12, 2022
commit aa239b8cfcf9767ee9fcbb7de2a65e337755a479
6 changes: 3 additions & 3 deletions utbot-fuzzing/src/main/kotlin/org/utbot/fuzzing/Api.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sealed interface Seed<TYPE, RESULT> {
*
* This task creates a tree of object values.
*/
open class Recursive<TYPE, RESULT>(
class Recursive<TYPE, RESULT>(
val construct: Routine.Create<TYPE, RESULT>,
val modify: Sequence<Routine.Call<TYPE, RESULT>> = emptySequence(),
val empty: Routine.Empty<TYPE, RESULT>
Expand All @@ -91,7 +91,7 @@ sealed interface Seed<TYPE, RESULT> {
* 1. Construction the collection
* 2. Modification of the collections that depends on some number of iterations.
*/
open class Collection<TYPE, RESULT>(
class Collection<TYPE, RESULT>(
val construct: Routine.Collection<TYPE, RESULT>,
val modify: Routine.ForEach<TYPE, RESULT>
) : Seed<TYPE, RESULT>
Expand Down Expand Up @@ -465,7 +465,7 @@ private fun <TYPE, RESULT, DESCRIPTION : Description<TYPE>, FEEDBACK : Feedback<
val mutations = resultToMutate.value.mutations()
if (mutations.isNotEmpty()) {
Result.Known(
mutations.random().mutate(resultToMutate.value, random, configuration),
mutations.random(random).mutate(resultToMutate.value, random, configuration),
resultToMutate.build as KnownValue.() -> RESULT
)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class IEEE754Value : KnownValue {
}

constructor(value: IEEE754Value, mutation: Mutation<KnownValue>? = null) {
this.vector = value.vector
this.vector = BitVectorValue(value.vector)
this.mantissaSize = value.mantissaSize
this.exponentSize = value.exponentSize
this.lastMutation = mutation
Expand Down