instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
usebruno__bruno__6814 | usebruno/bruno | 6,814 | defect | 41efa8505ba676015e9837564d58f1f787809321 | 18fa5cb71b0891a8e44bf5215c162e3598664922 | fix: Code Generation for Basic Auth | Improvements on top of https://github.com/usebruno/bruno/pull/6474
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Refactor**
* Improved interpolation flow to apply substitutions consistently across headers, body, auth, and parameters; request objects are hand... | diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/utils/interpolation.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/utils/interpolation.js
index ea4f35b69db..b4697ddc1da 100644
--- a/packages/bruno-app/sr... | 4 | 3 | 3 | [{"id": "G0", "claim": "Remove `it.only()` from the inherited Basic auth test before merging, because it causes all other tests in the suite to be skipped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding an edge-case test where the Ba... | null |
usebruno__bruno__7028 | usebruno/bruno | 7,028 | defect | 6e6804055d2d83868659e438ee7298722f3d1e32 | 24dd6eaf72bac11ba0df6cb0dbffadf5c5eaf735 | fix: openapi cli import | ### Description
Fix openapi import in cli
[JIRA](https://usebruno.atlassian.net/browse/BRU-2605)
#### Contribution Checklist:
- [x] **I've used AI significantly to create this pull request**
- [x] **The pull request only addresses one issue or adds one feature.**
- [ ] **The pull request does not introduc... | diff --git a/packages/bruno-cli/src/utils/collection.js b/packages/bruno-cli/src/utils/collection.js
index 9d06ee54ecf..602d311c1d5 100644
--- a/packages/bruno-cli/src/utils/collection.js
+++ b/packages/bruno-cli/src/utils/collection.js
@@ -442,7 +442,7 @@ const safeWriteFileSync = (filePath, content) => {
* @param {... | 5 | 4 | 4 | [{"id": "G0", "claim": "The environment is written to a `.yml` file but `stringifyEnvironment` is called without the format option, so environment files are not serialized in the yml format.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Folder cont... | null |
usebruno__bruno__7049 | usebruno/bruno | 7,049 | defect | 6e6804055d2d83868659e438ee7298722f3d1e32 | 8d9e50b973158e8d879a2d5a743632e37c1b8091 | fix: graphQL variables interpolation consistency (UI and CLI) | [BRU-2664](https://usebruno.atlassian.net/browse/BRU-2664)
Fixes https://github.com/usebruno/bruno/issues/7006 | diff --git a/packages/bruno-cli/src/runner/interpolate-vars.js b/packages/bruno-cli/src/runner/interpolate-vars.js
index 659eaf53fb4..c074a416384 100644
--- a/packages/bruno-cli/src/runner/interpolate-vars.js
+++ b/packages/bruno-cli/src/runner/interpolate-vars.js
@@ -68,7 +68,21 @@ const interpolateVars = (request, en... | 2 | 2 | 1 | [{"id": "G0", "claim": "The unguarded JSON.parse of request.data.variables in run-single-request.js will throw when variables is undefined, already an object, or malformed, so a GraphQL request without variables (or with script-mutated variables) would fail; only strings should be parsed, inside a try/catch that surfac... | null |
usebruno__bruno__7114 | usebruno/bruno | 7,114 | defect | 5d0a15121c105b99bcc7d9b3d67ffe72aaac17d8 | 63d4cab93b073acc96a0118e2d4a72aa77bc81e0 | feat: add options to skip request and response bodies in reporter output | ### Description
[JIRA](https://usebruno.atlassian.net/browse/BRU-2183)
- Introduced `--reporter-skip-request-body` and `--reporter-skip-response-body` flags to omit respective bodies from the reporter output.
- Updated examples in the CLI documentation to reflect new options.
- Refactored result sanitization to... | diff --git a/packages/bruno-cli/src/commands/run.js b/packages/bruno-cli/src/commands/run.js
index e2205c1f7b0..674196da8af 100644
--- a/packages/bruno-cli/src/commands/run.js
+++ b/packages/bruno-cli/src/commands/run.js
@@ -18,6 +18,7 @@ const constants = require('../constants');
const { findItemInCollection, createC... | 6 | 2 | 1 | [{"id": "G0", "claim": "sanitizeResultsForReporter is invoked on every iteration of the request loop, re-processing the whole results array (O(n^2)) and leaving skipped-file results pushed after the loop unsanitized; move the call after the while loop so it runs once.", "category": "performance", "verdict": "uncertain"... | null |
usebruno__bruno__7187 | usebruno/bruno | 7,187 | defect | 2337d77092df4174638de825bcd363865fac5103 | cf90b18e6992c533629a63735c41ffff7db20181 | Enable encodeUrl setting to control URL encoding in generated snippets | ## Summary
[Jira](https://usebruno.atlassian.net/browse/BRU-2000)
Fixes #5756 — Generate Code now respects the `encodeUrl` setting on requests.
Previously, the "Generate Code" feature always produced encoded query parameters (e.g., `token=abc123%3D%3D`) regardless of the request's `encodeUrl` setting. This happe... | diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/utils/snippet-generator.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/utils/snippet-generator.js
index 06e02a921f6..0cfb63d1aa5 100644
--- a/packages/brun... | 7 | 1 | 1 | [{"id": "G0", "claim": "replaceAll could corrupt body/header content when the encoded URL appears in the snippet beyond the URL position; the reviewer asked to replace only the URL occurrence instead.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In ... | null |
usebruno__bruno__7214 | usebruno/bruno | 7,214 | defect | 9e939a21889352f465cd8f28a94c996bcfc1724d | 740dd70664f22a685e5f41283743a7720018c30f | Fix: incorrect translations | [Jira](https://usebruno.atlassian.net/browse/BRU-2572)
### Description
`req.setHeader` -> `pm.request.headers.upsert`
#### Contribution Checklist:
- [ ] **I've used AI significantly to create this pull request**
- [ ] **The pull request only addresses one issue or adds one feature.**
- [ ] **The pull reques... | diff --git a/packages/bruno-converters/src/utils/bruno-to-postman-translator.js b/packages/bruno-converters/src/utils/bruno-to-postman-translator.js
index 68c52aa4ad7..de046e534ae 100644
--- a/packages/bruno-converters/src/utils/bruno-to-postman-translator.js
+++ b/packages/bruno-converters/src/utils/bruno-to-postman-t... | 3 | 1 | 1 | [{"id": "G0", "claim": "Add a minimal test covering the fallback path where req.setHeader is called with fewer than 2 args, so degenerate input does not silently blow up.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The req.setHeader test should use t... | null |
usebruno__bruno__7300 | usebruno/bruno | 7,300 | defect | 81a7544853ad127f025698f3ff1cfe6759cb918e | 962989983dc30f0e498f66ef595e72c33f9c70a2 | fix(batch-events): fix order of directory file and folder events | ### Description
Corrects the order in which directory, folder, and file events should be handled to avoid the possible loss of folder processing when events are batched.
Impl missed in https://github.com/usebruno/bruno/pull/6975
#### Contribution Checklist:
- [ ] **I've used AI significantly to create this... | diff --git a/packages/bruno-electron/src/app/collection-watcher.js b/packages/bruno-electron/src/app/collection-watcher.js
index d94c1e11d74..32d6cbe5332 100644
--- a/packages/bruno-electron/src/app/collection-watcher.js
+++ b/packages/bruno-electron/src/app/collection-watcher.js
@@ -276,6 +276,8 @@ const add = async (... | 2 | 1 | 1 | [{"id": "G0", "claim": "Remove the `await page.pause()` debug statement added to the Playwright test, because it will pause test execution and hang CI/CD pipelines indefinitely.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The test-file changes (L... | null |
usebruno__bruno__7324 | usebruno/bruno | 7,324 | defect | 4797abbeff66e5807e9386f2d8d58986bc523caa | e69e53e3339d9005a610840c6bd4ac0a088ab5b7 | feat: inline create collection and workspace editor | ### Description
Removes the create collection and create workspace modals as the primary flow. Users get an inline experience in the sidebar for collections and a one-click workspace creation in the default location
Tracked in [JIRA](https://usebruno.atlassian.net/browse/BRU-2736)
#### Changes
1. Collecti... | diff --git a/packages/bruno-app/src/components/AppTitleBar/index.js b/packages/bruno-app/src/components/AppTitleBar/index.js
index a09393b378f..ce627312fb2 100644
--- a/packages/bruno-app/src/components/AppTitleBar/index.js
+++ b/packages/bruno-app/src/components/AppTitleBar/index.js
@@ -6,9 +6,13 @@ import { useDispat... | 10 | 6 | 2 | [{"id": "G0", "claim": "The `activeWorkspace` variable in CreateOrOpenCollection is declared but never used, so it should be removed along with the destructured `workspaces` it depends on.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The Esc... | null |
usebruno__bruno__7377 | usebruno/bruno | 7,377 | defect | 5944a9cf06652d8f14f99b9f5dd794e13a0714fb | 6765000e0b14c91848ca40694ab914e944a2491c | fix: add uuid v7 support in pre-request scripts | ### Description
[JIRA](https://usebruno.atlassian.net/browse/BRU-2816)
Fixes #7333 - uuid v7 was not working in pre-request scripts because the uuid dependency was pinned to ^9.0.0, but v7/v6 functions were only added in uuid v10.0.0.
Changes:
- Upgrade uuid dependency from ^9.0.0 to ^10.0.0 in bruno-js and b... | diff --git a/package-lock.json b/package-lock.json
index 0c24a8003bb..18cd66e1c3b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1609,7 +1609,7 @@
"version": "7.26.3",
"resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.2... | 11 | 5 | 0 | [{"id": "G0", "claim": "The redundant second optional chaining in `module?.startsWith?.(bru.cwd())` should be removed since startsWith is always defined on strings.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `expect(uuid1 <= uuid2).toBe(... | null |
usebruno__bruno__7429 | usebruno/bruno | 7,429 | defect | f123a2b5741478724c17650a93e76fedff26962f | 288c9953a6e6ad6b4a67c24e9b8651ab44795d68 | fix: add size and duration fields to CLI bru.runRequest() response |
### Description
Add `size` and `duration` fields to the response object in CLI to match GUI behavior, ensuring consistent API for bru.runRequest() across both environments.
- `duration` is an alias for `responseTime` for GUI compatibility
- `size` is the byte length of the response buffer (0 for errors/skipp... | diff --git a/packages/bruno-cli/src/runner/run-single-request.js b/packages/bruno-cli/src/runner/run-single-request.js
index 259a6f0fbd4..b5c8a268bd0 100644
--- a/packages/bruno-cli/src/runner/run-single-request.js
+++ b/packages/bruno-cli/src/runner/run-single-request.js
@@ -165,7 +165,9 @@ const runSingleRequest = as... | 3 | 3 | 2 | [{"id": "G0", "claim": "responseTime taken from the request-duration header is a string while duration and the skip/error paths use the number 0, a type mismatch that breaks arithmetic such as summing responseTime values in run.js; coerce it to a number for consistency.", "category": "correctness", "verdict": "supporte... | null |
usebruno__bruno__7437 | usebruno/bruno | 7,437 | defect | 9bdd4394727c9429d63ff27cfb94bf36605ef4f1 | c6d8cf470cdcf9cfbbfdab53305433d05c5ac717 | workspace renaming with path update | ### Description
<!-- Explain here the changes your PR introduces and text to help us understand the context of this change. -->
#### Contribution Checklist:
- [ ] **I've used AI significantly to create this pull request**
- [ ] **The pull request only addresses one issue or adds one feature.**
- [ ] **The pu... | diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js b/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js
index 29f099019ec..2355e27f875 100644
--- a/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js
+++ b/packages/bruno-app/src/providers/Red... | 7 | 4 | 3 | [{"id": "G0", "claim": "If the renamed workspace is or becomes the default workspace, the client's generateUidBasedOnHash(result.newWorkspacePath) and Electron's getWorkspaceUid (which special-cases the default workspace path) will produce different UIDs, causing divergence on next app startup.", "category": "correctne... | null |
usebruno__bruno__7441 | usebruno/bruno | 7,441 | defect | f123a2b5741478724c17650a93e76fedff26962f | f50fe9a41e99b5be46767f4d8abc9227845d219c | fix: support response query filtering in safe mode | ### Description
- Forward filter/predicate arguments from the QuickJS sandbox `res()` shim to the host query engine, fixing `res('path[?].prop', filterFn)` in safe mode
- Add `toHostQueryArg` helper that marshals QuickJS function handles into native callbacks across the VM boundary, while passing object predicates ... | diff --git a/.gitignore b/.gitignore
index 7b7a88b301a..264ddba2a5a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,6 +52,9 @@ bruno.iml
.claude
.codex
+.agents
+.agent
+skills-lock.json
# Playwright
/blob-report/
diff --git a/packages/bruno-js/src/sandbox/quickjs/shims/bruno-response.js b/packages/bruno-js/src... | 5 | 3 | 1 | [{"id": "G0", "claim": "The spec's teardown only sets vm and module to null without calling dispose(), so QuickJS contexts and the WASM module stay allocated and leak memory across tests; add vm.dispose() and module.dispose().", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
usebruno__bruno__7471 | usebruno/bruno | 7,471 | defect | c0a2d74789147bacae5af3b3094d3ec8359870cf | 48e5fcff82191264a022b51cde32cc3f6aef0a62 | Replace SpaceX external API with local graphql-yoga mock server | ## Why
The external spacex url is now down, I don't think we should be depending on it for our cli tests, hence the new addition to existing test harness
## Summary
- Added a local GraphQL mock server using `graphql-yoga` in `bruno-tests` to replace the now-defunct SpaceX external GraphQL API
- Created `src/gra... | diff --git a/package-lock.json b/package-lock.json
index 0c24a8003bb..b0942b20b0b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3762,6 +3762,47 @@
"integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==",
"license": "MIT"
},
+ "nod... | 5 | 1 | 1 | [{"id": "G0", "claim": "Yoga is mounted after the global JSON body parsers, so the body parser consumes the request stream before Yoga runs, which can prevent Yoga from reading the GraphQL payload; register the Yoga middleware before the body parsers or skip body parsing for /api/graphql.", "category": "correctness", "... | null |
usebruno__bruno__7531 | usebruno/bruno | 7,531 | defect | 37be721922852ba72e1881675e49d74a839b6312 | f3ebb3c8846a7d1bb5b7a5c7a6afee1d5c87588a | fix: preserve user-defined boundary in multipart/mixed Content-Type header |
### Description
When users specify a boundary parameter in their Content-Type header for multipart/mixed requests with TEXT body mode, Bruno now preserves the user-defined boundary instead of generating a new one.
Fixes: https://github.com/usebruno/bruno/issues/7523
[JIRA](https://usebruno.atlassian.net/brow... | diff --git a/packages/bruno-cli/src/runner/run-single-request.js b/packages/bruno-cli/src/runner/run-single-request.js
index 44ad9e54ec1..9a3c7a5e7d0 100644
--- a/packages/bruno-cli/src/runner/run-single-request.js
+++ b/packages/bruno-cli/src/runner/run-single-request.js
@@ -26,7 +26,7 @@ const { addDigestInterceptor,... | 3 | 2 | 1 | [{"id": "G0", "claim": "The regex /boundary=([^;\\s]+)/i in extractBoundaryFromContentType fails to properly parse quoted boundary values per RFC 2046: it returns the quotes as part of the boundary value (e.g. \"my-boundary\" instead of my-boundary) and truncates at spaces for quoted boundaries (e.g. boundary=\"simple ... | null |
usebruno__bruno__7537 | usebruno/bruno | 7,537 | defect | 646c90819d6618850baa82e33b1c0806aeedbcd6 | 3384882ec9abfc3e67fa7cb198fa7dd3c9c4864f | fix: enhance error handling and context retrieval for script errors | - Updated the error formatter to utilize in-memory script content for error context, improving accuracy when users have unsaved changes.
- Introduced a new utility function, `getSourceContextFromContent`, to extract context lines from in-memory scripts.
- Enhanced tests to verify that draft script errors display the ... | diff --git a/packages/bruno-app/src/components/RequestPane/Tests/index.js b/packages/bruno-app/src/components/RequestPane/Tests/index.js
index b9c9633be67..920e3cff0ea 100644
--- a/packages/bruno-app/src/components/RequestPane/Tests/index.js
+++ b/packages/bruno-app/src/components/RequestPane/Tests/index.js
@@ -27,18 +... | 7 | 4 | 1 | [{"id": "G0", "claim": "commonLocators is initialized in beforeAll but never used in any test while the helpers rebuild their own locators, so remove the unused initialization (or pass the pre-built locators to the helpers).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
usebruno__bruno__7562 | usebruno/bruno | 7,562 | defect | f1d7f007feecce78a1d43f7aa23fba98933fd215 | d8ed99df169fcda35b78b01f2becb02ee35a941b | refactor: update Bru constructor to accept a single options obj for improved readability | [Jira](https://usebruno.atlassian.net/browse/BRU-2923)
- Changed the Bru class constructor to accept a single options object instead of multiple parameters, enhancing code clarity and maintainability.
- Updated all instances of Bru instantiation across the codebase to align with the new constructor format.
### Des... | diff --git a/packages/bruno-js/src/bru.js b/packages/bruno-js/src/bru.js
index eba40e7994f..567d8912891 100644
--- a/packages/bruno-js/src/bru.js
+++ b/packages/bruno-js/src/bru.js
@@ -8,26 +8,36 @@ const variableNameRegex = /^[\w-.]*$/;
class Bru {
/**
- * @param {string} runtime - The runtime environment ('qu... | 3 | 1 | 1 | [{"id": "G0", "claim": "The Bru options object built in assert-runtime.js omits oauth2CredentialVariables (extracted at line 254), so bru.getOauth2CredentialVar() won't work correctly within assertions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
usebruno__bruno__7644 | usebruno/bruno | 7,644 | defect | bcc1b535ff623f602b537a531b2287fc024e2393 | 9dad8320adfd8b2e12c294c6dfa2260b0361749c | feat: add helper to ensure string conversion for non-string values in Postman to Bruno conversion | [Jira](https://usebruno.atlassian.net/browse/BRU-3003)
- Introduced `ensureString` function to convert numeric and non-string values to strings, defaulting null/undefined to an empty string.
- Updated request handling in `importPostmanV2CollectionItem` to utilize `ensureString` for headers, parameters, and body field... | diff --git a/packages/bruno-converters/src/postman/postman-to-bruno.js b/packages/bruno-converters/src/postman/postman-to-bruno.js
index ac2bffbf569..e524871b65c 100644
--- a/packages/bruno-converters/src/postman/postman-to-bruno.js
+++ b/packages/bruno-converters/src/postman/postman-to-bruno.js
@@ -74,6 +74,18 @@ cons... | 4 | 2 | 0 | [{"id": "G0", "claim": "Add a blank line before the new test 'should convert numeric values to strings in headers, params, and body fields' to match the surrounding tests' blank-line separation.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rep... | null |
usebruno__bruno__7646 | usebruno/bruno | 7,646 | defect | bcc1b535ff623f602b537a531b2287fc024e2393 | 7be4aec01c58096d82a1d8941d9a5d3a12df65d2 | Fix: ensure string authvalues, string header processing | [Jira](https://usebruno.atlassian.net/browse/BRU-3011)
### Description
Extends the Postman import robustness (follow-up to #7644) with auth field coercion, string header support, and improved `ensureString` fallback handling.
#### Changes
**1. Auth field coercion in `processAuth()`**
- Replaced `|| ''` / `... | diff --git a/packages/bruno-converters/src/postman/postman-to-bruno.js b/packages/bruno-converters/src/postman/postman-to-bruno.js
index ac2bffbf569..725910e1e98 100644
--- a/packages/bruno-converters/src/postman/postman-to-bruno.js
+++ b/packages/bruno-converters/src/postman/postman-to-bruno.js
@@ -74,6 +74,55 @@ cons... | 3 | 2 | 0 | [{"id": "G0", "claim": "Coerce Content-Type header key/value to strings before calling .toLowerCase(), otherwise a non-string header field (e.g. { key: 'Content-Type', value: 0 } or a numeric key) throws a TypeError instead of being handled.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope"... | null |
usebruno__bruno__7647 | usebruno/bruno | 7,647 | defect | 28d1ba2438ef35d0d3c00fd30bda6dedee277705 | 8d8b98bf58039ef2da364db599b330cf7e674df4 | chore: add a promise based wait group for the shell variables | ### Description
Adds in a singleton promise based wait group for the shell env, so as to avoid blocking app start.
#### Contribution Checklist:
- [ ] **I've used AI significantly to create this pull request**
- [ ] **The pull request only addresses one issue or adds one feature.**
- [ ] **The pull request d... | diff --git a/packages/bruno-electron/src/index.js b/packages/bruno-electron/src/index.js
index bf70bc274d5..ab62c48fef8 100644
--- a/packages/bruno-electron/src/index.js
+++ b/packages/bruno-electron/src/index.js
@@ -3,7 +3,7 @@ const path = require('path');
const { execSync } = require('node:child_process');
const i... | 2 | 1 | 1 | [{"id": "G0", "claim": "The exported initializeShellEnv wrapper returns undefined instead of the underlying promise, so callers who await it would resolve immediately and could hit subtle race conditions; it should return _promise (or delegate to waitForShellEnv) to preserve the async contract.", "category": "correctne... | null |
usekaneo__kaneo__1158 | usekaneo/kaneo | 1,158 | defect | 9ac30bbb1661a039b1c72fd78ec7e000d308e8d9 | ba8cbfedfc834e78b1d5b732e55a005b586b9bd9 | feat(web): show exact comment timestamp on relative time hover | ## Description
Task comment headers show relative time next to the author (for example "yesterday" or "2 hours ago"). Hovering that label now opens a tooltip with the full locale-aware date and time. A small `formatDateTime` helper was added next to the existing date helpers, and the comment card uses the shared too... | diff --git a/apps/web/src/components/activity/comment-card.tsx b/apps/web/src/components/activity/comment-card.tsx
index 6f31f34e66..b995286446 100644
--- a/apps/web/src/components/activity/comment-card.tsx
+++ b/apps/web/src/components/activity/comment-card.tsx
@@ -18,7 +18,7 @@ import {
TooltipTrigger,
} from "@/... | 2 | 2 | 2 | [{"id": "G0", "claim": "The tooltip trigger is a non-focusable <span>, so keyboard users cannot reveal the exact timestamp; make the trigger keyboard-accessible.", "category": "accessibility", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The user-visible timestamp tooltip beh... | null |
usekaneo__kaneo__1205 | usekaneo/kaneo | 1,205 | defect | 7bdd2754aa72710cb1fcd78fe828de4d3a479133 | fb504d3c99d090bde866bb892b2a54b66720ffec | fix(web): 1200 label shows as active | ## Description
Fixes a board filter persistence bug where label filters were restored visually after a full page refresh, but the board rendered no tasks until filters were manually cleared and reapplied.
The root cause was that label filtering depended on per-task React Query cache entries, which are cold after re... | diff --git a/apps/web/src/components/task/task-labels-popover.tsx b/apps/web/src/components/task/task-labels-popover.tsx
index 10867befe3..816d368f5a 100644
--- a/apps/web/src/components/task/task-labels-popover.tsx
+++ b/apps/web/src/components/task/task-labels-popover.tsx
@@ -145,12 +145,8 @@ export default function ... | 3 | 1 | 1 | [{"id": "G0", "claim": "Label add/remove flows only invalidate the per-task/workspace ['labels', ...] queries and not the ['tasks', projectId] query that populates task.labels, so the board can keep filtering on stale task.labels after a label mutation until the next tasks refetch.", "category": "correctness", "verdict... | null |
usememos__memos__1974 | usememos/memos | 1,974 | defect | 4ac63ba1f082c4f030bb5a905c5d6063bad70010 | 3b3b67598ce69998b70c6b6f3408c88d203066e3 | fix: exclude all punctuation chars except underscore in tags | The new regex uses the `u` modifier in the frontend regex which is only supported on es6 and above, but I think it's not a huge deal.
Related to #1957 | diff --git a/api/v1/tag.go b/api/v1/tag.go
index acd8407b40522..3bf6e39f7563d 100644
--- a/api/v1/tag.go
+++ b/api/v1/tag.go
@@ -176,7 +176,7 @@ func convertTagFromStore(tag *store.Tag) *Tag {
}
}
-var tagRegexp = regexp.MustCompile(`#([^\s#,]+)`)
+var tagRegexp = regexp.MustCompile(`#((?:[^\s\p{P}]|_)+)`)
func... | 5 | 1 | 0 | [{"id": "G0", "claim": "The `u` modifier on TAG_REG is only supported in ES6 and above, so the new tag regex may not work in all environments where the web code is expected to run.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment to Tag.... | null |
usememos__memos__1977 | usememos/memos | 1,977 | defect | 8c6153167181b483d77df726071f844242731711 | 8ad2eee36840fab2e9838a37d9a237e2453291d8 | feat: use username instead of uid | #1916
- replaced user Id with username in links
- I had to do a bit of refactoring on the frontend and backend | diff --git a/api/v1/memo.go b/api/v1/memo.go
index a363333f6dbe9c..393fe609e31963 100644
--- a/api/v1/memo.go
+++ b/api/v1/memo.go
@@ -53,9 +53,10 @@ type Memo struct {
Pinned bool `json:"pinned"`
// Related fields
- CreatorName string `json:"creatorName"`
- ResourceList []*Resource `json:... | 1 | 1 | 1 | [{"id": "G0", "claim": "Use an empty string instead of \"-\" for the new UNKNOWN_USERNAME constant, because Boolean(\"\") === false but Boolean(\"-\") !== false.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
usememos__memos__5217 | usememos/memos | 5,217 | defect | 9b72963e08cf515f59a559e0ee0d506dbc1c61b9 | d9eea8d19a9610de0b387e6bcb0ebdbaefc1d949 | fix(security): Add missing authorization checks to various services | This pull request fixes several security issues exploitable by low-privileged and unauthenticated users by adding missing authorization checks:
- IDP service: Restrict deleting and updating IDP providers to host users. Additionally, only disclose the client secret to host users.
- User service: Prevent registration... | diff --git a/server/router/api/v1/idp_service.go b/server/router/api/v1/idp_service.go
index 384119b84a4a2..51b44151f89d8 100644
--- a/server/router/api/v1/idp_service.go
+++ b/server/router/api/v1/idp_service.go
@@ -38,8 +38,17 @@ func (s *APIV1Service) ListIdentityProviders(ctx context.Context, _ *v1pb.ListId
respo... | 3 | 2 | 1 | [{"id": "G0", "claim": "The ownership check in DeleteMemoReaction is incorrect: the loop over ListReactions runs at most once and never verifies the reaction exists, so the check should be moved outside the loop after verifying the reaction exists and return early before attempting deletion.", "category": "correctness"... | null |
usememos__memos__5638 | usememos/memos | 5,638 | defect | f7ac6a0191ac6f8aaefc672cdcc34f8a08797172 | 3f4ea363c72e853f9bd3a72077011abbe780bde2 | feat(ui): add live refresh via Server-Sent Events (SSE) with visual indicator | Adds live memo refresh using Server-Sent Events so the UI can update when memos change without full reloads.
- **SSE endpoint:** `GET /api/v1/sse` with Bearer token or token query param for EventSource.
- **Backend:** `SSEHub` to broadcast events to connected clients; memo create/update/delete (and any other relevant... | diff --git a/server/router/api/v1/memo_service.go b/server/router/api/v1/memo_service.go
index 954a665c5ff532..d0f1ba9695f72b 100644
--- a/server/router/api/v1/memo_service.go
+++ b/server/router/api/v1/memo_service.go
@@ -141,6 +141,12 @@ func (s *APIV1Service) CreateMemo(ctx context.Context, request *v1pb.CreateMemoR... | 6 | 6 | 3 | [{"id": "G0", "claim": "SSEEvent.JSON() silently discards the json.Marshal error; log any error that occurs for debugging purposes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename SseClient to SSEClient to match Go acronym conventions and ... | null |
usememos__memos__5779 | usememos/memos | 5,779 | defect | 2327f4e3a6ac1a90affd3e9a89ebd2638d1ab940 | 9cd4a79e49e6b45a1068034057b32ca07e2f4f75 | fix(api): switch user resource names to usernames | ## Summary
- replace public user resource names with `users/{username}` across API, MCP, file serving, and web consumers
- add shared username-based parsing/building helpers and remove legacy numeric user resource name support
- update memo filtering so creator-based queries use public user resource names instead of in... | diff --git a/docs/issues/2026-03-24-user-resource-identifiers/definition.md b/docs/issues/2026-03-24-user-resource-identifiers/definition.md
new file mode 100644
index 0000000000000..2a822909c41dd
--- /dev/null
+++ b/docs/issues/2026-03-24-user-resource-identifiers/definition.md
@@ -0,0 +1,41 @@
+## Background & Contex... | 9 | 3 | 2 | [{"id": "G0", "claim": "In UpdateUser, user.ID is dereferenced before the nil check, so ResolveUserByName returning (nil, nil) for a syntactically valid but non-existent name panics (recovered as 500) instead of returning a clean NotFound; check user == nil before assigning userID.", "category": "correctness", "verdict... | null |
usememos__memos__5794 | usememos/memos | 5,794 | defect | 9d3a74bcccf934aa2fa95ee240b56cc3b3a25776 | 21a5f541c93e335763b6963f02df9e2ad0668fd1 | fix(lint): correct goimports struct literal alignment after removing write-only credential fields | When credential fields (ClientSecret, AccessKeySecret) were replaced with
write-only comments in commit 9d3a74b, the remaining struct literal fields
were not re-aligned to match goimports expected column alignment.
- idp_service.go: align AuthUrl/TokenUrl/UserInfoUrl/Scopes at col 14
(longest field FieldMapping = 12... | diff --git a/server/router/api/v1/idp_service.go b/server/router/api/v1/idp_service.go
index 52535733e7ca7..bad74f31cbff8 100644
--- a/server/router/api/v1/idp_service.go
+++ b/server/router/api/v1/idp_service.go
@@ -182,10 +182,10 @@ func convertIdentityProviderFromStore(identityProvider *storepb.IdentityProvider
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Fix the struct field alignment on lines 185-188 of server/router/api/v1/idp_service.go: the added AuthUrl/TokenUrl/UserInfoUrl/Scopes assignment lines are over-aligned and fail the enforced goimports/golangci-lint formatting check.", "category": "maintainability", "verdict": "supported", "priori... | null |
usememos__memos__5796 | usememos/memos | 5,796 | defect | e520b637fd8d0f6331674003abe72f9dfbae8231 | 5443e9386a8089d8d84d6101cb1f6f2ca762e505 | chore: add v0.26.2 migration upgrade coverage | ## Summary
Add stronger migration and share-link regression coverage without committing the release-notes draft.
This PR focuses on Go-only changes:
- add a `v0.26.2` upgrade test that boots an old Memos container, seeds legacy schema-shaped data, and verifies current migrations on `sqlite`, `mysql`, and `postgres`
- ... | diff --git a/server/router/api/v1/test/memo_share_service_test.go b/server/router/api/v1/test/memo_share_service_test.go
index 110b83a351dd0..946597d92676c 100644
--- a/server/router/api/v1/test/memo_share_service_test.go
+++ b/server/router/api/v1/test/memo_share_service_test.go
@@ -4,12 +4,14 @@ import (
"context"
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Because getTestNetwork is guarded by sync.Once, a failed first initialization can leave later callers with nw == nil and err == nil, and StartMemosContainer (including the second site at line 323) only checks err, so a nil network can be fed into network.WithNetwork and fail much later with a mi... | null |
usememos__memos__5800 | usememos/memos | 5,800 | defect | 201c8a8ea96f506b52ce187528a8b8dc691f827b | cc71d7f1138c9d8152b04dad1b589bb744a33edc | fix(tags): allow blur-only tag metadata | ## Summary
- allow tag metadata to omit `background_color` and fall back to the default tag color
- keep backend validation for configured colors while accepting blur-only tag settings
- stop the frontend from persisting a fallback white color and add a clear action for default styling
- document the optional color beh... | diff --git a/proto/api/v1/instance_service.proto b/proto/api/v1/instance_service.proto
index 6dc8f9fb21cea..1f500b3e3ca8f 100644
--- a/proto/api/v1/instance_service.proto
+++ b/proto/api/v1/instance_service.proto
@@ -167,7 +167,8 @@ message InstanceSetting {
// Metadata for a tag.
message TagMetadata {
- // ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Biome would reformat two spots in web/src/components/Settings/TagsSection.tsx (the toLocalTagMeta parameter typing and the JSX conditional rendering the using-default-color span), so the Frontend Tests pipeline fails; run the formatter to auto-fix.", "category": "correctness", "verdict": "suppor... | null |
usememos__memos__5856 | usememos/memos | 5,856 | defect | cfe2cf4cf53ecdc1004a78b3ad7b7f1945439393 | 485ac813d98669620a0e32ca8f1a4d5f9c16ff7b | fix: user resource names can be uuidv4 from idp sub claim | usernames that come from identity providers might be UUIDv4 which would fail the UIDMatcher regex causing an invalid username error when trying to log in.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Enhancements**
* Increased allowed UID length from 32 to ... | diff --git a/internal/base/resource_name.go b/internal/base/resource_name.go
index 828bfa366f113e..8731579faee5d1 100644
--- a/internal/base/resource_name.go
+++ b/internal/base/resource_name.go
@@ -3,5 +3,5 @@ package base
import "regexp"
var (
- UIDMatcher = regexp.MustCompile("^[a-zA-Z0-9]([a-zA-Z0-9-]{0,30}[a-z... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider adding one explicit UUIDv4-form input (with hyphens) as a `true` case to TestUIDMatcher to guard the exact IDP `sub` use case against future regex edits.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usememos__memos__5880 | usememos/memos | 5,880 | defect | b5863d76be3cfbf3e0f8237d8e762122b5a0a679 | a463a2098713c092000334af08e26e9bce5277dd | fix: reduce list memo query overhead | ## Summary
This PR reduces `ListMemos` overhead without changing schema or adding indexes.
It makes three targeted changes:
- split memo relation batch lookups into directional queries and avoid eager relation snippet hydration on list responses
- reuse creator and display-time data across list conversion work in the... | diff --git a/server/router/api/v1/memo_service.go b/server/router/api/v1/memo_service.go
index 48323ca49626d..32b091c182034 100644
--- a/server/router/api/v1/memo_service.go
+++ b/server/router/api/v1/memo_service.go
@@ -297,18 +297,26 @@ func (s *APIV1Service) ListMemos(ctx context.Context, request *v1pb.ListMemosReq
... | 3 | 2 | 2 | [{"id": "G0", "claim": "ListMemos loads instanceMemoRelatedSetting a second time although it was already fetched earlier in the same request, adding hot-path store overhead and possibly making display-time conversion inconsistent if the setting changes mid-request; the redundant call should be removed and the already-l... | null |
usememos__memos__5890 | usememos/memos | 5,890 | defect | ee1799851e88674a6920c7a56d93428fcf95e662 | 413720d0ad9f426916226a18c4993094bb56f037 | fix(auth): harden authorization and username validation | ## Summary
- Reject archived users across access-token authenticated flows
- Require memo ownership before attaching uploads or updating memo attachments
- Separate writable username validation from legacy resource-name lookup
- Restrict state changes and tighten Connect CORS origin checks
- Make first-user admin creat... | diff --git a/server/auth/authenticator.go b/server/auth/authenticator.go
index d66961b1adb06c..16e98611fd1b7c 100644
--- a/server/auth/authenticator.go
+++ b/server/auth/authenticator.go
@@ -141,7 +141,14 @@ func (a *Authenticator) AuthenticateToUser(ctx context.Context, authHeader, cook
if !strings.HasPrefix(token... | 14 | 2 | 1 | [{"id": "G0", "claim": "The same-host short-circuit in isAllowedConnectOrigin compares only the host, so with AllowCredentials enabled cross-scheme origins sharing the request's Host pass CORS while the stricter InstanceURL branch rejects them; the reviewer proposes also matching the request's effective scheme via c.Sc... | null |
usememos__memos__5934 | usememos/memos | 5,934 | defect | bcbcb03894d0b69104de340fcd5e2de1db7765fd | 8a2f17dd8504d24d27714fc3f10c5c543455e8a4 | feat: add configurable --log-level flag | ## Summary
Closes #5927
Every user interaction currently logs at INFO severity with no way to reduce verbosity. This adds a `--log-level` flag so operators running Memos in Docker can filter noise without rebuilding.
- Adds `--log-level` persistent flag with default `info` (debug / info / warn / error)
- Env var `ME... | diff --git a/.gitignore b/.gitignore
index 6b0f27999b4d3..4047505256ee3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,7 +7,7 @@ web/dist
# Build artifacts
build/
bin/
-memos
+/memos
.DS_Store
diff --git a/cmd/memos/log.go b/cmd/memos/log.go
new file mode 100644
index 0000000000000..3bc5622ac2727
--- /dev/null
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Any future subcommand that defines its own PersistentPreRun will silently bypass initSlogDefault(), leaving the global logger at Go's default; consider documenting this constraint or switching to cobra.OnInitialize, which is always called regardless of subcommand hooks.", "category": "maintainab... | null |
useplunk__plunk__281 | useplunk/plunk | 281 | defect | 0af79eb84baec8eec8884610c480a844443171a3 | c40394ffd6ef3dc844b9e475e20324cb4c5f0055 | feat(api): support inline images in emails using Content-ID | ## Description
This PR implements support for inline email images via Content-ID (CID) referencing. It enables developers to embed media directly within the email body, which is essential for branding (logos/icons) and avoiding the "external image blocking" typical in many email clients.
**Key Changes:**
- **Sch... | diff --git a/apps/api/src/services/EmailService.ts b/apps/api/src/services/EmailService.ts
index 3ecc28b61..3db6cf223 100644
--- a/apps/api/src/services/EmailService.ts
+++ b/apps/api/src/services/EmailService.ts
@@ -18,6 +18,8 @@ interface Attachment {
filename: string;
content: string; // Base64 encoded
cont... | 4 | 3 | 3 | [{"id": "G0", "claim": "contentId is accepted as any string up to 255 chars and interpolated unsanitized into the MIME Content-ID header, so a value containing CR/LF or angle brackets can inject headers or break MIME structure; add validation rejecting \\r, \\n and angle brackets.", "category": "security", "verdict": "... | null |
userstyles-world__userstyles.world__184 | userstyles-world/userstyles.world | 184 | defect | aa5a70a602f95c5625097ef61dfbb91614cbbf27 | e6272f2569bd5806170c57abb370d812fc344aa2 | Private style URLs | This PR does what was purposed in #178.
Changes in style view:
- import and mirror URL are now on the same line. IMO it looks better and takes less space;
- this line now has punctuation marks;
- import and mirror URLs are now only shown when the style author want so.
Changes to styles:
- it is now possible t... | diff --git a/handlers/style/edit.go b/handlers/style/edit.go
index a137671e..94e1f000 100644
--- a/handlers/style/edit.go
+++ b/handlers/style/edit.go
@@ -109,6 +109,8 @@ func EditPost(c *fiber.Ctx) error {
s.MirrorURL = strings.TrimSpace(c.FormValue("mirrorURL"))
s.MirrorCode = c.FormValue("mirrorCode") == "on"
... | 2 | 1 | 0 | [{"id": "G0", "claim": "Move the new ImportPrivate and MirrorPrivate fields below 'PreviewVersion' in both the Style and APIStyle structs in models/style.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the explicit ImportPrivate/Mirror... | null |
userstyles-world__userstyles.world__220 | userstyles-world/userstyles.world | 220 | defect | 9959697081ee52bb7af9a7d835d2b352d6cc817a | 5e0c77607af2d40b7bda54c36335d2283e419500 | Better review limiters | This PR is to stop errors from confusing users when they can leave a review. | diff --git a/handlers/style/review.go b/handlers/style/review.go
index 557aa908..79c09bd4 100644
--- a/handlers/style/review.go
+++ b/handlers/style/review.go
@@ -4,7 +4,6 @@ import (
"fmt"
"strconv"
"strings"
- "time"
"github.com/gofiber/fiber/v2"
@@ -36,19 +35,13 @@ func ReviewGet(c *fiber.Ctx) error {
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The review countdown returned by AbleToReview is wrong — it needs to count down to when the user may review again, not count up.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
userver-framework__userver__99 | userver-framework/userver | 99 | defect | 7684c8a24627747eea2a323ef11be5db05877936 | 54fb072d866f08fdbe5fced9d64d4d66d8ac3c23 | Fix Gentoo build | Compiled on Gentoo with the latest packages and got some errors, here is the fix. | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1a2e4a2652a8..44e86eaad059 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,6 +76,8 @@ set(USERVER_THIRD_PARTY_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/third_party CACHE INTER
init_debian_depends()
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/fmt_compat)
+
add... | 5 | 5 | 2 | [{"id": "G0", "claim": "The change breaks the build on older platforms: with fmt v7 the const-qualified formatter<...>::format overloads (e.g. in shared/include/userver/formats/json/serialize.hpp) fail to compile with 'no matching member function for call to format'.", "category": "correctness", "verdict": "supported",... | null |
usestrix__strix__376 | usestrix/strix | 376 | defect | 31d8a09c9573e80b43f1fe7efbf20c37cdbd0660 | f15854cfaf94f28c5c8c1d650f4c0ac87c545ac4 | Refactor tool availability checks into registration | ## Summary
- move tool availability decisions from `strix.tools.__init__` into `register_tool(...)`
- gate browser and web-search tools at registration time using mode-aware flags
- keep using while ensuring direct imports do not back-register agent-graph tools
- add focused tests covering sandbox vs non-sandbox ... | diff --git a/strix/tools/__init__.py b/strix/tools/__init__.py
index 9eff25e11..17299d4f7 100644
--- a/strix/tools/__init__.py
+++ b/strix/tools/__init__.py
@@ -1,7 +1,5 @@
-import os
-
-from strix.config import Config
-
+from .agents_graph import * # noqa: F403
+from .browser import * # noqa: F403
from .executor im... | 2 | 2 | 1 | [{"id": "G0", "claim": "The redundant `sandbox_mode = _is_sandbox_mode()` call before the `_should_register_tool` guard should be moved after it (or passed in) so the env var is not read wastefully on every decorated function.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
usestrix__strix__457 | usestrix/strix | 457 | defect | 15c95718e600897a2a532a613a1c8fa6b712b144 | 6a751df13b18641aa65a3fa737cbf3bbc895b9cc | fix: --config flag now fully overrides ~/.strix/cli-config.json | Fixes #377
## Problem
When `--config custom.json` is provided, Strix still applies settings from `~/.strix/cli-config.json` for any keys that are *absent* from the custom config file.
**Root cause:** `apply_saved_config()` is called at module import time (before args are parsed), loading `~/.strix/cli-config.json` a... | diff --git a/strix/config/config.py b/strix/config/config.py
index 782101ddb..255df7c66 100644
--- a/strix/config/config.py
+++ b/strix/config/config.py
@@ -2,7 +2,7 @@
import json
import os
from pathlib import Path
-from typing import Any
+from typing import Any, ClassVar
STRIX_API_BASE = "https://models.strix... | 2 | 1 | 1 | [{"id": "G0", "claim": "If apply_config_override is called a second time, env vars applied with force=True by the first custom config are not tracked anywhere, so they are not cleared before the second custom config is applied and the leakage the fix targets can recur one level up (a non-issue if --config is only passe... | null |
usethesource__rascal__1424 | usethesource/rascal | 1,424 | defect | c5c4b6b07861928f0c5e32289eb6b81a25b841a1 | cefdc7e0146e7011c540f0c76b61d5559b453a97 | Extend the memo feature with optional parameters for expiring entries | This PR does 2 things:
- Memo entries now expire after 1 hour of not being used
- you can configure the memo tag with function specific expire strategies.
```rascal
import util::Memo; // new module that you have to import to get these parameters
@memo=expireAfter(minutes=10) // expires entries after they hav... | diff --git a/src/org/rascalmpl/interpreter/result/NamedFunction.java b/src/org/rascalmpl/interpreter/result/NamedFunction.java
index a46cb4a0093..18416064881 100644
--- a/src/org/rascalmpl/interpreter/result/NamedFunction.java
+++ b/src/org/rascalmpl/interpreter/result/NamedFunction.java
@@ -17,6 +17,7 @@
import java.... | 1 | 1 | 0 | [{"id": "G0", "claim": "Prelude.sleep should call TimeUnit.SECONDS.sleep(seconds.longValue()) instead of manually converting with Thread.sleep(TimeUnit.SECONDS.toMillis(...)).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usethesource__rascal__1863 | usethesource/rascal | 1,863 | defect | d13287616e6d5e0a1a52949ecc7ec23a0cc21c92 | eb3a09e5379212367775ffc60d9e841f6a708aba | Experimenting with some low hanging fruit in the code that parses and imports modules for the sake of DSL loading time in VScode | This draft PR addresses the profile send by @davylandman on the overhead of importing modules. There are
some low hanging apples and oranges in the direction of skipping layout nodes and not allocating
intermediate tree representations the size of the entire AST.
| diff --git a/src/org/rascalmpl/semantics/dynamic/Import.java b/src/org/rascalmpl/semantics/dynamic/Import.java
index a750d319177..2ae08dea575 100644
--- a/src/org/rascalmpl/semantics/dynamic/Import.java
+++ b/src/org/rascalmpl/semantics/dynamic/Import.java
@@ -538,7 +538,12 @@ public ITree visitTreeAppl(ITree tree) {
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The streamListASTArgs (and streamASTArgs) helpers added to TreeAdapter.java have no callers anywhere, so the PR should not add these unused functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usethesource__rascal__1951 | usethesource/rascal | 1,951 | defect | fe4323ac3b8975969d85ce3f839173a1f5b6cd3c | fb16802e4a9f9f1f058f4b45ab4e90fe34548812 | added a buffer for unfinished lines during progress bar printing. the lines will be completed by the next print, or way at the end when all progress bars are done. | Fixes #1948 and #1946 by considering all different situations that can arise when output is printed during progress bar visualizations:
* the new output does not end with a newline
* previously output did not end with a newline
* both combined, and
* neither
The new implementation satisfies the **invariant** tha... | diff --git a/src/org/rascalmpl/library/util/Monitor.rsc b/src/org/rascalmpl/library/util/Monitor.rsc
index 9f9ef444fa8..b728b7cd786 100644
--- a/src/org/rascalmpl/library/util/Monitor.rsc
+++ b/src/org/rascalmpl/library/util/Monitor.rsc
@@ -199,4 +199,18 @@ test bool simpleAsyncPrintTest() {
println("d");
jobEnd(... | 11 | 7 | 0 | [{"id": "G0", "claim": "The new progress-bar output behaviour still needs to be tested on Windows, where the additional `\\r` characters may affect it.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Efficiency could be improved by making the buffer circ... | null |
usethesource__rascal__2265 | usethesource/rascal | 2,265 | defect | 960baee535dd40a6fa9f65e703834e0eea50c92a | 86332b8fcb67538bba143cbd53dce3f8df12be8f | PathConfig-based construction of Evaluators | There used to be several places throughout the codebase where an `Evaluator` was created in similar fashion. This PR moves this functionality into `ShellEvaluatorFactory` so that all `Evaluator`s are created similarly. Additionally, this PR introduces static methods that build up an `Evaluator` based on a `PathConfig`. | diff --git a/src/org/rascalmpl/interpreter/Evaluator.java b/src/org/rascalmpl/interpreter/Evaluator.java
index 9ed4c508f59..cc3ef5fa23b 100755
--- a/src/org/rascalmpl/interpreter/Evaluator.java
+++ b/src/org/rascalmpl/interpreter/Evaluator.java
@@ -21,15 +21,11 @@
import static org.rascalmpl.semantics.dynamic.Import... | 3 | 3 | 3 | [{"id": "G0", "claim": "The project/target URI-resolver registration that the refactor deleted from Eval.RascalRuntime's constructor shouldn't simply be dropped there, since it is not an evaluator-configuration concern that belongs to the factory.", "category": "design", "verdict": "supported", "priority": "P1", "scope... | null |
usethesource__rascal__2357 | usethesource/rascal | 2,357 | defect | 145b1bcec3922969d69dfb4df3b5e6f84fc6d1dd | 7e5229f61ded5a4d6e276d160aeab4d41fd6a7cb | Version range warning | Generate a warning when the same artifact is used in dependncies using two or more different version ranges. | diff --git a/src/org/rascalmpl/util/maven/Artifact.java b/src/org/rascalmpl/util/maven/Artifact.java
index 18c8ff1f2c0..a63cccc5a50 100644
--- a/src/org/rascalmpl/util/maven/Artifact.java
+++ b/src/org/rascalmpl/util/maven/Artifact.java
@@ -31,9 +31,13 @@
import java.nio.file.Path;
import java.util.ArrayList;
import... | 2 | 1 | 0 | [{"id": "G0", "claim": "The wording of the new version-range warning is unfriendly (\"Maybe you should fix...\") and should be replaced by the suggested friendlier text telling users it is better to lock the desired version in their own pom to a specific version.", "category": "documentation", "verdict": "supported", "... | null |
usethesource__rascal__2358 | usethesource/rascal | 2,358 | defect | 145b1bcec3922969d69dfb4df3b5e6f84fc6d1dd | b0e307ca69c594b11e099d60910e25e0de10ceab | Maven simple resolver inheritance | Let `SimpleResolver` delegate to its parent when resolving fails. | diff --git a/src/org/rascalmpl/util/maven/MavenParser.java b/src/org/rascalmpl/util/maven/MavenParser.java
index ee72adac23a..ffff2367718 100644
--- a/src/org/rascalmpl/util/maven/MavenParser.java
+++ b/src/org/rascalmpl/util/maven/MavenParser.java
@@ -133,7 +133,7 @@ public Artifact parseProject() throws ModelResoluti... | 2 | 2 | 1 | [{"id": "G0", "claim": "Instead of passing a null parent resolver to SimpleResolver and appending Maven central with special addMavenCentral logic, use a special \"root\" resolver that always resolves against Maven central so the maven-central-specific code and the null checks can be removed.", "category": "design", "v... | null |
usethesource__rascal__2369 | usethesource/rascal | 2,369 | defect | 01ea431585d3afc995e96cd265b47bc1663e9f52 | 7d6019c331c71cdbad82e9d32b1fcdcce407361a | Implement transitive exclusions for maven | This PR implements transitive exclusions. It also uses transitive inclusions as part of the key used to cache the result of resolving dependencies.
This is needed because otherwise the exclusions that happen to be in effect when we first encounter an artifact will be used for all other instances of the same artifact. | diff --git a/src/org/rascalmpl/util/maven/Artifact.java b/src/org/rascalmpl/util/maven/Artifact.java
index 284e6466fce..6b3beedd346 100644
--- a/src/org/rascalmpl/util/maven/Artifact.java
+++ b/src/org/rascalmpl/util/maven/Artifact.java
@@ -42,6 +42,7 @@
import org.apache.maven.model.Model;
import org.apache.maven.... | 7 | 5 | 1 | [{"id": "G0", "claim": "Two adjacent declarations refer to WithoutVersion in two different ways (ArtifactCoordinate.WithoutVersion vs plain WithoutVersion); normalize the naming.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the findLatest... | null |
usethesource__rascal__2371 | usethesource/rascal | 2,371 | defect | ee46db7d6cbe03857061ea7fbe12686947b1d0e0 | bb3994d2130a123f787b6f444ee81b88e9a5ced1 | Switched from depth-first to breadth-first dependency resolving algorithm | Maven resolves version numbers breadth-first, this PR implements the same behavior.
Besides this algorithmic change, this PR also fixes these issues:
- Support for "maven-plugin" packaging
- Support for "bundle" packaging. In this case any dependencies are ignored because they are included in the bundle.
- Fixed a ... | diff --git a/src/org/rascalmpl/util/maven/Artifact.java b/src/org/rascalmpl/util/maven/Artifact.java
index 34310d5f409..9ac39e405dc 100644
--- a/src/org/rascalmpl/util/maven/Artifact.java
+++ b/src/org/rascalmpl/util/maven/Artifact.java
@@ -33,8 +33,10 @@
import java.util.Collections;
import java.util.HashMap;
impor... | 5 | 4 | 0 | [{"id": "G0", "claim": "The constructor parameter of ResolveState could also be renamed (to match the field, i.e. `exclusions` instead of `excludes`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo in the added javadoc: `intentional... | null |
usethesource__rascal__2376 | usethesource/rascal | 2,376 | defect | 1f8f5288576e8e9356cce2beb683a8963e323fde | 4f452b4755b0374c65a9d6230a912bc06d665662 | Added Rascal classpath test and fixed issues found by the test | Added a test that compares the classpath entries we generate with the classpath entries generated by maven.
They should be identical.
This PR also fixes all issues detected by this test. | diff --git a/src/org/rascalmpl/util/maven/Artifact.java b/src/org/rascalmpl/util/maven/Artifact.java
index 58246c31248..2f52021a0fb 100644
--- a/src/org/rascalmpl/util/maven/Artifact.java
+++ b/src/org/rascalmpl/util/maven/Artifact.java
@@ -201,6 +201,7 @@ private static void calculateClassPath(Scope forScope, Queue<Re... | 2 | 1 | 1 | [{"id": "G0", "claim": "The change lost the behavior that provided-scope jars are not downloaded: they should only be resolved if already present in the local maven repository, not downloaded from Maven Central.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
usethesource__rascal__2430 | usethesource/rascal | 2,430 | defect | 49c2e383d20c221dcc7dae30119f446821eddcee | 6e7dac3f5ffa25ae4d54b5d1f91fa3d57b4262e1 | Improve maven origin tracking and reporting | Errors, warnings, and info messages reported by our maven code are accompanied by location. This PR adds positional information to most of those locations.
Because maven only reports line/column information pointing to the end of the opening tag of a construct (for instance dependency), our locations also point to tha... | diff --git a/src/org/rascalmpl/library/Messages.java b/src/org/rascalmpl/library/Messages.java
index 81176de3548..06047ad1e5f 100644
--- a/src/org/rascalmpl/library/Messages.java
+++ b/src/org/rascalmpl/library/Messages.java
@@ -39,9 +39,9 @@ public class Messages {
// These declarations mirror the data definiti... | 10 | 8 | 3 | [{"id": "G0", "claim": "The sibling info/warning/error functions in Messages should be refactored to use the new generic message overload.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since messageFactory is maven specific, an overload should ... | null |
usethesource__rascal__2520 | usethesource/rascal | 2,520 | defect | 0a2f64b324d3482e053a601236b199f80f76e4f0 | d9c9df8bbcc5239ad83474b6cd19590d49f5e621 | Implemented streaming base64 translation functions | The standard base64 java API is not really suited for streaming, and we often want to go from string to bytes and vice-versa. The most straight-forward way is to allocate full-sized variants (for example string -> all bytes -> all base64 bytes -> string).
Since we're using base64 in quite some places, for example to... | diff --git a/src/org/rascalmpl/library/Prelude.java b/src/org/rascalmpl/library/Prelude.java
index 28420ea1fc0..95cff3179a7 100644
--- a/src/org/rascalmpl/library/Prelude.java
+++ b/src/org/rascalmpl/library/Prelude.java
@@ -27,6 +27,7 @@
import java.io.FileNotFoundException;
import java.io.IOException;
import java.... | 4 | 4 | 0 | [{"id": "G0", "claim": "The previous readBase64 implementation was a bug because InputStreams are not required to always fill the full buffer, so the loop condition (len == BUFFER_SIZE) mishandled short reads.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", ... | null |
usethesource__rascal__2615 | usethesource/rascal | 2,615 | defect | 756f5be2e12ad949528e24657ce4afc77899ca8b | 37e345989124c19ed933db426ca090d3003a4a73 | Add support for sibling projects in the maven resolver | This fixes #2614 by implementing an extension of the maven resolver that can locate sibling projects | diff --git a/src/org/rascalmpl/library/util/PathConfig.java b/src/org/rascalmpl/library/util/PathConfig.java
index c4cf48b19ee..f606fc68988 100644
--- a/src/org/rascalmpl/library/util/PathConfig.java
+++ b/src/org/rascalmpl/library/util/PathConfig.java
@@ -589,7 +589,7 @@ private static void buildNormalProjectConfig(IS... | 1 | 1 | 0 | [{"id": "G0", "claim": "The cheap scheme equality checks ('mvn' and 'file+jar') should come before the potentially expensive reg.isDirectory call in the if condition.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usi-verification-and-security__opensmt__121 | usi-verification-and-security/opensmt | 121 | defect | 1a7b7241f877652264156a029d9616112d4f5ff9 | 2913d807f78080b2f101595074eee000eb9bac27 | Refactoring of TSolver | This PR removes the `deduced` array from Theory (and consequently from theory solvers). The TSolvers now use the polarity map to internally keep track of literals they already know the polarity of and asserting such literal would not change the state of the TSolver.
Additionally, some high-level methods are introduc... | diff --git a/examples/test-bv.cc b/examples/test-bv.cc
index b2c350c82..2b168269b 100644
--- a/examples/test-bv.cc
+++ b/examples/test-bv.cc
@@ -90,11 +90,10 @@ main(int argc, char** argv)
PTRef eq3 = logic.mkBVEq(op_tr, d);
vec<PtAsgn> asgns;
- vec<DedElem> deds;
vec<PTRef> foo;
SolverId id ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The getTSolverHandler_new method in UFLRATheory.h can be removed, as was done for the other theory handlers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getSolverDeducing lacks a stated assertion guaranteeing that ptre... | null |
usi-verification-and-security__opensmt__139 | usi-verification-and-security/opensmt | 139 | defect | 3599a01a26aacb1fa610603efc75272c30452c3f | ab8f71d554e6a6bf207cdb0450fb637ccbf84c10 | Changing the OpenSMT API | This PR aims to solve #135
This is solved by moving the code working with this library to the main .cc file which is part of the executable only.
In addition, some refactoring has been done to better define the relations between the main components: MainSolver now becomes responsible was maintaining all other co... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e5c653da..2a4a45168 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,11 +41,13 @@ option(BUILD_STATIC_LIBS "Build static library" ON)
option(BUILD_SHARED_LIBS "Build shared library" ON)
option(BUILD_EXECUTABLES "Build executables" ON)
-if (NOT USE_READLINE)... | 2 | 2 | 1 | [{"id": "G0", "claim": "MainSolver::readFormulaFromFile would not work under the new API and, together with the Interpret::parse_only field, needs to be dealt with.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Interpret::isInitialized() should use... | null |
usi-verification-and-security__opensmt__155 | usi-verification-and-security/opensmt | 155 | defect | c857e2746ea20e901e201d9d909e2c119a63a625 | 2fb85a87bc64d24db832adf16ecf9a96b22b1e25 | Model as a standalone object | This PR introduces new Model object with new approach to computing and returning models of satisfiable formulas.
The model is a standalone object that can evaluate any complex term (in the given fragment defined by Logic) based on the values of the variables.
This constitutes the first step towards computing genera... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2a4a45168..d7f902f97 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,6 +73,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/parsers/smt2new
${CMAKE_SOURCE_DIR}/simplifiers
${CMAKE_SOURCE_DIR}/proof
+ ${CMAKE_SOURCE_DIR}/models
${GMP_INCLUDE_... | 1 | 1 | 0 | [{"id": "G0", "claim": "Change the transitive closure loop to use getKeysAndValsPtrs instead of getKeys plus a per-iteration substs[key] lookup, to avoid the redundant map lookup.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usi-verification-and-security__opensmt__177 | usi-verification-and-security/opensmt | 177 | defect | 6518bf9ef242d0cde39cebef3b86f68d33144ef7 | 6fb95de5f9b013b86d66f8727f2b34c625a5fcf3 | Normalizing LIA inequalities with bound tightening already in Logic | This is my attempt at creating strengthened bounds for LIA already during the term creation.
Part of it is also a refactoring of the normalization of sums in LRA Logic.
| diff --git a/src/common/OsmtInternalException.h b/src/common/OsmtInternalException.h
index 2a902fa49..90e10174f 100644
--- a/src/common/OsmtInternalException.h
+++ b/src/common/OsmtInternalException.h
@@ -5,7 +5,12 @@
#pragma once
class OsmtInternalException : public std::exception {
-
+ std::string msg;
+public... | 4 | 2 | 0 | [{"id": "G0", "claim": "The line assigning normalizedSum via mkNumTimes in LALogic::sumToNormalizedInequality is indented one space too far and should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In LIALogic::sumToNormalizedInequalit... | null |
usi-verification-and-security__opensmt__180 | usi-verification-and-security/opensmt | 180 | defect | 6518bf9ef242d0cde39cebef3b86f68d33144ef7 | 42bc853af66b75b6c5466338c3163f752913c3b3 | std::vector to minisat vec conversion | This PR moves the code used in the Logic API `std::vector` => minisat `vec` conversion directly to minisat `vec`'s constructor. | diff --git a/src/logics/Logic.cc b/src/logics/Logic.cc
index c522a50df..749132967 100644
--- a/src/logics/Logic.cc
+++ b/src/logics/Logic.cc
@@ -631,7 +631,7 @@ Logic::getDefaultValuePTRef(const SRef sref) const {
}
PTRef
-Logic::mkIte(vec<PTRef>& args)
+Logic::mkIte(const vec<PTRef>& args)
{
if (!hasSortBool... | 1 | 1 | 0 | [{"id": "G0", "claim": "insertTerm does not use the msg parameter in its actual implementation, so the parameter can be removed from the first insertTerm signature.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
usi-verification-and-security__opensmt__186 | usi-verification-and-security/opensmt | 186 | defect | fd1fc82ae9676fa3faa8a5e4510dd5a6c0557f0f | 65d1a2ec9a728e9ef77070f69941f6127a9e6a1f | Recursive and non-recursive enodes | This PR fixes issue #185 where the problem seems to have been that some equalities need a recursive definition in UF whereas others can be treated as uninterpreted predicates. For now I've convinced myself that this fix works with incrementality as well. While fixing this I refactored EnodeStore::constructTerm.
In... | diff --git a/regression/QF_UF/issue185.smt2 b/regression/QF_UF/issue185.smt2
new file mode 100644
index 000000000..545ebeac4
--- /dev/null
+++ b/regression/QF_UF/issue185.smt2
@@ -0,0 +1,7 @@
+(set-logic QF_UF)
+(declare-fun f (Bool) Bool)
+(declare-fun v7 () Bool)
+(declare-fun v8 () Bool)
+(assert (f (= v7 v8)))
+(ch... | 4 | 4 | 0 | [{"id": "G0", "claim": "The test should hold the Pterm through a const reference (Pterm const &t) instead of a non-const one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added #include <EnodeStore.h> in test/unit/test_LogicMkTerms.cc is r... | null |
usi-verification-and-security__opensmt__189 | usi-verification-and-security/opensmt | 189 | defect | 6617993836751d1f1aaf7e2e238513e611d2eb62 | 742beccf679da6e547b69772b92a46a6298facea | Improved bookkeeping on UF appearances of boolean terms | This PR implements two fixes in handling of Boolean atoms inside uninterpreted functions.
### Bookkeeping
The PR improves the bookkeeping code for appearances of Boolean atoms inside uninterpreted functions. In current master it is possible that a Boolean term appears (directly) in a UF term at term construction... | diff --git a/regression/QF_UF/issue185c.smt2 b/regression/QF_UF/issue185c.smt2
new file mode 100644
index 000000000..c6f096a53
--- /dev/null
+++ b/regression/QF_UF/issue185c.smt2
@@ -0,0 +1,14 @@
+(set-logic QF_UF)
+(declare-fun uf7 (Bool Bool Bool Bool Bool Bool Bool) Bool)
+(declare-fun v0 () Bool)
+(declare-fun v2 (... | 5 | 4 | 1 | [{"id": "G0", "claim": "The unconditional decrement of the UF appearance count in varsubstitute may be wrong when the substituted term is not in a UF context, and the replacement term's count may not be incremented to match.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
usi-verification-and-security__opensmt__192 | usi-verification-and-security/opensmt | 192 | defect | 6617993836751d1f1aaf7e2e238513e611d2eb62 | 032ce1517187abdfd5d1ddb7a10fc038f53f4d56 | Refactoring of colouring information in Theory Interpolation | This PR is a follow-up of #183 and aims to better define how information about partitioning of terms is passed to the Theory Interpolators.
This partitioning information can be global, derived from the partitioning of the whole SMT query, or it can be local, derived just from the partitioning of the theory conflict... | diff --git a/src/smtsolvers/TheoryInterpolator.h b/src/smtsolvers/TheoryInterpolator.h
index ed5ccdf70..f44d81232 100644
--- a/src/smtsolvers/TheoryInterpolator.h
+++ b/src/smtsolvers/TheoryInterpolator.h
@@ -3,7 +3,139 @@
#include "Global.h"
#include "PtStore.h"
-#include <PartitionManager.h>
+#include "PartitionM... | 3 | 2 | 0 | [{"id": "G0", "claim": "The local binding `auto const & entry = queue.back();` need not be a reference; the entry should be taken by value since its size (2 * 32 bits) is the same as the address.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ra... | null |
usi-verification-and-security__opensmt__195 | usi-verification-and-security/opensmt | 195 | defect | 66f5ef3453f5e4e362dc83426f5e9f25eb1b2eb3 | 6e21819189611efd40e7dbbffd82e3bb2a8e960e | LIA interpolation | This PR introduces the ability to compute interpolants also for QF_LIA queries.
The ability is somewhat limited to the current implementation of the LIA solver and will need to be revisited if new techniques are added to the LIA solver.
LIA interpolator builds on top of Farkas interpolator (for LRA), but it needs t... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 49a7f81b5..b8e1ac5c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,6 +69,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/tsolvers/egraph
${CMAKE_SOURCE_DIR}/tsolvers/lasolver
${CMAKE_SOURCE_DIR}/tsolvers/lrasolver
+ ${CMAKE_SOURCE_DIR}/tsolver... | 11 | 7 | 1 | [{"id": "G0", "claim": "Suggests getting the LIA explanation construction out of the constructor, e.g. via a LIAExplanation class, so that FarkasInterpolator can be a direct member instead of a unique pointer.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
usi-verification-and-security__opensmt__207 | usi-verification-and-security/opensmt | 207 | defect | 787681db75c4eae7aa4a19d4755027e889007426 | ded3af00878e1563cc90a938392508315517437e | Added a benchmarking system and micro benchmarks for Rationals | A basis of writing micro benchmarks for opensmt. This pull request also transfers the FastRational benchmark currently under unit tests to google's benchmark system. | diff --git a/CMakeLists.txt b/CMakeLists.txt
index b884a8292..f8b293b4f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -153,6 +153,13 @@ if(PACKAGE_TESTS)
add_subdirectory(${PROJECT_SOURCE_DIR}/test)
endif(CMAKE_VERSION VERSION_LESS 3.11)
endif()
+####################################################... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PACKAGE_BENCHMARKS option should default to OFF, since building the benchmarks is an internal developer thing rather than something needed by the user.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usi-verification-and-security__opensmt__221 | usi-verification-and-security/opensmt | 221 | defect | 3531de1d7a01eb67ae5bdb93a2b8d6153f4ca28f | 8350b52b7f9e0c8090f815514674037acb03cd00 | Adding basic support for int mod and div operations | I am opening this PR draft to discuss changes necessary to add support for `div` and `mod` in LIA logic.
So far, there is support for creating `div` and `mod` terms where the second argument is constant.
A utility to rewrite formulas with these operations to equivalent formulas without them is still needed. | diff --git a/src/logics/LALogic.cc b/src/logics/LALogic.cc
index 6ecb86618..6941ae13c 100644
--- a/src/logics/LALogic.cc
+++ b/src/logics/LALogic.cc
@@ -296,50 +296,6 @@ PTRef LALogic::mkConst(const opensmt::Number& c)
return ptr;
}
-SRef LALogic::getSort_num () const { return get_sort_NUM(); }
-PTRef LALog... | 7 | 5 | 1 | [{"id": "G0", "claim": "The newly added tk_int_abs declaration may be unnecessary since abs is not needed right now and could be removed.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G7", "claim": "It is inconsistent that mkNumDiv takes a vec of PTRefs while t... | null |
usi-verification-and-security__opensmt__237 | usi-verification-and-security/opensmt | 237 | defect | e36912263982343006d7247ca7ac0c2caa5bd986 | ad2273677e2e25d65b883d164023048d4415c095 | Small refactoring of Logic::isLit | In `Logic` we have methods `isLit` and `isAtom` with custom implementation.
I believe `isLit` should just rely on `isAtom`. | diff --git a/src/logics/Logic.cc b/src/logics/Logic.cc
index f54b353c8..fee9d27eb 100644
--- a/src/logics/Logic.cc
+++ b/src/logics/Logic.cc
@@ -943,25 +943,10 @@ PTRef Logic::mkBoolVar(const char* name)
return tr;
}
-// A term is literal if its sort is Bool and
-// (i) number of arguments is 0
-// (ii) it... | 2 | 2 | 0 | [{"id": "G0", "claim": "The name isLit is not descriptive enough for the semantics this PR gives it; it should be renamed (e.g. to isLitOfAtom) or the naming should otherwise distinguish Tseitin definition literals from literals as atom-or-negation-of-atom.", "category": "maintainability", "verdict": "supported", "prio... | null |
usi-verification-and-security__opensmt__242 | usi-verification-and-security/opensmt | 242 | defect | 922a9d0f79273f4d57e5eaaa8fb5a5ec441cbffa | 3b466d1a54f55c0467b5ba5206ee46f91f158fd0 | Fix handling of distincts that are not top-level | The current implementation of `Egraph` solver does not handle correctly if `distinct` term (with more than two elements) is asserted negatively.
This PR adds a rewriting step in the preprocessing phase to fully expand all distincts that are not top-level conjunct in the queried formula. This ensures that no distinct w... | diff --git a/regression/QF_UF/negated_distinct_sat.smt2 b/regression/QF_UF/negated_distinct_sat.smt2
new file mode 100644
index 000000000..ab6f64535
--- /dev/null
+++ b/regression/QF_UF/negated_distinct_sat.smt2
@@ -0,0 +1,10 @@
+(set-logic QF_UF)
+(set-info :status sat)
+(declare-sort U 0)
+(declare-fun a () U)
+(decl... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a space after the `for` keyword in `for(PTRef arg : term)` in DistinctRewriter.h.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
usi-verification-and-security__opensmt__251 | usi-verification-and-security/opensmt | 251 | defect | 763e69e40f7b2a11aa465814fdd35691cc0f1119 | ea9456d021163bb3b6640e32164e823a0a36c0d0 | Fix crash in UF interpolator | Because we re-use one theory solver for all theory conflicts, it may happen that the explanation of a conflict depends on a term not present in that particular conflict (but is present in the input formula).
This breaks the invariant assumed before, i.e., that local coloring information is enough to color the `CGraph`... | diff --git a/regression_itp/uf_local_colors_insufficient.smt2 b/regression_itp/uf_local_colors_insufficient.smt2
new file mode 100644
index 000000000..b7517af2c
--- /dev/null
+++ b/regression_itp/uf_local_colors_insufficient.smt2
@@ -0,0 +1,26 @@
+(set-option :produce-interpolants 1)
+(set-logic QF_UF)
+(declare-sort U... | 3 | 3 | 0 | [{"id": "G0", "claim": "The added comment 'It is not possible that are incompatible' should say that it is the colors that cannot be incompatible.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The condition 'if (intermediate_next != nullptr)' sho... | null |
usi-verification-and-security__opensmt__264 | usi-verification-and-security/opensmt | 264 | defect | 5e9891d2941ad4d968fc4993ce38ee87e44768c8 | 58c0ba197a11c9d210bb776fcd548fa366f0dd92 | Proof transformations cleanup - part 4 of N | This PR adds two unit tests for testing `ProofGraph::recyclePivotsIter`.
The second one shows that it is possible that during this algorithm a situation might occur where a node ends up with antecedents being one and the same node. This follows from the properties of the algorithm and the algorithm can handle it simpl... | diff --git a/src/proof/PGTransformationAlgorithms.cc b/src/proof/PGTransformationAlgorithms.cc
index 603e1f785..48d8359eb 100644
--- a/src/proof/PGTransformationAlgorithms.cc
+++ b/src/proof/PGTransformationAlgorithms.cc
@@ -20,6 +20,7 @@ along with Periplo. If not, see <http://www.gnu.org/licenses/>.
#include "PG.h... | 2 | 1 | 0 | [{"id": "G0", "claim": "Since the assert on line 190 already protects the case the new exception branch handles, the assert should maybe be removed.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The condition could be simplified to `choose_ant1 =... | null |
usi-verification-and-security__opensmt__266 | usi-verification-and-security/opensmt | 266 | defect | 58c0ba197a11c9d210bb776fcd548fa366f0dd92 | efa7bdefc81ff8a812d40573eae42e9fa494da82 | Proof transformations cleanup - part 5 of N: ProofGraph::proofTransformAndRestructure | This PR deals with cleaning up the method `ProofGraph::proofTransformAndRestructure`.
It adds two unit tests for checking basic functionality of the method, the second one exposing a path in the code that previously triggered error. It is a situation similar to the one in #264, i.e., while restructuring and reducing... | diff --git a/src/proof/PGTransformationAlgorithms.cc b/src/proof/PGTransformationAlgorithms.cc
index 48d8359eb..db9222fa5 100644
--- a/src/proof/PGTransformationAlgorithms.cc
+++ b/src/proof/PGTransformationAlgorithms.cc
@@ -242,7 +242,7 @@ double ProofGraph::recyclePivotsIter() {
ProofNode * repla... | 6 | 6 | 0 | [{"id": "G0", "claim": "The asserted antecedent-1 clause should use the `not` style, i.e. end with `or (not n->getAnt1()->getAnt1() and not n->getAnt1()->getAnt2())`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The asserted antecedent-2 claus... | null |
usi-verification-and-security__opensmt__281 | usi-verification-and-security/opensmt | 281 | defect | 5427a7a136109a9e92ea3fde4bbfbdc39b9fb9c9 | 97da25babda90a5d32dcd852a6d79b8de66f2be6 | Fix: Implemented the standard-conforming version of `declare-const` | Previously we allowed the use of `declare-const` for declaring constants in the sense that
```
(set-logic QF_UF)
(declare-sort U 0)
(declare-const () a U)
(declare-const () b U)
(assert (= a b))
(check-sat)
```
would return `unsat`. This does not conform to the smtlib2 standard for two reasons:
1.`declare-c... | diff --git a/regression_models/instances/declare_const_lia.smt2 b/regression_models/instances/declare_const_lia.smt2
new file mode 100644
index 000000000..4640ac86a
--- /dev/null
+++ b/regression_models/instances/declare_const_lia.smt2
@@ -0,0 +1,8 @@
+(set-logic QF_LIA)
+(set-info :status sat)
+(declare-const a Int)
+... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new unit test should build f_a over the constant a (logic.mkUninterpFun(fs, {a})) instead of the variable x, so that the test exposes the model-building problem the reviewer mentioned.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
usi-verification-and-security__opensmt__284 | usi-verification-and-security/opensmt | 284 | defect | 413900e7e4b0bd69d0a4f93d1745efda51fe0aba | 60c597bbbffc76a4885c23da8cf5f9a2da5219c3 | Switch to C++17 | This PR switches C++ version to C++17 and show examples how post-C++11 features can be used in our code base.
These are (showed here):
* `make_unique`
* structured bindings
* initializer inside `if` statements | diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe74316c7..6797949c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,7 @@ set(OPENSMT_VERSION_PATCH 1)
set(OPENSMT_VERSION ${OPENSMT_VERSION_MAJOR}.${OPENSMT_VERSION_MINOR}.${OPENSMT_VERSION_PATCH})
project(opensmt VERSION ${OPENSMT_VERSION} LANGUAGES C... | 1 | 1 | 0 | [{"id": "G0", "claim": "If the project switches to C++17, the next release should probably be a new minor version rather than just a patch bump.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usi-verification-and-security__opensmt__293 | usi-verification-and-security/opensmt | 293 | defect | 6407eaf9b977913b47c2f242eb02183119705ec6 | be505bbf188941e68f0b7ef2bba11256d60e4b8e | Normalize arithmetic equalities. | Depends on #292.
Resolves #267.
Currently, arithmetic equalities are not normalized, they are created as given, in the same way as equalities for uninterpreted sorts.
This PR adds normalization process to arithmetic equalities on creation, which works almost the same as the normalization for arithmetic inequalitie... | diff --git a/src/logics/LALogic.cc b/src/logics/LALogic.cc
index ced47f514..840cbbdc5 100644
--- a/src/logics/LALogic.cc
+++ b/src/logics/LALogic.cc
@@ -421,6 +421,36 @@ PTRef LALogic::mkNumGt(vec<PTRef> const & args)
return mkAnd(std::move(binaryInequalities));
}
+PTRef LALogic::mkBinaryEq(PTRef lhs, PTRef rhs... | 8 | 7 | 2 | [{"id": "G0", "claim": "The 'in LIA we can strengthen the inequality to ceiling(-constantValue) <= normalizedSum' comment in LIALogic.cc is now obsolete and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "LRALogic::sumToNorma... | null |
usi-verification-and-security__opensmt__326 | usi-verification-and-security/opensmt | 326 | defect | 35ea5830dc6f60f79670900605dd2405585be7f4 | e904c5cc600fe2e3c90065771c75128bdde6f0ee | String to number | As a preparation for combining the arithmetic logics, here are some utilities and refactoring for parsing strings into numbers. | diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 18f597a12..88cd95951 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -9,8 +9,10 @@ target_sources(common
"${CMAKE_CURRENT_LIST_DIR}/Global.h"
"${CMAKE_CURRENT_LIST_DIR}/Integer.h"
"${CMAKE_CURRENT_LIST_DIR}... | 3 | 2 | 0 | [{"id": "G0", "claim": "isIntString should be simplified to use the existing isDigit helper with an early return instead of an isInt flag variable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "NumberUtils.h should not carry the copyright attribution to... | null |
usi-verification-and-security__opensmt__332 | usi-verification-and-security/opensmt | 332 | defect | 17c5542f8a8bc7409a507269d15778fdaad97c1b | ef713ac0bae23f2f1ac5de30dff39bfd6f3fc6e8 | [logic] declareSort refactoring | PR suggests a refactoring for declareSort and some API changes that throw in case of errors. | diff --git a/src/bin/Interpret.cc b/src/bin/Interpret.cc
index 50b229be6..c0dfae35a 100644
--- a/src/bin/Interpret.cc
+++ b/src/bin/Interpret.cc
@@ -1183,9 +1183,8 @@ SRef Interpret::newSort(ASTNode& sn) {
// SRef rval = logic->newSort(idr, canon_name, tmp);
// free(canon_name);
- char* msg;
char* can... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new sort-declaring function should be renamed to declareUninterpretedSort so its name says it must not be called for numeric sorts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The equality declaration in declareSor... | null |
usi-verification-and-security__opensmt__349 | usi-verification-and-security/opensmt | 349 | defect | e27a80be9a04eb719f7a52440cdaf0faa285b2d5 | 898c383b5c5702ef059315687d2642b14461956e | [tsolvers] Unify LIA and LRA solvers | I still want to make sure there's no performance regressions but this should be ready for review hopefully. | diff --git a/src/api/MainSolver.cc b/src/api/MainSolver.cc
index 720501af6..a7f0da76d 100644
--- a/src/api/MainSolver.cc
+++ b/src/api/MainSolver.cc
@@ -32,12 +32,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "GhostSMTSolver.h"
#include "UFLRATheory.h"
#include "LATheory.h"
+#include... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new LATHandler file should use the project's new licensing header style instead of the plain \"Created by\" comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR adds test_HNF.cc and test_Matrix.cc while the ol... | null |
usi-verification-and-security__opensmt__358 | usi-verification-and-security/opensmt | 358 | defect | 6361d42b42fc2a244acf90bc47732e2bd61de32c | e3753b5dee573d7f16d75a720726da1352bc7e5c | Symbol cleanup | This PR cleans further the symbol interface by forbidding (incorrect) changes to symbols once created. | diff --git a/src/bin/Interpret.cc b/src/bin/Interpret.cc
index 0c314c745..b5e7fd49c 100644
--- a/src/bin/Interpret.cc
+++ b/src/bin/Interpret.cc
@@ -803,7 +803,7 @@ bool Interpret::declareFun(ASTNode const & n) // (const char* fname, const vec<S
for (int i = 1; i < args.size(); i++)
args2.push(args[i]);
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `char** msg` out-parameter of `Logic::declareFun` and the first overload carrying it are unnecessary and should be removed so callers no longer pass a dummy `msg`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Call sites shou... | null |
usi-verification-and-security__opensmt__365 | usi-verification-and-security/opensmt | 365 | defect | 41d579700d8466d75806a14f7bff52cd3d2af32f | f7a50be6712a52aadd417f6818608ea1a951b4b2 | Indexed sorts | This PR makes the building blocks for indexed sorts (e.g. `(_ BitVec 32)`) available through `Logic` API. In addition it implements the printing of sorts such parametric sorts. | diff --git a/src/api/MainSolver.cc b/src/api/MainSolver.cc
index a7f0da76d..82f2d12fa 100644
--- a/src/api/MainSolver.cc
+++ b/src/api/MainSolver.cc
@@ -110,7 +110,7 @@ MainSolver::insertFormula(PTRef root, char** msg)
if (logic.getSortRef(root) != logic.getSort_bool())
{
int chars_written = asprintf... | 4 | 4 | 1 | [{"id": "G0", "claim": "BVLogic::isBuiltinSortSym should call CUFLogic::isBuiltinSortSym (its direct base) instead of skipping to Logic::isBuiltinSortSym.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The dump methods should call Logic's own printS... | null |
usi-verification-and-security__opensmt__384 | usi-verification-and-security/opensmt | 384 | defect | f48e0ffc7b78eba27678989856e2d0e7185ca1e8 | 38ab3843ccf21da7537c19a7a560d7531f8b290c | Egraph: Introduce mechanism for dealing with dynamicly added terms | Egraph is sensitive to backtracking and needs to undo the made changes
exactly. The important thing is to maintain the invariants of signatures
and use-vectors. Adding new terms to Egraph after initialization causes
problems for maintaining the invariants when backtracking happens.
The solution is inspired by the... | diff --git a/src/tsolvers/egraph/Egraph.h b/src/tsolvers/egraph/Egraph.h
index 344ca812b..e27eba2ed 100644
--- a/src/tsolvers/egraph/Egraph.h
+++ b/src/tsolvers/egraph/Egraph.h
@@ -168,7 +168,7 @@ class Egraph : public TSolver {
std::vector<UseVector> parents;
void addToUseVectors(ERef);
- void updateUse... | 2 | 1 | 0 | [{"id": "G0", "claim": "The FIXME'd condition `backtrack_points.size() > 0` in `Egraph::reanalyze` is probably always true and needs a different condition (possibly `backtrack_points.size() > 1`), but with no test cases available the discussion of the right condition should be postponed until MBTC support exists.", "ca... | null |
usi-verification-and-security__opensmt__399 | usi-verification-and-security/opensmt | 399 | defect | 525de19bbd20269522133f7c7813f944bdc1519e | 9454639631eebe674f19ae674c4ad560866900a9 | Everywhere: Fix several memory leaks | This PR fixes a couple of memory leaks in the parser and other related to using `char *` for string representations.
More functions for string representations now return `std::string` instead of `char *`. | diff --git a/examples/test-bv.cc b/examples/test-bv.cc
index b2c58dc92..c0054052f 100644
--- a/examples/test-bv.cc
+++ b/examples/test-bv.cc
@@ -34,7 +34,7 @@ int main(int argc, char** argv)
PTRef eq2 = logic.mkBVEq(b, c2);
//printf("Computing %d (%s) %s %d (%s)\n", c1_int, logic.printTerm(c1), op, c2_int, ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The spacing of getVarName's parameter should be normalized (remove the space between the function name and the opening parenthesis).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
usi-verification-and-security__opensmt__414 | usi-verification-and-security/opensmt | 414 | defect | 480aa634921003c7c1ffbf861ca92bb952eb5b0f | 07a45a70ca08540a730e88818a19e82e21df1afa | Template polynomial on the type of variable | This is an attempt towards generalising Polynomial. At the moment the polynomial is used both in tableau and for representing columns in sparse matrices. In the two cases the variables or indices in the polynomial have nothing to do with each other, and there is a potential risk of mixing them. The template paramete... | diff --git a/src/tsolvers/lasolver/CMakeLists.txt b/src/tsolvers/lasolver/CMakeLists.txt
index 43ae9a85b..88e05f9ce 100644
--- a/src/tsolvers/lasolver/CMakeLists.txt
+++ b/src/tsolvers/lasolver/CMakeLists.txt
@@ -10,7 +10,6 @@ target_sources(tsolvers
PRIVATE "${CMAKE_CURRENT_LIST_DIR}/Delta.cc"
PRIVATE "${CMA... | 1 | 1 | 0 | [{"id": "G0", "claim": "A type alias for Polynomial<LVRef> should be introduced somewhere in Simplex/Tableau.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usi-verification-and-security__opensmt__422 | usi-verification-and-security/opensmt | 422 | defect | 0b0847b1bc073d8f061b7aa8c0e96a1bedae30c2 | b6079c2e02eed70da08ea4de385e0bfed079e73f | Logic: fix quoting of variable names which start with numbers | If, e.g., a boolean variable in smt-lib has a name consisting entirely of digits, the term printing system incorrectly leaves the variable unquoted. This PR suggests a fix for the problem. | diff --git a/src/api/smt2tokens.h b/src/api/smt2tokens.h
index ca503de3c..cafc2e008 100644
--- a/src/api/smt2tokens.h
+++ b/src/api/smt2tokens.h
@@ -29,6 +29,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <string>
#include <unordered_map>
+#include <unordered_set>
+
namespace osmttok... | 2 | 2 | 1 | [{"id": "G0", "claim": "In Logic::protectName the new retSort and isNullary parameters are unused and should be left unnamed instead of being void-cast.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ArithLogic::protectName should add a check fo... | null |
usi-verification-and-security__opensmt__426 | usi-verification-and-security/opensmt | 426 | defect | 1146c9b26c12ca15ccc0a5ffa5da91fe70d18421 | 47663f0f27cffb74bce3ce44c34e8a2153f9d81d | Return sort resolution | This PR concentrates around issues related to homonymous terms with different return sorts.
- Currently the printing of similarly named terms that have different return sorts does not work in opensmt. This PR fixes the issue by qualifying the return sorts with the `(as <symbol> <sort>)` construct when necessary.
... | diff --git a/regression/QF_UF/simplified.smt2.expected.out b/regression/QF_UF/simplified.smt2.expected.out
index 3ad670a1d..6b7e39c62 100644
--- a/regression/QF_UF/simplified.smt2.expected.out
+++ b/regression/QF_UF/simplified.smt2.expected.out
@@ -1,4 +1,4 @@
-(error "No such symbol ?v_52: Unknown symbol `?v_52'")
+(e... | 12 | 11 | 0 | [{"id": "G0", "claim": "Interpret::resolveQualifiedIdentifier should take the sort ASTNode by const reference instead of a pointer, in both the definition and the declaration.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sort node read from the `as... | null |
usi-verification-and-security__opensmt__474 | usi-verification-and-security/opensmt | 474 | defect | 5f9f4058c36e169efd9d0609b0cf75d548f21e5d | 3fe499cf0f499f693ae1260a449f85e9520fe501 | Terms: Add generic subterms collector | This PR adds a generic visitor for collecting subterms of a term, templated by a predicate the subterms need to satisfy.
Two helper methods are added for collecting all subterms and for collecting all variables.
This follows the pattern of uniting all operations on terms on our base `Visitor` and `Rewriter`.
Som... | diff --git a/src/api/PartitionManager.cc b/src/api/PartitionManager.cc
index 3610b1e1c..cb9daa83d 100644
--- a/src/api/PartitionManager.cc
+++ b/src/api/PartitionManager.cc
@@ -37,14 +37,7 @@ void PartitionManager::propagatePartitionMask(PTRef root) {
}
ipartitions_t PartitionManager::computeAllowedPartitions(PTRef... | 4 | 3 | 0 | [{"id": "G0", "claim": "Take the predicate by rvalue reference in TermCollectorConfig's constructor (possibly with std::forward) instead of by value.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Make variables take Logic by const reference: inline vec<PT... | null |
usi-verification-and-security__opensmt__480 | usi-verification-and-security/opensmt | 480 | defect | 208941d59996d0072d018f8953884a86a51eca2e | 8674bb0d65c405e09f1a4e1ca8e5dc8d31d350dd | SAT improvements | This PR introduces three improvements for opensmt's SAT solver:
* Polarity saving
* Luby restarts
* Glue heuristic for removing learned clauses
Together they improve in general the performance in smt-lib benchmarks in the theories that opensmt supports. | diff --git a/src/minisat/core/SolverTypes.h b/src/minisat/core/SolverTypes.h
index de38262e6..c57816cc0 100644
--- a/src/minisat/core/SolverTypes.h
+++ b/src/minisat/core/SolverTypes.h
@@ -140,7 +140,8 @@ class Clause {
unsigned learnt : 1;
unsigned has_extra : 1;
unsigned reloced : 1;
-... | 3 | 2 | 1 | [{"id": "G0", "claim": "Glue is always <= 3 because computeGlue caps it there, so the reduceDB deletion condition (glue > 3) would always be false (and the extra counter would count every clause) — what is the intention here?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
usi-verification-and-security__opensmt__49 | usi-verification-and-security/opensmt | 49 | defect | c555746057eb6ebd37491afddcc2942a4160092d | 4e4d2e10c773d634031d52c66bb69bd040ef984a | Substitution refactor | Closes issue #12 . There is now a new, memory-managed implementation for finding and breaking substitution loops. The implementation is separated into a class for cleaner code and ease of testing. Some stuff would still be nice to have:
- Make sure that the worst-case behaviour of the loop breaking is not expone... | diff --git a/src/logics/CMakeLists.txt b/src/logics/CMakeLists.txt
index 92d71e79d..5e5cba45a 100644
--- a/src/logics/CMakeLists.txt
+++ b/src/logics/CMakeLists.txt
@@ -23,6 +23,8 @@ target_sources(logics
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/UFTheory.C"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Tterm.h"
PRIVATE "${CMA... | 2 | 2 | 2 | [{"id": "G0", "claim": "The parameters declared `const &&` (in `operator()`, `constructSubstitutionGraph` and `constructLooplessSubstitution`) should be replaced because one cannot move from a const rvalue - ideally to plain `const &` - and the related `std::move`s removed.", "category": "design", "verdict": "supported... | null |
usi-verification-and-security__opensmt__513 | usi-verification-and-security/opensmt | 513 | defect | f23b2cd39f2b19d1375ae818b75ae70d86f88783 | 4c55a68f329d2c0778f0e2b451d27396afdb70c5 | Fix handling of scoped define-funs | This PR proposes to move the handling of defined functions from `Logic` to `Interpret` and treat them basically as macros when interpreting SMT-LIB2 file.
In the `Interpret`, we can tie their lifetime to the push frame where they were introduced and remove them on `pop`.
Fixes #512. | diff --git a/regression/incremental/defined_multiple.smt2 b/regression/incremental/defined_multiple.smt2
new file mode 100644
index 000000000..39512f061
--- /dev/null
+++ b/regression/incremental/defined_multiple.smt2
@@ -0,0 +1,16 @@
+(set-logic QF_UF)
+
+(declare-sort U 0)
+(declare-fun x () U)
+(declare-fun f (U) U)... | 2 | 2 | 1 | [{"id": "G0", "claim": "The config lacks the standard `:global-declarations` option, which is needed to decide whether defined functions are scoped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new DefinedFunctions class methods should be chec... | null |
usi-verification-and-security__opensmt__524 | usi-verification-and-security/opensmt | 524 | defect | 7b7cac4673d40fd97029eaea1e00d13939e25571 | ea1525125474ed0127c87d83087ccc3d3212ae39 | Avoid serialising big terms into smt-lib | When parallel solver needs to communicate terms they are serialised at the moment into smt-lib terms. However, these terms might grow huge. This PR suggests how the size can be kept in check using the number of sub-terms as a proxy for the smt-lib size of the term. | diff --git a/src/common/TreeOps.h b/src/common/TreeOps.h
index 92edd2869..4b5e1b2e7 100644
--- a/src/common/TreeOps.h
+++ b/src/common/TreeOps.h
@@ -25,7 +25,7 @@ class TermVisitor {
public:
TermVisitor(Logic const & logic, TConfig & cfg) : logic(logic), cfg(cfg) {}
- void visit(PTRef root) {
+ virtual vo... | 5 | 1 | 0 | [{"id": "G0", "claim": "The loop variable `tr` in the new test_PtermNodeCounter could be declared const.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The temporary `tr` can be removed by passing `theory_handler.varToTerm(next)` directly to `node... | null |
usi-verification-and-security__opensmt__531 | usi-verification-and-security/opensmt | 531 | defect | 0c11fb50e9c188f5105d88736b85b44976b93186 | 289265b9e46960c8cb316a5bb872a1d4ae28397f | Small cleanup related to resolution proof graph | This PR removes some of the unused fields and methods in `ProofGraph` and also removes the last usage of implication verification using external tool.
Internal verification should be sufficient in my opinion. | diff --git a/src/api/MainSolver.cc b/src/api/MainSolver.cc
index 4ccf2781f..e584e3428 100644
--- a/src/api/MainSolver.cc
+++ b/src/api/MainSolver.cc
@@ -218,7 +218,7 @@ std::unique_ptr<Model> MainSolver::getModel() {
std::unique_ptr<InterpolationContext> MainSolver::getInterpolationContext() {
if (status != s_Fal... | 4 | 3 | 0 | [{"id": "G0", "claim": "The loop body added in verifyLeavesInconsistency is indented with tabs instead of spaces, inconsistent with the surrounding changed code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The vec lits should reserve capacity... | null |
usi-verification-and-security__opensmt__547 | usi-verification-and-security/opensmt | 547 | defect | 514d03d3c8fdf15680f65e4d44e00ee96dd1248a | 9a2d58c00a5fce18777631113a66d3415970c16d | Implement "reverse operators" for auxiliary variables | Currently when we print terms there is no support for avoiding printing internal auxiliary expansion variables (currently `.ite`, `.div`, `.mod`). This is a problem when terms need to be communicated to other solvers, and seems to cause (soundess) problems also if the terms are communicated within different opensmt in... | diff --git a/src/itehandler/IteHandler.cc b/src/itehandler/IteHandler.cc
index d6a9eaeb1..a63da22eb 100644
--- a/src/itehandler/IteHandler.cc
+++ b/src/itehandler/IteHandler.cc
@@ -15,12 +15,30 @@ PTRef IteHandler::rewrite(PTRef root) {
PTRef IteHandler::getAuxVarFor(PTRef ite) {
assert(logic.isIte(ite));
- ... | 7 | 7 | 0 | [{"id": "G0", "claim": "Use std::stoul instead of std::stoi when parsing the auxiliary variable number in IteHandler::getIteTermFor, since the value is cast to uint32_t.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The divsAndModsSeen flag is unne... | null |
usi-verification-and-security__opensmt__553 | usi-verification-and-security/opensmt | 553 | defect | 52f68e2681b707cf12f09f0b1e541b8303f9a873 | a8670155044c7b8602bccba05ab05c5bc274115c | ArithLogic: Rewrite arithmetic substitutions | This PR suggests to use a different mechanism to compute substitutions from arithmetic equalities.
In the old mechanism, if there already existed a substitution for a chosen variable, the equality was ignored (unless the RHS was a constant). It delegated more responsibility to the main substitution loop, which could... | diff --git a/regression/QF_LIA/regression/substitution.smt2 b/regression/QF_LIA/regression/substitution.smt2
new file mode 100644
index 000000000..5451bf863
--- /dev/null
+++ b/regression/QF_LIA/regression/substitution.smt2
@@ -0,0 +1,5 @@
+(set-logic QF_LIA)
+(declare-fun x () Int)
+(declare-fun H () Int)
+(assert (an... | 5 | 3 | 0 | [{"id": "G0", "claim": "The new regression test substitution.smt2 should declare its expected status.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code related to arithmeticElimination should be moved to a different util file and be a free functio... | null |
usi-verification-and-security__opensmt__56 | usi-verification-and-security/opensmt | 56 | defect | c8692a0c57bcc1c7929c076425c258eb10befa0d | b7a1b90a8a5c28a8b6efac34ebdc3d0b694be63f | Checking larger amount of compiler warnings in CI; fixing warnings in current code | This PR enables checking of common types of compiler warnings for CI on Travis.
These warnings are treated as errors when compiling on CI server.
This will prevent introduction of new warnings to the source code as CI will fail.
Checking larger amount of compiler warnings (using -Wall) and treating them as errors ... | diff --git a/.travis.yml b/.travis.yml
index 1e5bde94c..4687f51f7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -58,11 +58,12 @@ addons:
install: true
before_script:
- - if [[ "${TRAVIS_COMPILER}" == "clang" ]]; then FLAGS="-Wpessimizing-move -Werror=pessimizing-move"; fi
+ - FLAGS="-Wall -Werror"
- INST... | 7 | 6 | 0 | [{"id": "G0", "claim": "The block comment in src/logics/Theory.C should be cleaned up so it does not keep the //'s inside the /* */ wrapping.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reindented size/shrink declarations in SolverTypes.h... | null |
usi-verification-and-security__opensmt__629 | usi-verification-and-security/opensmt | 629 | defect | c4a6024b3b7a785f0165bb8f58b9e935c5166e9f | bb987a53198b8c322cd44430df03908123919040 | Fix mod corner cases | OpenSMT computes incorrectly `(mod x 1)`, `(mod x -1)`, `(div x 1)` and
`(div x -1)` because the special handling for these is missing. This
PR adds the simplifications directly to `ArithLogic`.
There's also unit tests for the above cases.
Fixes #628 | diff --git a/src/logics/ArithLogic.cc b/src/logics/ArithLogic.cc
index b9577d3b7..8609ef55f 100644
--- a/src/logics/ArithLogic.cc
+++ b/src/logics/ArithLogic.cc
@@ -809,7 +809,7 @@ PTRef ArithLogic::mkMod(vec<PTRef> && args) {
if (not isNumConst(divisor)) { throw OsmtApiException("Divisor must be constant in lin... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the new testDiv_One test, the variable holding the mkIntDiv result should be named `div` rather than `mod`, since it holds a division result, not a modulo.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
usi-verification-and-security__opensmt__685 | usi-verification-and-security/opensmt | 685 | defect | 89b333e67e9e1bc773a3af9098982bc9f5530f4e | d1c3739c1317e41aafe48832413e6c05c3562c7c | Consolidate tracking of partitions for proofs and interpolation | Replaces almost all `produce_inter` conditions by `produce_proof`, and applies rule `produce_inter` => `produce_proof`.
It reverts a commit from 2020 that, on the contrary, replaced `produce_proof`s with `produce_inter`.
Note that there are still some places where `produce_inter` remains but I am not sure if it is ... | diff --git a/src/api/Interpret.cc b/src/api/Interpret.cc
index dd3827478..ca7d0ce26 100644
--- a/src/api/Interpret.cc
+++ b/src/api/Interpret.cc
@@ -1278,7 +1278,7 @@ void Interpret::getInterpolants(const ASTNode& n)
}
letRecords.popFrame();
- if (!(config.produce_inter() > 0))
+ if (!config.produce_i... | 6 | 6 | 0 | [{"id": "G0", "claim": "The getter should be named to say it is a resolution proof (e.g. `logsResolutionProof`), because another OpenSMT version builds proofs based on DRAT.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Partition tracking shoul... | null |
usi-verification-and-security__opensmt__689 | usi-verification-and-security/opensmt | 689 | defect | 84f1c2b03d4864fe8e59b0aaf86baa8c843c4c5f | d001afa7cbe033db0ed98cb19ba0c07e6b082056 | Fix some access levels in `MainSolver` and add some checks to public … | …member functions.
Related to #688 (does not fully resolve) | diff --git a/src/api/MainSolver.cc b/src/api/MainSolver.cc
index 7e8abbd2b..65606739e 100644
--- a/src/api/MainSolver.cc
+++ b/src/api/MainSolver.cc
@@ -103,10 +103,6 @@ bool MainSolver::pop()
return false;
}
-PartitionManager & MainSolver::getPartitionManager() { return pmanager; }
-
-sstat MainSolver::getStat... | 1 | 1 | 0 | [{"id": "G0", "claim": "UFInterpolationTest should not create a MainSolver subclass solely to access a protected member; instead it should explicitly track the partitions in each test like LRAInterpolationTest does, so the public API suffices.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "... | null |
usi-verification-and-security__opensmt__701 | usi-verification-and-security/opensmt | 701 | defect | b4490d6c5f7bfa57852be6df428a1c8aac5752e0 | 5260938dc810922bf992f4bb2ded478930d623fe | Add support for unsat cores | We implement basic support for computing unsat cores using our proof
producing capabilities.
We can obtain unsat core by logging resolution proof; the
compact version with resolution chains as logged by CDCL is sufficient.
We can then walk the resolution chains from root to the leaves, and
collect all the original... | diff --git a/Changelog.md b/Changelog.md
index 7a2c29670..ca4f81deb 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,5 +1,6 @@
### 2.6.1 (unreleased)
-
+New features:
+ - Experimental support for unsat cores.
### 2.6.0 (2024-03-06)
New features:
diff --git a/regression/generic/trivial_unsat_core.smt2 b/regressio... | 14 | 11 | 0 | [{"id": "G0", "claim": "The (get-unsat-core) output should follow the standard SMT-LIB format `( a1 a3 )`, not `(a1 a3 )`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A blank line should be added between the argument checks and the body of MainSolver::... | null |
usi-verification-and-security__opensmt__707 | usi-verification-and-security/opensmt | 707 | defect | 8a0cdd5adc7d19c411c7e19fbd5381e9c6977af7 | 23de3bdc0b0c5664575eb7418bc986bf25b857d5 | Add support for unsat core computation for theory combination | This PR enables computation of unsat cores for theory combination by supporting computation of resolution proof for theory combination.
This builds on top of changes in #706, which enables per-partition preprocessing.
Besides preprocessing changes, the only missing feature seemed to be handling unit clauses at level ... | diff --git a/regression/QF_UFLRA/incremental.smt2 b/regression/QF_UFLRA/incremental.smt2
new file mode 100644
index 000000000..d2dedd9a4
--- /dev/null
+++ b/regression/QF_UFLRA/incremental.smt2
@@ -0,0 +1,9 @@
+(set-logic QF_UFLRA)
+(declare-fun f (Real) Real)
+(declare-fun y () Real)
+(declare-fun x () Real)
+(assert ... | 2 | 2 | 0 | [{"id": "G0", "claim": "In logUnitClauseDerivationAtLevelZero the assertion-failure checks should be split into separate assertions so that a failure pinpoints exactly which condition broke.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the ... | null |
usi-verification-and-security__opensmt__73 | usi-verification-and-security/opensmt | 73 | defect | c04f680e327493841b32617e1cc9830efc4170f9 | 8a2369a11d6ca5eef8c6fe313c0352a00cf21108 | Recent refactoring in LRA solver and fixing some issues | This PR contains the following changes:
- Refactoring in LRA solver regarding Delta and iterating over LA variables
- Proper cleaning of LA solver and its components
- Fix for issue #60 when re-running check-sat command on solver in UNSAT state. | diff --git a/regression/generic/check-sat-after-unsat.smt2 b/regression/generic/check-sat-after-unsat.smt2
new file mode 100644
index 000000000..cfc07c0e3
--- /dev/null
+++ b/regression/generic/check-sat-after-unsat.smt2
@@ -0,0 +1,8 @@
+(set-logic QF_LRA)
+(declare-fun v4 () Bool)
+(declare-fun i0 () Real)
+(assert (<... | 5 | 5 | 0 | [{"id": "G0", "claim": "The placement of the scatter-based splitting in CoreSMTSolver::zeroLevelConflictHandler should be temporary, with the splitting moved into a derived class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CoreSMTSolver::addOriginalC... | null |
usi-verification-and-security__opensmt__739 | usi-verification-and-security/opensmt | 739 | defect | 810046a4e3471d2421c0670ed15e00abd20b5404 | fb25417e653f7c5a442050c586e33870cd9491ad | Rewriters: Hide internal details of rewriters | DivModRewriter is exposed to the outside world, but it was broken, because it was including "OsmtInternalException.h" which is not suppose to be exposed and which we do not install. Thus, trying to include "DivModRewriter.h" in another application results in a compilation error.
We fix this problem by hiding the exi... | diff --git a/.clang-files b/.clang-files
index fd31d8c37..26f7f8604 100644
--- a/.clang-files
+++ b/.clang-files
@@ -6,9 +6,10 @@
./src/proof/PGCheck.cc
./src/rewriters/ArithmeticEqualityRewriter.h
./src/rewriters/DistinctRewriter.h
-./src/rewriters/DistinctRewriter.cc
./src/rewriters/DivModRewriter.h
./src/rewrit... | 9 | 5 | 0 | [{"id": "G0", "claim": "The two new `.clang-files` entries should be reordered so `./src/rewriters/Rewritings.h` comes before `./src/rewriters/Rewritings.cc`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Adding `using namespace opensmt::rewritin... | null |
usi-verification-and-security__opensmt__754 | usi-verification-and-security/opensmt | 754 | defect | 74d47da1b37ee3e4366874610d52ea40c20c483f | 4109e855bbac054070a077ae6b2c74c00d16cde7 | Dedicated class for unsat cores | This allows to do more stuff with unsat cores in the future, or even build a class hierarchy. | diff --git a/.clang-files b/.clang-files
index 00a2ceb6f..6b23dff3c 100644
--- a/.clang-files
+++ b/.clang-files
@@ -107,3 +107,6 @@
./src/tsolvers/stpsolver/STPModel.h
./src/tsolvers/stpsolver/STPSolver.h
./src/tsolvers/stpsolver/STPStore.h
+
+./src/unsatcores/UnsatCore.cc
+./src/unsatcores/UnsatCore.h
diff --git a... | 3 | 3 | 2 | [{"id": "G0", "claim": "The local `unsatCoreTerms` reference in Interpret::getUnsatCore should be declared const (`auto const & unsatCoreTerms = unsatCore->getTerms();`) for readability.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The UnsatCore class ... | null |
usi-verification-and-security__opensmt__805 | usi-verification-and-security/opensmt | 805 | defect | d80158a65a0642c6e67fb6578b37a597b5e3b7ed | 86b93e786b3563878d98f8da0ed5c60a86f3ce1b | Moved number-related files into separate directory | I am making changes in the handling of numbers according to PR #751.
As a first step, it will be useful to separate this kind of files into a separate directory.
I do not want to make these renaming changes in one PR because keeping track of the actual modifications would be difficult then. | diff --git a/.clang-files b/.clang-files
index e3e62a49c..6a96950bd 100644
--- a/.clang-files
+++ b/.clang-files
@@ -11,15 +11,16 @@
./src/cnfizers/Tseitin.cc
./src/cnfizers/Tseitin.h
+./src/common/numbers/Integer.h
+./src/common/numbers/Number.h
+./src/common/numbers/Real.h
./src/common/ApiException.h
./src/comm... | 4 | 4 | 0 | [{"id": "G0", "claim": "ArithLogic.cc should not include again the headers already provided by ArithLogic.h — specifically Number.h (the reviewer's clarified scope), and the author also opted to drop FastRational.h from the .cc.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
usi-verification-and-security__opensmt__813 | usi-verification-and-security/opensmt | 813 | defect | fd395e69405b8f6e79ce9fdbde2dbf7fe0631b3d | c28c412ba58aabec55b822efe9eb53ae057b8a34 | Checking that every `Number` of sort Int in `mkConst` is indeed integer | This assertion fails with substitutions and also in `FarkasInterpolator::getFlexibleInterpolant` in `TEST_F(LIAInterpolationTest, test_InterpolationLRASat)`. We should probably forbid such substitutions. In the interpolation, I am not sure if the test makes sense or if the situation must be handled more properly. | diff --git a/src/logics/ArithLogic.cc b/src/logics/ArithLogic.cc
index 74c8b86c7..521d22406 100644
--- a/src/logics/ArithLogic.cc
+++ b/src/logics/ArithLogic.cc
@@ -351,6 +351,45 @@ namespace {
return logic.mkPlus(std::move(args)); // TODO: Can we use non-simplifying versions of mkPlus/mkTimes?
}
+ P... | 2 | 1 | 0 | [{"id": "G0", "claim": "Flexible Farkas interpolation still makes sense even for integer arithmetic, so disabling it is unwarranted; the interpolant probably needs some normalization to avoid rational coefficients instead.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
usi-verification-and-security__opensmt__831 | usi-verification-and-security/opensmt | 831 | defect | ef441e1c2d12dddce5166793e19ea167347fa69e | 9ccc43f387fa1ed45f4bfe16b95e7de0b3c49427 | LA: Remove LAExpression class | LAExpression has only been used now for computation of Farkas interpolants.
We replace the usage with our polynomials. | diff --git a/src/simplifiers/CMakeLists.txt b/src/simplifiers/CMakeLists.txt
index d74784102..4f6b15834 100644
--- a/src/simplifiers/CMakeLists.txt
+++ b/src/simplifiers/CMakeLists.txt
@@ -4,8 +4,6 @@ target_sources(simplifiers
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/BoolRewriting.h"
PRIVATE
- "${CMAKE_CURRENT_SO... | 3 | 1 | 0 | [{"id": "G0", "claim": "The conversion helpers added in FarkasInterpolator are very similar to functions in ArithLogic and should be made available in a shared header and unified rather than living duplicated in implementation files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.