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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:030034d3-d0a1-8987-3bcd-d6de1f03bb5c |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | C0E2:FE309:4EB373:69B889:698E321B |
| html-safe-nonce | e084938f0b724e2040e1ff23009023a73b9266d5f82209621f5e981e8cc12550 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEUyOkZFMzA5OjRFQjM3Mzo2OUI4ODk6Njk4RTMyMUIiLCJ2aXNpdG9yX2lkIjoiMTY0ODYwMDMyMjEwMzE3ODUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3b6c39e2a629a6508c84b5d5b387b18bfde23c9a67b93f9a5b53d0ee0e22c4e4 |
| hovercard-subject-tag | pull_request:1104736991 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | df1885ca022c7c5634d3a31e5a91e6a35990d0b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width