发明名称 Graphically scoped C-functions inside stateflow
摘要 A device may select a program code function associated with a graphical model. The program code function may include a set of identifiers. The device may select an identifier from the set of identifiers. The device may determine a particular set of entities that are referenceable at a program code location of the identifier. The particular set of entities may include a first set of entities of the program code function for which the identifier is within a lexical scope of the first set of entities and a second set of entities of the graphical model for which the program code function is within the graphical scope of the second set of entities. The device may determine whether the identifier corresponds to a particular entity of the particular set of entities. The device may provide information associated with determining whether the identifier corresponds to the particular entity.
申请公布号 US9256406(B1) 申请公布日期 2016.02.09
申请号 US201514600529 申请日期 2015.01.20
申请人 The MathWorks, Inc. 发明人 Mestchian Ebrahim
分类号 G06F9/44 主分类号 G06F9/44
代理机构 Harrity & Harrity, LLP 代理人 Harrity & Harrity, LLP
主权项 1. A device, comprising: one or more processors to: select a program code function associated with a graphical model, the program code function including a set of identifiers;select an identifier of the set of identifiers;determine a particular set of entities that are referenceable at a program code location of the identifier, the particular set of entities including: a first set of entities of the program code function for which the identifier is within a lexical scope of the first set of entities, anda second set of entities of the graphical model for which the program code function is within a graphical scope of the second set of entities,the program code function being a C-function associated with C programming language, andwhere the one or more processors, when determining the particular set of entities that are referenceable at the program code location of the identifier, are further to: determine one or more entities of the C-function that are referenceable at the program code location of the identifier, determine a lexical scope within the C-function for the one or more entities of the C-function, and select, as the first set of entities of the program code function, the one or more entities of the C-function that are referenceable at the program code location of the identifier based on the lexical scope of the one or more entities of the C-function;determine whether the identifier corresponds to a particular entity of the particular set of entities that are referenceable at the program code location of the identifier; andprovide information associated with determining whether the identifier corresponds to the particular entity.
地址 Natick MA US