flamapy-z3 2.9.0.dev3__tar.gz → 2.9.0.dev4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/PKG-INFO +3 -3
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy_z3.egg-info/PKG-INFO +3 -3
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy_z3.egg-info/requires.txt +2 -2
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/pyproject.toml +3 -3
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/tests/test_conformance.py +22 -1
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/README.md +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/__init__.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/models/__init__.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/models/z3_model.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/__init__.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/interfaces/__init__.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/interfaces/attribute_optimization.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_all_feature_bounds.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_attribute_optimization.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_backbone.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_configurations.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_configurations_number.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_core_features.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_dead_features.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_false_optional_features.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_feature_bounds.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_satisfiable.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_satisfiable_configuration.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/operations/z3_variable_bounds_complex.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/transformations/__init__.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/transformations/fm_to_z3.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy_z3.egg-info/SOURCES.txt +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy_z3.egg-info/dependency_links.txt +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy_z3.egg-info/entry_points.txt +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy_z3.egg-info/top_level.txt +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/setup.cfg +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/setup.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/tests/test_cardinality_fallback.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/tests/test_tseytin.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/tests/test_z3_backbone.py +0 -0
- {flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/tests/test_z3_metamodel.py +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flamapy-z3
|
|
3
|
-
Version: 2.9.0.
|
|
3
|
+
Version: 2.9.0.dev4
|
|
4
4
|
Summary: z3-plugin for the automated analysis of feature models
|
|
5
5
|
Author-email: Flamapy <flamapy@us.es>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
7
7
|
Project-URL: Homepage, https://github.com/flamapy/z3_metamodel
|
|
8
8
|
Requires-Python: >=3.11
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: flamapy-fw~=2.9.0.
|
|
11
|
-
Requires-Dist: flamapy-fm~=2.9.0.
|
|
10
|
+
Requires-Dist: flamapy-fw~=2.9.0.dev4
|
|
11
|
+
Requires-Dist: flamapy-fm~=2.9.0.dev4
|
|
12
12
|
Requires-Dist: z3-solver~=4.14.1.0
|
|
13
13
|
Provides-Extra: dev
|
|
14
14
|
Requires-Dist: pytest; extra == "dev"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flamapy-z3
|
|
3
|
-
Version: 2.9.0.
|
|
3
|
+
Version: 2.9.0.dev4
|
|
4
4
|
Summary: z3-plugin for the automated analysis of feature models
|
|
5
5
|
Author-email: Flamapy <flamapy@us.es>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
7
7
|
Project-URL: Homepage, https://github.com/flamapy/z3_metamodel
|
|
8
8
|
Requires-Python: >=3.11
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: flamapy-fw~=2.9.0.
|
|
11
|
-
Requires-Dist: flamapy-fm~=2.9.0.
|
|
10
|
+
Requires-Dist: flamapy-fw~=2.9.0.dev4
|
|
11
|
+
Requires-Dist: flamapy-fm~=2.9.0.dev4
|
|
12
12
|
Requires-Dist: z3-solver~=4.14.1.0
|
|
13
13
|
Provides-Extra: dev
|
|
14
14
|
Requires-Dist: pytest; extra == "dev"
|
|
@@ -4,15 +4,15 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "flamapy-z3"
|
|
7
|
-
version = "2.9.0.
|
|
7
|
+
version = "2.9.0.dev4"
|
|
8
8
|
description = "z3-plugin for the automated analysis of feature models"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "GPL-3.0-or-later"
|
|
11
11
|
authors = [{ name = "Flamapy", email = "flamapy@us.es" }]
|
|
12
12
|
requires-python = ">=3.11"
|
|
13
13
|
dependencies = [
|
|
14
|
-
"flamapy-fw~=2.9.0.
|
|
15
|
-
"flamapy-fm~=2.9.0.
|
|
14
|
+
"flamapy-fw~=2.9.0.dev4",
|
|
15
|
+
"flamapy-fm~=2.9.0.dev4",
|
|
16
16
|
"z3-solver~=4.14.1.0",
|
|
17
17
|
]
|
|
18
18
|
|
|
@@ -13,6 +13,7 @@ import os
|
|
|
13
13
|
|
|
14
14
|
import pytest
|
|
15
15
|
|
|
16
|
+
from flamapy.core.exceptions import FlamaException
|
|
16
17
|
from flamapy.metamodels.fm_metamodel.transformations import UVLReader
|
|
17
18
|
from flamapy.metamodels.z3_metamodel.transformations import FmToZ3
|
|
18
19
|
from flamapy.metamodels.z3_metamodel.operations import Z3Satisfiable
|
|
@@ -39,8 +40,12 @@ CASES = [
|
|
|
39
40
|
("arith_sum.uvl", True),
|
|
40
41
|
("arith_div_exact.uvl", True),
|
|
41
42
|
("div_real.uvl", True), # 12 / 8 == 1.5 — integer division would make this UNSAT (#3)
|
|
42
|
-
# aggregate
|
|
43
|
+
# aggregate: avg divides by the number of SELECTED bearers (#5), so the result is
|
|
44
|
+
# selection-sensitive, not the constant declaring-feature count.
|
|
43
45
|
("agg_avg_clean.uvl", True),
|
|
46
|
+
("agg_avg_selected_sat.uvl", True), # avg(X)==9 only when the optional bearer is selected
|
|
47
|
+
("agg_avg_selected_unsat.uvl", False), # avg(X)==5 holds in no configuration
|
|
48
|
+
("agg_avg_two_optionals.uvl", True), # avg(X)==6 only when both bearers are selected
|
|
44
49
|
# functions
|
|
45
50
|
("floor_ceil.uvl", True), # floor()/ceil() must be supported (#4)
|
|
46
51
|
# string
|
|
@@ -56,3 +61,19 @@ CASES = [
|
|
|
56
61
|
@pytest.mark.parametrize("name, expected", CASES)
|
|
57
62
|
def test_conformance_satisfiable(name: str, expected: bool):
|
|
58
63
|
assert _satisfiable(name) == expected
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
# Ill-formed models: the reference oracle reports a model-error (a constraint over an attribute or a
|
|
67
|
+
# feature that does not exist). The backend must reject these with a FlamaException, not return a
|
|
68
|
+
# satisfiability result for a model it cannot faithfully encode.
|
|
69
|
+
INVALID = [
|
|
70
|
+
"invalid_avg_undeclared_attribute.uvl", # avg() over an attribute no feature declares
|
|
71
|
+
"invalid_dangling_feature_reference.uvl", # a constraint names a feature that does not exist
|
|
72
|
+
"invalid_dotted_unknown_feature.uvl", # Feature.Attribute whose feature does not exist
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@pytest.mark.parametrize("name", INVALID)
|
|
77
|
+
def test_conformance_invalid_is_rejected(name: str):
|
|
78
|
+
with pytest.raises(FlamaException):
|
|
79
|
+
_satisfiable(name)
|
|
File without changes
|
|
File without changes
|
{flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/models/__init__.py
RENAMED
|
File without changes
|
{flamapy_z3-2.9.0.dev3 → flamapy_z3-2.9.0.dev4}/flamapy/metamodels/z3_metamodel/models/z3_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|