SlideShare a Scribd company logo
1 of 1
Download to read offline
Please use the exact code provided and show code using Alloy. Also, what is needed for fact
basicProperties, fact FSMProperties, and fact additionalProperties is listed.
Let us assume that the execution of an FSM starts from its initial state by taking the initial
transition (a transition that starts from the initial state) and moves to the next state. It then
continues by taking one of the possible transitions forever unless it reaches a state that has no
outgoing transition. Please use the following specification and complete fact Trace and pred Step
to simulate the execution of an FSM. For this question, you need to use library util/ordering, the
documentation of which is available here: https://alloy
.readthedocs.io/en/latest/techniques/dynamics.html Add fact basicProperties, which captures the
following properties. (a) (2 points) A transition is an element of the outTransition of a state if and
only if it starts from the state. (b) (2 points) All states of an FSM are reachable from its initial
state. (c) (2 points) A state s 1 is an element of nextS of state s 2 if there is a transition from s 2
to s 1 . Add fact FSMProperties, which captures the following properties. (a) (2 points) Every
FSM has one initial state. (b) (2 points) Every transition has one action, one source, and one
destination. (c) (2 points) Two transitions can not have the same source and destination. (d) (2
points) No loop can be started/ended from the initial state. Add fact additionalproperties, which
captures the following properties. (a) (2 points) Every FSM has some states. (b) (2 points) No
two FSMs share states. (c) (2 points) Any state belongs to an FSM. (d) (2 points) All actions are
assigned to transitions.

More Related Content

More from sbksan

Many of the problems in the way companies operate are due to managemen.pdf
Many of the problems in the way companies operate are due to managemen.pdfMany of the problems in the way companies operate are due to managemen.pdf
Many of the problems in the way companies operate are due to managemen.pdfsbksan
 
Let X1-X2 be i-i-d- N(-1) random variables with unknown parameter R-.pdf
Let X1-X2 be i-i-d- N(-1) random variables with unknown parameter  R-.pdfLet X1-X2 be i-i-d- N(-1) random variables with unknown parameter  R-.pdf
Let X1-X2 be i-i-d- N(-1) random variables with unknown parameter R-.pdfsbksan
 
In 1933 net private domestic investment was a minus $6-0 billion- This.pdf
In 1933 net private domestic investment was a minus $6-0 billion- This.pdfIn 1933 net private domestic investment was a minus $6-0 billion- This.pdf
In 1933 net private domestic investment was a minus $6-0 billion- This.pdfsbksan
 
Labour Number of meals served per day 0 0 1 2 3 4 5 Luigi owns an Ital.pdf
Labour Number of meals served per day 0 0 1 2 3 4 5 Luigi owns an Ital.pdfLabour Number of meals served per day 0 0 1 2 3 4 5 Luigi owns an Ital.pdf
Labour Number of meals served per day 0 0 1 2 3 4 5 Luigi owns an Ital.pdfsbksan
 
Kind Co- - Nikki Hedstrom Leadership styles and communication strategi.pdf
Kind Co- - Nikki Hedstrom Leadership styles and communication strategi.pdfKind Co- - Nikki Hedstrom Leadership styles and communication strategi.pdf
Kind Co- - Nikki Hedstrom Leadership styles and communication strategi.pdfsbksan
 
A researcher is recording and moritoring data about a population of pl.pdf
A researcher is recording and moritoring data about a population of pl.pdfA researcher is recording and moritoring data about a population of pl.pdf
A researcher is recording and moritoring data about a population of pl.pdfsbksan
 
A 24-year-old male Pakistani medical resident was seen in the emergenc.pdf
A 24-year-old male Pakistani medical resident was seen in the emergenc.pdfA 24-year-old male Pakistani medical resident was seen in the emergenc.pdf
A 24-year-old male Pakistani medical resident was seen in the emergenc.pdfsbksan
 
6- In fermentation- the organic molecules are used as electron accepto.pdf
6- In fermentation- the organic molecules are used as electron accepto.pdf6- In fermentation- the organic molecules are used as electron accepto.pdf
6- In fermentation- the organic molecules are used as electron accepto.pdfsbksan
 
Explain how to get this answer 39) The above figure shows a person's u.pdf
Explain how to get this answer 39) The above figure shows a person's u.pdfExplain how to get this answer 39) The above figure shows a person's u.pdf
Explain how to get this answer 39) The above figure shows a person's u.pdfsbksan
 
Archeoptery was an early bird that arose from one llneage within the d.pdf
Archeoptery was an early bird that arose from one llneage within the d.pdfArcheoptery was an early bird that arose from one llneage within the d.pdf
Archeoptery was an early bird that arose from one llneage within the d.pdfsbksan
 
Draw out the exact memory layout (with the name- size- and correct loc.pdf
Draw out the exact memory layout (with the name- size- and correct loc.pdfDraw out the exact memory layout (with the name- size- and correct loc.pdf
Draw out the exact memory layout (with the name- size- and correct loc.pdfsbksan
 
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdf
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdfDeposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdf
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdfsbksan
 
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdf
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdfTB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdf
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdfsbksan
 
What is the genotypic ratio-frequency of the F1 generation from this c.pdf
What is the genotypic ratio-frequency of the F1 generation from this c.pdfWhat is the genotypic ratio-frequency of the F1 generation from this c.pdf
What is the genotypic ratio-frequency of the F1 generation from this c.pdfsbksan
 
1- what allowed the iPhone and iOS to become a platform for various co.pdf
1- what allowed the iPhone and iOS to become a platform for various co.pdf1- what allowed the iPhone and iOS to become a platform for various co.pdf
1- what allowed the iPhone and iOS to become a platform for various co.pdfsbksan
 
1- Sophie used the following data to create a frequency distribution t.pdf
1- Sophie used the following data to create a frequency distribution t.pdf1- Sophie used the following data to create a frequency distribution t.pdf
1- Sophie used the following data to create a frequency distribution t.pdfsbksan
 
Which of these is not a goal of contemporary taxonomy-classification-.pdf
Which of these is not a goal of contemporary taxonomy-classification-.pdfWhich of these is not a goal of contemporary taxonomy-classification-.pdf
Which of these is not a goal of contemporary taxonomy-classification-.pdfsbksan
 
Which of the following is not a characteristic of the F distribution-.pdf
Which of the following is not a characteristic of the F distribution-.pdfWhich of the following is not a characteristic of the F distribution-.pdf
Which of the following is not a characteristic of the F distribution-.pdfsbksan
 
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdfsbksan
 
Upon learning the concept of cost of capital- your assignment will be.pdf
Upon learning the concept of cost of capital-  your assignment will be.pdfUpon learning the concept of cost of capital-  your assignment will be.pdf
Upon learning the concept of cost of capital- your assignment will be.pdfsbksan
 

More from sbksan (20)

Many of the problems in the way companies operate are due to managemen.pdf
Many of the problems in the way companies operate are due to managemen.pdfMany of the problems in the way companies operate are due to managemen.pdf
Many of the problems in the way companies operate are due to managemen.pdf
 
Let X1-X2 be i-i-d- N(-1) random variables with unknown parameter R-.pdf
Let X1-X2 be i-i-d- N(-1) random variables with unknown parameter  R-.pdfLet X1-X2 be i-i-d- N(-1) random variables with unknown parameter  R-.pdf
Let X1-X2 be i-i-d- N(-1) random variables with unknown parameter R-.pdf
 
In 1933 net private domestic investment was a minus $6-0 billion- This.pdf
In 1933 net private domestic investment was a minus $6-0 billion- This.pdfIn 1933 net private domestic investment was a minus $6-0 billion- This.pdf
In 1933 net private domestic investment was a minus $6-0 billion- This.pdf
 
Labour Number of meals served per day 0 0 1 2 3 4 5 Luigi owns an Ital.pdf
Labour Number of meals served per day 0 0 1 2 3 4 5 Luigi owns an Ital.pdfLabour Number of meals served per day 0 0 1 2 3 4 5 Luigi owns an Ital.pdf
Labour Number of meals served per day 0 0 1 2 3 4 5 Luigi owns an Ital.pdf
 
Kind Co- - Nikki Hedstrom Leadership styles and communication strategi.pdf
Kind Co- - Nikki Hedstrom Leadership styles and communication strategi.pdfKind Co- - Nikki Hedstrom Leadership styles and communication strategi.pdf
Kind Co- - Nikki Hedstrom Leadership styles and communication strategi.pdf
 
A researcher is recording and moritoring data about a population of pl.pdf
A researcher is recording and moritoring data about a population of pl.pdfA researcher is recording and moritoring data about a population of pl.pdf
A researcher is recording and moritoring data about a population of pl.pdf
 
A 24-year-old male Pakistani medical resident was seen in the emergenc.pdf
A 24-year-old male Pakistani medical resident was seen in the emergenc.pdfA 24-year-old male Pakistani medical resident was seen in the emergenc.pdf
A 24-year-old male Pakistani medical resident was seen in the emergenc.pdf
 
6- In fermentation- the organic molecules are used as electron accepto.pdf
6- In fermentation- the organic molecules are used as electron accepto.pdf6- In fermentation- the organic molecules are used as electron accepto.pdf
6- In fermentation- the organic molecules are used as electron accepto.pdf
 
Explain how to get this answer 39) The above figure shows a person's u.pdf
Explain how to get this answer 39) The above figure shows a person's u.pdfExplain how to get this answer 39) The above figure shows a person's u.pdf
Explain how to get this answer 39) The above figure shows a person's u.pdf
 
Archeoptery was an early bird that arose from one llneage within the d.pdf
Archeoptery was an early bird that arose from one llneage within the d.pdfArcheoptery was an early bird that arose from one llneage within the d.pdf
Archeoptery was an early bird that arose from one llneage within the d.pdf
 
Draw out the exact memory layout (with the name- size- and correct loc.pdf
Draw out the exact memory layout (with the name- size- and correct loc.pdfDraw out the exact memory layout (with the name- size- and correct loc.pdf
Draw out the exact memory layout (with the name- size- and correct loc.pdf
 
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdf
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdfDeposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdf
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdf
 
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdf
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdfTB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdf
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdf
 
What is the genotypic ratio-frequency of the F1 generation from this c.pdf
What is the genotypic ratio-frequency of the F1 generation from this c.pdfWhat is the genotypic ratio-frequency of the F1 generation from this c.pdf
What is the genotypic ratio-frequency of the F1 generation from this c.pdf
 
1- what allowed the iPhone and iOS to become a platform for various co.pdf
1- what allowed the iPhone and iOS to become a platform for various co.pdf1- what allowed the iPhone and iOS to become a platform for various co.pdf
1- what allowed the iPhone and iOS to become a platform for various co.pdf
 
1- Sophie used the following data to create a frequency distribution t.pdf
1- Sophie used the following data to create a frequency distribution t.pdf1- Sophie used the following data to create a frequency distribution t.pdf
1- Sophie used the following data to create a frequency distribution t.pdf
 
Which of these is not a goal of contemporary taxonomy-classification-.pdf
Which of these is not a goal of contemporary taxonomy-classification-.pdfWhich of these is not a goal of contemporary taxonomy-classification-.pdf
Which of these is not a goal of contemporary taxonomy-classification-.pdf
 
Which of the following is not a characteristic of the F distribution-.pdf
Which of the following is not a characteristic of the F distribution-.pdfWhich of the following is not a characteristic of the F distribution-.pdf
Which of the following is not a characteristic of the F distribution-.pdf
 
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf
 
Upon learning the concept of cost of capital- your assignment will be.pdf
Upon learning the concept of cost of capital-  your assignment will be.pdfUpon learning the concept of cost of capital-  your assignment will be.pdf
Upon learning the concept of cost of capital- your assignment will be.pdf
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Recently uploaded (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Please use the exact code provided and show code using Alloy- Also- wh.pdf

  • 1. Please use the exact code provided and show code using Alloy. Also, what is needed for fact basicProperties, fact FSMProperties, and fact additionalProperties is listed. Let us assume that the execution of an FSM starts from its initial state by taking the initial transition (a transition that starts from the initial state) and moves to the next state. It then continues by taking one of the possible transitions forever unless it reaches a state that has no outgoing transition. Please use the following specification and complete fact Trace and pred Step to simulate the execution of an FSM. For this question, you need to use library util/ordering, the documentation of which is available here: https://alloy .readthedocs.io/en/latest/techniques/dynamics.html Add fact basicProperties, which captures the following properties. (a) (2 points) A transition is an element of the outTransition of a state if and only if it starts from the state. (b) (2 points) All states of an FSM are reachable from its initial state. (c) (2 points) A state s 1 is an element of nextS of state s 2 if there is a transition from s 2 to s 1 . Add fact FSMProperties, which captures the following properties. (a) (2 points) Every FSM has one initial state. (b) (2 points) Every transition has one action, one source, and one destination. (c) (2 points) Two transitions can not have the same source and destination. (d) (2 points) No loop can be started/ended from the initial state. Add fact additionalproperties, which captures the following properties. (a) (2 points) Every FSM has some states. (b) (2 points) No two FSMs share states. (c) (2 points) Any state belongs to an FSM. (d) (2 points) All actions are assigned to transitions.