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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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