-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Compile! Project] Issue with some of the ddnnf generated #1
Comments
I have investigated a bit more and I am now sure that there is at least one bug in d4. I have run a test of compiling with d4 and then count the number of model with query-dnnf and the two program disagree but not always. I am attaching the trace of an execution. My implementation and query-dnnf agree on the count. jeremie@jeremie-TUF-GAMING-FX504GM-FX80GM $ ./d4 ../mastermind_06_08_03.net.cnf -out=tmp.ddnnf |
Got a bug for a small instance, maybe related to the issue.
|
It is strange ... actually I changed the output format. |
I am a bit busy, but I will add a description of the format soon. |
Here is an example: The format is more suited for decision-DNNF.
Then, we have edges that link all these nodes together. We have a special index 1 which represents the root. |
In your example, when trying to reason locally on the root node:
do I have the guarantee that the root node is a decision node on 2 and 6 which means that the bottom branch entails 2 and -6, and that the right branch entails 6 and -2 ? |
Also what does it mean when an or node has 2 non zero associated integers ?
|
o is actually about deterministic or node. |
My problem is solved with the last version of d4. |
I don't really understand... |
Yesterday I update the README in order to describe the format. |
Yes I saw that but it does not explain the semantics of
which only explains cases where the node type is followed by a single non zero integer. |
Actually I fixed that, and now you only have the index. /!\ The readme is in progress and the description for the certified part is in construction. |
oh ok |
with current master 021fad8
I still get
|
Strange, I will have a look. Maybe I missed something when I modified the source code. |
I fixed the problem, it comes from the Root node. |
Awesome, thanks! |
Actually the root node is generally not a decision node. |
Well if there is a unit literal it's a decision between False and whatever goes next, right ? |
Oh that's exactly what the example is... I see your point now. |
Hi,
I am working on a Java API to manipulate a DDNNF and I am getting errors when I check that the AND gates are decomposable on some of the DDNNF that I generate using d4, not all of them. Some of the problematic CNF:
https://github.com/diverse-project/samplingfm/blob/master/Benchmarks/FeatureModels/pati.cnf
https://github.com/diverse-project/samplingfm/blob/master/Benchmarks/FeatureModels/cerf.cnf
https://github.com/diverse-project/samplingfm/blob/master/Benchmarks/FeatureModels/olpch2294.cnf
I don't think the problem is in my algorithm, since it's a very simple one and the subroutine are also used in a counting algorithm that give me the same results as d4.
(Note: I am the research engineer recruited on the COMMODE project)
The text was updated successfully, but these errors were encountered: