Patent ID: 8881097

Claim:
A method comprising: interacting with an independent state machine object, the independent state machine object belonging to a statechart, the interacting performed using a computer; instantiating a plurality of instances of the independent state machine object, the instantiating performed using the computer; identifying a first one of the plurality of instances of the independent state machine object and a second one of the plurality of instances of the independent state machine object based on a finding that the first one of the plurality of instances contains a variable that is able to share access to a memory location with a variable of the second one of the plurality of instances, the identifying performed using the computer, wherein: the first one of the plurality of instances of the independent state machine object includes a state hierarchy with local data and local events, and symbol resolution is performed within a chart containing a definition of the independent state machine object and external to a boundary of one of the plurality of instances of the independent state machine object or the second one of the plurality of instances of the independent state machine object; and generating code automatically for the first one of the plurality of instances of the independent state machine object and the second one of the plurality of instances of the independent state machine object based on the identifying, the generated code including the variables that are able to share access to the memory location, the generating performed using the computer.