Discuss the importance and the role of model checking

Assignment Help Other Subject
Reference no: EM133070205

Question 1) Discuss the importance and the role of model checking as a complement to the traditional testing.

Question 2) Explain why security protocols are a good example of a domain where model checking techniques may be applied successfully.

Question 3) Consider the following transition system depicted in Figure 1, with all the states, transitions and state variables. There are four propositional variables p, q, r and s. All of them are false in the initial state s0, p and s are true in the state s1, q is true in the state s2, q and r are true in the state s3, and so on. Express the following properties in CTL and state whether they hold in the transition system. If a property does not hold then show a counter example.

(i) Always, in the next state q is false.

(ii) There is a possibility that the system never reach a state where r is true

(iii) Always, r is false until q is true

940_Transition system.jpg

Figure 1. An example transition system

Question 4) What is busy-waiting in multi-threading programming? Discuss when it can be useful in improving the performance of a multi-threading application.

Question 5) Consider the mutual exclusion protocol for two processes shown below:
//Shared variables boolean c1 = false, c2 = false;
int turn = 1;
Process P1: Process P2:
init1; init2;
while(true){ while(true){
//entry protocol //entry protocol
turn = 2; c1 = true; turn = 1; c2 = true; while(c2 && turn ==2){ } while(c1 && turn == 1) { }
crit1; crit2;
//exit protocol //exit protocol
c1 = false; c2 = false;
rem1; rem2;
} }

where init1 and init2 are non-critical initialisations, crit1 and crit2 are critical sections and rem1 and rem2 are non-critical remainders of the programs. Does the protocol satisfy the properties of Mutual Exclusion, Absence of deadlock, and Eventual Entry? If not, give an example trace that results in the property being violated and fix the algorithm using only standard C-like instructions as in the original algorithm so that it satisfies all the properties.

Question 6) Consider the following two processes that share a common variable X and a semaphore S:
// Shared variable int X =2;
binary semaphore S = 1;
Process P1: Process P2:
//initialisation code //initialisation code int Y; int Z;
P(S); P(S);

P11: Y = 2*X; P21: Z = X+1;
P12: X = Y; P22: X = Z;
V(S); V(S);
//other code //other code

The line numbers P11, P12 and P21, P22 have been added to the left of each statement. How many different values of X are possible after both processes finish executing? What are those values? Explain your answer showing all the possible execution traces.

Question 7) Consider the following transition relation and write the corresponding NuSMV code.

1460_Transition system1.jpg

Question 8) State for each Linear-time Temporal Logic (LTL) formula whether it is legal or not (p and q are propositional variables).
(i) Gp
(ii) AGp
(iii) EG(p->Fq)
(iv) (pUq)
(v) GFp

Question 9) Consider the following transition diagram and state whether the CTL formula AFAG p and the LTL formula FGp hold or not. Justify your answer.

497_Transition system2.jpg

Attachment:- Exam Paper Template.rar

Reference no: EM133070205

Questions Cloud

Calculate the debt ratio for the company : The firm faces a cost of debt of 4%. Calculate the debt ratio for the company after incorporating the valuation of the lease obligations
How much is the carrying value of the equipment : The depreciation expense pertaining to the mining equipment in 2021 amounted to? How much is the carrying value of the equipment as of December 31, 2021
Why is exchange rate important in international finance : Why is exchange rate important in International Finance? Can we get rid of Exchange rate in International Business?
Family educational rights and privacy act : Describe purpose importance and relevance of Family Educational Rights and Privacy Act and Health Insurance Portability and Accountability Act compliance acts
Discuss the importance and the role of model checking : Discuss the importance and the role of model checking as a complement to the traditional testing and domain where model checking techniques
Why did the central bank peg to the usd in september : In September 1997 Malaysian central bank decided to cap (or peg) the value of the RM against the USD at 3.80 RM to the USD. In June 1998 the central bank announ
Company foreign exchange exposure : What are the channels through which the company's foreign exchange exposure arises? Explain.
Determine accounting rate of return on initial investment : Net cash inflows from operations (per year for 10 years) 11,000. Determine the accounting rate of return on initial investment
Calculate percentage change in value values of peso : -In December 1994 the government of Mexico officially changed the value of the Mexican peso from 3.2 pesos per dollar to 5.5 pesos per dollar.

Reviews

Write a Review

Other Subject Questions & Answers

  Define causation is too remote to find negligence

Wayne, a spectator, was injured at a hockey match by a flying puck. As he was leaving for the hospital, part of the arena seating collapsed

  How can the nurse best respond to this patient concerns

A patient who is experiencing withdrawal from heavy alcohol use have developed psychosis and been treated with haloperidol. Which of the following assessment findings should prompt the care team to assess the patient for neuroleptic malignant synd..

  What percentage of corporate ventures reaches profitability

On average, approximately what percentage of corporate ventures reaches profitability after six years?

  Describe your personal opinion regarding old age

Describe your personal opinion regarding old age and explain how those views fit with what has been covered thus far in the course readings.

  Summarize patient experiences data for each hospital

Summarize patient experiences data for each hospital. Summarize timely and effective care data for two conditions.

  List some diabetic resources within your community

Question 3 - Nursing - Please list some diabetic resources within your community that would benefit your patients with diabetes

  Analyze the brain and empirical evidence of human behavior

Appraise critical research findings of contemporary studies. Discriminate neuropsychological and sociocultural factors of motivation and emotion.

  How many of these explanations would freud accept

How many of these explanations would Freud accept, and why would he only accept some of them?

  How will you utilize the career network to help achieve goal

MT490-6:What barriers, weaknesses, threats or obstacles may prevent you from accomplishing your goals in a timely manner .

  How can services be used for the benefits of consumers

Write a 3-page paper (1000 words): What types of smart devices are they and how can they be used for the benefits of consumers. Include both the advantages.

  In combating terrorism what form of intelligence might be

in combating terrorism what form of intelligence may be the most important to have? discuss the pros and cons and the

  Discuss the major principles of reward allocation

Discuss the major principles of reward allocation. Which one(s) is (are) preferred by the collectivist culture? Individualistic culture? Why

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd