-
Notifications
You must be signed in to change notification settings - Fork 21
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
Makefile silent when addone function doesn't exist #134
Comments
We could ponder adding |
I tried The only problem is that, the output is not user friendly. First there already exists variables in |
What is addone? Is this a Makefile macro that you would like to define? A reasonable place to put this definition would be in the Makefile-project-defines. |
It's a macro used in e.g. ESDK-C |
Let's use this as an example in the training material of something that would be useful to add to the makefile project defines. |
When
addone
function is not defined but used in UNWINDSET like below:UNWINDSET += somefunction.0:$(call addone,$(SOME_LEN))
The Makefile won't generate an error, instead I observe that the proof will not terminate. I'm guessing it is because the unwinding level is treated as infinite and CBMC just keeps unwinding the loop.
It will be nicer if an error is generated saying
addone
is not defined. Or another fix is to add theaddone
definition into the Makefiles generated by cbmc-started-kit, since it is probably needed for loop unwinding proofs.The text was updated successfully, but these errors were encountered: