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

Expose phase/unphase in the C API #65

Open
sfiruch opened this issue Sep 6, 2023 · 2 comments
Open

Expose phase/unphase in the C API #65

sfiruch opened this issue Sep 6, 2023 · 2 comments

Comments

@sfiruch
Copy link

sfiruch commented Sep 6, 2023

It would be useful to have the phase and unphase functions exposed in the C interface:

void ccadical_phase (CCaDiCaL *wrapper, int lit) {
  ((Wrapper *) wrapper)->solver->phase (lit);
}

void ccadical_unphase (CCaDiCaL *wrapper, int lit) {
  ((Wrapper *) wrapper)->solver->unphase (lit);
}
@Dekker1
Copy link

Dekker1 commented Oct 2, 2023

In general I think it would make it much easier for other languages to connect if the features from the IPASIR-UP interface were available from C. I might be able to commit some time to writing this C-interface, if there is interest from the maintainers.

@arminbiere
Copy link
Owner

Thanks, nice enhancement proposal. Regarding IPASIR-UP, please hold your breath. IPASIR-UP is not completely stable yet. We have some additional insights and are working on it. Of course if this gets more stable we will also add a C interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants