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

Patch: models store unique nodes #90

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

NaweedAghmad
Copy link
Collaborator

For a given node syntax, the model stores only one instance of that node.
API changes require leaf nodes to be instanciated with a model attached to it, with connective formulae inheriting the model from a child node.

Signed-off-by: naweedkhan <[email protected]>
Signed-off-by: naweedkhan <[email protected]>
Signed-off-by: naweedkhan <[email protected]>
Signed-off-by: naweedkhan <[email protected]>
Signed-off-by: naweedkhan <[email protected]>
Signed-off-by: naweedkhan <[email protected]>
All leaf formulae have to be instantiated with a model.
e.g. `P = Predicate("P", model=m)`
connective formulae automatically inherit the model from one of the children. All formulae nodes are automatically attached to the model graph. The model enforces unique naming for nodes attached to its graph.

- rename connective_str -> syntax
- rename node_structure -> node_syntax
- fix numbering convention of the nodes attached to the model
- fixed naming of nodes to enforce a unique node per model - based on the model syntax.

Signed-off-by: naweedkhan <[email protected]>
Signed-off-by: naweedkhan <[email protected]>
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.

1 participant