Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. For the following program (assume tempMeas global variable is updated by another thread): a) Construct the Control Flow Graph. b) The while loop
1. For the following program (assume tempMeas global variable is updated by another thread): a) Construct the Control Flow Graph. b) The while loop in this program is non-terminating. Explain the meaning of worst-case execution time in this case and how it could be estimated? #define SLOPE = 5000 #define BIAS = 1 float tempMeas; float tempVar; void measAcquisition () { float scaledTemp; while (true) { scaledTemp = SLOPEtempMeas + BIAS; } tempVar = satFnc (-100, 100, scaledTemp); satFnc (float lowLim, float highLim, float num) { if (num highLim) return highLim; else return num; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
a Control Flow Graph CFG measAcquisition v while true v scaledTemp SLOPEtempMeas BIAS v satFnc v if ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started