Understanding Frama-C slicer results

后端 未结 2 1973
一整个雨季
一整个雨季 2020-12-19 15:03

I\'d like to know if it\'s possible to do some kind of forward conditioned slicing with Frama-C and I\'m playing with some examples to understand how one could achieve this.

2条回答
  •  一生所求
    2020-12-19 15:34

    This has no relevance whatsoever with your main question, but your ensures a == \old(a) clause is not doing what you expect. If you pretty-print your source code with option -print, you will see it has been silently transformed into ensures \old(a) == \old(a).

    The ACSL language does not permit referring about the value of formal variables in the post-state, mostly because this is meaningless from the point of view of the caller. (The stack frame of the callee is popped after the call terminates.)

提交回复
热议问题