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

Error report in Logical Constraints #376

Open
hfaghihi15 opened this issue Apr 28, 2023 · 0 comments
Open

Error report in Logical Constraints #376

hfaghihi15 opened this issue Apr 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hfaghihi15
Copy link
Collaborator

To ease the process of understanding errors in the logical constraint, I think it is best if we throw errors whenever the logical interface has unexpected errors.

For instance, consider the following example:

forAllL(
        combinationC(step, entity)('i', 'e'),
        ifL(
            action_label.move('a1', path=(('i', action_step.reversed), ('e', action_entity.reversed))),
            ifL(
                entity_location_before_label('el1', path=(
                                ("e", lentity.reversed),
                                ("i", lstep.reversed)
                            )
                ),
                notL(
                    entity_location_label('el2', path=(
                                        ("e", lentity.reversed),
                                        ("i", lstep.reversed),
                                        ('e1', llocation, llocation.reversed)
                                    )
                        )
                )
            )
        )
    )

Here, e1 is wrongly used instead of el1. This should throw error since e1 does not exist in the logical constraints.
@auszok

@hfaghihi15 hfaghihi15 added the bug Something isn't working label Apr 28, 2023
@auszok auszok added enhancement New feature or request and removed bug Something isn't working labels Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants