Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Extend Mathsat5 Native Wrapper with API for Proofs #460

Merged
merged 9 commits into from
Mar 22, 2025

Conversation

baierd
Copy link
Collaborator

@baierd baierd commented Mar 19, 2025

This PR extends the Mathsat5 wrapper with API for proofs and adds a small native test for them.

Unfortunately this came up after the merge of the most recent changes. Sorry about that.

@baierd baierd requested a review from kfriedberger March 19, 2025 17:56
@baierd baierd self-assigned this Mar 19, 2025
public static native int msat_proof_id(long proof);

// Cleans up the proof manager and the associated proof
public static native void msat_destroy_proof_manager(long proofMgr);
Copy link
Member

Choose a reason for hiding this comment

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

Request for information, not for action: Are all those methods also available in OptiMathSAT-API or were they added to MathSAT after year 2022?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The API is from 2012, so it should work.

Copy link
Member

@kfriedberger kfriedberger left a comment

Choose a reason for hiding this comment

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

lgtm.

If I should publish a new version of native libraries to Ivy and Maven repository, you might need to wait a few days.

@baierd
Copy link
Collaborator Author

baierd commented Mar 20, 2025

I found a small problem and fixed it.

A new version would be nice once you have the time. @gcarpio21 is currently working on adding a common proof format and MathSAT5 is a good addition.

The return-value for an invalid argument needs to match VOID
if the function-call itself has VOID return type.
The new version comes with proof-support in the API.
The new version comes with proof-support in the API.
Copy link
Member

@kfriedberger kfriedberger left a comment

Choose a reason for hiding this comment

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

This PR is an internal extension of the supported MathSAT5 API.
With future changes, we might use those new functions to access proofs of the solver.

@kfriedberger kfriedberger merged commit a64b568 into master Mar 22, 2025
1 of 3 checks passed
@kfriedberger kfriedberger deleted the extend_mathsat_wrapper_for_proofs branch March 22, 2025 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants