Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8920351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:14:51+00:00 2026-06-15T06:14:51+00:00

When I use the frama-c analysis my c program. It seems there exits a

  • 0

When I use the frama-c analysis my c program. It seems there exits a bug in the impact plug in of the frama-c. This is my program.

#include<stdio.h>
int global;
int main()
{
    global = 12;
    int result = 0;
    if(global > 1)
    {
         result += 100;
    }
    else
    {
        result += 200;
    }
    return 0;
}

I want to find all the stataments impacted by the variable “global”.
Obviously, the statement “result += 100;” in the scope of “if condition” which is related to the variable “global”, so the statement “result += 100;” should be high light.
However, the running result seems not correct.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:14:53+00:00Added an answer on June 15, 2026 at 6:14 am

    I’m assuming that you have used no special option, and that you have started the impact analysis in Frama-C’s GUI, on the statement global = 12. If it is not the case, please provide more detailed instructions.

    In your program, the if (global > 1) instruction gets selected because there is a data dependency to the statement global = 12. However, the statement result += 100 does not get selected by the Impact plugin. This is the intended behavior, because there is no control dependency in this case. Notice that the else branch of the if is dead. Thus, the execution of result += 100 does not really depend on the evaluation of if (global > 1), as the condition is always true. As the control flow always reaches result += 100 instruction, no control dependency exists.

    If you want to exhibit a control dependency in this example, the simplest way consists in changing your line global = 12 into

    global = Frama_C_interval(0,100);
    

    and to add the file $(SHARE)/frama-C/libc/__fc_builtin.c to the command-line. The two instructions result += 100 and result += 200 will get selected, in each case because of a control dependency.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the Frama-C tool to generate the dependence graph of this program(main.c). #include<stdio.h>
I'm supposed to use a data analysis program for a physics experiment. I can't
Is there a way to use pure html-code to display inside a frame instead
I am trying to do sequence analysis using time-diary data (American Time Use Survey)
Is there a way to use data.frame without it ruining the column names? I
I am using JOGL, but this question applies to OpenGL in general. There seem
Everywhere people tell me to use this: frame.setExtendedState(JFrame.MAXIMIZED_BOTH); But the problem with that is
In WPF XAML I can use a Frame like this: <Frame Source=Frame.xaml /> In
I am developing a censored dependent variable for use in survival analysis. My goal
I have a problem with JFrame and the key word this. When I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.