encyclopegia.org

Flow chart language

Flow chart language (FCL) is a simple imperative programming language designed for the purposes of explaining fundamental concepts of program analysis and specialization, in particular, partial evaluation.[src] The language was first presented in 1989 by Carsten K.[src] Gomard and Neil D.[src] Jones.[src] It later resurfaced in their book with Peter Sestoft in 1993, and in John Hatcliff's lecture notes in 1998.[src] The below describes FCL as it appeared in John Hatcliff's lecture notes.[src] FCL is an imperative programming language close to the way a Von Neumann computer executes a program.[src] A program is executed sequentially by following a sequence of commands, while maintaining an implicit state, i.e.[src] the global memory.[src] FCL has no concept of procedures, but does provide conditional and unconditional jumps.[src] FCL lives up to its name as the abstract call-graph of an FCL program is a straightforward flow chart.[src] An FCL program takes as input a finite series of named values as parameters, and produces a value as a result.[src]

Flow chart language (FCL) is a simple imperative programming language designed for the purposes of explaining fundamental concepts of program analysis and specialization, in particular, partial evaluation.[src] The language was first presented in 1989 by Carsten K.[src] Gomard and Neil D.[src] Jones.[src] It later resurfaced in their book with Peter Sestoft in 1993, and in John Hatcliff's lecture notes in 1998.[src] The below describes FCL as it appeared in John Hatcliff's lecture notes.[src] FCL is an imperative programming language close to the way a Von Neumann computer executes a program.[src] A program is executed sequentially by following a sequence of commands, while maintaining an implicit state, i.e.[src] the global memory.[src] FCL has no concept of procedures, but does provide conditional and unconditional jumps.[src] FCL lives up to its name as the abstract call-graph of an FCL program is a straightforward flow chart.[src] An FCL program takes as input a finite series of named values as parameters, and produces a value as a result.[src] ==Syntax== We specify the syntax of FCL using Backus–Naur form.[src] An FCL program is a list of formal parameter declarations, an entry label, and a sequence of basic blocks: ::= "(" * ")" "(" ")" + Initially, the language only allows non-negative integer variables.[src] A basic block consists of a label, a list of assignments, and a jump.[src] ::= ":" * An assignment assigns a variable to an expression.[src] An expression is either a constant, a variable, or application of a built-in n-ary operator: := ":=" := | | "(" * ")" Note, variable names occurring throughout the program need not be declared at the top of the program.[src] The variables declared at the top of the program designate arguments to the program.[src] As values can only be non-negative integers, so can constants.[src] The list of operations in general is irrelevant, so long as they have no side effects, which includes exceptions, e.g.[src] division by 0: ::= "0" | "1" | "2" | ...[src] ::= "+" | "-" | "*" | "=" | " " | ...[src] Where , , ...[src] have semantics as in C.[src] The semantics of is such that if x-y th Fibonacci number, for n>2: (n) (init) init: x1 = 1 x2 = 1 fib: x1 = x1 + x2 t = x1 x1 = x2 x2 = t n = -(n 1) if >(n 2) then fib else exit exit: return x2 Where the loop invariant of is that x1 is the (i+2-1) th and x2 is the (i+2) th Fibonacci number, where i is the number of times has been jumped to.[src] We can check the correctness of the method for n=4 by presenting the execution trace of the program: \begin{align} & \left(\mathtt{init},\ \left[ n \mapsto 4,\ x1 \mapsto 0,\ x2 \mapsto 0,\ t \mapsto 0\right]\right) \\ \rightarrow & \left(\mathtt{fib},\ \left[ n \mapsto 4,\ x1 \mapsto 1,\ x2 \mapsto 1,\ t \mapsto 0\right]\right) \\ \rightarrow & \left(\mathtt{fib},\ \left[ n \mapsto 3,\ x1 \mapsto 1,\ x2 \mapsto 2,\ t \mapsto 0\right]\right) \\ \rightarrow & \left(\left\langle\mathtt{halt},\ 3\right\rangle,\ \left[ n \mapsto 2,\ x1 \mapsto 2,\ x2 \mapsto 3,\ t \mapsto 0\right]\right) \end{align} Where \left\langle\mathtt{halt},\ v\right\rangle marks a final state of the program, with the return value v .[src] ==Variants== ===Reversible flow chart language=== Reversible flow chart language (RL) is a simple reversible imperative programming language designed for reversible computing, where each computational process is reversible.[src] RL combines step, test, and assertion in a way that ensures the reversibility of the programs.[src] RL emphasizes the construction of reversible programs that permit deterministic backward computation, ensuring that no information is lost during processing.[src] This characteristic makes it distinct from traditional flow chart languages, which usually involve irreversible operations.[src] The syntax and example programs for RL would closely resemble traditional flow chart languages but with added constraints to ensure reversibility.[src] These include reversible loops, reversible conditional, and invertibility of atomic computation steps.[src] Due to the reversibility constraint, RL has less computational power than conventional Turing machines but is equivalent to reversible Turing machines (RTMs), laying the foundation for reversible programming.[src] The reversible variant of the structured program theorem, for instance, can be effectively analyzed using RL, showcasing its significance in the theoretical bases of reversible computing.[src] There is also a structured variant of RL (SRL: structured reversible flow chart language) that combines sequence, selection, and iteration in a way that ensures the reversibility of the programs.[src] ==References==[src]

48 sentences · 48 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Flow chart language." encyclopegia.org, 2025, https://encyclopegia.org/wiki/flow-chart-language. Accessed 25 November 2026.

Chicago

"Flow chart language." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/flow-chart-language.

APA

encyclopegia.org. (2025). Flow chart language. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/flow-chart-language

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

official language

stub · references available

pan-Slavic language

stub · references available

Hawaiʻi Sign Language

stub · references available

Taiwanese Sign Language

stub · references available

International Mother Language Day

stub · references available

polysynthetic language

stub · references available

Category:Films by country or language

stub · references available

payment flow

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1312999914 · 0.5 · snapshot enwiki-001312999914

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.