Title: Add a common `Simplificator` in the `Traverser` by sergeypospelov · Pull Request #1261 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Add a common `Simplificator` in the `Traverser` by sergeypospelov · Pull Request #1261 · UnitTestBot/UTBotJava
X Title: Add a common `Simplificator` in the `Traverser` by sergeypospelov · Pull Request #1261 · UnitTestBot/UTBotJava
Description: Description Refactor: Removed runBlockingWithCancellationPredicate in our tests pipeline Moved ExecutionState to org.utbot.engine.state package. Moved out succeeding operations for ExecutionState to ExecutionStateUpdates.kt Some minor refactorings Add: A common Simplifer which holds a cache for a whole Traverser. A MemoryUpdateSimplifier which simplifies MemoryUpdates. Problems: Also tried to add simplified local memory updates, but didn't succeed. SetsTest::testSetContainsInteger was continuously failing. Now they aren't being simplified explicitly, but simplified implicitly with Traverser::resolve(Value) function. Type of Change Refactoring (typos and non-functional changes) How Has This Been Tested? Automated Testing Tests are passing. Manual Scenario I checked our engine on synthetic test with ~200 groups of array store and array select expressions (see code), and now it's 50 times faster. public int longMethod(int x, int y) { int[] arr = new int[201]; int cur = 1; arr[cur] = arr[cur - 1] + x - y; cur++; arr[cur] = arr[cur - 1] + x - y; cur++; // ^^^^ // 200 times if (arr[cur - 1] == 400) { return 1; } return 2; } Checklist: The change followed the style guidelines of the UTBot project Self-review of the code is passed The change contains enough commentaries, particularly in hard-to-understand areas No new warnings All tests pass locally with my changes
Open Graph Description: Description Refactor: Removed runBlockingWithCancellationPredicate in our tests pipeline Moved ExecutionState to org.utbot.engine.state package. Moved out succeeding operations for ExecutionState ...
X Description: Description Refactor: Removed runBlockingWithCancellationPredicate in our tests pipeline Moved ExecutionState to org.utbot.engine.state package. Moved out succeeding operations for ExecutionState ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1261
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:66f767bc-397f-7970-1dc7-e2556535a559 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E326:99916:59408D:7CBE53:698DF691 |
| html-safe-nonce | 2e88c75b932534247733d6f8fc9b4062fd12749ed915987ff5958df3dee8ccbe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzI2Ojk5OTE2OjU5NDA4RDo3Q0JFNTM6Njk4REY2OTEiLCJ2aXNpdG9yX2lkIjoiNjIyNDAzMTM1MDMwMDQ3Mjk3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3ba48ebc102ea68f24ac9a55597d17970a809e4cbf395f286f5cc1d3c1ee7df7 |
| hovercard-subject-tag | pull_request:1104736991 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/UnitTestBot/UTBotJava/pull/1261/files |
| twitter:image | https://avatars.githubusercontent.com/u/30112817?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/30112817?s=400&v=4 |
| og:image:alt | Description Refactor: Removed runBlockingWithCancellationPredicate in our tests pipeline Moved ExecutionState to org.utbot.engine.state package. Moved out succeeding operations for ExecutionState ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae22ef6ad27c5aeb770c5acd314c5724055bb23a663877aafdaaa50ed317ba34 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e545f5becd5b3ce9b429b68c3f994ad93c680ddb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width