Skip to content
Snippets Groups Projects
Commit 9c794ad4 authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Product Line Analysis: Enables access to null elements of translation


The map if EClass to Z3 null elements can be accessed via a getter.

Issue-ref: 4240
Issue-URL: af3#4240

Signed-off-by: default avatarAndreas Bayha <bayha@fortiss.org>
parent bb225e2b
No related branches found
No related tags found
1 merge request!1784240
Pipeline #37765 canceled
Pipeline: maven-releng

#37766

    ......@@ -249,7 +249,8 @@ public class ProductLineBaseAnalysis {
    FuncDecl selFun = translation.eClass2SelectionFunction.get(cls);
    BoolExpr selected = (BoolExpr)ctx.mkApp(selFun, var);
    BoolExpr notNull = ctx.mkNot(ctx.mkEq(var, translation.eClass2NullElement.get(cls)));
    BoolExpr notNull =
    ctx.mkNot(ctx.mkEq(var, translation.getEClass2NullElement().get(cls)));
    selExprs[i] = ctx.mkAnd(selected, notNull);
    }
    ......
    ......@@ -793,4 +793,9 @@ public class ProductLineBaseTranslation {
    public Context getContext() {
    return ctx;
    }
    /** Returns eClass2NullElement. */
    public Map<EClass, Expr> getEClass2NullElement() {
    return eClass2NullElement;
    }
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment