Ask Your Question
4

When utilizing the Promela c_expr primitive with the SPIN model checker, what is the problem of side effects error?

asked 2023-05-16 06:27:05 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-16 06:32:01 +0000

ladyg gravatar image

The problem of side effects error occurs when using the Promela cexpr primitive with the SPIN model checker because cexpr allows for arbitrary C expressions to be evaluated within a Promela process. If the C expression contains side effects such as modifying global variables, accessing external resources, or invoking functions with side effects, it can lead to non-deterministic behavior and make the verification of the system incorrect. These side effects can also cause the model checking process to become more complex and time-consuming. To avoid this problem, it is recommended to avoid using c_expr and instead use Promela's built-in constructs for expressing system behavior.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-16 06:27:05 +0000

Seen: 8 times

Last updated: May 16 '23