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
, andCrowFeatureAssignmentExpression
.- Parameters:
program (Sequence[CrowBehavior | CrowBehaviorOrderingSuite]) – the program to split.
scope_id (int) – the scope id of the program.
- Returns:
the complex part and the simple part.
- Return type:
Tuple[Sequence[CrowBehavior | CrowBehaviorOrderingSuite], List[ScopedCrowExpression]]