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

wmc in the FFI #184

Merged
merged 5 commits into from
Dec 10, 2023
Merged

wmc in the FFI #184

merged 5 commits into from
Dec 10, 2023

Conversation

stites
Copy link
Member

@stites stites commented Oct 24, 2023

breaks rsdd-ocaml since I've removed bdd_new_var. Happy to add it back, but I think the FFI library should be responsible for the sugar that new_var was intended to provide.

@stites stites requested a review from mattxwang October 24, 2023 14:50
bdd: *mut BddPtr<'static>,
wmc: *mut WmcParams<RealSemiring>,
) -> f64 {
DDNNFPtr::unsmoothed_wmc(&(*bdd), &(*wmc)).0
Copy link
Member

Choose a reason for hiding this comment

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

@stites should this be unsmoothed? If the weights don't add up to 1.0, this will give you an inaccurate WMC (I think this is why I didn't add this in the first pass).

@minsungc
Copy link
Collaborator

minsungc commented Dec 8, 2023

@stites can you resolve the merge conflicts (seems to be from nix)? I want to merge this to unblock Cameron.

@mattxwang
Copy link
Member

FYI @minsungc this shouldn't break rsdd-ocaml since it doesn't use the FFI bindings, so once the merge conflict is resolved (and potentially the FFI CI check is fixed) you should be good to merge.

@minsungc minsungc merged commit 01a7723 into neuppl:main Dec 10, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants