Skip to content
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

Introduce utbot-light module #2445

Merged
merged 4 commits into from
Jul 28, 2023
Merged

Introduce utbot-light module #2445

merged 4 commits into from
Jul 28, 2023

Conversation

Markoutte
Copy link
Collaborator

@Markoutte Markoutte commented Jul 25, 2023

Description

Adds a new module utbot-light that build a single jar with all dependencies. It is needed to use this fat-jar as a library that can be completely plugged with a separate class loader (as plugins usually do). There're a number of changes:

  1. Added a new option to disable UNSAT checking: UtSettings.disableUnsatChecking.
  2. Remove all shadow jars because they look useless. They all use classifier with the space (' ') which produces artifact with name utbot-{module name and version}-.jar.
  3. Temporary disable modules utbot-gradle and utbot-maven as they cannot be built right now.
  4. Added UtMulNoOverflowExpression to the engine.
  5. Fixed Z3Initializer issue in case Context is created when close method is called.
  6. Added ExecutionStateListener to listen every execution state that symbolic engine visits.
  7. Added bfs traverser option.
  8. Added external API to create UtBotSymbolicEngine and run traversing states.
  9. Added an ability to configure Soot options.

How to test

Automated tests

UtBotJavaApiTest#testUnitTestBotLight is added.

Self-check list

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

@Markoutte Markoutte added the ctg-refactoring Issue related to refactoring process label Jul 25, 2023
@Markoutte Markoutte merged commit a5d1af4 into main Jul 28, 2023
37 checks passed
@Markoutte Markoutte deleted the pelevin/utbot-light-module branch July 28, 2023 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-refactoring Issue related to refactoring process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants