Syntactic methods

Syntactic methods

In software engineering, syntactic methods are techniques for developing correct software programs. The techniques attempt to detect, and thus prevent, certain kinds of defects (bugs) by examining the structure of the code being produced at its syntactic rather than semantic level.

Usage

Syntactic methods are often used when formal methods are not an option, and are often a simpler and, more importantly, cheaper alternative. In non-mission-critical systems, formal methods may prove to be too expensive for the benefit they provide. The costs of modelling, personnel, execution and development may often outweight the benefits gained by preventing possible failures. This approach revolves around the use of an "abstract dependency graph" which is created from the system in question. An abstract dependency graph is a directed graph, a graph of vertices connected by one-way edges. Most often, the vertices and edges of the graph represent the inputs and outputs of functions in or components of the system. By inspecting the created abstract dependency graph, the developer can detect "syntactic anomalies" (or "Preece anomalies") in the system. While anomalies are not always defects, they often provide clues to finding defects in a system. Therefore, the anomalies in a system help point the developer in the right direction in finding defects.

Anomalies

There are four main types of anomaly:

* "Redundancies" – A chunk of the graph is redundant if its terminals can be reached if the chunk is removed from the graph
* "Conflicts" – A system contains conflicts if the same inputs can imply different outputs
* "Circularities" – A loop in the graph indicates a circularity in the system
* "Deficiencies" – A chunk is deficient if a subset of inputs leads to no terminals

While anomalies often point to defects, they can just as easily reflect normal intended functionality in the system. It is up to the developer to look into anomalies in order to determine whether they are clues to problems or simply false alarms.

By creating a visual directed graph of a system, there are several obvious visual flags that indicate the above anomalies:

* a sub-graph with no input is probably missing something important;
* while looking at the transitive closure of a system (all nodes downstream from a node), a node in its own transitive closure indicates a circularity;
* while looking at the transitive closure of a system, subsumption between pairs of rows indicates redundancy;
* conflicts are somewhat more difficult as they become more semantic than syntactic.

When formal methods prove too costly, a system can be checked solely on its syntax. This is not as thorough, as it only looks at a system on a surface level. However, it does give a developer many clues as to where a system's defects may lie.

General References

*"Syntactic theory of software architecture." Dean, Thomas R., Cordy, James R. IEEE Transactions on Software Engineering 21 (4), pp. 302-313 (1995)
*"Syntactic type abstraction" Grossman, D., Morrisett, G., Zdancewic, S. ACM Transactions on Programming Languages and Systems 22 (6), pp. 1037-1080
*"A new algorithm for slicing unstructured programs." Harman, M., Danicic, S. Journal of Software Maintenance and Evolution 10 (6), pp. 415-441
*"Reverse engineering of embedded software using syntactic pattern recognition" Fournigault, M. , Liardet, P.-Y. , Teglia, Y. Trémeau, A. Robert-Inacio, F."Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)" Volume 4277 LNCS - I, 2006, Pages 527-536. (2006)

External links

* [http://www.informatik.uni-hamburg.de/TGI/forschung/projekte/asmics_eng.html "Project: Algebraic and Syntactic Methods in Computer Science (ASMICS 2)"] Université Paris 7, Laboratoire Informatique Théorique et Programmation (working group)
* [http://www.eg.org/EG/DL/Conf/EG83/papers/EUROGRAPHICS_83pp133_142.abstract.pdf "Syntactic Methods in Computer Graphics"] by Pavel Slavik


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Syntactic Structures — is the name of an influential book by Noam Chomsky first published in 1957. Widely regarded as one of the most important texts in the field of linguistics, [For example, see Cohn, Neil. 2003. Visual Syntactic Structures. Emaki Productions.… …   Wikipedia

  • Syntactic pattern recognition — or structural pattern recognition is a form of pattern recognition, where items are presented pattern structures which can take into account more complex interrelationships between features than simple numerical feature vectors used in… …   Wikipedia

  • Language teaching methods — Main article: Language education Language education may take place as a general school subject or in a specialized language school. There are many methods of teaching languages. Some have fallen into relative obscurity and others are widely used; …   Wikipedia

  • Verification and Validation (software) — In software project management, software testing, and software engineering, Verification and Validation (V V) is the process of checking that a software system meets specifications and that it fulfils its intended purpose. It is normally part of… …   Wikipedia

  • Interlingual machine translation — is one of the classic approaches to machine translation. In this approach, the source language, i.e. the text to be translated is transformed into an interlingua, i.e., an abstract language independent representation. The target language is then… …   Wikipedia

  • Interrogative mood — In linguistics and grammar, the interrogative mood (abbreviated int) is an epistemic grammatical mood used for asking questions by inflecting the main verb.[1] Its occurrence is rare. Contents 1 Examples of languages with an interrogative mood …   Wikipedia

  • OCR — Reconnaissance optique de caractères Pour les articles homonymes, voir ROC et OCR. La reconnaissance optique de caractères (ROC), ou encore appelé vidéocodage (traitement postal, chèque bancaire) désigne les procédés informatiques pour la… …   Wikipédia en Français

  • Optical Character Recognition — Reconnaissance optique de caractères Pour les articles homonymes, voir ROC et OCR. La reconnaissance optique de caractères (ROC), ou encore appelé vidéocodage (traitement postal, chèque bancaire) désigne les procédés informatiques pour la… …   Wikipédia en Français

  • Optical character recognition — Reconnaissance optique de caractères Pour les articles homonymes, voir ROC et OCR. La reconnaissance optique de caractères (ROC), ou encore appelé vidéocodage (traitement postal, chèque bancaire) désigne les procédés informatiques pour la… …   Wikipédia en Français

  • Reconnaissance de caractères — Reconnaissance optique de caractères Pour les articles homonymes, voir ROC et OCR. La reconnaissance optique de caractères (ROC), ou encore appelé vidéocodage (traitement postal, chèque bancaire) désigne les procédés informatiques pour la… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”