[PATCH 6/6] formal/spinhint: Use \co{...} rather than {\tt ...}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 211a647f0530d7c7fbdab93ae5e76e71e04295f6 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Sat, 2 Feb 2019 20:00:36 +0900
Subject: [PATCH 6/6] formal/spinhint: Use \co{...} rather than {\tt ...}

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 formal/spinhint.tex | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/formal/spinhint.tex b/formal/spinhint.tex
index a13374a..d99254e 100644
--- a/formal/spinhint.tex
+++ b/formal/spinhint.tex
@@ -99,9 +99,9 @@ we lose no verification coverage by making them atomic.
 
 The \co{do-od} construct on lines~\lnref{dood1:b}-\lnref{dood1:e}
 implements a Promela loop,
-which can be thought of as a C {\tt for (;;)} loop containing a
+which can be thought of as a C \co{for (;;)} loop containing a
 \co{switch} statement that allows expressions in case labels.
-The condition blocks (prefixed by {\tt ::})
+The condition blocks (prefixed by \co{::})
 are scanned non-deterministically,
 though in this case only one of the conditions can possibly hold at a given
 time.
@@ -190,7 +190,7 @@ It is easy to fix this example by placing the body of the incrementer
 processes in an atomic blocks as shown in
 Listing~\ref{lst:analysis:Promela Code for Atomic Increment}.
 One could also have simply replaced the pair of statements with
-{\tt counter = counter + 1}, because Promela statements are
+\co{counter = counter + 1}, because Promela statements are
 atomic.
 Either way, running this modified model gives us an error-free traversal
 of the state space, as shown in
@@ -223,7 +223,7 @@ Listing~\ref{lst:analysis:Atomic Increment spin Output}.
 Table~\ref{tab:advsync:Memory Usage of Increment Model}
 shows the number of states and memory consumed
 as a function of number of incrementers modeled
-(by redefining {\tt NUMPROCS}):
+(by redefining \co{NUMPROCS}):
 
 Running unnecessarily large models is thus subtly discouraged, although
 882\,MB is well within the limits of modern desktop and laptop machines.
@@ -571,15 +571,15 @@ As expected, this run has no assertion failures (``errors: 0'').
 \QuickQuizAnswer{
 	There are several:
 	\begin{enumerate}
-	\item	The declaration of {\tt sum} should be moved to within
+	\item	The declaration of \co{sum} should be moved to within
 		the init block, since it is not used anywhere else.
 	\item	The assertion code should be moved outside of the
 		initialization loop.  The initialization loop can
 		then be placed in an atomic block, greatly reducing
 		the state space (by how much?).
 	\item	The atomic block covering the assertion code should
-		be extended to include the initialization of {\tt sum}
-		and {\tt j}, and also to cover the assertion.
+		be extended to include the initialization of \co{sum}
+		and \co{j}, and also to cover the assertion.
 		This also reduces the state space (again, by how
 		much?).
 	\end{enumerate}
-- 
2.7.4





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux