Skip to content

Add missed mockInfoGenerator for system static objects #2014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 22, 2023
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
Review fixes
  • Loading branch information
CaelmBleidd committed Mar 22, 2023
commit 0e9317513b7305cc48e6da4ba3beaa23dd7d0e3d
Original file line number Diff line number Diff line change
Expand Up @@ -522,36 +522,6 @@ object UtSettings : AbstractSettings(logger, defaultKeyForSettingsPath, defaultS
*/
var maxArraySize by getIntProperty(1024)

/**
* A maximum size for lists provided as a parameter into MUT.
*/
var maxInputListSize by getIntProperty(10)

/**
* A maximum size for lists that can be constructed by the Resolver.
*/
var maxResolveListSize by getIntProperty(256)

/**
* A maximum size of a string constant (not literal) that can be processed by the symbolic engine.
*/
var maxStringSize by getIntProperty(40)

/**
* A maximum size of streams that can be processed by the symbolic engine.
*/
var maxStreamSize by getIntProperty(256)

/**
* A maximum size of input maps that are processed by the symbolic engine.
*/
var maxInputMapSize by getIntProperty(2)

/**
* A maximum size of input sets that are processed by the symbolic engine.
*/
var maxInputSetSize by getIntProperty(3)

// endregion
}

Expand Down
7 changes: 4 additions & 3 deletions utbot-framework/src/main/kotlin/org/utbot/engine/Traverser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2021,10 +2021,11 @@ class Traverser(
"The engine encountered an array initialization with $sizeValue size." +
" It leads to elimination of paths containing current instruction."
)
logger.warn("Please, consider increasing `UtSettings.maxArraySize` value.")
logger.warn("Current instruction: ${environment.state.stmt}")
logger.warn("Please, consider increasing `UtSettings.maxArraySize` value, " +
"currently it is ${UtSettings.maxArraySize}."
)
}

softMaxArraySize
}
}
queuedSymbolicStateUpdates += Le(length, softMaxArraySize).asHardConstraint() // TODO: fix big array length
Expand Down