简体   繁体   中英

Frama-C Plugin-Development: Getting the values of value analysis of different calls

I am developing a Frama-C-Plugin this should print the values of the variables after each statement. In the Frama-C-Gui, in the tab Values, I can see the values of the analysis over the whole program, and after different function calls (with the parameters of the function).

在此处输入图片说明

I now want to get the values AFTER each function-call (not the "all"-line, but the "main"-line.

Here is my program that I used for the screenshot:

void swap (int *a, int *b){
    int tmp = *a;
    *a = *b;
    *b = tmp;
    return;
}
int main (void){
    int a=1;
    int b=2;
    swap (&a, &b);

    a = 3;
    b = 4;
    swap (&a, &b);
}

Is this possible? How can I access these values?

PS: I've asked a related question, which already prints the "all"-part (and values BEFORE the statement), see this link: Frama-C Plugin development: Getting result of value-analysis

Is there a similar solution?

感谢所提及问题的答案的编辑,可以在以下站点找到解决方案: Frama-C插件开发:获得价值分析的结果

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM