You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each relation declared as an output of a function needs to be declared first, or else we get an (Error) Unknown type for: xxx yyy.
But it is possible to use a relation with one arity in some function's output while declaring (prior or subsequently) a relation of the same name with different arity.
The crash seems to be happening only if there is just one arity version of the relation being used as the output of another function with contradicting arity version (if the relation itself was declared twice with different arities then this error would be prioritised and handled gracefully with for example: (Error) Argument arity mismatch. yes_it_is() : bf/[0]3 declared as bf/[0]2 ).
Steps to Reproduce
Step 1: What input did you first provide?
is_one(1) := yes_it_is(1)
yes_it_is(0,0) := 0
n is_one(1)
Step 2: Any additional input to Tau? Expected Result
Arity mismatch error message. Actual Result
Segmentation fault without any warnings or error messages.
Additional Information
Error Messages or Logs:
Segmentation fault (core dumped)
Screenshots:
When arity in both cases matches:
When there's mismatch between arity used as an output and type declaration:
Severity and Impact
Severity Level: Minor
Impact on Work: Crash
Workaround (if applicable)
Using the same arity of the corresponding relations in other functions definitions as in their original declarations.
Contact Information
Name: pt7k
Email: Telegram @ksdjfskfh
Additional Notes: Any other message for the Tau Team
Dear Lucca,
I just wanted to add that one does not need to necessarily invoke another function to trigger this.
You could just as easily make a slip up while entering one too many/few arguments compared to what was originally declared and your REPL goes boom.
Summary
Environment
Steps to Reproduce
Step 1: What input did you first provide?
Step 2: Any additional input to Tau?
Expected Result
Arity mismatch error message.
Actual Result
Segmentation fault without any warnings or error messages.
When there's mismatch between arity used as an output and type declaration:
Severity and Impact
Workaround (if applicable)
Contact Information
Submission Instructions
mydemo_arity_test1.tau.txt
mydemo_arity_test2.tau.txt
The text was updated successfully, but these errors were encountered: