concepts.dm.crow.planners.regression_utils.split_simple_sequential#

split_simple_sequential(program, scope_id)[source]#

Split a program into a complex part and a simple part. The simple part is a list of statements that can be executed sequentially. This function extracts a suffix of the program containing only CrowAssertExpression, CrowControllerApplicationExpression, CrowBindExpression, CrowUntrackExpression, CrowRuntimeAssignmentExpression, and CrowFeatureAssignmentExpression.

Parameters:
Returns:

the complex part and the simple part.

Return type:

Tuple[Sequence[CrowBehavior | CrowBehaviorOrderingSuite], List[ScopedCrowExpression]]