-
Notifications
You must be signed in to change notification settings - Fork 27
Rethink transformation of edges containing guards with clock variables in the XSTS-UPPAAL transformer #178
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
base: dev
Are you sure you want to change the base?
Conversation
...al.transformation/src/hu/bme/mit/gamma/xsts/uppaal/transformation/CfaActionTransformer.xtend
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,201 @@ | |||
package hu.bme.mit.gamma.xsts.uppaal.transformation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License is missing
I few thoughts:
|
I checked out the |
In the current solution, we first generate the UPPAAL model from the XSTS model without any regard to clocks, perform optimizations on it, then post-process it the following way:
While this method works, it outputs models with an excessive amount of extra locations and edges, making verification slower. My PR takes a completely different approach.
Handling clock references becomes part of the XSTS to UPPAAL transformation step. Guard expressions are processed by
ClockGuardTransformer
. It brings the expression into DNF form only for clock references, meaning the top level OR's operands are going to be a conjunction of clock comparisons and any non-clock expressions. These operands become guards on parallel edges. As an additional optimization, operands that are definitely false don't produce edges.