<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Abstracting an operational semantics to automata nite</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>IRIT (Institut de Recherche en Informatique de Toulouse) Universite de Toulouse</institution>
          ,
          <addr-line>France firstname.lastname @irit.fr</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Nadezhda Baklanova</institution>
          ,
          <addr-line>Wilmer Ricciotti, Jan-Georg Smaus, Martin Strecker</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>There is an apparent similarity between the descriptions of small-step operational semantics of imperative programs and the semantics of nite automata, so de ning an abstraction mapping from semantics to automata and proving a simulation property seems to be easy. This paper aims at identifying the reasons why simple proofs break, among them artifacts in the semantics that lead to stuttering steps in the simulation. We then present a semantics based on the zipper data structure, with a direct interpretation of evaluation as navigation in the syntax tree. The abstraction function is then de ned by equivalence class construction.</p>
      </abstract>
      <kwd-group>
        <kwd>Programming language semantics</kwd>
        <kwd>Abstraction</kwd>
        <kwd>Finite Automata</kwd>
        <kwd>Formal Methods</kwd>
        <kwd>Veri cation Key Terms</kwd>
        <kwd>FormalMethod</kwd>
        <kwd>Veri cationProcess</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Among the formalisms employed to describe the semantics of transition systems,
two particularly popular choices are abstract machines and structural
operational semantics (SOS). Abstract machines are widely used for modeling and
verifying dynamic systems, e.g. nite automata, Buchi automata or timed
automata [
        <xref ref-type="bibr" rid="ref1 ref4 ref9">9,4,1</xref>
        ]. An abstract machine can be represented as a directed graph
with transition semantics between nodes. The transition semantics is de ned by
moving a pointer to a current node. Automata are a popular tool for modeling
dynamic systems due to the simplicity of the veri cation of automata systems,
which can be carried out in a fully automated way, something that is not
generally possible for Turing-complete systems.
      </p>
      <p>
        This kind of semantics is often extended by adding a background state
composed of a set of variables with their values: this is the case of timed automata,
which use background clock variables [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The Uppaal model checker for timed
automata extends the notion of background state even further by adding
integer and Boolean variables to the state [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] which, however, do not increase the
computational power of such timed automata but make them more convenient
to use.
      </p>
      <p>
        Another formalism for modeling transition systems is structural semantics
(\small-step", contrary to \big-step" semantics which is much easier to handle
but which is inappropriate for a concurrent setting), which uses a set of reduction
rules for simplifying a program expression. It has been described in detail in [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]
and used, for example, for the Jinja project developing a formal model of the
Java language [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. An appropriate semantic rule for reduction is selected based
on the expression pattern and on values of some variables in a state. As a result
of reduction the expression and the state are updated.
(Assign v expr; s) ! (U nit; s0)
[Assignment]
      </p>
      <p>
        This kind of rules is intuitive; however, the proofs involving them require
induction over the expression structure. A di erent approach to writing a
structural semantics was described in [
        <xref ref-type="bibr" rid="ref12 ref3">3,12</xref>
        ] for the CMinor language. It uses a notion
of continuation which represents an expression as a control stack and deals with
separate parts of the control stack consecutively.
      </p>
      <p>(Seq e1 e2
; s) ! (e1 e2
; s)
(Empty
; s) ! ( ; s)</p>
      <p>Here the \ " operator designates concatenation of control stacks. The
semantics of continuations does not need induction over the expression, something
which makes proof easier; however it requires more auxiliary steps for
maintaining the control stack which do not have direct correspondance in the modeled
language.</p>
      <p>
        For modeling non-local transfer of control, Krebbers and Wiedijk [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] present
a semantics using (non-recursive) \statement contexts". These are combined
with the above-mentioned continuation stacks. The resulting semantics is
situated mid-way between [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and the semantics proposed below.
      </p>
      <p>
        The present paper describes an approach to translation from structural
operational semantics to nite automata extended with background state. All the
considered automata are an extension of Buchi automata with background state,
i.e. they have a nite number of nodes and edges but can produce an in nite
trace. The reason of our interest in abstracting from structural semantics to
Buchi automata is our work in progress [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. We are working on a static analysis
algorithm for nding possible resource sharing con icts in multithreaded Java
programs. For this purpose we annotate Java programs with timing information
and then translate them to a network of timed automata which is later model
checked. The whole translation is formally veri ed. One of the steps of the
translation procedure includes switching from structural operational semantics of a
Java-like language to automata semantics. During this step we discovered some
problems which we will describe in the next section. The solutions we propose
extend well beyond the problem of abstracting a structured language to an
automaton. It can also be used for compiler veri cation, which usually is cluttered
up with arithmetic adress calculation that can be avoided in our approach.
      </p>
      <p>
        The contents of the paper has been entirely formalized in the Isabelle proof
assistant [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. We have not insisted on any Isabelle-speci c features, therefore
this formalization can be rewritten using other proof assistants. The full Isabelle
formal development can be found on the web [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Problem Statement</title>
      <p>We have identi ed the following as the main problems when trying to prove the
correctness of the translation between a programming language semantics and
its abstraction to automata:
1. Preservation of execution context: an abstract machine always sees all the
available nodes while a reduced expression loses the information about
previous reductions.
2. Semantic artifacts: some reduction rules are necessary for the functionality of
the semantics, but may be missing in the modeled language. Additionally, the
rules can produce expressions which do not occur in the original language.</p>
      <p>
        These problems occur independently of variations in the presentation of
semantic rules [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] adopted in the literature, such as [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] (recursive evaluation of
sub-statements) or [
        <xref ref-type="bibr" rid="ref12 ref3">3,12</xref>
        ] (continuation-style).
      </p>
      <p>We will describe these two problems in detail, and later our approach to
their solution, in the context of a minimalistic programming language which only
manipulates Boolean values (a Null value is also added to account for errors):
datatype val = Bool bool j Null</p>
      <p>The language can be extended in a rather straightforward way to more
complex expressions. In this language, expressions are either values or variables:
datatype expr = Val val j Var vname</p>
      <p>The statements are those of a small imperative language:
datatype stmt =</p>
      <p>Empty
j Assign vname val
j Seq stmt stmt
j Cond expr stmt stmt
j While expr stmt
| no-op
| assignment: var := val
| sequence: c1; c2
| conditional: if e then c1 else c2
| loop: while e do c
2.1</p>
      <p>Preservation of execution context
Problem 1 concerns the loss of an execution context through expression
reductions which is a design feature of structural semantics. Let us consider a simple
example.</p>
      <p>Assume we have a structural semantics for our minimal imperative language
(some rules of a traditional presentation are shown in Figure 1): we want to
translate a program written in this language into an abstract machine. Assume
that the states of variable values have the same representation in the two systems:
this means we only need to translate the program expression into a directed
graph with di erent nodes corresponding to di erent expressions obtained by
reductions of the initial program expression.</p>
      <p>On the abstract machine level the Assign statements would be represented
as two-state automata, and the Cond as a node with two outgoing edges directed
to the automata for the bodies of its branches.</p>
      <p>Consider a small program in this language Cond bexp (Assign a 5) Empty
and its execution ow.</p>
      <p>Cond bexp (Assign a 5) Empty
(Assign a 5) a:=5 Empty</p>
      <p>Empty</p>
      <p>The execution can select any of the two branches depending on the bexp
value. There are two di erent Empty expressions appearing as results of two
di erent reductions. The corresponding abstract machine would be a natural
graph representation for a condition statement with two branches (Figure 2).</p>
      <p>Cond bexp (Assign a 5) Empty</p>
      <p>Assign a 5 a:=5 Empty
Cond bexp (Assign a 5) Empty
:::</p>
      <p>During the simple generation of an abstract machine from a program
expression the two Empty statements cannot be distinguished although they should be
mapped into two di erent nodes in the graph. We need to add more information
about the context into the translation, and it can be done by di erent ways.</p>
      <p>A straightforward solution would be to add some information in order to
distinguish between the two Empty expressions. If we add unique identi ers
to each subexpression of the program, they will allow to know exactly which
subexpression we are translating (Figure 3). The advantage of this approach is
its simplicity, however, it requires additional functions and proofs for identi er
management.</p>
      <p>Cond n1 bexp (Assign n2 a 5) (Empty n3)
Assign n2 a 5 a:=5 Empty n2
Cond n1 bexp (Assign n2 a 5) Empty n3
n2
n3
:::
:::</p>
      <p>
        Another solution for the problem proposed in this paper involves usage of a
special data structure to keep the context of the translation. There are known
examples of translations from subexpression-based semantics [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] and
continuationbased semantics [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] to abstract machines. However, all these translations do not
address the problem of context preservation during the translation.
The second problem appears because of the double functionality of the Empty
expression: it is used to de ne an empty operator which does nothing as well as
the nal expression for reductions which cannot be further reduced. The typical
semantic rules for a sequence of expressions look as shown on Figure 4.
      </p>
      <p>(e1; s) ! (e10; s0)
(Seq e1 e2; s) ! (Seq e10 e2; s0)
[Seq1]
(Seq Empty e2; s) ! (e2; s)
[Seq2]</p>
      <p>Here the Empty expression means that the rst expression in the sequence
has been reduced up to the end, and we can start reducing the second expression.
However, any imperative language translated to an assembly language would not
have an additional operator between the two pieces of code corresponding to the
rst and the second expressions. The rule Seq2 must be marked as a silent
transition when translated to an automaton, or the semantic rules have to be
changed.</p>
    </sec>
    <sec id="sec-3">
      <title>Zipper-based semantics of imperative programs</title>
      <sec id="sec-3-1">
        <title>The zipper data structure</title>
        <p>
          Our plan is to propose an alternative technique to formalize operational
semantics that will make it easier to preserve the execution context during the
translation to an automata-based formalism. Our technique is built around a
zipper data structure, whose purpose is to identify a location in a tree (in our
case: a stmt ) by the subtree below the location and the rest of the tree (in our
case: of type stmt-path). In order to allow for an easy navigation, the rest of the
tree is turned inside-out so that it is possible to reach the root of the tree by
following the backwards pointers. The following de nition is a straightforward
adaptation of the zipper for binary trees discussed in [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] to the stmt data type:
datatype stmt-path =
        </p>
        <p>PTop
j PSeqLeft stmt-path stmt j PSeqRight stmt stmt-path
j PCondLeft expr stmt-path stmt j PCondRight expr stmt stmt-path
j PWhile expr stmt-path</p>
        <p>Here, PTop represents the root of the original tree, and for each constructor
of stmt and each of its sub-stmt s, there is a \hole" of type stmt-path where a
subtree can be tted in. A location in a tree is then a combination of a stmt and
a stmt-path:
datatype stmt-location = Loc stmt stmt-path</p>
        <p>Given a location in a tree, the function reconstruct reconstructs the original
tree reconstruct :: stmt ) stmt-path ) stmt, and reconstruct-loc (Loc c sp) =
reconstruct c sp does the same for a location.
fun reconstruct :: stmt ) stmt-path ) stmt where</p>
        <p>reconstruct c PTop = c
j reconstruct c (PSeqLeft sp c2 ) = reconstruct (Seq c c2 ) sp
j reconstruct c (PSeqRight c1 sp) = reconstruct (Seq c1 c) sp
j reconstruct c (PCondLeft e sp c2 ) = reconstruct (Cond e c c2 ) sp
j reconstruct c (PCondRight e c1 sp) = reconstruct (Cond e c1 c) sp
j reconstruct c (PWhile e sp) = reconstruct (While e c) sp
fun reconstruct-loc :: stmt-location ) stmt where</p>
        <p>reconstruct-loc (Loc c sp) = reconstruct c sp
Our semantics is a small-step operational semantics describing the e ect of the
execution a program on a certain program state. For each variable, the state
yields Some value associated with the variable, or None if the variable is
unassigned. More formally, the state is a mapping vname ) val option. De ning the
evaluation of an expression in a state is then standard.</p>
        <p>Before commenting the rules of our semantics, let us discuss which kind
of structure we are manipulating. The semantics essentially consists in moving
around a pointer within the syntax tree. As explained in Section 3.1, a position
in the syntax tree is given by a stmt-location. However, during the traversal of
the syntax tree, we visit each position at least twice (and possibly several times,
for example in a loop): before executing the corresponding statement, and after
nishing the execution. We therefore add a Boolean ag, where True is a marker
for \before" and False for \after" execution.
#W hile</p>
        <p>Seq
=)</p>
        <p>W hile
#Seq</p>
        <p>W hile</p>
        <p>Seq
=)
=)</p>
        <p>W hile</p>
        <p>Seq
=)</p>
        <p>W hile</p>
        <p>Seq
x := T
y := F
x := T
y := F
#x := T
y := F
x := T"
y := F
x := T
#y := F</p>
        <p>As an example, consider the execution sequence depicted in Figure 5 (with
assignments written in a more readable concrete syntax), consisting of the
initial steps of the execution of the program While (e; Seq (x := T ; y := F )).
The before (resp. after) marker is indicated by a downward arrow before (resp.
an upward arrow behind) the current statement. The condition of the loop is
omitted because it is irrelevant here. The middle con guration would be coded
as ((Loc (x := T ) (PSeqLeft (PWhile e PTop) (y := F ))); True).</p>
        <p>Altogether, we obtain a syntactic con guration (synt-con g ) which combines
the location and the Boolean ag. The semantic con guration (sem-con g )
manipulated by the semantics adjoins the state, as de ned previously.
type-synonym synt-con g = stmt-location
type-synonym sem-con g = synt-con g
bool
state</p>
        <p>The rules of the small-step semantics of Figure 7 fall into two categories:
before execution of a statement s (of the form ((l ; True); s)) and after execution
(of the form ((l ; False); s)); there is only one rule of this latter kind: SFalse.</p>
        <p>Let us comment on the rules in detail:
{ SEmpty executes the Empty statement just by swapping the Boolean ag.
{ SAssign is similar, but it also updates the state for the assigned variable.
fun next-loc :: stmt ) stmt-path ) (stmt-location bool ) where</p>
        <p>next-loc c PTop = (Loc c PTop; False)
j next-loc c (PSeqLeft sp c2) = (Loc c2 (PSeqRight c sp); True)
j next-loc c (PSeqRight c1 sp) = (Loc (Seq c1 c) sp; False)
j next-loc c (PCondLeft e sp c2) = (Loc (Cond e c c2) sp; False)
j next-loc c (PCondRight e c1 sp) = (Loc (Cond e c1 c) sp; False)
j next-loc c (PWhile e sp) = (Loc (While e c) sp; True)
{ SSeq moves the pointer to the substatement c1, pushing the substatement
c2 as continuation to the statement path.
{ SCondT and SCondF move to the then- respectively else- branch of the
conditional, depending on the value of the condition.
{ SWhileT moves to the body of the loop.
{ SWhileF declares the execution of the loop as terminated, by setting the</p>
        <p>Boolean ag to False.
{ SFalse comes into play when execution of the current statement is nished.</p>
        <p>We then move to the next location, provided we have not already reached
the root of the syntax tree and the whole program terminates.</p>
        <p>The move to the next relevant location is accomplished by function next-loc
(Figure 6) which intuitively works as follows: upon conclusion of the rst
substatement in a sequence, we move to the second substatement. When nishing
the body of a loop, we move back to the beginning of the loop. In all other cases,
we move up the syntax tree, waiting for rule SFalse to relaunch the function.
4
4.1</p>
        <p>Syntax</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Target language: Automata</title>
      <p>As usual, our automata are a collection of nodes and edges, with a distinguished
initial state. In this general de nition, we will keep the node type 0n abstract.
It will later be instantiated to synt-con g. An edge connects two nodes; moving
along an edge may trigger an assignment to a variable (AssAct ), or have no
e ect at all (NoAct ).</p>
      <p>An automaton 0n ta is a record consisting of a set of nodes, a set of edges and
an initial node init-s. An edge has a source node, an action and a destination
node dest. Components of a record are written between (j ::: j).
4.2</p>
      <p>Semantics
An automaton state is a node, together with a state as in Section 3.2.
type-synonym 0n ta-state = 0n</p>
      <p>state</p>
      <p>Executing a step of an automaton in an automaton state (l ; s) consists
of selecting an edge starting in node l, moving to the target of the edge and
executing its action. Automata are non-deterministic; in this simpli ed model,
we have no guards for selecting edges.</p>
      <p>l = source e</p>
      <p>e 2 set (edges aut )
l 0 = dest e s 0 = action-e ect (action e) s
aut ` (l ; s) ! (l 0; s 0)
[Action]
5</p>
    </sec>
    <sec id="sec-5">
      <title>Automata construction</title>
      <p>The principle of abstracting a statement to an automaton is simple; the novelty
resides in the way the automaton is generated via the zipper structure: as nodes,
we choose the locations of the statements (with their Boolean ags), and as edges
all possible transitions of the semantics.</p>
      <p>To make this precise, we need some auxiliary functions. We rst de ne a
function all-locations of type stmt ) stmt-path ) stmt-location list which
gathers all locations in a statement, and a function nodes-of-stmt-locations which
adds the Boolean ags.</p>
      <p>As for the edges, the function synt-step-image yields all possible successor
con gurations for a given syntactic con guration. This is of course an
overapproximation of the behavior of the semantics, since some of the source tree
locations may be unreachable during execution.
fun synt-step-image :: synt-con g ) synt-con g list where</p>
      <p>synt-step-image (Loc Empty sp; True) = [(Loc Empty sp; False)]
j synt-step-image (Loc (Assign vr vl ) sp; True) = [(Loc (Assign vr vl ) sp; False)]
j synt-step-image (Loc (Seq c1 c2 ) sp; True) = [(Loc c1 (PSeqLeft sp c2 ); True)]
j synt-step-image (Loc (Cond e c1 c2 ) sp; True) =</p>
      <p>[(Loc c1 (PCondLeft e sp c2 ); True); (Loc c2 (PCondRight e c1 sp); True)]
j synt-step-image (Loc (While e c) sp; True) =</p>
      <p>[(Loc c (PWhile e sp); True); (Loc (While e c) sp; False)]
j synt-step-image (Loc c sp; False) = (if sp = PTop then [] else [next-loc c sp])</p>
      <p>Together with the following de nitions:
fun action-of-synt-con g :: synt-con g ) action where</p>
      <p>action-of-synt-con g (Loc (Assign vn vl ) sp; True) = AssAct vn vl
j action-of-synt-con g (Loc c sp; b) = NoAct
de nition edge-of-synt-con g :: synt-con g ) synt-con g edge list where
edge-of-synt-con g s =
map( t: (jsource = s; action = action-of-synt-con g s; dest = tj))(synt-step-image s)
de nition edges-of-nodes :: synt-con g list ) synt-con g edge list where
edges-of-nodes nds = concat (map edge-of-synt-con g nds)</p>
      <p>we can de ne the translation function from statements to automata:
fun stmt-to-ta :: stmt ) synt-con g ta where
stmt-to-ta c =
(let nds = nodes-of-stmt-locations (all-locations c PTop) in
(j nodes = nds; edges = edges-of-nodes nds; init-s = ((Loc c PTop); True) j))
6</p>
    </sec>
    <sec id="sec-6">
      <title>Simulation Property</title>
      <p>We recall that the nodes of the automaton generated by stmt-to-ta are labeled by
con gurations (location, Boolean ag) of the syntax tree. The simulation lemma
(Lemma 1) holds for automata with appropriate closure properties: a successor
con guration wrt. a transition of the semantics is also a label of the automaton
(nodes-closed ), and analogously for edges (edges-closed ) or both nodes and edges
(synt-step-image-closed ).</p>
      <p>The simulation statement is a typical commuting-diagram property: a step of
the program semantics can be simulated by a step of the automaton semantics,
for corresponding program and automata states. For this correspondence, we use
the notation , even though it is just plain syntactic equality in our case.</p>
      <sec id="sec-6-1">
        <title>Lemma 1 (Simulation property).</title>
        <p>Assume that synt-step-image-closed aut and (((lc; b); s) ((lca; ba); sa)). If
((lc; b); s) ! ((lc 0; b 0); s 0), then there exist lca 0; ba 0; sa 0 such that (lca 0; ba 0)
2 set (nodes aut ) and the automaton performs the same transition: aut ` ((lca;
ba); sa) ! ((lca 0; ba 0); sa 0) and ((lc 0; b 0); s 0) ((lca 0; ba 0); sa 0).
The proof is a simple induction over the transition relation of the program
semantics and is almost fully automatic in the Isabelle proof assistant.</p>
        <p>We now want to get rid of the precondition synt-step-image-closed aut in
Lemma 1. The rst subcase (edge closure), is easy to prove. Node closure is
more di cult and requires the following key lemma:</p>
      </sec>
      <sec id="sec-6-2">
        <title>Lemma 2.</title>
        <p>If lc 2 set (all-locations c PTop) then set (map fst (synt-step-image (lc; b)))
set (all-locations c PTop):</p>
        <sec id="sec-6-2-1">
          <title>With this, we obtain the desired</title>
          <p>Lemma 3 (Closure of automaton). synt-step-image-closed (stmt-to-ta c)</p>
        </sec>
        <sec id="sec-6-2-2">
          <title>For the proofs, see [5].</title>
          <p>Let us combine the previous results and write them more succinctly, by using
the notation ! for the re exive-transitive closure for the transition relations
of the small-step semantics and the automaton. Whenever a state is reachable
by executing a program c in its initial con guration, then a corresponding ( )
state is reachable by running the automaton generated with function stmt-to-ta:</p>
        </sec>
      </sec>
      <sec id="sec-6-3">
        <title>Theorem 1.</title>
        <p>If ((Loc c PTop; True); s) ! (cf 0; s 0) then 9 cfa 0 sa 0: stmt-to-ta c ` (init-s
(stmt-to-ta c); s) ! (cfa 0; sa 0) ^ (cf 0; s 0) (cfa 0; sa 0):</p>
        <p>Obviously, the initial con guration of the semantics and the automaton are
in the simulation relation , and for the inductive step, we use Lemma 1.
7</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Conclusions</title>
      <p>This paper has presented a new kind of small-step semantics for imperative
programming languages, based on the zipper data structure. Our primary aim is
to show that this semantics has decisive advantages for abstracting programming
language semantics to automata. Even if the generated automata have a great
number of silent transitions, these can be removed.</p>
      <p>
        We are currently in the process of adopting this semantics in a larger
formalization from Java to Timed Automata [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. As most constructs (zipper data
structure, mapping to automata) are generic, we think that this kind of
semantics could prove useful for similar formalizations with other source languages.
The proofs (here carried out with the Isabelle proof assistant) have a pleasingly
high degree of automation that are in sharp contrast with the index calculations
that are usually required when naming automata states with numbers.
      </p>
      <p>
        Renaming nodes from source tree locations to numbers is nevertheless easy
to carry out, see the code snippet provided on the web page [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] of this paper.
For these reasons, we think that the underlying ideas could also be useful in the
context of compiler veri cation, when converting a structured source program to
a ow graph with basic blocs, but before committing to numeric values of jump
targets.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Rajeev</given-names>
            <surname>Alur</surname>
          </string-name>
          , Costas Courcoubetis,
          <string-name>
            <given-names>and David L.</given-names>
            <surname>Dill</surname>
          </string-name>
          .
          <article-title>Model-checking for real-time systems</article-title>
          .
          <source>In LICS</source>
          , pages
          <volume>414</volume>
          {
          <fpage>425</fpage>
          . IEEE Computer Society,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Rajeev</given-names>
            <surname>Alur</surname>
          </string-name>
          and
          <string-name>
            <given-names>David L.</given-names>
            <surname>Dill</surname>
          </string-name>
          .
          <article-title>A theory of timed automata</article-title>
          .
          <source>Theoretical Computer Science</source>
          ,
          <volume>126</volume>
          :
          <fpage>183</fpage>
          {
          <fpage>235</fpage>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Andrew</surname>
            <given-names>W.</given-names>
          </string-name>
          <string-name>
            <surname>Appel</surname>
            and
            <given-names>Sandrine</given-names>
          </string-name>
          <string-name>
            <surname>Blazy</surname>
          </string-name>
          .
          <article-title>Separation logic for small-step cminor</article-title>
          .
          <source>In Theorem Proving in Higher Order Logics, 20th int. conf. TPHOLS</source>
          , pages
          <volume>5</volume>
          {
          <fpage>21</fpage>
          . Springer,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Ch</surname>
            . Baier and
            <given-names>J.-P.</given-names>
          </string-name>
          <string-name>
            <surname>Katoen</surname>
          </string-name>
          .
          <article-title>Principles of Model Checking</article-title>
          . MIT Press,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Nadezhda</given-names>
            <surname>Baklanova</surname>
          </string-name>
          , Wilmer Ricciotti,
          <string-name>
            <surname>Jan-Georg Smaus</surname>
            , and
            <given-names>Martin</given-names>
          </string-name>
          <string-name>
            <surname>Strecker</surname>
          </string-name>
          .
          <article-title>Abstracting an operational semantics to nite automata (formalization</article-title>
          ),
          <year>2014</year>
          . https://bitbucket.org/Martin_Strecker/abstracting_op_sem_to_automata.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Nadezhda</given-names>
            <surname>Baklanova</surname>
          </string-name>
          and
          <string-name>
            <given-names>Martin</given-names>
            <surname>Strecker</surname>
          </string-name>
          .
          <article-title>Abstraction and veri cation of properties of a Real-Time Java</article-title>
          .
          <source>In Proc. ICTERI</source>
          , volume
          <volume>347</volume>
          of Communications in Computer and Information Science, pages
          <fpage>1</fpage>
          <lpage>{</lpage>
          18. Springer,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Johan</given-names>
            <surname>Bengtsson</surname>
          </string-name>
          and
          <string-name>
            <given-names>Wang</given-names>
            <surname>Yi</surname>
          </string-name>
          .
          <article-title>Timed automata: Semantics, algorithms and tools</article-title>
          .
          <source>In Lectures on Concurrency and Petri Nets, LNCS</source>
          , pages
          <volume>87</volume>
          {
          <fpage>124</fpage>
          . Springer,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Gerard</given-names>
            <surname>Huet</surname>
          </string-name>
          .
          <article-title>Functional pearl: The zipper</article-title>
          .
          <source>Journal of Functional Programming</source>
          ,
          <volume>7</volume>
          (
          <issue>5</issue>
          ):
          <volume>549</volume>
          {
          <fpage>554</fpage>
          ,
          <year>September 1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Bakhadyr</given-names>
            <surname>Khoussainov</surname>
          </string-name>
          and
          <string-name>
            <given-names>Anil</given-names>
            <surname>Nerode</surname>
          </string-name>
          .
          <source>Automata Theory and Its Applications</source>
          . Birkhauser Boston,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>Gerwin</given-names>
            <surname>Klein</surname>
          </string-name>
          and
          <string-name>
            <given-names>Tobias</given-names>
            <surname>Nipkow</surname>
          </string-name>
          .
          <article-title>A machine-checked model for a Java-like language, virtual machine, and compiler</article-title>
          .
          <source>ACM Trans. Program. Lang. Syst.</source>
          ,
          <volume>28</volume>
          :
          <fpage>619</fpage>
          {
          <fpage>695</fpage>
          ,
          <year>July 2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>Robbert</given-names>
            <surname>Krebbers</surname>
          </string-name>
          and
          <string-name>
            <given-names>Freek</given-names>
            <surname>Wiedijk</surname>
          </string-name>
          .
          <article-title>Separation logic for non-local control ow and block scope variables</article-title>
          . In Frank Pfenning, editor,
          <source>Foundations of Software Science and Computation Structures</source>
          , volume
          <volume>7794</volume>
          of Lecture Notes in Computer Science, pages
          <volume>257</volume>
          {
          <fpage>272</fpage>
          . Springer Berlin Heidelberg,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>Xavier</given-names>
            <surname>Leroy</surname>
          </string-name>
          .
          <article-title>A formally veri ed compiler back-end</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>43</volume>
          (
          <issue>4</issue>
          ).,
          <volume>43</volume>
          (
          <issue>4</issue>
          ),
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Tobias</surname>
            <given-names>Nipkow</given-names>
          </string-name>
          , Lawrence Paulson, and Markus Wenzel. Isabelle/HOL.
          <article-title>A Proof Assistant for Higher-Order Logic</article-title>
          , volume
          <volume>2283</volume>
          <source>of LNCS</source>
          . Springer,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>Glynn</given-names>
            <surname>Winskel</surname>
          </string-name>
          .
          <source>The Formal Semantics of Programming Languages: An Introduction</source>
          . MIT Press, Cambridge, MA, USA,
          <year>1993</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>