Patent ID: 8868401

Claim:
A method comprising: storing, in a memory: a graphical model having: a plurality of interconnected, executable graphical blocks, where: each graphical block of the graphical model has one or more graphical block parameters, and at least one of the executable graphical blocks is a target graphical block, and a data structure storing block parameters and object properties; receiving an identification of the target graphical block; identifying occurrences of the target graphical block in the graphical model; retrieving, for each occurrence of the target graphical block in the graphical model, the one or more block parameters; mapping the graphical one or more block parameters retrieved for the respective occurence of the target graphical block to respective object properties using the data structure; generating, for each occurrence of the target graphical block in the graphical model, an object-oriented, executable textual string that includes at least one command to: instantiate an object having functionality that matches the target graphical block, set one or more properties of the instantiated object based on the one or more block parameters retrieved for the respective occurrence of the target graphical block, and run the instantiated object, the generating performed automatically by a processor coupled to the memory; executing each generated textual string to produce at least one object output; executing the graphical model to produce at least one model output; comparing the at least one object output with the at least model output; and verifying the textual string generated for each occurrence of the target graphical block based on the comparing.