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

[BUG] CN cannot be interrupted mid-proof #104

Open
podhrmic opened this issue Jun 19, 2024 · 2 comments
Open

[BUG] CN cannot be interrupted mid-proof #104

podhrmic opened this issue Jun 19, 2024 · 2 comments
Labels
bug Something isn't working CN Issues related to the CN tool
Milestone

Comments

@podhrmic
Copy link
Collaborator

When CN runs a proof, it does not respond to Ctrl+C command and thus cannot be terminated early.

For example (this is the OpenSUT example):

# cd VERSE-OpenSUT/components/mission_protection_system/src
# cn -I include --include=include/wars.h --magic-comment-char-dollar components/instrumentation.c
[1/15]: instrumentation_set_output_trips
[2/15]: instrumentation_handle_command
[3/15]: instrumentation_step_trip
^C[4/15]: instrumentation_step
[5/15]: c_NDEV
[6/15]: c_NVOTE_LOGIC
[7/15]: c_S
[8/15]: c_P
[9/15]: c_T
[10/15]: c_NTRIP
[11/15]: c_TRIP
[12/15]: c_OPERATE
[13/15]: c_BYPASS
[14/15]: c_NMODES
[15/15]: c_NINSTR

Note the ^C got send to the program (after [3/15]: instrumentation_step_trip), but CN didn't terminate until all proofs were completed.

@podhrmic podhrmic added bug Something isn't working CN Issues related to the CN tool labels Jun 19, 2024
@podhrmic podhrmic added this to the MVP 2 milestone Jun 19, 2024
@peterohanley
Copy link
Collaborator

instrumentation_step takes a really long time but I wasn't sure if it counted as a bug. It doesn't seem to be doing anything especially weird.

@podhrmic
Copy link
Collaborator Author

It is not that it takes a long time to finish, more the fact that CN is unresponsive during that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CN Issues related to the CN tool
Projects
None yet
Development

No branches or pull requests

2 participants