mattulbrich / dive

Dafny Interactive Verification Environment (DIVE)
GNU General Public License v3.0
4 stars 0 forks source link

Reference Highlighting corresponding variable with position in source code #166

Open SpringVaS opened 4 years ago

SpringVaS commented 4 years ago

When selecting variables in the sequent to be highlighted in the source, an inconsistency is observable. a bound (e. g. by let) variable is sometimes not highlighted in at the same position in sequent (formula) and source.

The first image shows a highlighting selecetion of the variable s in the Term s < |this.seqq|. Yet, in the code the variable s is highlighted at the position of the condition s >= 0.

The second image (with undbound variables) shows the expected behaviour.

let:

ReferenceHighlighting

no let:

Highlighting Works

JonasKlamroth commented 3 years ago

maybe im missing the point but to me all those highlightings seem to be correct. what would be the expected result in your opinion?