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

wrong result for comparison #58

Open
acherm opened this issue Jun 13, 2023 · 0 comments
Open

wrong result for comparison #58

acherm opened this issue Jun 13, 2023 · 0 comments

Comments

@acherm
Copy link
Collaborator

acherm commented Jun 13, 2023

 @Test
    public void testMIP3() throws Exception {

        FeatureModelVariable fmv = FM("fm1", "A: [C] B [D] U ; D: (E|F) ; ");
        FeatureModelVariable fmv2 = FM ("fm2", "A: [H] B [D] U ; D: (E|F) ; ");

        System.err.println(fmv.compare(fmv2)); 
        System.err.println(fmv.compareBDD(fmv2, _builder)); 
         
        System.err.println(fmv.compareSAT_Formula(fmv2));
        System.err.println(new SATFormulaComparator(SATFMLFormula.SAT_TIMEOUT).compare(new SATFeatureIDEFormula(fmv2), new SATFeatureIDEFormula(fmv)));


    }

REFACTORING
REFACTORING
ARBITRARY
ARBITRARY

ARBITRARY is the correct result.
Seems H and C are not negated in fm1 when domain varies (see also #22).
Strange, since it's pretty trivial

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

No branches or pull requests

1 participant