Skip to content

Fix of implementation of SyrecSynthesis::increase operation #286

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 8, 2025

Conversation

TooMuchDakka
Copy link
Collaborator

@TooMuchDakka TooMuchDakka commented Jul 1, 2025

Description

Fixes #254

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link

codecov bot commented Jul 1, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/algorithms/synthesis/syrec_synthesis.cpp 60.0% 0 Missing and 6 partials ⚠️

📢 Thoughts on this report? Let us know!

@TooMuchDakka
Copy link
Collaborator Author

@burgholzer This PR would be ready for a review if the required patch coverage was hit. Are there any recommendations for how we can increase the patch coverage of a PR where the offending lines are only partially covered (in which the not hit condition should only be triggered in exceptional cases, i.e. if a bug in the implementation exists) if we are only trying to test the public interfaces of the mqt-syrec library. The same issue is currently active in the PR #281.

@burgholzer
Copy link
Member

Okay. I checked all the other PRs and merged where appropriate. Now this can be updated and should also be ready for review then.
Don't worry about the patch coverage if it should still be failing.

@TooMuchDakka TooMuchDakka deleted the adder-fix branch July 3, 2025 12:54
@TooMuchDakka TooMuchDakka restored the adder-fix branch July 3, 2025 13:09
@TooMuchDakka
Copy link
Collaborator Author

Pull request was deleted and closed by mistake due to an incorrect deletion of a local branch thus the PR is reopened.

@TooMuchDakka TooMuchDakka reopened this Jul 3, 2025
@TooMuchDakka TooMuchDakka added c++ Anything related to C++ code fix Changes fixing something that was not working labels Jul 3, 2025
@@ -59,6 +59,94 @@
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());
}

TYPED_TEST_P(BaseSimulationTestFixture, AddAssignWithRightHandSideEqualToVariable) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_AddAssignWithRightHandSideEqualToVariable_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, AddAssignWithRightHandSideEqualToConstant) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_AddAssignWithRightHandSideEqualToConstant_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, AddAssignWithRightHandSideEqualToShiftExpression) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_AddAssignWithRightHandSideEqualToShiftExpression_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, AddAssignWithRightHandSideEqualToUnaryExpression) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_AddAssignWithRightHandSideEqualToUnaryExpression_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, AddAssignWithRightHandSideEqualToNestedExpression) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_AddAssignWithRightHandSideEqualToNestedExpression_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, AddAssignOfBitOfValueOfDimensionOfVariable) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_AddAssignOfBitOfValueOfDimensionOfVariable_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, IncrementAssignOfVariable) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_IncrementAssignOfVariable_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, IncrementAssignOfBitOfVariable) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_IncrementAssignOfBitOfVariable_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, IncrementValueOfDimensionOfVariable) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_IncrementValueOfDimensionOfVariable_defined_ is never read.
}

TYPED_TEST_P(BaseSimulationTestFixture, IncrementBitOfValueOfDimensionOfVariable) {
this->performTestExecutionForCircuitLoadedFromJson(RELATIVE_PATH_TO_TEST_CASE_DATA_JSON_FILE, this->getNameOfCurrentlyExecutedTest());

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_IncrementBitOfValueOfDimensionOfVariable_defined_ is never read.
@TooMuchDakka TooMuchDakka marked this pull request as ready for review July 3, 2025 17:42
@TooMuchDakka
Copy link
Collaborator Author

Merging the changes made in this PR and #297 will result in a merge conflict and will need to be resolved manually after one of the PRs was review and merge into the main branch.

@TooMuchDakka TooMuchDakka requested a review from burgholzer July 8, 2025 15:47
Copy link
Member

@burgholzer burgholzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼 nice work on the documentation of the individual steps!

@burgholzer burgholzer enabled auto-merge (squash) July 8, 2025 16:16
@TooMuchDakka
Copy link
Collaborator Author

@burgholzer Can a manual merge (via a squash of the commits) into the main branch be performed since the required patch coverage is/will not be reached by this PR?

@burgholzer burgholzer disabled auto-merge July 8, 2025 17:28
@burgholzer burgholzer merged commit 611e72b into munich-quantum-toolkit:main Jul 8, 2025
16 of 17 checks passed
@TooMuchDakka TooMuchDakka deleted the adder-fix branch July 19, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Anything related to C++ code fix Changes fixing something that was not working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Simulated results of line-aware synthesized circuit not matching expected values
2 participants