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

Resolution of inline atom in no_inline clause #2471

Closed
wants to merge 1 commit into from

Conversation

quentin
Copy link
Member

@quentin quentin commented Mar 4, 2024

When the clause of a no_inline relation contains an atom of an inline relation, the atom is not inlined. Hence the inline relation should appear as a normal relation to support non inlined atoms.

The interpretation is as follows:

  • do not inline any atom in clauses of relations marked no_inline.
  • inline atoms of relations marked inline, except in clauses of relations marked no_inline.

The fix consists in removing the inline mark on every relations at the end of the InlineRelationsTransformer pass.

fix #2318

When the clause of a `no_inline` relation contains an atom of an
`inline` relation, the atom is not inlined. Hence the `inline` relation
should appear as a normal relation to support non inlined atoms.

The interpretation is as follows:
- do not inline any atom in clauses of relations marked `no_inline`.
- inline atoms of relations marked `inline`, except in clauses of
  relations marked `no_inline`.

The fix consists in removing the `inline` mark on every relations at the
end of the InlineRelationsTransformer pass.

fix souffle-lang#2318
@quentin quentin closed this Mar 4, 2024
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.

A problem about ungrounded variable
1 participant