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

Warning for different terms with same name #16

Open
woosh opened this issue Jun 19, 2024 · 3 comments
Open

Warning for different terms with same name #16

woosh opened this issue Jun 19, 2024 · 3 comments
Labels
question Further information is requested

Comments

@woosh
Copy link
Collaborator

woosh commented Jun 19, 2024

When running the test case regression-tests/toh-contract-translation/multadd-1.c the following warning is issued

Warning: The following clause has different terms with the same name (term: b:12)
main_12(@h_post, a_post, b_post, result_post, a_init_post, b_init_post) :- main39_3(@h, a:11, b:12, result:13, a_init:14, b_init:15, a:11, b:12, result:13), addTwoNumbers_post(@h, a:11, b:12
, result:13, a_init:14, b_init:15, a:11, b:12, result:13, @h_post, a_post, b_post, result_post, a_init_post, b_init_post).

The test passes, but the warning seems to indicate that something in the naming of terms is off.

@zafer-esen
Copy link
Collaborator

This warning is enabled when using -dev to aid development, where a common (and very hard to debug) bug arises from using same-named but semantically different terms, but this could also be intended (often as a result of merging clauses).

@woosh
Copy link
Collaborator Author

woosh commented Jun 19, 2024

Right! But maybe we should close this issue then, since it is a known behavior, and sometimes even the intended one.

@zafer-esen
Copy link
Collaborator

I will try to see if the warning is expected behavior in this benchmark, let's maybe keep the issue open until then.

@zafer-esen zafer-esen added the question Further information is requested label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants