Demo: (Re)naming of program variables Benjamin Wei Institut f ur - - PowerPoint PPT Presentation

demo re naming of program variables
SMART_READER_LITE
LIVE PREVIEW

Demo: (Re)naming of program variables Benjamin Wei Institut f ur - - PowerPoint PPT Presentation

Demo: (Re)naming of program variables Benjamin Wei Institut f ur Theoretische Informatik Universit at Karlsruhe (Re)naming of program variables p. 1/3 The problem During symbolical execution. . . program variables from different


slide-1
SLIDE 1

Demo: (Re)naming of program variables

Benjamin Weiß Institut f¨ ur Theoretische Informatik Universit¨ at Karlsruhe

(Re)naming of program variables – p. 1/3

slide-2
SLIDE 2

The problem

During symbolical execution. . . program variables from different scopes are put into a single global namespace {int x;}φ ∧ {int x;}ψ new variable declarations are introduced within programs {m().n(); int var_1;} → Possible naming conflicts

(Re)naming of program variables – p. 2/3

slide-3
SLIDE 3

The solution

KeY now. . . changes existing variables’ names when executing a declaration which causes a conflict in the global namespace: ”Outer renaming”: The old variable’s name is changed ”Inner renaming”: The new variable’s name is changed chooses sufficiently unique names for newly introduced variables

(Re)naming of program variables – p. 3/3