Index: doc/theses/colby_parsons_MMAth/local.bib
===================================================================
--- doc/theses/colby_parsons_MMAth/local.bib	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/local.bib	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -212,18 +212,2 @@
     year	= 2023,
 }
-
-@inproceedings{Harris02,
-  title={A practical multi-word compare-and-swap operation},
-  author={Harris, Timothy L and Fraser, Keir and Pratt, Ian A},
-  booktitle={Distributed Computing: 16th International Conference, DISC 2002 Toulouse, France, October 28--30, 2002 Proceedings 16},
-  pages={265--279},
-  year={2002},
-  organization={Springer}
-}
-
-@misc{kotlin:channel,
-  author = "Kotlin Documentation",
-  title = "Channel",
-  howpublished = {\url{https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/-channel/}},
-  note = "[Online; accessed 11-September-2023]"
-}
Index: doc/theses/colby_parsons_MMAth/text/CFA_concurrency.tex
===================================================================
--- doc/theses/colby_parsons_MMAth/text/CFA_concurrency.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/text/CFA_concurrency.tex	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,45 +1,42 @@
 \chapter{Concurrency in \CFA}\label{s:cfa_concurrency}
 
-The groundwork for concurrency in \CFA was laid by Thierry Delisle in his Master's Thesis~\cite{Delisle18}.
-In that work, he introduced generators, coroutines, monitors, and user-level threading.
-Not listed in that work were basic concurrency features needed as building blocks, such as locks, futures, and condition variables.
+The groundwork for concurrency in \CFA was laid by Thierry Delisle in his Master's Thesis~\cite{Delisle18}. 
+In that work, he introduced generators, coroutines, monitors, and user-level threading. 
+Not listed in that work were basic concurrency features needed as building blocks, such as locks, futures, and condition variables, which he also added to \CFA.
 
 \section{Threading Model}\label{s:threading}
+\CFA provides user-level threading and supports an $M$:$N$ threading model where $M$ user threads are scheduled on $N$ kernel threads, where both $M$ and $N$ can be explicitly set by the user. 
+Kernel threads are created by declaring a @processor@ structure. 
+User-thread types are defined by creating a @thread@ aggregate-type, \ie replace @struct@ with @thread@. 
+For each thread type a corresponding @main@ routine must be defined, which is where the thread starts running once it is created. 
+Examples of \CFA  user thread and processor creation are shown in \VRef[Listing]{l:cfa_thd_init}. 
 
-\CFA provides user-level threading and supports an $M$:$N$ threading model where $M$ user threads are scheduled on $N$ kernel threads and both $M$ and $N$ can be explicitly set by the programmer.
-Kernel threads are created by declaring processor objects;
-user threads are created by declaring a thread objects.
-\VRef[Listing]{l:cfa_thd_init} shows a typical examples of creating a \CFA user-thread type, and then as declaring processor ($N$) and thread objects ($M$).
 \begin{cfa}[caption={Example of \CFA user thread and processor creation},label={l:cfa_thd_init}]
-@thread@ my_thread {				$\C{// user thread type (like structure)}$
-	... // arbitrary number of field declarations
-};
-void @main@( @my_thread@ & this ) {	$\C{// thread start routine}$
+@thread@ my_thread {...};			$\C{// user thread type}$
+void @main@( my_thread & this ) {	$\C{// thread start routine}$
 	sout | "Hello threading world";
 }
-int main() {						$\C{// program starts with a processor (kernel thread)}$
+
+int main() {
 	@processor@ p[2];				$\C{// add 2 processors = 3 total with starting processor}$
 	{
-		@my_thread@ t[2], * t3 = new();	$\C{// create 2 stack allocated, 1 dynamic allocated user threads}$
+		my_thread t[2], * t3 = new();	$\C{// create 3 user threads, running in main routine}$
 		... // execute concurrently
-		delete( t3 );				$\C{// wait for t3 to end and deallocate}$
-    } // wait for threads t[0] and t[1] to end and deallocate
-} // deallocate additional kernel threads
+		delete( t3 );				$\C{// wait for thread to end and deallocate}$
+	} // wait for threads to end and deallocate
+}
 \end{cfa}
-A thread type is are defined using the aggregate kind @thread@.
-For each thread type, a corresponding @main@ routine must be defined, which is where the thread starts running once when a thread object are is created.
-The @processor@ declaration adds addition kernel threads alongside the existing processor given to each program.
-Thus, for $N$ processors, allocate $N-1$ processors.
-A thread is implicitly joined at deallocation, either implicitly at block exit for stack allocation or explicitly at @delete@ for heap allocation.
-The thread performing the deallocation must wait for the thread to terminate before the deallocation can occur.
+
+When processors are added, they are added alongside the existing processor given to each program. 
+Thus, for $N$ processors, allocate $N-1$ processors. 
+A thread is implicitly joined at deallocation, either implicitly at block exit for stack allocation or explicitly at @delete@ for heap allocation. 
+The thread performing the deallocation must wait for the thread to terminate before the deallocation can occur. 
 A thread terminates by returning from the main routine where it starts.
 
-\section{Existing and New Concurrency Features}
-
+\section{Existing Concurrency Features}
 \CFA currently provides a suite of concurrency features including futures, locks, condition variables, generators, coroutines, monitors.
 Examples of these features are omitted as most of them are the same as their counterparts in other languages.
 It is worthwhile to note that all concurrency features added to \CFA are made to be compatible each other.
-The laundry list of features above and the ones introduced in this thesis can be used in the same program without issue, and the features are designed to interact in meaningful ways.
-For example, a thread can inteact with a monitor, which can interact with a coroutine, which can interact with a generator.
+The laundry list of features above and the ones introduced in this thesis can be used in the same program without issue.
 
 Solving concurrent problems requires a diverse toolkit.
Index: doc/theses/colby_parsons_MMAth/text/CFA_intro.tex
===================================================================
--- doc/theses/colby_parsons_MMAth/text/CFA_intro.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/text/CFA_intro.tex	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -9,5 +9,5 @@
 \CFA is a layer over C, is transpiled\footnote{Source to source translator.} to C, and is largely considered to be an extension of C.
 Beyond C, it adds productivity features, extended libraries, an advanced type-system, and many control-flow/concurrency constructions.
-However, \CFA stays true to the C programming style, with most code revolving around @struct@s and routines, and respects the same rules as C.
+However, \CFA stays true to the C programming style, with most code revolving around @struct@'s and routines, and respects the same rules as C.
 \CFA is not object oriented as it has no notion of @this@ (receiver) and no structures with methods, but supports some object oriented ideas including constructors, destructors, and limited nominal inheritance.
 While \CFA is rich with interesting features, only the subset pertinent to this work is discussed here.
@@ -17,5 +17,4 @@
 References in \CFA are a layer of syntactic sugar over pointers to reduce the number of syntactic ref/deref operations needed with pointer usage.
 Pointers in \CFA differ from C and \CC in their use of @0p@ instead of C's @NULL@ or \CC's @nullptr@.
-References can contain 0p in \CFA, which is the equivalent of a null reference.
 Examples of references are shown in \VRef[Listing]{l:cfa_ref}.
 
@@ -65,6 +64,4 @@
 This feature is also implemented in Pascal~\cite{Pascal}.
 It can exist as a stand-alone statement or wrap a routine body to expose aggregate fields.
-If exposed fields share a name, the type system will attempt to disambiguate them based on type.
-If the type system is unable to disambiguate the fields then the user must qualify those names to avoid a compilation error.
 Examples of the @with@ statement are shown in \VRef[Listing]{l:cfa_with}.
 
Index: doc/theses/colby_parsons_MMAth/text/actors.tex
===================================================================
--- doc/theses/colby_parsons_MMAth/text/actors.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/text/actors.tex	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -7,5 +7,5 @@
 Actors are an indirect concurrent feature that abstracts threading away from a programmer, and instead provides \gls{actor}s and messages as building blocks for concurrency.
 Hence, actors are in the realm of \gls{impl_concurrency}, where programmers write concurrent code without dealing with explicit thread creation or interaction.
-Actor message-passing is similar to channels, but with more abstraction, so there is no shared data to protect, making actors amenable to a distributed environment.
+Actor message-passing is similar to channels, but with more abstraction, so there is no shared data to protect, making actors amenable in a distributed environment.
 Actors are often used for high-performance computing and other data-centric problems, where the ease of use and scalability of an actor system provides an advantage over channels.
 
@@ -14,5 +14,5 @@
 
 \section{Actor Model}
-The \Newterm{actor model} is a concurrent paradigm where an actor is used as the fundamental building-block for computation, and the data for computation is distributed to actors in the form of messages~\cite{Hewitt73}.
+The \Newterm{actor model} is a concurrent paradigm where computation is broken into units of work called actors, and the data for computation is distributed to actors in the form of messages~\cite{Hewitt73}.
 An actor is composed of a \Newterm{mailbox} (message queue) and a set of \Newterm{behaviours} that receive from the mailbox to perform work.
 Actors execute asynchronously upon receiving a message and can modify their own state, make decisions, spawn more actors, and send messages to other actors.
@@ -22,20 +22,19 @@
 For example, mutual exclusion and locking are rarely relevant concepts in an actor model, as actors typically only operate on local state.
 
-\subsection{Classic Actor System}
-An implementation of the actor model with a theatre (group) of actors is called an \Newterm{actor system}.
-Actor systems largely follow the actor model, but can differ in some ways.
-
-In an actor system, an actor does not have a thread.
+An actor does not have a thread.
 An actor is executed by an underlying \Newterm{executor} (kernel thread-pool) that fairly invokes each actor, where an actor invocation processes one or more messages from its mailbox.
 The default number of executor threads is often proportional to the number of computer cores to achieve good performance.
 An executor is often tunable with respect to the number of kernel threads and its scheduling algorithm, which optimize for specific actor applications and workloads \see{Section~\ref{s:ActorSystem}}.
 
+\subsection{Classic Actor System}
+An implementation of the actor model with a community of actors is called an \Newterm{actor system}.
+Actor systems largely follow the actor model, but can differ in some ways.
 While the semantics of message \emph{send} is asynchronous, the implementation may be synchronous or a combination.
-The default semantics for message \emph{receive} is \gls{fifo}, so an actor receives messages from its mailbox in temporal (arrival) order.
-% however, messages sent among actors arrive in any order.
+The default semantics for message \emph{receive} is \gls{fifo}, so an actor receives messages from its mailbox in temporal (arrival) order;
+however, messages sent among actors arrive in any order.
 Some actor systems provide priority-based mailboxes and/or priority-based message-selection within a mailbox, where custom message dispatchers search among or within a mailbox(es) with a predicate for specific kinds of actors and/or messages.
-Some actor systems provide a shared mailbox where multiple actors receive from a common mailbox~\cite{Akka}, which is contrary to the no-sharing design of the basic actor-model (and may require additional locking).
-For non-\gls{fifo} service, some notion of fairness (eventual progress) should exist, otherwise messages have a high latency or starve, \ie are never received.
-% Finally, some actor systems provide multiple typed-mailboxes, which then lose the actor-\lstinline{become} mechanism \see{Section~\ref{s:SafetyProductivity}}.
+Some actor systems provide a shared mailbox where multiple actors receive from a common mailbox~\cite{Akka}, which is contrary to the no-sharing design of the basic actor-model (and requires additional locking).
+For non-\gls{fifo} service, some notion of fairness (eventual progress) must exist, otherwise messages have a high latency or starve, \ie never received.
+Finally, some actor systems provide multiple typed-mailboxes, which then lose the actor-\lstinline{become} mechanism \see{Section~\ref{s:SafetyProductivity}}.
 %While the definition of the actor model provides no restrictions on message ordering, actor systems tend to guarantee that messages sent from a given actor $i$ to actor $j$ arrive at actor $j$ in the order they were sent.
 Another way an actor system varies from the model is allowing access to shared global-state.
@@ -61,5 +60,5 @@
 Figure \ref{f:inverted_actor} shows an actor system designed as \Newterm{message-centric}, where a set of messages are scheduled and run on underlying executor threads~\cite{uC++,Nigro21}.
 This design is \Newterm{inverted} because actors belong to a message queue, whereas in the classic approach a message queue belongs to each actor.
-Now a message send must query the actor to know which message queue to post the message to.
+Now a message send must queries the actor to know which message queue to post the message.
 Again, the simplest design has a single global queue of messages accessed by the executor threads, but this approach has the same contention problem by the executor threads.
 Therefore, the messages (mailboxes) are sharded and executor threads schedule each message, which points to its corresponding actor.
@@ -177,5 +176,5 @@
 	@actor | str_msg | int_msg;@			$\C{// cascade sends}$
 	@actor | int_msg;@						$\C{// send}$
-	@actor | finished_msg;@					$\C{// send => terminate actor (builtin Poison-Pill)}$
+	@actor | finished_msg;@					$\C{// send => terminate actor (deallocation deferred)}$
 	stop_actor_system();					$\C{// waits until actors finish}\CRT$
 } // deallocate actor, int_msg, str_msg
@@ -493,5 +492,4 @@
 Each executor thread iterates over its own message queues until it finds one with messages.
 At this point, the executor thread atomically \gls{gulp}s the queue, meaning it moves the contents of message queue to a local queue of the executor thread.
-Gulping moves the contents of the message queue as a batch rather than removing individual elements.
 An example of the queue gulping operation is shown in the right side of Figure \ref{f:gulp}, where an executor thread gulps queue 0 and begins to process it locally.
 This step allows the executor thread to process the local queue without any atomics until the next gulp.
@@ -525,5 +523,5 @@
 
 Since the copy queue is an array, envelopes are allocated first on the stack and then copied into the copy queue to persist until they are no longer needed.
-For many workloads, the copy queues reallocate and grow in size to facilitate the average number of messages in flight and there are no further dynamic allocations.
+For many workloads, the copy queues grow in size to facilitate the average number of messages in flight and there are no further dynamic allocations.
 The downside of this approach is that more storage is allocated than needed, \ie each copy queue is only partially full.
 Comparatively, the individual envelope allocations of a list-based queue mean that the actor system always uses the minimum amount of heap space and cleans up eagerly.
@@ -564,5 +562,5 @@
 To ensure sequential actor execution and \gls{fifo} message delivery in a message-centric system, stealing requires finding and removing \emph{all} of an actor's messages, and inserting them consecutively in another message queue.
 This operation is $O(N)$ with a non-trivial constant.
-The only way for work stealing to become practical is to shard each worker's message queue \see{Section~\ref{s:executor}}, which also reduces contention, and to steal queues to eliminate queue searching.
+The only way for work stealing to become practical is to shard each worker's message queue, which also reduces contention, and to steal queues to eliminate queue searching.
 
 Given queue stealing, the goal of the presented stealing implementation is to have an essentially zero-contention-cost stealing mechanism.
@@ -578,5 +576,5 @@
 
 The outline for lazy-stealing by a thief is: select a victim, scan its queues once, and return immediately if a queue is stolen.
-The thief then assumes its normal operation of scanning over its own queues looking for work, where stolen work is placed at the end of the scan.
+The thief then assumes it normal operation of scanning over its own queues looking for work, where stolen work is placed at the end of the scan.
 Hence, only one victim is affected and there is a reasonable delay between stealing events as the thief scans its ready queue looking for its own work before potentially stealing again.
 This lazy examination by the thief has a low perturbation cost for victims, while still finding work in a moderately loaded system.
@@ -638,8 +636,4 @@
 % Note that a thief never exceeds its $M$/$N$ worker range because it is always exchanging queues with other workers.
 If no appropriate victim mailbox is found, no swap is attempted.
-Note that since the mailbox checks happen non-atomically, the thieves effectively guess which mailbox is ripe for stealing.
-The thief may read stale data and can end up stealing an ineligible or empty mailbox.
-This is not a correctness issue and is addressed in Section~\ref{s:steal_prob}, but the steal will likely not be productive.
-These unproductive steals are uncommon, but do occur with some frequency, and are a tradeoff that is made to achieve minimal victim contention.
 
 \item
@@ -650,5 +644,5 @@
 \end{enumerate}
 
-\subsection{Stealing Problem}\label{s:steal_prob}
+\subsection{Stealing Problem}
 Each queue access (send or gulp) involving any worker (thief or victim) is protected using spinlock @mutex_lock@.
 However, to achieve the goal of almost zero contention for the victim, it is necessary that the thief does not acquire any queue spinlocks in the stealing protocol.
@@ -709,5 +703,4 @@
 None of the work-stealing actor-systems examined in this work perform well on the repeat benchmark.
 Hence, for all non-pathological cases, the claim is made that this stealing mechanism has a (probabilistically) zero-victim-cost in practice.
-Future work on the work stealing system could include a backoff mechanism after failed steals to further address the pathological cases.
 
 \subsection{Queue Pointer Swap}\label{s:swap}
@@ -716,5 +709,5 @@
 The \gls{cas} is a read-modify-write instruction available on most modern architectures.
 It atomically compares two memory locations, and if the values are equal, it writes a new value into the first memory location.
-A sequential specification of \gls{cas} is:
+A software implementation of \gls{cas} is:
 \begin{cfa}
 // assume this routine executes atomically
@@ -762,8 +755,5 @@
 
 Either a true memory/memory swap instruction or a \gls{dcas} would provide the ability to atomically swap two memory locations, but unfortunately neither of these instructions are supported on the architectures used in this work.
-There are lock-free implemetions of DCAS, or more generally K-word CAS (also known as MCAS or CASN)~\cite{Harris02} and LLX/SCX~\cite{Brown14} that can be used to provide the desired atomic swap capability.
-However, these lock-free implementations were not used as it is advantageous in the work stealing case to let an attempted atomic swap fail instead of retrying.
 Hence, a novel atomic swap specific to the actor use case is simulated, called \gls{qpcas}.
-Note that this swap is \emph{not} lock-free.
 The \gls{qpcas} is effectively a \gls{dcas} special cased in a few ways:
 \begin{enumerate}
@@ -776,5 +766,5 @@
 \end{cfa}
 \item
-The values swapped are never null pointers, so a null pointer can be used as an intermediate value during the swap. As such, null is effectively used as a lock for the swap.
+The values swapped are never null pointers, so a null pointer can be used as an intermediate value during the swap.
 \end{enumerate}
 Figure~\ref{f:qpcasImpl} shows the \CFA pseudocode for the \gls{qpcas}.
@@ -872,5 +862,4 @@
 The concurrent proof of correctness is shown through the existence of an invariant.
 The invariant states when a queue pointer is set to @0p@ by a thief, then the next write to the pointer can only be performed by the same thief.
-This is effictively a mutual exclusion condition for the later write.
 To show that this invariant holds, it is shown that it is true at each step of the swap.
 \begin{itemize}
@@ -1022,6 +1011,4 @@
 The intuition behind this heuristic is that the slowest worker receives help via work stealing until it becomes a thief, which indicates that it has caught up to the pace of the rest of the workers.
 This heuristic should ideally result in lowered latency for message sends to victim workers that are overloaded with work.
-It must be acknowledged that this linear search could cause a lot of cache coherence traffic.
-Future work on this heuristic could include introducing a search that has less impact on caching.
 A negative side-effect of this heuristic is that if multiple thieves steal at the same time, they likely steal from the same victim, which increases the chance of contention.
 However, given that workers have multiple queues, often in the tens or hundreds of queues, it is rare for two thieves to attempt stealing from the same queue.
@@ -1041,8 +1028,8 @@
 \CFA's actor system comes with a suite of safety and productivity features.
 Most of these features are only present in \CFA's debug mode, and hence, have zero-cost in no-debug mode.
-The suite of features include the following.
+The suit of features include the following.
 \begin{itemize}
 \item Static-typed message sends:
-If an actor does not support receiving a given message type, the receive call is rejected at compile time, preventing unsupported messages from being sent to an actor.
+If an actor does not support receiving a given message type, the receive call is rejected at compile time, allowing unsupported messages to never be sent to an actor.
 
 \item Detection of message sends to Finished/Destroyed/Deleted actors:
@@ -1055,5 +1042,5 @@
 
 \item When an executor is configured, $M >= N$.
-That is, each worker must receive at least one mailbox queue, since otherwise a worker cannot receive any work without a queue pull messages from.
+That is, each worker must receive at least one mailbox queue, otherwise the worker spins and never does any work.
 
 \item Detection of unsent messages:
@@ -1113,7 +1100,7 @@
 \begin{list}{\arabic{enumi}.}{\usecounter{enumi}\topsep=5pt\parsep=5pt\itemsep=0pt}
 \item
-Supermicro SYS--6029U--TR4 Intel Xeon Gold 5220R 24--core socket, hyper-threading $\times$ 2 sockets (96 process\-ing units), running Linux v5.8.0--59--generic
-\item
-Supermicro AS--1123US--TR4 AMD EPYC 7662 64--core socket, hyper-threading $\times$ 2 sockets (256 processing units), running Linux v5.8.0--55--generic
+Supermicro SYS--6029U--TR4 Intel Xeon Gold 5220R 24--core socket, hyper-threading $\times$ 2 sockets (48 process\-ing units) 2.2GHz, running Linux v5.8.0--59--generic
+\item
+Supermicro AS--1123US--TR4 AMD EPYC 7662 64--core socket, hyper-threading $\times$ 2 sockets (256 processing units) 2.0 GHz, running Linux v5.8.0--55--generic
 \end{list}
 
@@ -1125,5 +1112,4 @@
 All benchmarks are run 5 times and the median is taken.
 Error bars showing the 95\% confidence intervals appear on each point in the graphs.
-The confidence intervals are calculated using bootstrapping to avoid normality assumptions.
 If the confidence bars are small enough, they may be obscured by the data point.
 In this section, \uC is compared to \CFA frequently, as the actor system in \CFA is heavily based off of \uC's actor system.
Index: doc/theses/colby_parsons_MMAth/text/channels.tex
===================================================================
--- doc/theses/colby_parsons_MMAth/text/channels.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/text/channels.tex	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -20,10 +20,9 @@
 Neither Go nor \CFA channels have the restrictions of the early channel-based concurrent systems.
 
-Other popular languages and libraries that provide channels include C++ Boost~\cite{boost:channel}, Rust~\cite{rust:channel}, Haskell~\cite{haskell:channel}, OCaml~\cite{ocaml:channel}, and Kotlin~\cite{kotlin:channel}.
+Other popular languages and libraries that provide channels include C++ Boost~\cite{boost:channel}, Rust~\cite{rust:channel}, Haskell~\cite{haskell:channel}, and OCaml~\cite{ocaml:channel}.
 Boost channels only support asynchronous (non-blocking) operations, and Rust channels are limited to only having one consumer per channel.
 Haskell channels are unbounded in size, and OCaml channels are zero-size.
 These restrictions in Haskell and OCaml are likely due to their functional approach, which results in them both using a list as the underlying data structure for their channel.
 These languages and libraries are not discussed further, as their channel implementation is not comparable to the bounded-buffer style channels present in Go and \CFA.
-Kotlin channels are comparable to Go and \CFA, but unfortunately they were not identified as a comparator until after presentation of this thesis and are omitted due to time constraints.
 
 \section{Producer-Consumer Problem}
@@ -32,5 +31,5 @@
 In the problem, threads interact with a buffer in two ways: producing threads insert values into the buffer and consuming threads remove values from the buffer.
 In general, a buffer needs protection to ensure a producer only inserts into a non-full buffer and a consumer only removes from a non-empty buffer (synchronization).
-As well, a buffer needs protection from concurrent access by multiple producers or consumers attempting to insert or remove simultaneously, which is often provided by MX.
+As well, a buffer needs protection from concurrent access by multiple producers or consumers attempting to insert or remove simultaneously (MX).
 
 \section{Channel Size}\label{s:ChannelSize}
@@ -42,5 +41,7 @@
 Fixed sized (bounded) implies the communication is mostly asynchronous, \ie the producer can proceed up to the buffer size and vice versa for the consumer with respect to removal, at which point the producer/consumer would wait.
 \item
-Infinite sized (unbounded) implies the communication is asymmetrically asynchronous, \ie the producer never waits but the consumer waits when the buffer is empty.
+Infinite sized (unbounded) implies the communication is asynchronous, \ie the producer never waits but the consumer waits when the buffer is empty.
+Since memory is finite, all unbounded buffers are ultimately bounded;
+this restriction must be part of its implementation.
 \end{enumerate}
 
@@ -49,8 +50,7 @@
 However, like MX, a buffer should ensure every value is eventually removed after some reasonable bounded time (no long-term starvation).
 The simplest way to prevent starvation is to implement the buffer as a queue, either with a cyclic array or linked nodes.
-While \gls{fifo} is not required for producer-consumer problem correctness, it is a desired property in channels as it provides predictable and often relied upon channel ordering behaviour to users.
 
 \section{First-Come First-Served}
-As pointed out, a bounded buffer implementation often provides MX among multiple producers or consumers.
+As pointed out, a bounded buffer requires MX among multiple producers or consumers.
 This MX should be fair among threads, independent of the \gls{fifo} buffer being fair among values.
 Fairness among threads is called \gls{fcfs} and was defined by Lamport~\cite[p.~454]{Lamport74}.
@@ -66,11 +66,11 @@
 
 \section{Channel Implementation}\label{s:chan_impl}
-The programming languages Go, Kotlin, and Erlang provide user-level threading where the primary communication mechanism is channels.
-These languages have user-level threading and preemptive scheduling, and both use channels for communication.
-Go and Kotlin provide multiple homogeneous channels; each have a single associated type.
+Currently, only the Go and Erlang programming languages provide user-level threading where the primary communication mechanism is channels.
+Both Go and Erlang have user-level threading and preemptive scheduling, and both use channels for communication.
+Go provides multiple homogeneous channels; each have a single associated type.
 Erlang, which is closely related to actor systems, provides one heterogeneous channel per thread (mailbox) with a typed receive pattern.
-Go and Kotlin encourage users to communicate via channels, but provides them as an optional language feature.
+Go encourages users to communicate via channels, but provides them as an optional language feature.
 On the other hand, Erlang's single heterogeneous channel is a fundamental part of the threading system design; using it is unavoidable.
-Similar to Go and Kotlin, \CFA's channels are offered as an optional language feature.
+Similar to Go, \CFA's channels are offered as an optional language feature.
 
 While iterating on channel implementation, experiments were conducted that varied the producer-consumer algorithm and lock type used inside the channel.
@@ -83,6 +83,4 @@
 The Go channel implementation utilizes cooperation among threads to achieve good performance~\cite{go:chan}.
 This cooperation only occurs when producers or consumers need to block due to the buffer being full or empty.
-After a producer blocks it must wait for a consumer to signal it and vice versa.
-The consumer or producer that signals a blocked thread is called the signalling thread.
 In these cases, a blocking thread stores their relevant data in a shared location and the signalling thread completes the blocking thread's operation before waking them;
 \ie the blocking thread has no work to perform after it unblocks because the signalling threads has done this work.
@@ -90,5 +88,5 @@
 First, each thread interacting with the channel only acquires and releases the internal channel lock once.
 As a result, contention on the internal lock is decreased; only entering threads compete for the lock since unblocking threads do not reacquire the lock.
-The other advantage of Go's wait-morphing approach is that it eliminates the need to wait for signalled threads to run.
+The other advantage of Go's wait-morphing approach is that it eliminates the bottleneck of waiting for signalled threads to run.
 Note that the property of acquiring/releasing the lock only once can also be achieved with a different form of cooperation, called \Newterm{baton passing}.
 Baton passing occurs when one thread acquires a lock but does not release it, and instead signals a thread inside the critical section, conceptually ``passing'' the mutual exclusion from the signalling thread to the signalled thread.
@@ -96,5 +94,5 @@
 the wait-morphing approach has threads cooperate by completing the signalled thread's operation, thus removing a signalled thread's need for mutual exclusion after unblocking.
 While baton passing is useful in some algorithms, it results in worse channel performance than the Go approach.
-In the baton-passing approach, all threads need to wait for the signalled thread to unblock and run before other operations on the channel can proceed, since the signalled thread holds mutual exclusion;
+In the baton-passing approach, all threads need to wait for the signalled thread to reach the front of the ready queue, context switch, and run before other operations on the channel can proceed, since the signalled thread holds mutual exclusion;
 in the wait-morphing approach, since the operation is completed before the signal, other threads can continue to operate on the channel without waiting for the signalled thread to run.
 
@@ -156,5 +154,4 @@
 Thus, improperly handled \gls{toctou} issues with channels often result in deadlocks as threads performing the termination may end up unexpectedly blocking in their attempt to help other threads exit the system.
 
-\subsubsection{Go Channel Close}
 Go channels provide a set of tools to help with concurrent shutdown~\cite{go:chan} using a @close@ operation in conjunction with the \Go{select} statement.
 The \Go{select} statement is discussed in \ref{s:waituntil}, where \CFA's @waituntil@ statement is compared with the Go \Go{select} statement.
@@ -178,6 +175,5 @@
 Hence, due to Go's asymmetric approach to channel shutdown, separate synchronization between producers and consumers of a channel has to occur during shutdown.
 
-\subsubsection{\CFA Channel Close}
-\CFA channels have access to an extensive exception handling mechanism~\cite{Beach21}.
+\paragraph{\CFA channels} have access to an extensive exception handling mechanism~\cite{Beach21}.
 As such \CFA uses an exception-based approach to channel shutdown that is symmetric for both producers and consumers, and supports graceful shutdown.
 
Index: doc/theses/colby_parsons_MMAth/text/conclusion.tex
===================================================================
--- doc/theses/colby_parsons_MMAth/text/conclusion.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/text/conclusion.tex	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -5,32 +5,32 @@
 % ======================================================================
 
-The goal of this thesis is to expand concurrent support in \CFA to fill in gaps and increase support for writing safe and efficient concurrent programs.
-The presented features achieve this goal and provide users with the means to write scalable concurrent programs in \CFA through multiple avenues.
-Additionally, the tools presented provide safety and productivity features including: detection of deadlock and other common concurrency errors, easy concurrent shutdown, and toggleable performance statistics.
+The goal of this thesis was to expand the concurrent support that \CFA offers to fill in gaps and support language users' ability to write safe and efficient concurrent programs.
+The presented features achieves this goal, and provides users with the means to write scalable programs in \CFA through multiple avenues.
+Additionally, the tools presented include safety and productivity features from deadlock detection, to detection of common programming errors, easy concurrent shutdown, and toggleable performance statistics.
+Programmers often have preferences between computing paradigms and concurrency is no exception.
+If users prefer the message passing paradigm of concurrency, \CFA now provides message passing utilities in the form of an actor system and channels.
+For shared memory concurrency, the mutex statement provides a safe and easy-to-use interface for mutual exclusion.
+The @waituntil@ statement aids in writing concurrent programs in both the message passing and shared memory paradigms of concurrency.
+Furthermore, no other language provides a synchronous multiplexing tool polymorphic over resources like \CFA's @waituntil@.
+This work successfully provides users with familiar concurrent language support, but with additional value added over similar utilities in other popular languages.
 
-For locking, the mutex statement provides a safe and easy-to-use interface for mutual exclusion.
-If programmers prefer the message-passing paradigm, \CFA now supports it in the form of channels and actors.
-The @waituntil@ statement simplifies writing concurrent programs in both the message-passing and shared-memory paradigms of concurrency.
-Finally, no other programming language provides a synchronous multiplexing tool that is polymorphic over resources like \CFA's @waituntil@.
-This work successfully provides users with familiar concurrent-language support, but with additional value added over similar utilities in other popular languages.
-
-On overview of the contributions made in this thesis include the following:
+On overview of the contributions in this thesis include the following:
 \begin{enumerate}
-\item The mutex statement, which provides performant and deadlock-free multi-lock acquisition.
-\item Channels with comparable performance to Go, which have safety and productivity features including deadlock detection and an easy-to-use exception-based channel @close@ routine.
-\item An in-memory actor system, which achieves the lowest latency message send of systems tested due to the novel copy-queue data structure.
-\item As well, the actor system has built-in detection of six common actor errors, with excellent performance compared to other systems across all benchmarks presented in this thesis.
-\item A @waituntil@ statement, which tackles the hard problem of allowing a thread wait synchronously for an arbitrary set of concurrent resources.
+\item The mutex statement, which provides performant and deadlock-free multiple lock acquisition.
+\item Channels with comparable performance to Go, that have safety and productivity features including deadlock detection, and an easy-to-use exception-based channel @close@ routine.
+\item An in-memory actor system that achieved the lowest latency message send of systems tested due to the novel copy-queue data structure. The actor system presented has built-in detection of six common actor errors, and it has good performance compared to other systems on all benchmarks.
+\item A @waituntil@ statement which tackles the hard problem of allowing a thread to safely synch\-ronously wait for some set of concurrent resources.
 \end{enumerate}
 
-The added features are now commonly used to solve concurrent problems in \CFA.
-The @mutex@ statement sees use across almost all concurrent code in \CFA, as it is the simplest mechanism for providing thread-safe input and output.
-The channels and the @waituntil@ statement see use in programs where a thread operates as a server or administrator, which accepts and distributes work among channels based on some shared state.
-When implemented, the polymorphic support of the @waituntil@ statement will see use with the actor system to enable user threads outside the actor system to wait for work to be done or for actors to finish.
-Finally, the new features are often combined, \eg channels pass pointers to shared memory that may still need mutual exclusion, requiring the @mutex@ statement to be used.
+The features presented are commonly used in conjunction to solve concurrent problems.
+The @waituntil@ statement, the @mutex@ statement, and channels will all likely see use in a program where a thread operates as an administrator or server which accepts and distributes work among channels based on some shared state.
+The @mutex@ statement sees use across almost all concurrent code in \CFA, since it is used with the stream operator @sout@ to provide thread-safe output.
+While not yet implemented, the polymorphic support of the @waituntil@ statement could see use in conjunction with the actor system to enable user threads outside the actor system to wait for work to be done, or for actors to finish.
+A user of \CFA does not have to solely subscribe to the message passing or shared memory concurrent paradigm.
+As such, channels in \CFA are often used to pass pointers to shared memory that may still need mutual exclusion, requiring the @mutex@ statement to also be used.
 
 From the novel copy-queue data structure in the actor system and the plethora of user-supporting safety features, all these utilities build upon existing concurrent tooling with value added.
 Performance results verify that each new feature is comparable or better than similar features in other programming languages.
-All in all, this suite of concurrent tools expands a \CFA programmer's ability to easily write safe and performant multi-threaded programs.
+All in all, this suite of concurrent tools expands users' ability to easily write safe and performant multi-threaded programs in \CFA.
 
 \section{Future Work}
@@ -40,5 +40,5 @@
 This thesis only scratches the surface of implicit concurrency by providing an actor system.
 There is room for more implicit concurrency tools in \CFA.
-User-defined implicit concurrency in the form of annotated loops or recursive concurrent functions exists in other languages and libraries~\cite{uC++,OpenMP}.
+User-defined implicit concurrency in the form of annotated loops or recursive concurrent functions exists in many other languages and libraries~\cite{uC++,OpenMP}.
 Similar implicit concurrency mechanisms could be implemented and expanded on in \CFA.
 Additionally, the problem of automatic parallelism of sequential programs via the compiler is an interesting research space that other languages have approached~\cite{wilson94,haskell:parallel} and could be explored in \CFA.
@@ -46,9 +46,9 @@
 \subsection{Advanced Actor Stealing Heuristics}
 
-In this thesis, two basic victim-selection heuristics are chosen when implementing the work-stealing actor-system.
-Good victim selection is an active area of work-stealing research, especially when taking into account NUMA effects and cache locality~\cite{barghi18,wolke17}.
+In this thesis, two basic victim-selection heuristics are chosen when implementing the work stealing actor system.
+Good victim selection is an active area of work stealing research, especially when taking into account NUMA effects and cache locality~\cite{barghi18,wolke17}.
 The actor system in \CFA is modular and exploration of other victim-selection heuristics for queue stealing in \CFA could be provided by pluggable modules.
 Another question in work stealing is: when should a worker thread steal?
-Work-stealing systems can often be too aggressive when stealing, causing the cost of the steal to be have a negative rather positive effect on performance.
+Work stealing systems can often be too aggressive when stealing, causing the cost of the steal to be have a negative rather positive effect on performance.
 Given that thief threads often have cycles to spare, there is room for a more nuanced approaches when stealing.
 Finally, there is the very difficult problem of blocking and unblocking idle threads for workloads with extreme oscillations in CPU needs.
@@ -56,6 +56,5 @@
 \subsection{Synchronously Multiplexing System Calls}
 
-There are many tools that try to synchronously wait for or asynchronously check I/O.
-Improvements in this area pay dividends in many areas of I/O based programming~\cite{linux:select,linux:poll,linux:epoll,linux:iouring}.
+There are many tools that try to synchronously wait for or asynchronously check I/O, since improvements in this area pay dividends in many areas of computer science~\cite{linux:select,linux:poll,linux:epoll,linux:iouring}.
 Research on improving user-space tools to synchronize over I/O and other system calls is an interesting area to explore in the world of concurrent tooling.
 Specifically, incorporating I/O into the @waituntil@ to allow a network server to work with multiple kinds of asynchronous I/O interconnects without using tradition event loops.
@@ -70,5 +69,5 @@
 The semantics and safety of these builtins require careful navigation since they require the user to have a deep understanding of concurrent memory-ordering models.
 Furthermore, these atomics also often require a user to understand how to fence appropriately to ensure correctness.
-All these problems and more would benefit from language support in \CFA.
+All these problems and more could benefit from language support in \CFA.
 Adding good language support for atomics is a difficult problem, which if solved well, would allow for easier and safer writing of low-level concurrent code.
 
Index: doc/theses/colby_parsons_MMAth/text/intro.tex
===================================================================
--- doc/theses/colby_parsons_MMAth/text/intro.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/text/intro.tex	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -5,64 +5,60 @@
 % ======================================================================
 
-Concurrent programs are the wild west of programming because determinism and simple ordering of program operations go out the window.
-To seize the reins and write performant and safe concurrent code, high-level concurrent-language features are needed.
-Like any other craftsmen, programmers are only as good as their tools, and concurrent tooling and features are no exception.
+Concurrent programs are the wild west of programming because determinism and simple ordering of program operations go out the window. 
+To seize the reins and write performant and safe concurrent code, high-level concurrent-language features are needed. 
+Like any other craftsmen, programmers are only as good as their tools, and concurrent tooling and features are no exception. 
 
-This thesis presents a suite of high-level concurrent-language features implemented in the new programming-language \CFA.
-These features aim to improve the performance of concurrent programs, aid in writing safe programs, and assist user productivity by improving the ease of concurrent programming.
-The groundwork for concurrent features in \CFA was designed and implemented by Thierry Delisle~\cite{Delisle18}, who contributed the threading system, coroutines, monitors and other basic concurrency tools.
-This thesis builds on top of that foundation by providing a suite of high-level concurrent features.
-The features include a @mutex@ statement, channels, a @waituntil@ statement, and an actor system.
-All of these features exist in other programming languages in some shape or form;
-however, this thesis extends the original ideas by improving performance, productivity, and safety.
+This thesis presents a suite of high-level concurrent-language features implemented in the new programming-language \CFA. 
+These features aim to improve the performance of concurrent programs, aid in writing safe programs, and assist user productivity by improving the ease of concurrent programming. 
+The groundwork for concurrent features in \CFA was implemented by Thierry Delisle~\cite{Delisle18}, who contributed the threading system, coroutines, monitors and other tools. 
+This thesis builds on top of that foundation by providing a suite of high-level concurrent features. 
+The features include a @mutex@ statement, channels, a @waituntil@ statement, and an actor system. 
+All of these features exist in other programming languages in some shape or form, however this thesis extends the original ideas by improving performance, productivity, and safety.
 
 \section{The Need For Concurrent Features}
+Asking a programmer to write a complex concurrent program without any concurrent language features is asking them to undertake a very difficult task.
+They would only be able to rely on the atomicity that their hardware provides and would have to build up from there.
+This would be like asking a programmer to write a complex sequential program only in assembly.
+Both are doable, but would often be easier and less error prone with higher level tooling.
 
-% Asking a programmer to write a complex concurrent program without any concurrent language features is asking them to undertake a very difficult task.
-% They would only be able to rely on the atomicity that their hardware provides and would have to build up from there.
-% This would be like asking a programmer to write a complex sequential program only in assembly.
-% Both are doable, but would often be easier and less error prone with higher level tooling.
+Concurrent programming has many pitfalls that are unique and do not show up in sequential code:
+\begin{enumerate}
+\item Deadlock, where threads cyclically wait on resources, blocking them indefinitely.
+\item Livelock, where threads constantly attempt a concurrent operation unsuccessfully, resulting in no progress being made.
+\item Race conditions, where thread orderings can result in differing behaviours and correctness of a program execution.
+\item Starvation, where threads may be deprived of access to some shared resource due to unfairness and never make progress.
+\end{enumerate}
+Even with the guiding hand of concurrent tools these pitfalls can still catch unwary programmers, but good language support can prevent, detect, and mitigate these problems.
 
-Concurrent programming has many unique pitfalls that do not appear in sequential programming:
-\begin{enumerate}
-\item Race conditions, where thread orderings can result in arbitrary behaviours, resulting in correctness problems.
-\item Livelock, where threads constantly attempt a concurrent operation unsuccessfully, resulting in no progress being made.
-\item Starvation, where \emph{some} threads constantly attempt a concurrent operation unsuccessfully, resulting in partial progress being made.
-\item Deadlock, where some threads wait for an event that cannot occur, blocking them indefinitely, resulting in no progress being made.
-\end{enumerate}
-Even with the guiding hand of concurrent tools these pitfalls still catch unwary programmers, but good language support helps significantly to prevent, detect, and mitigate these problems.
+\section{A Brief Overview}
 
-\section{Thesis Overview}
-
-Chapter~\ref{s:cfa} of this thesis aims to familiarize the reader with the language \CFA.
-In this chapter, syntax and features of the \CFA language that appear in this work are discussed.
-Chapter~\ref{s:cfa_concurrency} briefly discusses prior concurrency work in \CFA, and how the work in this thesis builds on top of the existing framework.
-Each remaining chapter introduces an additional \CFA concurrent-language feature, which includes discussing prior related work for the feature, extensions over prior features, and uses benchmarks to compare the performance the feature with corresponding or similar features in other languages and systems.
-
-Chapter~\ref{s:mutexstmt} discusses the @mutex@ statement, a language feature that provides safe and simple lock usage.
-The @mutex@ statement is compared both in terms of safety and performance with similar mechanisms in \CC and Java.
-Chapter~\ref{s:channels} discusses channels, a message passing concurrency primitive that provides for safe synchronous and asynchronous communication among threads.
-Channels in \CFA are compared to Go's channels, which popularized the use of channels in modern concurrent programs.
-Chapter~\ref{s:actors} discusses the \CFA actor system.
-An actor system is a close cousin of channels, as it also belongs to the message passing paradigm of concurrency.
-However, an actor system provides a greater degree of abstraction and ease of scalability, making it useful for a different range of problems than channels.
-The actor system in \CFA is compared with a variety of other systems on a suite of benchmarks.
-Chapter~\ref{s:waituntil} discusses the \CFA @waituntil@ statement, which provides the ability to synchronize while waiting for a resource, such as acquiring a lock, accessing a future, or writing to a channel.
-The \CFA @waituntil@ statement provides greater flexibility and expressibility than similar features in other languages.
-All in all, the features presented aim to fill in gaps in the current \CFA concurrent-language support, enabling users to write a wider range of complex concurrent programs with ease.
+The first chapter of this thesis aims to familiarize the reader with the language \CFA.
+In this chapter, syntax and features of the \CFA language that appear in this work are discussed The next chapter briefly discusses prior concurrency work in \CFA and how this work builds on top of existing features.
+The remaining chapters each introduce a concurrent language feature, discuss prior related work, and present contributions which are then benchmarked against other languages and systems.
+The first of these chapters discusses the @mutex@ statement, a language feature that improves ease of use and safety of lock usage.
+The @mutex@ statement is compared both in terms of safety and performance with similar tools in \CC and Java.
+The following chapter discusses channels, a message passing concurrency primitive that provides an avenue for safe synchronous and asynchronous communication across threads.
+Channels in \CFA are compared to Go, which popularized the use of channels in modern concurrent programs.
+The following chapter discusses the \CFA actor system.
+The \CFA actor system is a close cousin of channels, as it also belongs to the message passing paradigm of concurrency.
+However, the actor system provides a great degree of abstraction and ease of scalability, making it useful for a different range of problems than channels.
+The actor system in \CFA is compared with a variety of other systems on a suite of benchmarks, where it achieves significant performance gains over other systems due to its design.
+The final chapter discusses the \CFA @waituntil@ statement which provides the ability to synchronize while waiting for a resource, such as acquiring a lock, accessing a future, or writing to a channel.
+The @waituntil@ statement presented provides greater flexibility and expressibility than similar features in other languages.
+All in all, the features presented aim to fill in gaps in the current \CFA concurrent language support, and enable users to write a wider range of complex concurrent programs with ease.
 
 \section{Contributions}
-This work presents the following contributions within each of the additional language features:
-\begin{enumerate}[leftmargin=*]
-\item The @mutex@ statement that:
-    \begin{itemize}[itemsep=0pt]
-    \item
-    provides deadlock-free multiple lock acquisition,
-    \item
-    clearly denotes lock acquisition and release,
-    \item
-    and has good performance irrespective of lock ordering.
-    \end{itemize}
-\item The channel that:
+This work presents the following contributions:
+\begin{enumerate}
+\item The @mutex@ statement which:
+\begin{itemize}[itemsep=0pt]
+\item
+provides deadlock-free multiple lock acquisition,
+\item
+clearly denotes lock acquisition and release,
+\item
+and has good performance irrespective of lock ordering.
+\end{itemize}
+\item Channels which:
 \begin{itemize}[itemsep=0pt]
     \item
@@ -75,5 +71,5 @@
     and provides toggle-able statistics for performance tuning.
 \end{itemize}
-\item The in-memory actor system that:
+\item An in-memory actor system that:
 \begin{itemize}[itemsep=0pt]
     \item
@@ -86,5 +82,5 @@
     gains performance through static-typed message sends, eliminating the need for dynamic dispatch,
     \item
-    introduces the copy queue, an array-based queue specialized for the actor use-case to minimize calls to the memory allocator,
+    introduces the copy queue, an array based queue specialized for the actor use case to minimize calls to the memory allocator,
     \item
     has robust detection of six tricky, but common actor programming errors,
@@ -94,12 +90,13 @@
     and provides toggle-able statistics for performance tuning.
 \end{itemize}
-\item The @waituntil@ statement that:
+
+\item A @waituntil@ statement which:
 \begin{itemize}[itemsep=0pt]
     \item
     is the only known polymorphic synchronous multiplexing language feature,
     \item
-    provides greater expressibility for waiting conditions than other languages,
+    provides greater expressibility of waiting conditions than other languages,
     \item
-    and achieves comparable performance to similar features in two other languages.
+    and achieves comparable performance to similar features in two other languages,
 \end{itemize}
 \end{enumerate}
Index: doc/theses/colby_parsons_MMAth/text/mutex_stmt.tex
===================================================================
--- doc/theses/colby_parsons_MMAth/text/mutex_stmt.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/text/mutex_stmt.tex	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -83,5 +83,5 @@
 \end{figure}
 
-Like Java, \CFA monitors have \Newterm{multi-acquire} (reentrant locking) semantics so the thread in the monitor may acquire it multiple times without deadlock, allowing recursion and calling of other MX functions.
+Like Java, \CFA monitors have \Newterm{multi-acquire} semantics so the thread in the monitor may acquire it multiple times without deadlock, allowing recursion and calling of other MX functions.
 For robustness, \CFA monitors ensure the monitor lock is released regardless of how an acquiring function ends, normal or exceptional, and returning a shared variable is safe via copying before the lock is released.
 Monitor objects can be passed through multiple helper functions without acquiring mutual exclusion, until a designated function associated with the object is called.
@@ -104,6 +104,5 @@
 }
 \end{cfa}
-The \CFA monitor implementation ensures multi-lock acquisition is done in a deadlock-free manner regardless of the number of MX parameters and monitor arguments via resource ordering.
-It it important to note that \CFA monitors do not attempt to solve the nested monitor problem~\cite{Lister77}.
+The \CFA monitor implementation ensures multi-lock acquisition is done in a deadlock-free manner regardless of the number of MX parameters and monitor arguments. It it important to note that \CFA monitors do not attempt to solve the nested monitor problem~\cite{Lister77}.
 
 \section{\lstinline{mutex} statement}
@@ -166,6 +165,5 @@
 In detail, the mutex statement has a clause and statement block, similar to a conditional or loop statement.
 The clause accepts any number of lockable objects (like a \CFA MX function prototype), and locks them for the duration of the statement.
-The locks are acquired in a deadlock-free manner and released regardless of how control-flow exits the statement.
-Note that this deadlock-freedom has some limitations \see{\VRef{s:DeadlockAvoidance}}.
+The locks are acquired in a deadlock free manner and released regardless of how control-flow exits the statement.
 The mutex statement provides easy lock usage in the common case of lexically wrapping a CS.
 Examples of \CFA mutex statement are shown in \VRef[Listing]{l:cfa_mutex_ex}.
@@ -212,5 +210,5 @@
 Like Java, \CFA introduces a new statement rather than building from existing language features, although \CFA has sufficient language features to mimic \CC RAII locking.
 This syntactic choice makes MX explicit rather than implicit via object declarations.
-Hence, it is easy for programmers and language tools to identify MX points in a program, \eg scan for all @mutex@ parameters and statements in a body of code; similar scanning can be done with Java's @synchronized@.
+Hence, it is easier for programmers and language tools to identify MX points in a program, \eg scan for all @mutex@ parameters and statements in a body of code.
 Furthermore, concurrent safety is provided across an entire program for the complex operation of acquiring multiple locks in a deadlock-free manner.
 Unlike Java, \CFA's mutex statement and \CC's @scoped_lock@ both use parametric polymorphism to allow user defined types to work with this feature.
@@ -233,5 +231,5 @@
 thread$\(_2\)$ : sout | "uvw" | "xyz";
 \end{cfa}
-any of the outputs can appear:
+any of the outputs can appear, included a segment fault due to I/O buffer corruption:
 \begin{cquote}
 \small\tt
@@ -262,8 +260,9 @@
 mutex( sout ) {	// acquire stream lock for sout for block duration
 	sout | "abc";
-	sout | "uvw" | "xyz";
+	mutex( sout ) sout | "uvw" | "xyz"; // OK because sout lock is recursive
 	sout | "def";
 } // implicitly release sout lock
 \end{cfa}
+The inner lock acquire is likely to occur through a function call that does a thread-safe print.
 
 \section{Deadlock Avoidance}\label{s:DeadlockAvoidance}
@@ -310,8 +309,6 @@
 For fewer than 7 locks ($2^3-1$), the sort is unrolled performing the minimum number of compare and swaps for the given number of locks;
 for 7 or more locks, insertion sort is used.
-It is assumed to be rare to hold more than 6 locks at a time.
-For 6 or fewer locks the algorithm is fast and executes in $O(1)$ time.
-Furthermore, lock addresses are unique across program execution, even for dynamically allocated locks, so the algorithm is safe across the entire program execution, as long as lifetimes of objects are appropriately managed. 
-For example, deleting a lock and allocating another one could give the new lock the same address as the deleted one, however deleting a lock in use by another thread is a programming error irrespective of the usage of the @mutex@ statement.
+Since it is extremely rare to hold more than 6 locks at a time, the algorithm is fast and executes in $O(1)$ time.
+Furthermore, lock addresses are unique across program execution, even for dynamically allocated locks, so the algorithm is safe across the entire program execution.
 
 The downside to the sorting approach is that it is not fully compatible with manual usages of the same locks outside the @mutex@ statement, \ie the lock are acquired without using the @mutex@ statement.
@@ -341,5 +338,5 @@
 \end{cquote}
 Comparatively, if the @scoped_lock@ is used and the same locks are acquired elsewhere, there is no concern of the @scoped_lock@ deadlocking, due to its avoidance scheme, but it may livelock.
-The convenience and safety of the @mutex@ statement, \ie guaranteed lock release with exceptions, should encourage programmers to always use it for locking, mitigating most deadlock scenarios versus combining manual locking with the mutex statement.
+The convenience and safety of the @mutex@ statement, \ie guaranteed lock release with exceptions, should encourage programmers to always use it for locking, mitigating any deadlock scenario versus combining manual locking with the mutex statement.
 Both \CC and the \CFA do not provide any deadlock guarantees for nested @scoped_lock@s or @mutex@ statements. 
 To do so would require solving the nested monitor problem~\cite{Lister77}, which currently does not have any practical solutions.
@@ -347,5 +344,5 @@
 \section{Performance}
 Given the two multi-acquisition algorithms in \CC and \CFA, each with differing advantages and disadvantages, it interesting to compare their performance.
-Comparison with Java was not conducted, since the synchronized statement only takes a single object and does not provide deadlock avoidance or prevention.
+Comparison with Java is not possible, since it only takes a single lock.
 
 The comparison starts with a baseline that acquires the locks directly without a mutex statement or @scoped_lock@ in a fixed ordering and then releases them.
@@ -359,5 +356,4 @@
 Each variation is run 11 times on 2, 4, 8, 16, 24, 32 cores and with 2, 4, and 8 locks being acquired.
 The median is calculated and is plotted alongside the 95\% confidence intervals for each point.
-The confidence intervals are calculated using bootstrapping to avoid normality assumptions.
 
 \begin{figure}
@@ -392,5 +388,5 @@
 }
 \end{cfa}
-\caption{Deadlock avoidance benchmark \CFA pseudocode}
+\caption{Deadlock avoidance benchmark pseudocode}
 \label{l:deadlock_avoid_pseudo}
 \end{figure}
@@ -400,7 +396,7 @@
 % sudo dmidecode -t system
 \item
-Supermicro AS--1123US--TR4 AMD EPYC 7662 64--core socket, hyper-threading $\times$ 2 sockets (256 processing units), TSO memory model, running Linux v5.8.0--55--generic, gcc--10 compiler
+Supermicro AS--1123US--TR4 AMD EPYC 7662 64--core socket, hyper-threading $\times$ 2 sockets (256 processing units) 2.0 GHz, TSO memory model, running Linux v5.8.0--55--generic, gcc--10 compiler
 \item
-Supermicro SYS--6029U--TR4 Intel Xeon Gold 5220R 24--core socket, hyper-threading $\times$ 2 sockets (96 processing units), TSO memory model, running Linux v5.8.0--59--generic, gcc--10 compiler
+Supermicro SYS--6029U--TR4 Intel Xeon Gold 5220R 24--core socket, hyper-threading $\times$ 2 sockets (48 processing units) 2.2GHz, TSO memory model, running Linux v5.8.0--59--generic, gcc--10 compiler
 \end{list}
 %The hardware architectures are different in threading (multithreading vs hyper), cache structure (MESI or MESIF), NUMA layout (QPI vs HyperTransport), memory model (TSO vs WO), and energy/thermal mechanisms (turbo-boost).
@@ -415,10 +411,9 @@
 For example, on the AMD machine with 32 threads and 8 locks, the benchmarks would occasionally livelock indefinitely, with no threads making any progress for 3 hours before the experiment was terminated manually.
 It is likely that shorter bouts of livelock occurred in many of the experiments, which would explain large confidence intervals for some of the data points in the \CC data.
-In Figures~\ref{f:mutex_bench8_AMD} and \ref{f:mutex_bench8_Intel} there is the counter-intuitive result of the @mutex@ statement performing better than the baseline.
+In Figures~\ref{f:mutex_bench8_AMD} and \ref{f:mutex_bench8_Intel} there is the counter-intuitive result of the mutex statement performing better than the baseline.
 At 7 locks and above the mutex statement switches from a hard coded sort to insertion sort, which should decrease performance.
 The hard coded sort is branch-free and constant-time and was verified to be faster than insertion sort for 6 or fewer locks.
-Part of the difference in throughput compared to baseline is due to the delay spent in the insertion sort, which decreases contention on the locks.
-This was verified to be part of the difference in throughput by experimenting with varying NCS delays in the baseline; however it only comprises a small portion of difference.
-It is possible that the baseline is slowed down or the @mutex@ is sped up by other factors that are not easily identifiable.
+It is likely the increase in throughput compared to baseline is due to the delay spent in the insertion sort, which decreases contention on the locks.
+
 
 \begin{figure}
Index: doc/theses/colby_parsons_MMAth/text/waituntil.tex
===================================================================
--- doc/theses/colby_parsons_MMAth/text/waituntil.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ doc/theses/colby_parsons_MMAth/text/waituntil.tex	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -168,5 +168,5 @@
 Go's @select@ has the same exclusive-or semantics as the ALT primitive from Occam and associated code blocks for each clause like ALT and Ada.
 However, unlike Ada and ALT, Go does not provide guards for the \lstinline[language=go]{case} clauses of the \lstinline[language=go]{select}.
-As such, the exponential blowup can be seen comparing Go and \uC in Figure~\ref{f:AdaMultiplexing}.
+As such, the exponential blowup can be seen comparing Go and \uC in Figure~\label{f:AdaMultiplexing}.
 Go also provides a timeout via a channel and a @default@ clause like Ada @else@ for asynchronous multiplexing.
 
@@ -519,6 +519,6 @@
 In following example, either channel @C1@ or @C2@ must be satisfied but nothing can be done for at least 1 or 3 seconds after the channel read, respectively.
 \begin{cfa}[deletekeywords={timeout}]
-waituntil( i << C1 ){} and waituntil( timeout( 1`s ) ){}
-or waituntil( i << C2 ){} and waituntil( timeout( 3`s ) ){}
+waituntil( i << C1 ); and waituntil( timeout( 1`s ) );
+or waituntil( i << C2 ); and waituntil( timeout( 3`s ) );
 \end{cfa}
 If only @C2@ is satisfied, \emph{both} timeout code-blocks trigger because 1 second occurs before 3 seconds.
@@ -542,5 +542,4 @@
 Now the unblocked WUT is guaranteed to have a satisfied resource and its code block can safely executed.
 The insertion circumvents the channel buffer via the wait-morphing in the \CFA channel implementation \see{Section~\ref{s:chan_impl}}, allowing @waituntil@ channel unblocking to not be special-cased.
-Note that all channel operations are fair and no preference is given between @waituntil@ and direct channel operations when unblocking.
 
 Furthermore, if both @and@ and @or@ operators are used, the @or@ operations stop behaving like exclusive-or due to the race among channel operations, \eg:
Index: c/uC++toCFA/.gitignore
===================================================================
--- doc/uC++toCFA/.gitignore	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,4 +1,0 @@
-# generated by latex
-build/*
-*.pdf
-*.ps
Index: c/uC++toCFA/Makefile
===================================================================
--- doc/uC++toCFA/Makefile	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,92 +1,0 @@
-## Define the configuration variables.
-
-Build = build
-Figures = figures
-Macros = ../LaTeXmacros
-TeXLIB = .:${Macros}:${Build}:
-LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
-BibTeX = BIBINPUTS=../bibliography: && export BIBINPUTS && bibtex
-
-MAKEFLAGS = --no-print-directory --silent #
-VPATH = ${Build} ${Figures}
-
-## Define the text source files.
-
-SOURCES = ${addsuffix .tex, \
-uC++toCFA \
-../refrat/keywords \
-../refrat/operidents \
-}
-
-FIGURES = ${addsuffix .tex, \
-}
-
-PICTURES = ${addsuffix .pstex, \
-}
-
-PROGRAMS = ${addsuffix .tex, \
-}
-
-GRAPHS = ${addsuffix .tex, \
-}
-
-## Define the documents that need to be made.
-
-DOCUMENT = uC++toCFA.pdf
-BASE = ${basename ${DOCUMENT}}
-
-# Directives #
-
-.PHONY : all clean					# not file names
-
-all : ${DOCUMENT}
-
-clean :
-	@rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
-
-# File Dependencies #
-
-build/version: ../../configure | ${Build}
-	../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@
-
-${DOCUMENT} : ${BASE}.ps
-	ps2pdf -dPDFSETTINGS=/prepress $<
-
-${BASE}.ps : ${BASE}.dvi
-	dvips ${Build}/$< -o $@
-
-${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
-		${Macros}/common.sty ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib build/version | ${Build}
-	# Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
-	if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
-	# Must have *.aux file containing citations for bibtex
-	if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
-	-${BibTeX} ${Build}/${basename $@}
-	# Some citations reference others so run again to resolve these citations
-	${LaTeX} ${basename $@}.tex
-#	-${BibTeX} ${Build}/${basename $@}
-	# Make index from *.aux entries and input index at end of document
-	makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
-	# Run again to finish citations
-	${LaTeX} ${basename $@}.tex
-	# Run again to get index title into table of contents
-#	${LaTeX} ${basename $@}.tex
-
-## Define the default recipes.
-
-${Build} :
-	mkdir -p ${Build}
-
-%.tex : %.fig | ${Build}
-	fig2dev -L eepic $< > ${Build}/$@
-
-%.ps : %.fig | ${Build}
-	fig2dev -L ps $< > ${Build}/$@
-
-%.pstex : %.fig | ${Build}
-	fig2dev -L pstex $< > ${Build}/$@
-	fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
-
-# Local Variables: #
-# compile-command: "make" #
-# End: #
Index: c/uC++toCFA/uC++toCFA.tex
===================================================================
--- doc/uC++toCFA/uC++toCFA.tex	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,580 +1,0 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%
-%% Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
-%%
-%% The contents of this file are covered under the licence agreement in the
-%% file "LICENCE" distributed with Cforall.
-%%
-%% user.tex --
-%%
-%% Author           : Peter A. Buhr
-%% Created On       : Wed Apr  6 14:53:29 2016
-%% Last Modified By : Peter A. Buhr
-%% Last Modified On : Sun Sep 17 09:10:12 2023
-%% Update Count     : 5883
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% requires tex packages: texlive-base texlive-latex-base tex-common texlive-humanities texlive-latex-extra texlive-fonts-recommended
-
-\documentclass[11pt]{article}
-
-\makeatletter
-\def\@maketitle{%
-    \newpage
-    \null
-%   \vskip 2em%
-    \begin{center}%
-	\let \footnote \thanks
-        {\LARGE\bf \@title \par}%
-        \@ifundefined{@author}{}
-        {
-            \ifx\@empty\@author
-            \else
-                \vskip 1.5em%
-                {\large
-                    \lineskip .5em%
-                    \begin{tabular}[t]{c}%
-                        \@author
-                    \end{tabular}%
-                    \par
-                }%
-	    \fi
-        }%
-        \ifx\@empty\@date
-        \else
-            \vskip 1em%
-	    {\large \@date}%
-        \fi
-    \end{center}%
-    \par
-%   \vskip 1.5em
-}%maketitle
-\makeatother
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% Latex packages used in the document.
-%\usepackage[T1]{fontenc}                                % allow Latin1 (extended ASCII) characters
-%\usepackage{textcomp}
-%\usepackage[latin1]{inputenc}
-
-\usepackage{fullpage,times,comment}
-\usepackage{epic,eepic}
-\usepackage{upquote}									% switch curled `'" to straight
-\usepackage[labelformat=simple,aboveskip=0pt,farskip=0pt]{subfig}
-\renewcommand{\thesubfigure}{\alph{subfigure})}
-\usepackage{latexsym}                                   % \Box glyph
-\usepackage{mathptmx}                                   % better math font with "times"
-\usepackage[usenames]{color}
-\usepackage[pagewise]{lineno}
-\renewcommand{\linenumberfont}{\scriptsize\sffamily}
-\input{common}											% common CFA document macros
-\usepackage[dvips,plainpages=false,pdfpagelabels,pdfpagemode=UseNone,colorlinks=true,pagebackref=true,linkcolor=blue,citecolor=blue,urlcolor=blue,pagebackref=true,breaklinks=true]{hyperref}
-\usepackage{breakurl}
-
-\renewcommand\footnoterule{\kern -3pt\rule{0.3\linewidth}{0.15pt}\kern 2pt}
-\newcommand{\uC}{$\mu$\CC}
-
-% Default underscore is too low and wide. Cannot use lstlisting "literate" as replacing underscore
-% removes it as a variable-name character so keywords in variables are highlighted. MUST APPEAR
-% AFTER HYPERREF.
-\renewcommand{\textunderscore}{\leavevmode\makebox[1.2ex][c]{\rule{1ex}{0.075ex}}}
-
-\setlength{\topmargin}{-0.45in}							% move running title into header
-\setlength{\headsep}{0.25in}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\setlength{\gcolumnposn}{3in}
-\CFAStyle												% use default CFA format-style
-\lstset{language=CFA}									% CFA default lnaguage
-\lstnewenvironment{C++}[1][]                            % use C++ style
-{\lstset{language=C++,escapechar=\$,mathescape=false,moredelim=**[is][\protect\color{red}]{@}{@},#1}}{}
-\lstnewenvironment{uC++}[1][]
-{\lstset{language=uC++,escapechar=\$,mathescape=false,moredelim=**[is][\protect\color{red}]{@}{@},#1}}{}
-
-\newsavebox{\myboxA}
-\newsavebox{\myboxB}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% Names used in the document.
-\newcommand{\Version}{\input{build/version}}
-\newcommand{\Textbf}[2][red]{{\color{#1}{\textbf{#2}}}}
-\newcommand{\Emph}[2][red]{{\color{#1}\textbf{\emph{#2}}}}
-\newcommand{\R}[1]{{\color{red}#1}}
-\newcommand{\RB}[1]{\Textbf{#1}}
-\newcommand{\B}[1]{{\Textbf[blue]{#1}}}
-\newcommand{\G}[1]{{\Textbf[OliveGreen]{#1}}}
-\newcommand{\Sp}{\R{\textvisiblespace}}
-\newcommand{\KWC}{K-W C\xspace}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\setcounter{secnumdepth}{3}                             % number subsubsections
-\setcounter{tocdepth}{3}                                % subsubsections in table of contents
-\makeindex
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\title{\vspace*{-0.5in}
-\CC/\uC to \CFA Cheat Sheet}
-%\author{Peter A. Buhr}
-\date{}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\begin{document}
-\pagestyle{headings}
-% changed after setting pagestyle
-\renewcommand{\sectionmark}[1]{\markboth{\thesection\quad #1}{\thesection\quad #1}}
-\renewcommand{\subsectionmark}[1]{\markboth{\thesubsection\quad #1}{\thesubsection\quad #1}}
-
-%\linenumbers                                            % comment out to turn off line numbering
-
-\maketitle
-\vspace*{-0.55in}
-
-\section{Introduction}
-
-\CFA is NOT an object-oriented programming-language.
-\CFA uses parametric polymorphism and allows overloading of variables and routines:
-\begin{cfa}
-int i;  char i;  double i;		// overload name i
-int i();  double i();  char i();
-i += 1;			$\C[1.5in]{// int i}$
-i += 1.0;		$\C{// double i}$
-i += 'a'; 		$\C{// char i}$
-int j = i();	$\C{// int i()}$
-double j = i();	$\C{// double i();}$
-char j = i();	$\C{// char i()}\CRT$
-\end{cfa}
-\CFA has rebindable references.
-
-\begin{cquote}
-\begin{tabular}{l|l}
-\multicolumn{2}{l}{\lstinline{	int x = 1, y = 2, * p1x = &x, * p1y = &y, ** p2i = &p1x,}} \\
-\multicolumn{2}{l}{\lstinline{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ && r1x = x, & r1y = y, && r2i = r1x;}} \\
-\begin{uC++}
-**p2i = 3;
-p2i = &p1y;
-**p2i = 3;
-p1x = p1y;
-**p2i = 4;
-p1x = @nullptr@;
-\end{uC++}
-&
-\begin{cfa}
-r2i = 3; $\C[1.0in]{// change x}$
-&r2i = &r1y; $\C{// change p2i / r2i}$
-r2i = 3; $\C{// change y}$
-&r1x = &r1y; $\C{// change p1x / r1x}$
-r2i = 4; $\C{// change y}$
-&r1x = @0p@; $\C{// reset}\CRT$
-\end{cfa}
-\end{tabular}
-\end{cquote}
-Non-rebindable reference (\CC reference) is a @const@ reference (@const@ pointer).
-\begin{cfa}
-int & @const@ cr = x; // must initialize, no null pointer
-int & @const@ & @const@ crcr = cr; // generalize
-\end{cfa}
-Aggregate qualification is reduced or eliminated by opening scopes using the @with@ clause.
-\begin{cfa}
-struct S { int i; int j; double m; };  // field i has same type in structures S and T
-struct T { int i; int k; int m; };
-void foo( S s, T t ) @with(s, t)@ {   // open structure scope s and t in parallel
-	j + k;				$\C[1.6in]{// unambiguous, s.j + t.k}$
-	m = 5.0;			$\C{// unambiguous, s.m = 5.0}$
-	m = 1;				$\C{// unambiguous, t.m = 1}$
-	int a = m;			$\C{// unambiguous, a = t.m}$
-	double b = m;		$\C{// unambiguous, b = s.m}$
-	int c = s.i + t.i;	$\C{// unambiguous with qualification}$
-	(double)m;			$\C{// unambiguous with cast s.m}\CRT$
-}
-\end{cfa}
-\noindent
-In subsequent code examples, the left example is \CC/\uC and the right example is \CFA.
-
-
-\section{Looping}
-
-\begin{cquote}
-\begin{tabular}{l|l}
-\begin{uC++}
-for ( ;; ) { ... } / while ( true ) { ... }
-for ( int i = 0; i < 10; i += 1 ) { ... }
-for ( int i = 5; i < 15; i += 2 ) { ... }
-int i = 0
-for ( i = 0; i < 10; i += 1 ) { ... }
-if ( i == 10 ) { ... }
-\end{uC++}
-&
-\begin{cfa}
-for () { ... } / while () { ... }
-for ( 10 ) { ... } / for ( i; 10 ) { ... }
-for ( i; 5~15~2 ) { ... }
-
-for ( i; 10 ) { ... }
-else { ... } // i == 10
-\end{cfa}
-\end{tabular}
-\end{cquote}
-
-
-\section{Exceptions}
-
-Currently, \CFA uses macros @ExceptionDecl@ and @ExceptionInst@ to declare and instantiate an exception.
-\begin{cquote}
-\begin{tabular}{l|ll}
-\begin{uC++}
-
-struct E {		// local or global scope
-	... // exception fields
-};
-try {
-	...
-	if ( ... ) _Resume E( /* initialization */ );
-	if ( ... ) _Throw E( /* initialization */ );
-	...
-} _CatchResume( E & ) { // should be reference
-	...
-} catch( E & ) {
-	...
-}
-\end{uC++}
-&
-\begin{cfa}
-#include <Exception.hfa>
-@ExceptionDecl@( E,		// must be global scope
-	... // exception fields
-);
-try {
-	...
-	if ( ... ) throwResume @ExceptionInst@( E, /* intialization */ );
-	if ( ... ) throw @ExceptionInst@( E, /* intialization */ );
-	...
-} catchResume( E * ) { // must be pointer
-	...
-} catch( E * ) {
-	...
-}
-\end{cfa}
-\end{tabular}
-\end{cquote}
-
-
-\section{Stream I/O}
-
-\CFA output streams automatically separate values and insert a newline at the end of the print.
-
-\begin{cquote}
-\begin{tabular}{l|l}
-\begin{uC++}
-#include <@iostream@>
-using namespace std;
-int i;   double d;   char c;
-cin >> i >> d >> c;
-cout << i << ' ' << d << ' ' << c | endl;
-\end{uC++}
-&
-\begin{cfa}
-#include <@fstream.hfa@>
-
-int i;   double d;   char c;
-sin | i | d | c;
-sout | i | d | c
-\end{cfa}
-\end{tabular}
-\end{cquote}
-
-
-\section{String}
-
-\begin{cquote}
-\begin{tabular}{l|l}
-\multicolumn{2}{l}{\lstinline{string s1, s2;}} \\
-\begin{uC++}
-s1 = "hi";
-s2 = s1;
-s1 += s2;
-s1 == s2; s1 != s2;
-s1 < s2; s1 <= s2; s1 > s2; s1 >= s2;
-s1.length();
-s1[3];
-s1.substr( 2 ); s1.substr( 2, 3 );
-s1.replace( 2, 5, s2 );
-s1.find( s2 ), s1.rfind( s2 );
-s1.find_first_of( s2 ); s1.find_last_of( s2 );
-s1.find_first_not_of(s2 ); s1.find_last_not_of( s2 );
-getline( cin, s1 );
-cout << s1 << endl;
-\end{uC++}
-&
-\begin{cfa}
-s1 = "hi";
-s2 = s1;
-s1 += s2;
-s1 == s2; s1 != s2;
-s1 < s2; s1 <= s2; s1 > s2; s1 >= s2;
-size( s1 );
-s1[3];
-s1( 2 ); s1( 2, 3 );
-//s1.replace( 2, 5, s2 );
-find( s1, s2 ), rfind( s1, s2 );
-find_first_of( .substr, s2 ); s1.find_last_of( s2 );
-s1.find_first_not_of(s2 ); s1.find_last_not_of( s2 );
-sin | getline( s1 );
-sout | s1;
-\end{cfa}
-\end{tabular}
-\end{cquote}
-
-
-\section{Constructor / Destructor}
-
-\begin{cquote}
-\begin{tabular}{l|l}
-\begin{uC++}
-struct S {
-	... // fields
-	@S@(...) { ... }
-	@~S@(...) { ... }
-};
-\end{uC++}
-&
-\begin{cfa}
-struct S {
-	... // fields
-};
-@?{}@( @S & s,@ ...) { ... }
-@^?{}@( @S & s@ ) { ... }
-\end{cfa}
-\end{tabular}
-\end{cquote}
-
-
-\section{\texorpdfstring{Structures (object-oriented \protect\vs routine style)}{Structures (object-oriented vs. routine style)}}
-
-\begin{cquote}
-\begin{tabular}{l|l}
-\begin{uC++}
-struct S {
-	int i = 0;
-	int setter( int j ) { int t = i; i = j; return t; }
-	int getter() { return i; }
-};
-
-S s;
-@s.@setter( 3 );  // object-oriented call
-int k = @s.@getter();
-\end{uC++}
-&
-\begin{cfa}
-struct S {
-	int i;
-};
-void ?{}( S & s ) { s.i = 0; }
-int setter( @S & s,@ int j ) @with(s)@ { int t = i; i = j; return t; }
-int getter( @S & s@ ) @with(s)@ { return i; }
-S s;
-setter( @s,@ 3 );  // normal routine call
-int k = getter( @s@ );
-\end{cfa}
-\end{tabular}
-\end{cquote}
-
-
-\section{\texorpdfstring{\lstinline{uNoCtor}}{uNoCtor}}
-
-\begin{cquote}
-\begin{tabular}{l|l}
-\begin{uC++}
-struct S {
-	int i;
-	S( int i ) { S::i = i; cout << S::i << endl; }
-};
-@uNoCtor<S>@ s[10];
-int main() {
-	for ( int i = 0; i < 10; i += 1 ) {
-		s[i].ctor( i );
-	}
-	for ( int i = 0; i < 10; i += 1 ) {
-		cout << s[i]@->@i << endl;
-	}
-}
-\end{uC++}
-&
-\begin{cfa}
-struct S {
-	int i;
-};
-void ?{}( S & s, int i ) { s.i = i; sout | s.i; }
-S s[10] @$\color{red}@$= {}@;
-int main() {
-	for ( i; 10 ) {
-		?{}( s[i], i );  // call constructor
-	}
-	for ( i; 10 ) {
-		sout | s[i]@.@i; // dot not arrow
-	}
-}
-\end{cfa}
-\end{tabular}
-\end{cquote}
-
-
-\section{Coroutines}
-
-\begin{cquote}
-\begin{tabular}{l|ll}
-\begin{uC++}
-
-_Coroutine C {
-	// private coroutine fields
-	void main() {
-		... suspend(); ...
-		... _Resume E( ... ) _At partner;
-	}
-  public:
-	void mem( ... ) {
-		... resume() ...
-	}
-};
-\end{uC++}
-&
-\begin{cfa}
-#include <$coroutine$.hfa>
-coroutine C {
-	// private coroutine fields
-
-};
-void main( C & c ) {
-	... suspend; ... // keyword not routine
-	... resumeAt( partner, ExceptionInst( E, ... ) );
-}
-void mem( C & c, ... ) {
-	... resume(); ...
-}
-\end{cfa}
-\\
-\multicolumn{2}{l}{\lstinline{C c;}}
-\end{tabular}
-\end{cquote}
-
-
-\section{Locks}
-
-\begin{cquote}
-\begin{tabular}{l|ll}
-\begin{uC++}
-
-uOwnerLock m;
-uCondLock s;
-bool avail = true;
-m.acquire();
-if ( ! avail ) s.wait( m );
-else {
-	avail = false;
-	m.release();
-}
-@osacquire( cout )@ << i << endl;
-\end{uC++}
-&
-\begin{cfa}
-#include <locks.hfa>
-owner_lock m;
-condition_variable( owner_lock ) s;
-bool avail = true;
-lock( m );
-if ( ! avail ) wait( s, m );
-else {
-	avail = false;
-	unlock( m );
-}
-@mutex( sout )@ sout | i;  // safe I/O
-\end{cfa}
-\end{tabular}
-\end{cquote}
-
-
-\section{Monitors}
-
-\begin{cquote}
-\begin{tabular}{l|ll}
-\begin{uC++}
-
-@_Monitor@ M {
-	@uCondition@ c;
-	bool avail = true;
-  public:
-
-	void rtn() {
-		if ( ! avail ) c.wait();
-		else avail = false;
-	}
-};
-\end{uC++}
-&
-\begin{cfa}
-#include <$monitor$.hfa>
-@monitor@ M {
-	@condition@ c;
-	bool avail;
-};
-void ?{}( M & m ) { m.avail = true; }
-void rtn( M & m ) with( m ) {
-	if ( ! avail ) wait( c );
-	else avail = false;
-}
-
-\end{cfa}
-\\
-\multicolumn{2}{l}{\lstinline{M m;}}
-\end{tabular}
-\end{cquote}
-
-
-\section{Threads}
-
-\begin{cquote}
-\begin{tabular}{l|ll}
-\begin{uC++}
-
-@_Task@ T {
-	// private task fields
-	void main() {
-		... _Resume E( ... ) _At partner;
-	}
-  public:
-};
-\end{uC++}
-&
-\begin{cfa}
-#include <$thread$.hfa>
-@thread@ T {
-	// private task fields
-
-};
-void main( @T & t@ ) {
-	... resumeAt( partner, ExceptionInst( E, ... ) );
-}
-\end{cfa}
-\\
-\multicolumn{2}{l}{\lstinline{T t; // start thread in main routine}}
-\end{tabular}
-\end{cquote}
-
-
-\input{uC++toCFA.ind}
-
-% \bibliographystyle{plain}
-% \bibliography{pl}
-
-\end{document}
-
-% Local Variables: %
-% tab-width: 4 %
-% fill-column: 100 %
-% compile-command: "make" %
-% End: %
Index: libcfa/prelude/extras.c
===================================================================
--- libcfa/prelude/extras.c	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/prelude/extras.c	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -3,5 +3,4 @@
 #include <uchar.h>					// char16_t, char32_t
 #include <wchar.h>					// wchar_t
-#include <stdlib.h>					// malloc, free, getenv, exit, atexit, abort, printf
+#include <stdlib.h>					// malloc, free, exit, atexit, abort
 #include <stdio.h>					// printf
-#include <string.h>					// strlen, strcmp, strncmp
Index: libcfa/prelude/extras.regx2
===================================================================
--- libcfa/prelude/extras.regx2	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/prelude/extras.regx2	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,10 +1,6 @@
 extern void \*malloc[^;]*;
 extern void free[^;]*;
-extern char \*getenv[^;]*;
 extern void exit[^;]*;
 extern int atexit[^;]*;
 extern void abort[^;]*;
 extern int printf[^;]*;
-int strcmp[^;]*;
-int strncmp[^;]*;
-size_t strlen[^;]*;
Index: libcfa/src/Makefile.am
===================================================================
--- libcfa/src/Makefile.am	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/Makefile.am	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -11,6 +11,6 @@
 ## Created On       : Sun May 31 08:54:01 2015
 ## Last Modified By : Peter A. Buhr
-## Last Modified On : Mon Sep 18 17:06:56 2023
-## Update Count     : 264
+## Last Modified On : Wed Aug 30 21:22:45 2023
+## Update Count     : 263
 ###############################################################################
 
@@ -118,5 +118,5 @@
 	concurrency/mutex_stmt.hfa \
 	concurrency/channel.hfa \
-	concurrency/actor.hfa
+	concurrency/actor.hfa 
 
 inst_thread_headers_src = \
@@ -130,6 +130,5 @@
 	concurrency/mutex.hfa \
 	concurrency/select.hfa \
-	concurrency/thread.hfa \
-	concurrency/cofor.hfa
+	concurrency/thread.hfa
 
 thread_libsrc = ${inst_thread_headers_src} ${inst_thread_headers_src:.hfa=.cfa} \
Index: libcfa/src/clock.hfa
===================================================================
--- libcfa/src/clock.hfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/clock.hfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -10,6 +10,6 @@
 // Created On       : Thu Apr 12 14:36:06 2018
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Sat Sep  9 14:07:17 2023
-// Update Count     : 30
+// Last Modified On : Sun Apr 18 08:12:16 2021
+// Update Count     : 28
 //
 
@@ -91,18 +91,18 @@
 	// discontinuous jumps when the OS is not running the kernal thread. A duration is returned because the value is
 	// relative and cannot be converted to real-time (wall-clock) time.
-	Duration processor_cpu() {							// non-monotonic duration of kernel thread
+	Duration processor() {								// non-monotonic duration of kernel thread
 		timespec ts;
 		clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts );
 		return (Duration){ ts };
-	} // processor_cpu
+	} // processor
 
 	// Program CPU-time watch measures CPU time consumed by all processors (kernel threads) in the UNIX process.  This
 	// watch is affected by discontinuous jumps when the OS is not running the kernel threads. A duration is returned
 	// because the value is relative and cannot be converted to real-time (wall-clock) time.
-	Duration program_cpu() {							// non-monotonic duration of program CPU
+	Duration program() {								// non-monotonic duration of program CPU
 		timespec ts;
 		clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &ts );
 		return (Duration){ ts };
-	} // program_cpu
+	} // program
 
 	// Monotonic duration from machine boot and including system suspension. This watch is unaffected by discontinuous
Index: libcfa/src/collections/string.cfa
===================================================================
--- libcfa/src/collections/string.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/collections/string.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -157,28 +157,19 @@
 // Comparison
 
-int  cmp (const string &s1, const string &s2) { return cmp(*s1.inner ,  *s2.inner); }
-bool ?==?(const string &s1, const string &s2) { return     *s1.inner == *s2.inner ; }
-bool ?!=?(const string &s1, const string &s2) { return     *s1.inner != *s2.inner ; }
-bool ?>? (const string &s1, const string &s2) { return     *s1.inner >  *s2.inner ; }
-bool ?>=?(const string &s1, const string &s2) { return     *s1.inner >= *s2.inner ; }
-bool ?<=?(const string &s1, const string &s2) { return     *s1.inner <= *s2.inner ; }
-bool ?<? (const string &s1, const string &s2) { return     *s1.inner <  *s2.inner ; }
-
-int  cmp (const string &s1, const char*   s2) { return cmp(*s1.inner ,   s2      ); }
-bool ?==?(const string &s1, const char*   s2) { return     *s1.inner ==  s2       ; }
-bool ?!=?(const string &s1, const char*   s2) { return     *s1.inner !=  s2       ; }
-bool ?>? (const string &s1, const char*   s2) { return     *s1.inner >   s2       ; }
-bool ?>=?(const string &s1, const char*   s2) { return     *s1.inner >=  s2       ; }
-bool ?<=?(const string &s1, const char*   s2) { return     *s1.inner <=  s2       ; }
-bool ?<? (const string &s1, const char*   s2) { return     *s1.inner <   s2       ; }
-
-int  cmp (const char*   s1, const string &s2) { return cmp( s1       ,  *s2.inner); }
-bool ?==?(const char*   s1, const string &s2) { return      s1       == *s2.inner ; }
-bool ?!=?(const char*   s1, const string &s2) { return      s1       != *s2.inner ; }
-bool ?>? (const char*   s1, const string &s2) { return      s1       >  *s2.inner ; }
-bool ?>=?(const char*   s1, const string &s2) { return      s1       >= *s2.inner ; }
-bool ?<=?(const char*   s1, const string &s2) { return      s1       <= *s2.inner ; }
-bool ?<? (const char*   s1, const string &s2) { return      s1       <  *s2.inner ; }
-
+bool ?==?(const string & s, const string & other) {
+    return *s.inner == *other.inner;
+}
+
+bool ?!=?(const string & s, const string & other) {
+    return *s.inner != *other.inner;
+}
+
+bool ?==?(const string & s, const char * other) {
+    return *s.inner == other;
+}
+
+bool ?!=?(const string & s, const char * other) {
+    return *s.inner != other;
+}
 
 ////////////////////////////////////////////////////////
Index: libcfa/src/collections/string.hfa
===================================================================
--- libcfa/src/collections/string.hfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/collections/string.hfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -116,28 +116,8 @@
 
 // Comparisons
-int  cmp (const string &, const string &);
-bool ?==?(const string &, const string &);
-bool ?!=?(const string &, const string &);
-bool ?>? (const string &, const string &);
-bool ?>=?(const string &, const string &);
-bool ?<=?(const string &, const string &);
-bool ?<? (const string &, const string &);
-
-int  cmp (const string &, const char*);
-bool ?==?(const string &, const char*);
-bool ?!=?(const string &, const char*);
-bool ?>? (const string &, const char*);
-bool ?>=?(const string &, const char*);
-bool ?<=?(const string &, const char*);
-bool ?<? (const string &, const char*);
-
-int  cmp (const char*, const string &);
-bool ?==?(const char*, const string &);
-bool ?!=?(const char*, const string &);
-bool ?>? (const char*, const string &);
-bool ?>=?(const char*, const string &);
-bool ?<=?(const char*, const string &);
-bool ?<? (const char*, const string &);
-
+bool ?==?(const string & s, const string & other);
+bool ?!=?(const string & s, const string & other);
+bool ?==?(const string & s, const char * other);
+bool ?!=?(const string & s, const char * other);
 
 // Slicing
Index: libcfa/src/collections/string_res.cfa
===================================================================
--- libcfa/src/collections/string_res.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/collections/string_res.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -637,42 +637,19 @@
 // Comparisons
 
-int cmp(const string_res &s1, const string_res &s2) {
-    // return 0;
-    int ans1 = memcmp(s1.Handle.s, s2.Handle.s, min(s1.Handle.lnth, s2.Handle.lnth));
-    if (ans1 != 0) return ans1;
-    return s1.Handle.lnth - s2.Handle.lnth;
-}
-
-bool ?==?(const string_res &s1, const string_res &s2) { return cmp(s1, s2) == 0; }
-bool ?!=?(const string_res &s1, const string_res &s2) { return cmp(s1, s2) != 0; }
-bool ?>? (const string_res &s1, const string_res &s2) { return cmp(s1, s2) >  0; }
-bool ?>=?(const string_res &s1, const string_res &s2) { return cmp(s1, s2) >= 0; }
-bool ?<=?(const string_res &s1, const string_res &s2) { return cmp(s1, s2) <= 0; }
-bool ?<? (const string_res &s1, const string_res &s2) { return cmp(s1, s2) <  0; }
-
-int cmp (const string_res &s1, const char* s2) {
-    string_res s2x = s2;
-    return cmp(s1, s2x);
-}
-
-bool ?==?(const string_res &s1, const char* s2) { return cmp(s1, s2) == 0; }
-bool ?!=?(const string_res &s1, const char* s2) { return cmp(s1, s2) != 0; }
-bool ?>? (const string_res &s1, const char* s2) { return cmp(s1, s2) >  0; }
-bool ?>=?(const string_res &s1, const char* s2) { return cmp(s1, s2) >= 0; }
-bool ?<=?(const string_res &s1, const char* s2) { return cmp(s1, s2) <= 0; }
-bool ?<? (const string_res &s1, const char* s2) { return cmp(s1, s2) <  0; }
-
-int cmp (const char* s1, const string_res & s2) {
-    string_res s1x = s1;
-    return cmp(s1x, s2);
-}
-
-bool ?==?(const char* s1, const string_res &s2) { return cmp(s1, s2) == 0; }
-bool ?!=?(const char* s1, const string_res &s2) { return cmp(s1, s2) != 0; }
-bool ?>? (const char* s1, const string_res &s2) { return cmp(s1, s2) >  0; }
-bool ?>=?(const char* s1, const string_res &s2) { return cmp(s1, s2) >= 0; }
-bool ?<=?(const char* s1, const string_res &s2) { return cmp(s1, s2) <= 0; }
-bool ?<? (const char* s1, const string_res &s2) { return cmp(s1, s2) <  0; }
-
+
+bool ?==?(const string_res &s1, const string_res &s2) {
+    return ByteCmp( s1.Handle.s, 0, s1.Handle.lnth, s2.Handle.s, 0, s2.Handle.lnth) == 0;
+}
+
+bool ?!=?(const string_res &s1, const string_res &s2) {
+    return !(s1 == s2);
+}
+bool ?==?(const string_res &s, const char* other) {
+    string_res sother = other;
+    return s == sother;
+}
+bool ?!=?(const string_res &s, const char* other) {
+    return !(s == other);
+}
 
 
Index: libcfa/src/collections/string_res.hfa
===================================================================
--- libcfa/src/collections/string_res.hfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/collections/string_res.hfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -142,27 +142,8 @@
 
 // Comparisons
-int  cmp (const string_res &, const string_res &);
-bool ?==?(const string_res &, const string_res &);
-bool ?!=?(const string_res &, const string_res &);
-bool ?>? (const string_res &, const string_res &);
-bool ?>=?(const string_res &, const string_res &);
-bool ?<=?(const string_res &, const string_res &);
-bool ?<? (const string_res &, const string_res &);
-
-int  cmp (const string_res &, const char*);
-bool ?==?(const string_res &, const char*);
-bool ?!=?(const string_res &, const char*);
-bool ?>? (const string_res &, const char*);
-bool ?>=?(const string_res &, const char*);
-bool ?<=?(const string_res &, const char*);
-bool ?<? (const string_res &, const char*);
-
-int  cmp (const char*, const string_res &);
-bool ?==?(const char*, const string_res &);
-bool ?!=?(const char*, const string_res &);
-bool ?>? (const char*, const string_res &);
-bool ?>=?(const char*, const string_res &);
-bool ?<=?(const char*, const string_res &);
-bool ?<? (const char*, const string_res &);
+bool ?==?(const string_res &s, const string_res &other);
+bool ?!=?(const string_res &s, const string_res &other);
+bool ?==?(const string_res &s, const char* other);
+bool ?!=?(const string_res &s, const char* other);
 
 // String search
Index: libcfa/src/common.hfa
===================================================================
--- libcfa/src/common.hfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/common.hfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -69,12 +69,12 @@
 	T min( T v1, T v2 ) { return v1 < v2 ? v1 : v2; }
 
-	forall( T, Ts... | { T min( T, T ); T min( T, T, Ts ); } )
-	T min( T v1, T v2, T v3, Ts vs ) { return min( min( v1, v2 ), v3, vs ); }
+	forall( T, Ts... | { T min( T, T ); T min( T, Ts ); } )
+	T min( T v1, T v2, Ts vs ) { return min( min( v1, v2 ), vs ); }
 
 	forall( T | { int ?>?( T, T ); } )
 	T max( T v1, T v2 ) { return v1 > v2 ? v1 : v2; }
 
-	forall( T, Ts... | { T max( T, T ); T max( T, T, Ts ); } )
-	T max( T v1, T v2, T v3, Ts vs ) { return max( max( v1, v2 ), v3, vs ); }
+	forall( T, Ts... | { T max( T, T ); T max( T, Ts ); } )
+	T max( T v1, T v2, Ts vs ) { return max( max( v1, v2 ), vs ); }
 
 	forall( T | { T min( T, T ); T max( T, T ); } )
Index: bcfa/src/concurrency/cofor.cfa
===================================================================
--- libcfa/src/concurrency/cofor.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,69 +1,0 @@
-#include <cofor.hfa>
-
-//////////////////////////////////////////////////////////////////////////////////////////
-// cofor ( uC++ COFOR )
-
-thread co_runner {
-	ssize_t low, high;
-	__cofor_body_t loop_body;
-};
-
-static void ?{}( co_runner & this, ssize_t low, ssize_t high, __cofor_body_t loop_body ) {
-	this.low = low;
-	this.high = high;
-	this.loop_body = loop_body;
-}
-
-void main( co_runner & this ) with( this ) {
-	for ( ssize_t i = low; i < high; i++ )
-		loop_body(i);
-}
-
-void cofor( ssize_t low, ssize_t high, __cofor_body_t loop_body ) libcfa_public {
-	ssize_t range = high - low;
-  if ( range <= 0 ) return;
-	ssize_t nprocs = get_proc_count( *active_cluster() );
-  if ( nprocs == 0 ) return;
-	ssize_t threads = range < nprocs ? range : nprocs;
-	ssize_t stride = range / threads + 1, extras = range % threads;
-	ssize_t i = 0;
-	ssize_t stride_iter = low;
-	co_runner * runners[ threads ];
-	for ( i; threads ) {
-		runners[i] = alloc();
-	}
-	for ( i = 0; i < extras; i += 1, stride_iter += stride ) {
-		(*runners[i]){ stride_iter, stride_iter + stride, loop_body };
-	}
-	stride -= 1;
-	for ( ; i < threads; i += 1, stride_iter += stride ) {
-		(*runners[i]){ stride_iter, stride_iter + stride, loop_body };
-	}
-	for ( i; threads ) {
-		delete( runners[i] );
-	}
-}
-
-//////////////////////////////////////////////////////////////////////////////////////////
-// parallel (COBEGIN/COEND)
-
-thread para_runner {
-	parallel_stmt_t body;
-	void * arg;
-};
-
-static void ?{}( para_runner & this, parallel_stmt_t body, void * arg ) { 
-	this.body = body;
-	this.arg = arg;
-}
-
-void main( para_runner & this ) with( this ) { body( arg ); }
-
-void parallel( parallel_stmt_t * stmts, void ** args, size_t num ) libcfa_public {
-	para_runner * runners[ num ];
-	for ( i; num )
-		(*(runners[i] = malloc())){ stmts[i], args[i] };
-	for ( i; num )
-		delete( runners[i] );
-}
-
Index: bcfa/src/concurrency/cofor.hfa
===================================================================
--- libcfa/src/concurrency/cofor.hfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,21 +1,0 @@
-#include <thread.hfa>
-
-//////////////////////////////////////////////////////////////////////////////////////////
-// cofor ( uC++ COFOR )
-typedef void (*__cofor_body_t)( ssize_t );
-
-void cofor( ssize_t low, ssize_t high, __cofor_body_t loop_body );
-
-#define COFOR( lidname, low, high, loopbody ) \
-	{ \
-		void __CFA_loopLambda__( ssize_t lidname ) { \
-			loopbody \
-		} \
-		cofor( low, high, __CFA_loopLambda__ ); \
-	}
-
-//////////////////////////////////////////////////////////////////////////////////////////
-// parallel (COBEGIN/COEND)
-typedef void (*parallel_stmt_t)( void * );
-
-void parallel( parallel_stmt_t * stmts, void ** args, size_t num );
Index: libcfa/src/concurrency/coroutine.cfa
===================================================================
--- libcfa/src/concurrency/coroutine.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/concurrency/coroutine.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -10,6 +10,6 @@
 // Created On       : Mon Nov 28 12:27:26 2016
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Mon Sep 18 21:47:12 2023
-// Update Count     : 25
+// Last Modified On : Thu Feb 16 15:34:46 2023
+// Update Count     : 24
 //
 
@@ -364,5 +364,5 @@
 // resume non local exception at receiver (i.e. enqueue in ehm buffer)
 forall(exceptT *, T & | ehm_resume_at( exceptT, T ))
-void resumeAt( T & receiver, exceptT & ex ) libcfa_public {
+void resumeAt( T & receiver, exceptT & ex )  libcfa_public {
     coroutine$ * cor = get_coroutine( receiver );
     nonlocal_exception * nl_ex = alloc();
Index: libcfa/src/concurrency/kernel/cluster.hfa
===================================================================
--- libcfa/src/concurrency/kernel/cluster.hfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/concurrency/kernel/cluster.hfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -31,6 +31,6 @@
 
 // warn normally all ints
-#define warn_large_before warnf( !strict || old_avg < 33_000_000_000, "Suspiciously large previous average: %'llu (%llx), %'" PRId64 "ms \n", old_avg, old_avg, program_cpu()`ms )
-#define warn_large_after warnf( !strict || ret < 33_000_000_000, "Suspiciously large new average after %'" PRId64 "ms cputime: %'llu (%llx) from %'llu-%'llu (%'llu, %'llu) and %'llu\n", program_cpu()`ms, ret, ret, currtsc, intsc, new_val, new_val / 1000000, old_avg )
+#define warn_large_before warnf( !strict || old_avg < 33_000_000_000, "Suspiciously large previous average: %'llu (%llx), %'" PRId64 "ms \n", old_avg, old_avg, program()`ms )
+#define warn_large_after warnf( !strict || ret < 33_000_000_000, "Suspiciously large new average after %'" PRId64 "ms cputime: %'llu (%llx) from %'llu-%'llu (%'llu, %'llu) and %'llu\n", program()`ms, ret, ret, currtsc, intsc, new_val, new_val / 1000000, old_avg )
 
 // 8X linear factor is just 8 * x
@@ -42,6 +42,6 @@
 static inline __readyQ_avg_t __to_readyQ_avg(unsigned long long intsc) { if(unlikely(0 == intsc)) return 0.0; else return log2((__readyQ_avg_t)intsc); }
 
-#define warn_large_before warnf( !strict || old_avg < 35.0, "Suspiciously large previous average: %'lf, %'" PRId64 "ms \n", old_avg, program_cpu()`ms )
-#define warn_large_after warnf( !strict || ret < 35.3, "Suspiciously large new average after %'" PRId64 "ms cputime: %'lf from %'llu-%'llu (%'llu, %'llu) and %'lf\n", program_cpu()`ms, ret, currtsc, intsc, new_val, new_val / 1000000, old_avg ); \
+#define warn_large_before warnf( !strict || old_avg < 35.0, "Suspiciously large previous average: %'lf, %'" PRId64 "ms \n", old_avg, program()`ms )
+#define warn_large_after warnf( !strict || ret < 35.3, "Suspiciously large new average after %'" PRId64 "ms cputime: %'lf from %'llu-%'llu (%'llu, %'llu) and %'lf\n", program()`ms, ret, currtsc, intsc, new_val, new_val / 1000000, old_avg ); \
 verify(ret >= 0)
 
Index: libcfa/src/heap.cfa
===================================================================
--- libcfa/src/heap.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/heap.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -10,6 +10,6 @@
 // Created On       : Tue Dec 19 21:58:35 2017
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Mon Sep 11 11:21:10 2023
-// Update Count     : 1615
+// Last Modified On : Wed Aug  2 18:48:30 2023
+// Update Count     : 1614
 //
 
@@ -691,16 +691,4 @@
 	return stats;
 } // collectStats
-
-static inline void clearStats() {
-	lock( mgrLock );
-
-	// Zero the heap master and all active thread heaps.
-	HeapStatisticsCtor( heapMaster.stats );
-	for ( Heap * heap = heapMaster.heapManagersList; heap; heap = heap->nextHeapManager ) {
-		HeapStatisticsCtor( heap->stats );
-	} // for
-
-	unlock( mgrLock );
-} // clearStats
 #endif // __STATISTICS__
 
@@ -1568,17 +1556,4 @@
 
 
-	// Zero the heap master and all active thread heaps.
-	void malloc_stats_clear() {
-		#ifdef __STATISTICS__
-		clearStats();
-		#else
-		#define MALLOC_STATS_MSG "malloc_stats statistics disabled.\n"
-		if ( write( STDERR_FILENO, MALLOC_STATS_MSG, sizeof( MALLOC_STATS_MSG ) - 1 /* size includes '\0' */ ) == -1 ) {
-			abort( "**** Error **** write failed in malloc_stats" );
-		} // if
-		#endif // __STATISTICS__
-	} // malloc_stats_clear
-
-
 	// Changes the file descriptor where malloc_stats() writes statistics.
 	int malloc_stats_fd( int fd __attribute__(( unused )) ) libcfa_public {
Index: libcfa/src/heap.hfa
===================================================================
--- libcfa/src/heap.hfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/heap.hfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -10,6 +10,6 @@
 // Created On       : Tue May 26 11:23:55 2020
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Mon Sep 11 11:18:18 2023
-// Update Count     : 24
+// Last Modified On : Tue Oct  4 19:08:55 2022
+// Update Count     : 23
 // 
 
@@ -43,5 +43,4 @@
 	size_t malloc_mmap_start();							// crossover allocation size from sbrk to mmap
 	size_t malloc_unfreed();							// heap unfreed size (bytes)
-	void malloc_stats_clear();							// clear heap statistics
 } // extern "C"
 
Index: libcfa/src/iostream.cfa
===================================================================
--- libcfa/src/iostream.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ libcfa/src/iostream.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,3 +1,2 @@
-
 //
 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
@@ -977,10 +976,5 @@
 		if ( f.flags.ignore ) { fmtstr[1] = '*'; start += 1; }
 		// no maximum width necessary because text ignored => width is read width
-		if ( f.wd != -1 ) {
-			// wd is buffer bytes available (for input chars + null terminator)
-			// rwd is count of input chars
-			int rwd = f.flags.rwd ? f.wd : (f.wd - 1);
-			start += sprintf( &fmtstr[start], "%d", rwd );
-		}
+		if ( f.wd != -1 ) { start += sprintf( &fmtstr[start], "%d", f.wd ); }
 
 		if ( ! scanset ) {
@@ -999,5 +993,5 @@
 		} // if
 
-		int check = f.wd - 2;
+		int check = f.wd - 1;
 		if ( ! f.flags.rwd ) f.s[check] = '\0';			// insert sentinel
 		len = fmt( is, fmtstr, f.s );
Index: src/AST/Util.cpp
===================================================================
--- src/AST/Util.cpp	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ src/AST/Util.cpp	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -104,13 +104,4 @@
 	}
 	assertf( false, "Member not found." );
-}
-
-template<typename node_t>
-void oneOfExprOrType( const node_t * node ) {
-	if ( node->expr ) {
-		assertf( node->expr && !node->type, "Exactly one of expr or type should be set." );
-	} else {
-		assertf( !node->expr && node->type, "Exactly one of expr or type should be set." );
-	}
 }
 
@@ -161,14 +152,4 @@
 	}
 
-	void previsit( const SizeofExpr * node ) {
-		previsit( (const ParseNode *)node );
-		oneOfExprOrType( node );
-	}
-
-	void previsit( const AlignofExpr * node ) {
-		previsit( (const ParseNode *)node );
-		oneOfExprOrType( node );
-	}
-
 	void previsit( const StructInstType * node ) {
 		previsit( (const Node *)node );
@@ -200,6 +181,4 @@
 /// referring to is in scope by the structural rules of code.
 // Any escapes marked with a bug should be removed once the bug is fixed.
-// This is a separate pass because of it changes the visit pattern and
-// must always be run on the entire translation unit.
 struct InScopeCore : public ast::WithShortCircuiting {
 	ScopedSet<DeclWithType const *> typedDecls;
Index: src/ControlStruct/MultiLevelExit.cpp
===================================================================
--- src/ControlStruct/MultiLevelExit.cpp	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ src/ControlStruct/MultiLevelExit.cpp	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -10,6 +10,6 @@
 // Created On       : Mon Nov  1 13:48:00 2021
 // Last Modified By : Andrew Beach
-// Last Modified On : Fri Sep  8 17:04:00 2023
-// Update Count     : 36
+// Last Modified On : Wed Sep  6 12:00:00 2023
+// Update Count     : 35
 //
 
@@ -27,14 +27,4 @@
 
 namespace {
-
-/// The return context is used to remember if returns are allowed and if
-/// not, why not. It is the nearest local control flow blocking construct.
-enum ReturnContext {
-	MayReturn,
-	InTryWithHandler,
-	InResumeHandler,
-	InTerminateHandler,
-	InFinally,
-};
 
 class Entry {
@@ -136,5 +126,4 @@
 	void previsit( const TryStmt * );
 	void postvisit( const TryStmt * );
-	void previsit( const CatchClause * );
 	void previsit( const FinallyClause * );
 
@@ -145,5 +134,5 @@
 	vector<Entry> enclosing_control_structures;
 	Label break_label;
-	ReturnContext ret_context;
+	bool inFinally;
 
 	template<typename LoopNode>
@@ -155,6 +144,4 @@
 		const list<ptr<Stmt>> & kids, bool caseClause );
 
-	void enterSealedContext( ReturnContext );
-
 	template<typename UnaryPredicate>
 	auto findEnclosingControlStructure( UnaryPredicate pred ) {
@@ -170,5 +157,5 @@
 MultiLevelExitCore::MultiLevelExitCore( const LabelToStmt & lt ) :
 	target_table( lt ), break_label( CodeLocation(), "" ),
-	ret_context( ReturnContext::MayReturn )
+	inFinally( false )
 {}
 
@@ -501,24 +488,7 @@
 
 void MultiLevelExitCore::previsit( const ReturnStmt * stmt ) {
-	char const * context;
-	switch ( ret_context ) {
-	case ReturnContext::MayReturn:
-		return;
-	case ReturnContext::InTryWithHandler:
-		context = "try statement with a catch clause";
-		break;
-	case ReturnContext::InResumeHandler:
-		context = "catchResume clause";
-		break;
-	case ReturnContext::InTerminateHandler:
-		context = "catch clause";
-		break;
-	case ReturnContext::InFinally:
-		context = "finally clause";
-		break;
-	default:
-		assert(0);
-	}
-	SemanticError( stmt->location, toString( "'return' may not appear in a ", context ) );
+	if ( inFinally ) {
+		SemanticError( stmt->location, "'return' may not appear in a finally clause" );
+	}
 }
 
@@ -530,11 +500,4 @@
 		GuardAction([this](){ enclosing_control_structures.pop_back(); } );
 	}
-
-	// Try statements/try blocks are only sealed with a termination handler.
-	for ( auto clause : stmt->handlers ) {
-		if ( ast::Terminate == clause->kind ) {
-			return enterSealedContext( ReturnContext::InTryWithHandler );
-		}
-	}
 }
 
@@ -549,12 +512,8 @@
 }
 
-void MultiLevelExitCore::previsit( const CatchClause * clause ) {
-	ReturnContext context = ( ast::Terminate == clause->kind )
-		? ReturnContext::InTerminateHandler : ReturnContext::InResumeHandler;
-	enterSealedContext( context );
-}
-
 void MultiLevelExitCore::previsit( const FinallyClause * ) {
-	enterSealedContext( ReturnContext::InFinally );
+	GuardAction([this, old = std::move( enclosing_control_structures)](){ enclosing_control_structures = std::move(old); });
+	enclosing_control_structures = vector<Entry>();
+	GuardValue( inFinally ) = true;
 }
 
@@ -658,10 +617,4 @@
 }
 
-void MultiLevelExitCore::enterSealedContext( ReturnContext enter_context ) {
-	GuardAction([this, old = std::move(enclosing_control_structures)](){ enclosing_control_structures = std::move(old); });
-	enclosing_control_structures = vector<Entry>();
-	GuardValue( ret_context ) = enter_context;
-}
-
 } // namespace
 
Index: src/GenPoly/GenPoly.cc
===================================================================
--- src/GenPoly/GenPoly.cc	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ src/GenPoly/GenPoly.cc	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -48,9 +48,8 @@
 		}
 
-		bool hasPolyParams( const std::vector<ast::ptr<ast::Expr>> & params, const ast::TypeSubstitution * env ) {
-			for ( auto &param : params ) {
-				auto paramType = param.as<ast::TypeExpr>();
-				assertf( paramType, "Aggregate parameters should be type expressions" );
-				if ( isPolyType( paramType->type, env ) ) return true;
+		bool hasPolyParams( const std::vector<ast::ptr<ast::Expr>> & params, const ast::TypeSubstitution * env) {
+			for (auto &param : params) {
+				auto paramType = param.strict_as<ast::TypeExpr>();
+				if (isPolyType(paramType->type, env)) return true;
 			}
 			return false;
@@ -63,13 +62,4 @@
 				assertf(paramType, "Aggregate parameters should be type expressions");
 				if ( isPolyType( paramType->get_type(), tyVars, env ) ) return true;
-			}
-			return false;
-		}
-
-		bool hasPolyParams( const std::vector<ast::ptr<ast::Expr>> & params, const TypeVarMap & typeVars, const ast::TypeSubstitution * env ) {
-			for ( auto & param : params ) {
-				auto paramType = param.as<ast::TypeExpr>();
-				assertf( paramType, "Aggregate parameters should be type expressions" );
-				if ( isPolyType( paramType->type, typeVars, env ) ) return true;
 			}
 			return false;
@@ -195,4 +185,19 @@
 	}
 
+	const ast::Type * isPolyType(const ast::Type * type, const TyVarMap & tyVars, const ast::TypeSubstitution * env) {
+		type = replaceTypeInst( type, env );
+
+		if ( auto typeInst = dynamic_cast< const ast::TypeInstType * >( type ) ) {
+			if ( tyVars.contains( typeInst->typeString() ) ) return type;
+		} else if ( auto arrayType = dynamic_cast< const ast::ArrayType * >( type ) ) {
+			return isPolyType( arrayType->base, env );
+		} else if ( auto structType = dynamic_cast< const ast::StructInstType* >( type ) ) {
+			if ( hasPolyParams( structType->params, env ) ) return type;
+		} else if ( auto unionType = dynamic_cast< const ast::UnionInstType* >( type ) ) {
+			if ( hasPolyParams( unionType->params, env ) ) return type;
+		}
+		return nullptr;
+	}
+
 const ast::Type * isPolyType( const ast::Type * type,
 		const TypeVarMap & typeVars, const ast::TypeSubstitution * subst ) {
@@ -202,9 +207,9 @@
 		if ( typeVars.contains( *inst ) ) return type;
 	} else if ( auto array = dynamic_cast< const ast::ArrayType * >( type ) ) {
-		return isPolyType( array->base, typeVars, subst );
+		return isPolyType( array->base, subst );
 	} else if ( auto sue = dynamic_cast< const ast::StructInstType * >( type ) ) {
-		if ( hasPolyParams( sue->params, typeVars, subst ) ) return type;
+		if ( hasPolyParams( sue->params, subst ) ) return type;
 	} else if ( auto sue = dynamic_cast< const ast::UnionInstType * >( type ) ) {
-		if ( hasPolyParams( sue->params, typeVars, subst ) ) return type;
+		if ( hasPolyParams( sue->params, subst ) ) return type;
 	}
 	return nullptr;
Index: tests/.expect/minmax.txt
===================================================================
--- tests/.expect/minmax.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/.expect/minmax.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -20,10 +20,2 @@
 double			4. 3.1	max 4.
 long double		4. 3.1	max 4.
-
-3 arguments
-2 3 4	min 2	max 4
-4 2 3	min 2	max 4
-3 4 2	min 2	max 4
-4 arguments
-3 2 5 4	min 2	max 5
-5 3 4 2	min 2	max 5
Index: sts/collections/.expect/string-compare.txt
===================================================================
--- tests/collections/.expect/string-compare.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,800 +1,0 @@
-------- string -------
-(cmp(s_, s_) == 0) ok
-(s_ == s_) ok
-!(s_ != s_) ok
-!(s_ > s_) ok
-(s_ >= s_) ok
-(s_ <= s_) ok
-!(s_ < s_) ok
-(cmp("", s_) == 0) ok
-("" == s_) ok
-!("" != s_) ok
-!("" > s_) ok
-("" >= s_) ok
-("" <= s_) ok
-!("" < s_) ok
-(cmp(s_, "") == 0) ok
-(s_ == "") ok
-!(s_ != "") ok
-!(s_ > "") ok
-(s_ >= "") ok
-(s_ <= "") ok
-!(s_ < "") ok
-(cmp(s_, s_a) < 0) ok
-!(s_ == s_a) ok
-(s_ != s_a) ok
-!(s_ > s_a) ok
-!(s_ >= s_a) ok
-(s_ <= s_a) ok
-(s_ < s_a) ok
-(cmp("", s_a) < 0) ok
-!("" == s_a) ok
-("" != s_a) ok
-!("" > s_a) ok
-!("" >= s_a) ok
-("" <= s_a) ok
-("" < s_a) ok
-(cmp(s_, "a") < 0) ok
-!(s_ == "a") ok
-(s_ != "a") ok
-!(s_ > "a") ok
-!(s_ >= "a") ok
-(s_ <= "a") ok
-(s_ < "a") ok
-(cmp(s_a, s_) > 0) ok
-!(s_a == s_) ok
-(s_a != s_) ok
-(s_a > s_) ok
-(s_a >= s_) ok
-!(s_a <= s_) ok
-!(s_a < s_) ok
-(cmp("a", s_) > 0) ok
-!("a" == s_) ok
-("a" != s_) ok
-("a" > s_) ok
-("a" >= s_) ok
-!("a" <= s_) ok
-!("a" < s_) ok
-(cmp(s_a, "") > 0) ok
-!(s_a == "") ok
-(s_a != "") ok
-(s_a > "") ok
-(s_a >= "") ok
-!(s_a <= "") ok
-!(s_a < "") ok
-(cmp(s_, s_aa) < 0) ok
-!(s_ == s_aa) ok
-(s_ != s_aa) ok
-!(s_ > s_aa) ok
-!(s_ >= s_aa) ok
-(s_ <= s_aa) ok
-(s_ < s_aa) ok
-(cmp("", s_aa) < 0) ok
-!("" == s_aa) ok
-("" != s_aa) ok
-!("" > s_aa) ok
-!("" >= s_aa) ok
-("" <= s_aa) ok
-("" < s_aa) ok
-(cmp(s_, "aa") < 0) ok
-!(s_ == "aa") ok
-(s_ != "aa") ok
-!(s_ > "aa") ok
-!(s_ >= "aa") ok
-(s_ <= "aa") ok
-(s_ < "aa") ok
-(cmp(s_aa, s_) > 0) ok
-!(s_aa == s_) ok
-(s_aa != s_) ok
-(s_aa > s_) ok
-(s_aa >= s_) ok
-!(s_aa <= s_) ok
-!(s_aa < s_) ok
-(cmp("aa", s_) > 0) ok
-!("aa" == s_) ok
-("aa" != s_) ok
-("aa" > s_) ok
-("aa" >= s_) ok
-!("aa" <= s_) ok
-!("aa" < s_) ok
-(cmp(s_aa, "") > 0) ok
-!(s_aa == "") ok
-(s_aa != "") ok
-(s_aa > "") ok
-(s_aa >= "") ok
-!(s_aa <= "") ok
-!(s_aa < "") ok
-(cmp(s_a, s_aa) < 0) ok
-!(s_a == s_aa) ok
-(s_a != s_aa) ok
-!(s_a > s_aa) ok
-!(s_a >= s_aa) ok
-(s_a <= s_aa) ok
-(s_a < s_aa) ok
-(cmp("a", s_aa) < 0) ok
-!("a" == s_aa) ok
-("a" != s_aa) ok
-!("a" > s_aa) ok
-!("a" >= s_aa) ok
-("a" <= s_aa) ok
-("a" < s_aa) ok
-(cmp(s_a, "aa") < 0) ok
-!(s_a == "aa") ok
-(s_a != "aa") ok
-!(s_a > "aa") ok
-!(s_a >= "aa") ok
-(s_a <= "aa") ok
-(s_a < "aa") ok
-(cmp(s_aa, s_a) > 0) ok
-!(s_aa == s_a) ok
-(s_aa != s_a) ok
-(s_aa > s_a) ok
-(s_aa >= s_a) ok
-!(s_aa <= s_a) ok
-!(s_aa < s_a) ok
-(cmp("aa", s_a) > 0) ok
-!("aa" == s_a) ok
-("aa" != s_a) ok
-("aa" > s_a) ok
-("aa" >= s_a) ok
-!("aa" <= s_a) ok
-!("aa" < s_a) ok
-(cmp(s_aa, "a") > 0) ok
-!(s_aa == "a") ok
-(s_aa != "a") ok
-(s_aa > "a") ok
-(s_aa >= "a") ok
-!(s_aa <= "a") ok
-!(s_aa < "a") ok
-(cmp(s_a, s_a) == 0) ok
-(s_a == s_a) ok
-!(s_a != s_a) ok
-!(s_a > s_a) ok
-(s_a >= s_a) ok
-(s_a <= s_a) ok
-!(s_a < s_a) ok
-(cmp("a", s_a) == 0) ok
-("a" == s_a) ok
-!("a" != s_a) ok
-!("a" > s_a) ok
-("a" >= s_a) ok
-("a" <= s_a) ok
-!("a" < s_a) ok
-(cmp(s_a, "a") == 0) ok
-(s_a == "a") ok
-!(s_a != "a") ok
-!(s_a > "a") ok
-(s_a >= "a") ok
-(s_a <= "a") ok
-!(s_a < "a") ok
-(cmp(s_aa, s_aa) == 0) ok
-(s_aa == s_aa) ok
-!(s_aa != s_aa) ok
-!(s_aa > s_aa) ok
-(s_aa >= s_aa) ok
-(s_aa <= s_aa) ok
-!(s_aa < s_aa) ok
-(cmp("aa", s_aa) == 0) ok
-("aa" == s_aa) ok
-!("aa" != s_aa) ok
-!("aa" > s_aa) ok
-("aa" >= s_aa) ok
-("aa" <= s_aa) ok
-!("aa" < s_aa) ok
-(cmp(s_aa, "aa") == 0) ok
-(s_aa == "aa") ok
-!(s_aa != "aa") ok
-!(s_aa > "aa") ok
-(s_aa >= "aa") ok
-(s_aa <= "aa") ok
-!(s_aa < "aa") ok
-(cmp(s_a, s_b) < 0) ok
-!(s_a == s_b) ok
-(s_a != s_b) ok
-!(s_a > s_b) ok
-!(s_a >= s_b) ok
-(s_a <= s_b) ok
-(s_a < s_b) ok
-(cmp("a", s_b) < 0) ok
-!("a" == s_b) ok
-("a" != s_b) ok
-!("a" > s_b) ok
-!("a" >= s_b) ok
-("a" <= s_b) ok
-("a" < s_b) ok
-(cmp(s_a, "b") < 0) ok
-!(s_a == "b") ok
-(s_a != "b") ok
-!(s_a > "b") ok
-!(s_a >= "b") ok
-(s_a <= "b") ok
-(s_a < "b") ok
-(cmp(s_b, s_a) > 0) ok
-!(s_b == s_a) ok
-(s_b != s_a) ok
-(s_b > s_a) ok
-(s_b >= s_a) ok
-!(s_b <= s_a) ok
-!(s_b < s_a) ok
-(cmp("b", s_a) > 0) ok
-!("b" == s_a) ok
-("b" != s_a) ok
-("b" > s_a) ok
-("b" >= s_a) ok
-!("b" <= s_a) ok
-!("b" < s_a) ok
-(cmp(s_b, "a") > 0) ok
-!(s_b == "a") ok
-(s_b != "a") ok
-(s_b > "a") ok
-(s_b >= "a") ok
-!(s_b <= "a") ok
-!(s_b < "a") ok
-(cmp(s_a, s_ba) < 0) ok
-!(s_a == s_ba) ok
-(s_a != s_ba) ok
-!(s_a > s_ba) ok
-!(s_a >= s_ba) ok
-(s_a <= s_ba) ok
-(s_a < s_ba) ok
-(cmp("a", s_ba) < 0) ok
-!("a" == s_ba) ok
-("a" != s_ba) ok
-!("a" > s_ba) ok
-!("a" >= s_ba) ok
-("a" <= s_ba) ok
-("a" < s_ba) ok
-(cmp(s_a, "ba") < 0) ok
-!(s_a == "ba") ok
-(s_a != "ba") ok
-!(s_a > "ba") ok
-!(s_a >= "ba") ok
-(s_a <= "ba") ok
-(s_a < "ba") ok
-(cmp(s_ba, s_a) > 0) ok
-!(s_ba == s_a) ok
-(s_ba != s_a) ok
-(s_ba > s_a) ok
-(s_ba >= s_a) ok
-!(s_ba <= s_a) ok
-!(s_ba < s_a) ok
-(cmp("ba", s_a) > 0) ok
-!("ba" == s_a) ok
-("ba" != s_a) ok
-("ba" > s_a) ok
-("ba" >= s_a) ok
-!("ba" <= s_a) ok
-!("ba" < s_a) ok
-(cmp(s_ba, "a") > 0) ok
-!(s_ba == "a") ok
-(s_ba != "a") ok
-(s_ba > "a") ok
-(s_ba >= "a") ok
-!(s_ba <= "a") ok
-!(s_ba < "a") ok
-(cmp(s_aa, s_ab) < 0) ok
-!(s_aa == s_ab) ok
-(s_aa != s_ab) ok
-!(s_aa > s_ab) ok
-!(s_aa >= s_ab) ok
-(s_aa <= s_ab) ok
-(s_aa < s_ab) ok
-(cmp("aa", s_ab) < 0) ok
-!("aa" == s_ab) ok
-("aa" != s_ab) ok
-!("aa" > s_ab) ok
-!("aa" >= s_ab) ok
-("aa" <= s_ab) ok
-("aa" < s_ab) ok
-(cmp(s_aa, "ab") < 0) ok
-!(s_aa == "ab") ok
-(s_aa != "ab") ok
-!(s_aa > "ab") ok
-!(s_aa >= "ab") ok
-(s_aa <= "ab") ok
-(s_aa < "ab") ok
-(cmp(s_ab, s_aa) > 0) ok
-!(s_ab == s_aa) ok
-(s_ab != s_aa) ok
-(s_ab > s_aa) ok
-(s_ab >= s_aa) ok
-!(s_ab <= s_aa) ok
-!(s_ab < s_aa) ok
-(cmp("ab", s_aa) > 0) ok
-!("ab" == s_aa) ok
-("ab" != s_aa) ok
-("ab" > s_aa) ok
-("ab" >= s_aa) ok
-!("ab" <= s_aa) ok
-!("ab" < s_aa) ok
-(cmp(s_ab, "aa") > 0) ok
-!(s_ab == "aa") ok
-(s_ab != "aa") ok
-(s_ab > "aa") ok
-(s_ab >= "aa") ok
-!(s_ab <= "aa") ok
-!(s_ab < "aa") ok
-(cmp(s_ba, s_bb) < 0) ok
-!(s_ba == s_bb) ok
-(s_ba != s_bb) ok
-!(s_ba > s_bb) ok
-!(s_ba >= s_bb) ok
-(s_ba <= s_bb) ok
-(s_ba < s_bb) ok
-(cmp("ba", s_bb) < 0) ok
-!("ba" == s_bb) ok
-("ba" != s_bb) ok
-!("ba" > s_bb) ok
-!("ba" >= s_bb) ok
-("ba" <= s_bb) ok
-("ba" < s_bb) ok
-(cmp(s_ba, "bb") < 0) ok
-!(s_ba == "bb") ok
-(s_ba != "bb") ok
-!(s_ba > "bb") ok
-!(s_ba >= "bb") ok
-(s_ba <= "bb") ok
-(s_ba < "bb") ok
-(cmp(s_bb, s_ba) > 0) ok
-!(s_bb == s_ba) ok
-(s_bb != s_ba) ok
-(s_bb > s_ba) ok
-(s_bb >= s_ba) ok
-!(s_bb <= s_ba) ok
-!(s_bb < s_ba) ok
-(cmp("bb", s_ba) > 0) ok
-!("bb" == s_ba) ok
-("bb" != s_ba) ok
-("bb" > s_ba) ok
-("bb" >= s_ba) ok
-!("bb" <= s_ba) ok
-!("bb" < s_ba) ok
-(cmp(s_bb, "ba") > 0) ok
-!(s_bb == "ba") ok
-(s_bb != "ba") ok
-(s_bb > "ba") ok
-(s_bb >= "ba") ok
-!(s_bb <= "ba") ok
-!(s_bb < "ba") ok
-(cmp(s_aa, s_b) < 0) ok
-!(s_aa == s_b) ok
-(s_aa != s_b) ok
-!(s_aa > s_b) ok
-!(s_aa >= s_b) ok
-(s_aa <= s_b) ok
-(s_aa < s_b) ok
-(cmp("aa", s_b) < 0) ok
-!("aa" == s_b) ok
-("aa" != s_b) ok
-!("aa" > s_b) ok
-!("aa" >= s_b) ok
-("aa" <= s_b) ok
-("aa" < s_b) ok
-(cmp(s_aa, "b") < 0) ok
-!(s_aa == "b") ok
-(s_aa != "b") ok
-!(s_aa > "b") ok
-!(s_aa >= "b") ok
-(s_aa <= "b") ok
-(s_aa < "b") ok
-(cmp(s_b, s_aa) > 0) ok
-!(s_b == s_aa) ok
-(s_b != s_aa) ok
-(s_b > s_aa) ok
-(s_b >= s_aa) ok
-!(s_b <= s_aa) ok
-!(s_b < s_aa) ok
-(cmp("b", s_aa) > 0) ok
-!("b" == s_aa) ok
-("b" != s_aa) ok
-("b" > s_aa) ok
-("b" >= s_aa) ok
-!("b" <= s_aa) ok
-!("b" < s_aa) ok
-(cmp(s_b, "aa") > 0) ok
-!(s_b == "aa") ok
-(s_b != "aa") ok
-(s_b > "aa") ok
-(s_b >= "aa") ok
-!(s_b <= "aa") ok
-!(s_b < "aa") ok
-------- string_res -------
-(cmp(s_, s_) == 0) ok
-(s_ == s_) ok
-!(s_ != s_) ok
-!(s_ > s_) ok
-(s_ >= s_) ok
-(s_ <= s_) ok
-!(s_ < s_) ok
-(cmp("", s_) == 0) ok
-("" == s_) ok
-!("" != s_) ok
-!("" > s_) ok
-("" >= s_) ok
-("" <= s_) ok
-!("" < s_) ok
-(cmp(s_, "") == 0) ok
-(s_ == "") ok
-!(s_ != "") ok
-!(s_ > "") ok
-(s_ >= "") ok
-(s_ <= "") ok
-!(s_ < "") ok
-(cmp(s_, s_a) < 0) ok
-!(s_ == s_a) ok
-(s_ != s_a) ok
-!(s_ > s_a) ok
-!(s_ >= s_a) ok
-(s_ <= s_a) ok
-(s_ < s_a) ok
-(cmp("", s_a) < 0) ok
-!("" == s_a) ok
-("" != s_a) ok
-!("" > s_a) ok
-!("" >= s_a) ok
-("" <= s_a) ok
-("" < s_a) ok
-(cmp(s_, "a") < 0) ok
-!(s_ == "a") ok
-(s_ != "a") ok
-!(s_ > "a") ok
-!(s_ >= "a") ok
-(s_ <= "a") ok
-(s_ < "a") ok
-(cmp(s_a, s_) > 0) ok
-!(s_a == s_) ok
-(s_a != s_) ok
-(s_a > s_) ok
-(s_a >= s_) ok
-!(s_a <= s_) ok
-!(s_a < s_) ok
-(cmp("a", s_) > 0) ok
-!("a" == s_) ok
-("a" != s_) ok
-("a" > s_) ok
-("a" >= s_) ok
-!("a" <= s_) ok
-!("a" < s_) ok
-(cmp(s_a, "") > 0) ok
-!(s_a == "") ok
-(s_a != "") ok
-(s_a > "") ok
-(s_a >= "") ok
-!(s_a <= "") ok
-!(s_a < "") ok
-(cmp(s_, s_aa) < 0) ok
-!(s_ == s_aa) ok
-(s_ != s_aa) ok
-!(s_ > s_aa) ok
-!(s_ >= s_aa) ok
-(s_ <= s_aa) ok
-(s_ < s_aa) ok
-(cmp("", s_aa) < 0) ok
-!("" == s_aa) ok
-("" != s_aa) ok
-!("" > s_aa) ok
-!("" >= s_aa) ok
-("" <= s_aa) ok
-("" < s_aa) ok
-(cmp(s_, "aa") < 0) ok
-!(s_ == "aa") ok
-(s_ != "aa") ok
-!(s_ > "aa") ok
-!(s_ >= "aa") ok
-(s_ <= "aa") ok
-(s_ < "aa") ok
-(cmp(s_aa, s_) > 0) ok
-!(s_aa == s_) ok
-(s_aa != s_) ok
-(s_aa > s_) ok
-(s_aa >= s_) ok
-!(s_aa <= s_) ok
-!(s_aa < s_) ok
-(cmp("aa", s_) > 0) ok
-!("aa" == s_) ok
-("aa" != s_) ok
-("aa" > s_) ok
-("aa" >= s_) ok
-!("aa" <= s_) ok
-!("aa" < s_) ok
-(cmp(s_aa, "") > 0) ok
-!(s_aa == "") ok
-(s_aa != "") ok
-(s_aa > "") ok
-(s_aa >= "") ok
-!(s_aa <= "") ok
-!(s_aa < "") ok
-(cmp(s_a, s_aa) < 0) ok
-!(s_a == s_aa) ok
-(s_a != s_aa) ok
-!(s_a > s_aa) ok
-!(s_a >= s_aa) ok
-(s_a <= s_aa) ok
-(s_a < s_aa) ok
-(cmp("a", s_aa) < 0) ok
-!("a" == s_aa) ok
-("a" != s_aa) ok
-!("a" > s_aa) ok
-!("a" >= s_aa) ok
-("a" <= s_aa) ok
-("a" < s_aa) ok
-(cmp(s_a, "aa") < 0) ok
-!(s_a == "aa") ok
-(s_a != "aa") ok
-!(s_a > "aa") ok
-!(s_a >= "aa") ok
-(s_a <= "aa") ok
-(s_a < "aa") ok
-(cmp(s_aa, s_a) > 0) ok
-!(s_aa == s_a) ok
-(s_aa != s_a) ok
-(s_aa > s_a) ok
-(s_aa >= s_a) ok
-!(s_aa <= s_a) ok
-!(s_aa < s_a) ok
-(cmp("aa", s_a) > 0) ok
-!("aa" == s_a) ok
-("aa" != s_a) ok
-("aa" > s_a) ok
-("aa" >= s_a) ok
-!("aa" <= s_a) ok
-!("aa" < s_a) ok
-(cmp(s_aa, "a") > 0) ok
-!(s_aa == "a") ok
-(s_aa != "a") ok
-(s_aa > "a") ok
-(s_aa >= "a") ok
-!(s_aa <= "a") ok
-!(s_aa < "a") ok
-(cmp(s_a, s_a) == 0) ok
-(s_a == s_a) ok
-!(s_a != s_a) ok
-!(s_a > s_a) ok
-(s_a >= s_a) ok
-(s_a <= s_a) ok
-!(s_a < s_a) ok
-(cmp("a", s_a) == 0) ok
-("a" == s_a) ok
-!("a" != s_a) ok
-!("a" > s_a) ok
-("a" >= s_a) ok
-("a" <= s_a) ok
-!("a" < s_a) ok
-(cmp(s_a, "a") == 0) ok
-(s_a == "a") ok
-!(s_a != "a") ok
-!(s_a > "a") ok
-(s_a >= "a") ok
-(s_a <= "a") ok
-!(s_a < "a") ok
-(cmp(s_aa, s_aa) == 0) ok
-(s_aa == s_aa) ok
-!(s_aa != s_aa) ok
-!(s_aa > s_aa) ok
-(s_aa >= s_aa) ok
-(s_aa <= s_aa) ok
-!(s_aa < s_aa) ok
-(cmp("aa", s_aa) == 0) ok
-("aa" == s_aa) ok
-!("aa" != s_aa) ok
-!("aa" > s_aa) ok
-("aa" >= s_aa) ok
-("aa" <= s_aa) ok
-!("aa" < s_aa) ok
-(cmp(s_aa, "aa") == 0) ok
-(s_aa == "aa") ok
-!(s_aa != "aa") ok
-!(s_aa > "aa") ok
-(s_aa >= "aa") ok
-(s_aa <= "aa") ok
-!(s_aa < "aa") ok
-(cmp(s_a, s_b) < 0) ok
-!(s_a == s_b) ok
-(s_a != s_b) ok
-!(s_a > s_b) ok
-!(s_a >= s_b) ok
-(s_a <= s_b) ok
-(s_a < s_b) ok
-(cmp("a", s_b) < 0) ok
-!("a" == s_b) ok
-("a" != s_b) ok
-!("a" > s_b) ok
-!("a" >= s_b) ok
-("a" <= s_b) ok
-("a" < s_b) ok
-(cmp(s_a, "b") < 0) ok
-!(s_a == "b") ok
-(s_a != "b") ok
-!(s_a > "b") ok
-!(s_a >= "b") ok
-(s_a <= "b") ok
-(s_a < "b") ok
-(cmp(s_b, s_a) > 0) ok
-!(s_b == s_a) ok
-(s_b != s_a) ok
-(s_b > s_a) ok
-(s_b >= s_a) ok
-!(s_b <= s_a) ok
-!(s_b < s_a) ok
-(cmp("b", s_a) > 0) ok
-!("b" == s_a) ok
-("b" != s_a) ok
-("b" > s_a) ok
-("b" >= s_a) ok
-!("b" <= s_a) ok
-!("b" < s_a) ok
-(cmp(s_b, "a") > 0) ok
-!(s_b == "a") ok
-(s_b != "a") ok
-(s_b > "a") ok
-(s_b >= "a") ok
-!(s_b <= "a") ok
-!(s_b < "a") ok
-(cmp(s_a, s_ba) < 0) ok
-!(s_a == s_ba) ok
-(s_a != s_ba) ok
-!(s_a > s_ba) ok
-!(s_a >= s_ba) ok
-(s_a <= s_ba) ok
-(s_a < s_ba) ok
-(cmp("a", s_ba) < 0) ok
-!("a" == s_ba) ok
-("a" != s_ba) ok
-!("a" > s_ba) ok
-!("a" >= s_ba) ok
-("a" <= s_ba) ok
-("a" < s_ba) ok
-(cmp(s_a, "ba") < 0) ok
-!(s_a == "ba") ok
-(s_a != "ba") ok
-!(s_a > "ba") ok
-!(s_a >= "ba") ok
-(s_a <= "ba") ok
-(s_a < "ba") ok
-(cmp(s_ba, s_a) > 0) ok
-!(s_ba == s_a) ok
-(s_ba != s_a) ok
-(s_ba > s_a) ok
-(s_ba >= s_a) ok
-!(s_ba <= s_a) ok
-!(s_ba < s_a) ok
-(cmp("ba", s_a) > 0) ok
-!("ba" == s_a) ok
-("ba" != s_a) ok
-("ba" > s_a) ok
-("ba" >= s_a) ok
-!("ba" <= s_a) ok
-!("ba" < s_a) ok
-(cmp(s_ba, "a") > 0) ok
-!(s_ba == "a") ok
-(s_ba != "a") ok
-(s_ba > "a") ok
-(s_ba >= "a") ok
-!(s_ba <= "a") ok
-!(s_ba < "a") ok
-(cmp(s_aa, s_ab) < 0) ok
-!(s_aa == s_ab) ok
-(s_aa != s_ab) ok
-!(s_aa > s_ab) ok
-!(s_aa >= s_ab) ok
-(s_aa <= s_ab) ok
-(s_aa < s_ab) ok
-(cmp("aa", s_ab) < 0) ok
-!("aa" == s_ab) ok
-("aa" != s_ab) ok
-!("aa" > s_ab) ok
-!("aa" >= s_ab) ok
-("aa" <= s_ab) ok
-("aa" < s_ab) ok
-(cmp(s_aa, "ab") < 0) ok
-!(s_aa == "ab") ok
-(s_aa != "ab") ok
-!(s_aa > "ab") ok
-!(s_aa >= "ab") ok
-(s_aa <= "ab") ok
-(s_aa < "ab") ok
-(cmp(s_ab, s_aa) > 0) ok
-!(s_ab == s_aa) ok
-(s_ab != s_aa) ok
-(s_ab > s_aa) ok
-(s_ab >= s_aa) ok
-!(s_ab <= s_aa) ok
-!(s_ab < s_aa) ok
-(cmp("ab", s_aa) > 0) ok
-!("ab" == s_aa) ok
-("ab" != s_aa) ok
-("ab" > s_aa) ok
-("ab" >= s_aa) ok
-!("ab" <= s_aa) ok
-!("ab" < s_aa) ok
-(cmp(s_ab, "aa") > 0) ok
-!(s_ab == "aa") ok
-(s_ab != "aa") ok
-(s_ab > "aa") ok
-(s_ab >= "aa") ok
-!(s_ab <= "aa") ok
-!(s_ab < "aa") ok
-(cmp(s_ba, s_bb) < 0) ok
-!(s_ba == s_bb) ok
-(s_ba != s_bb) ok
-!(s_ba > s_bb) ok
-!(s_ba >= s_bb) ok
-(s_ba <= s_bb) ok
-(s_ba < s_bb) ok
-(cmp("ba", s_bb) < 0) ok
-!("ba" == s_bb) ok
-("ba" != s_bb) ok
-!("ba" > s_bb) ok
-!("ba" >= s_bb) ok
-("ba" <= s_bb) ok
-("ba" < s_bb) ok
-(cmp(s_ba, "bb") < 0) ok
-!(s_ba == "bb") ok
-(s_ba != "bb") ok
-!(s_ba > "bb") ok
-!(s_ba >= "bb") ok
-(s_ba <= "bb") ok
-(s_ba < "bb") ok
-(cmp(s_bb, s_ba) > 0) ok
-!(s_bb == s_ba) ok
-(s_bb != s_ba) ok
-(s_bb > s_ba) ok
-(s_bb >= s_ba) ok
-!(s_bb <= s_ba) ok
-!(s_bb < s_ba) ok
-(cmp("bb", s_ba) > 0) ok
-!("bb" == s_ba) ok
-("bb" != s_ba) ok
-("bb" > s_ba) ok
-("bb" >= s_ba) ok
-!("bb" <= s_ba) ok
-!("bb" < s_ba) ok
-(cmp(s_bb, "ba") > 0) ok
-!(s_bb == "ba") ok
-(s_bb != "ba") ok
-(s_bb > "ba") ok
-(s_bb >= "ba") ok
-!(s_bb <= "ba") ok
-!(s_bb < "ba") ok
-(cmp(s_aa, s_b) < 0) ok
-!(s_aa == s_b) ok
-(s_aa != s_b) ok
-!(s_aa > s_b) ok
-!(s_aa >= s_b) ok
-(s_aa <= s_b) ok
-(s_aa < s_b) ok
-(cmp("aa", s_b) < 0) ok
-!("aa" == s_b) ok
-("aa" != s_b) ok
-!("aa" > s_b) ok
-!("aa" >= s_b) ok
-("aa" <= s_b) ok
-("aa" < s_b) ok
-(cmp(s_aa, "b") < 0) ok
-!(s_aa == "b") ok
-(s_aa != "b") ok
-!(s_aa > "b") ok
-!(s_aa >= "b") ok
-(s_aa <= "b") ok
-(s_aa < "b") ok
-(cmp(s_b, s_aa) > 0) ok
-!(s_b == s_aa) ok
-(s_b != s_aa) ok
-(s_b > s_aa) ok
-(s_b >= s_aa) ok
-!(s_b <= s_aa) ok
-!(s_b < s_aa) ok
-(cmp("b", s_aa) > 0) ok
-!("b" == s_aa) ok
-("b" != s_aa) ok
-("b" > s_aa) ok
-("b" >= s_aa) ok
-!("b" <= s_aa) ok
-!("b" < s_aa) ok
-(cmp(s_b, "aa") > 0) ok
-!(s_b == "aa") ok
-(s_b != "aa") ok
-(s_b > "aa") ok
-(s_b >= "aa") ok
-!(s_b <= "aa") ok
-!(s_b < "aa") ok
Index: sts/collections/string-compare.cfa
===================================================================
--- tests/collections/string-compare.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,76 +1,0 @@
-#define chk(X) \
-    printf( #X " %s\n", ((X)?"ok":"WRONG") );
-
-#define test_eq_(l, r) \
-    chk( (cmp(l, r) == 0) ) \
-    chk(  (l == r) ) \
-    chk( !(l != r) ) \
-    chk( !(l >  r) ) \
-    chk(  (l >= r) ) \
-    chk(  (l <= r) ) \
-    chk( !(l <  r) )
-
-#define test_eq(l, r) \
-    test_eq_(s_ ## l, s_ ## r) \
-    test_eq_(    # l, s_ ## r) \
-    test_eq_(s_ ## l,     # r)
-
-#define test_lt_(l, r) \
-    chk( (cmp(l, r) < 0) ) \
-    chk( !(l == r) ) \
-    chk(  (l != r) ) \
-    chk( !(l >  r) ) \
-    chk( !(l >= r) ) \
-    chk(  (l <= r) ) \
-    chk(  (l <  r) )
-
-#define test_gt_(l, r) \
-    chk( (cmp(l, r) > 0) ) \
-    chk( !(l == r) ) \
-    chk(  (l != r) ) \
-    chk(  (l >  r) ) \
-    chk(  (l >= r) ) \
-    chk( !(l <= r) ) \
-    chk( !(l <  r) )
-
-#define test_lt(l, r) \
-    test_lt_(s_ ## l, s_ ## r) \
-    test_lt_(    # l, s_ ## r) \
-    test_lt_(s_ ## l,     # r) \
-    test_gt_(s_ ## r, s_ ## l) \
-    test_gt_(    # r, s_ ## l) \
-    test_gt_(s_ ## r,     # l)
-
-#define define_run(STR_T) \
-    void run_ ## STR_T (void) {    \
-        printf("------- %s -------\n", #STR_T); \
-        STR_T s_   = ""  ;        \
-        STR_T s_a  = "a" ;        \
-        STR_T s_aa = "aa";        \
-        STR_T s_ab = "ab";        \
-        STR_T s_b  = "b" ;        \
-        STR_T s_ba = "ba";        \
-        STR_T s_bb = "bb";        \
-        test_eq(,)                \
-        test_lt(,a)               \
-        test_lt(,aa)              \
-        test_lt(a,aa)             \
-        test_eq(a,a)              \
-        test_eq(aa,aa)            \
-        test_lt(a,b)              \
-        test_lt(a,ba)             \
-        test_lt(aa,ab)            \
-        test_lt(ba,bb)            \
-        test_lt(aa,b)             \
-    }
-
-#include <collections/string.hfa>
-define_run(string)
-
-#include <collections/string_res.hfa>
-define_run(string_res)
-
-int main() {
-    run_string();
-    run_string_res();
-}
Index: sts/concurrency/.expect/cofor.txt
===================================================================
--- tests/concurrency/.expect/cofor.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,3 +1,0 @@
-start
-total: 110
-done
Index: tests/concurrency/actors/.expect/matrix.txt
===================================================================
--- tests/concurrency/actors/.expect/matrix.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
+++ tests/concurrency/actors/.expect/matrix.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -0,0 +1,4 @@
+starting
+started
+stopping
+stopped
Index: sts/concurrency/actors/.expect/matrixMultiply.txt
===================================================================
--- tests/concurrency/actors/.expect/matrixMultiply.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,4 +1,0 @@
-starting
-started
-stopping
-stopped
Index: tests/concurrency/actors/dynamic.cfa
===================================================================
--- tests/concurrency/actors/dynamic.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/actors/dynamic.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -9,57 +9,61 @@
 struct derived_actor { inline actor; };
 struct derived_msg {
-	inline message;
-	int cnt;
+    inline message;
+    int cnt;
 };
 
 void ?{}( derived_msg & this, int cnt ) {
-	set_allocation( this, Delete );
-	this.cnt = cnt;
+    ((message &) this){ Delete };
+    this.cnt = cnt;
 }
 void ?{}( derived_msg & this ) { ((derived_msg &)this){ 0 }; }
 
 allocation receive( derived_actor & receiver, derived_msg & msg ) {
-	if ( msg.cnt >= Times ) {
-		sout | "Done";
-		return Delete;
-	}
-	derived_msg * d_msg = alloc();
-	(*d_msg){ msg.cnt + 1 };
-	derived_actor * d_actor = alloc();
-	(*d_actor){};
-	*d_actor | *d_msg;
-	return Delete;
+    if ( msg.cnt >= Times ) {
+        sout | "Done";
+        return Delete;
+    }
+    derived_msg * d_msg = alloc();
+    (*d_msg){ msg.cnt + 1 };
+    derived_actor * d_actor = alloc();
+    (*d_actor){};
+    *d_actor | *d_msg;
+    return Delete;
 }
 
 int main( int argc, char * argv[] ) {
-	switch ( argc ) {
+    switch ( argc ) {
 	  case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Times = ato( argv[1] );
-			if ( Times < 1 ) fallthru default;
+			Times = atoi( argv[1] );
+			if ( Times < 1 ) goto Usage;
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0] | " [ times (> 0) ]";
+	  Usage:
+		sout | "Usage: " | argv[0] | " [ times (> 0) ]";
+		exit( EXIT_FAILURE );
 	} // switch
 
-	sout | "starting";
+    printf("starting\n");
 
-	executor e{ 0, 1, 1, false };
-	start_actor_system( e );
+    executor e{ 0, 1, 1, false };
+    start_actor_system( e );
 
-	sout | "started";
+    printf("started\n");
 
-	derived_msg * d_msg = alloc();
-	(*d_msg){};
-	derived_actor * d_actor = alloc();
-	(*d_actor){};
-	*d_actor | *d_msg;
+    derived_msg * d_msg = alloc();
+    (*d_msg){};
+    derived_actor * d_actor = alloc();
+    (*d_actor){};
+    *d_actor | *d_msg;
 
-	sout | "stopping";
+    printf("stopping\n");
 
-	stop_actor_system();
+    stop_actor_system();
 
-	sout | "stopped";
+    printf("stopped\n");
+
+    return 0;
 }
Index: tests/concurrency/actors/executor.cfa
===================================================================
--- tests/concurrency/actors/executor.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/actors/executor.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -10,14 +10,14 @@
 static int ids = 0;
 struct d_actor { 
-	inline actor;
-	d_actor * gstart;
-	int id, rounds, recs, sends;
+    inline actor;
+    d_actor * gstart;
+    int id, rounds, recs, sends;
 };
 void ?{}( d_actor & this ) with(this) {
-	id = ids++;
-	gstart = (&this + (id / Set * Set - id)); // remember group-start array-element
-	rounds = Set * Rounds;	// send at least one message to each group member
-	recs = 0;
-	sends = 0;
+    id = ids++;
+    gstart = (&this + (id / Set * Set - id)); // remember group-start array-element
+    rounds = Set * Rounds;	// send at least one message to each group member
+    recs = 0;
+    sends = 0;
 }
 
@@ -25,52 +25,53 @@
 
 allocation receive( d_actor & this, d_msg & msg ) with( this ) {
-	if ( recs == rounds ) return Finished;
-	if ( recs % Batch == 0 ) {
-		for ( i; Batch ) {
-			gstart[sends % Set] | shared_msg;
-			sends += 1;
-		}
-	}
-	recs += 1;
-	return Nodelete;
+    if ( recs == rounds ) return Finished;
+    if ( recs % Batch == 0 ) {
+        for ( i; Batch ) {
+            gstart[sends % Set] | shared_msg;
+            sends += 1;
+        }
+    }
+    recs += 1;
+    return Nodelete;
 }
 
 int main( int argc, char * argv[] ) {
-	switch ( argc ) {
+    switch ( argc ) {
 	  case 7:
 		if ( strcmp( argv[6], "d" ) != 0 ) {			// default ?
-			BufSize = ato( argv[6] );
-			if ( BufSize < 0 ) fallthru default;
+			BufSize = atoi( argv[6] );
+			if ( BufSize < 0 ) goto Usage;
 		} // if
 	  case 6:
 		if ( strcmp( argv[5], "d" ) != 0 ) {			// default ?
-			Batch = ato( argv[5] );
-			if ( Batch < 1 ) fallthru default;
+			Batch = atoi( argv[5] );
+			if ( Batch < 1 ) goto Usage;
 		} // if
 	  case 5:
 		if ( strcmp( argv[4], "d" ) != 0 ) {			// default ?
-			Processors = ato( argv[4] );
-			if ( Processors < 1 ) fallthru default;
+			Processors = atoi( argv[4] );
+			if ( Processors < 1 ) goto Usage;
 		} // if
 	  case 4:
 		if ( strcmp( argv[3], "d" ) != 0 ) {			// default ?
-			Rounds = ato( argv[3] );
-			if ( Rounds < 1 ) fallthru default;
+			Rounds = atoi( argv[3] );
+			if ( Rounds < 1 ) goto Usage;
 		} // if
 	  case 3:
 		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
-			Set = ato( argv[2] );
-			if ( Set < 1 ) fallthru default;
+			Set = atoi( argv[2] );
+			if ( Set < 1 ) goto Usage;
 		} // if
 	  case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Actors = ato( argv[1] );
-			if ( Actors < 1 || Actors <= Set || Actors % Set != 0 ) fallthru default;
+			Actors = atoi( argv[1] );
+			if ( Actors < 1 || Actors <= Set || Actors % Set != 0 ) goto Usage;
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0]
-			 | " [ actors (> 0 && > set && actors % set == 0 ) | 'd' (default " | Actors
+	  Usage:
+		sout | "Usage: " | argv[0]
+             | " [ actors (> 0 && > set && actors % set == 0 ) | 'd' (default " | Actors
 			 | ") ] [ set (> 0) | 'd' (default " | Set
 			 | ") ] [ rounds (> 0) | 'd' (default " | Rounds
@@ -79,15 +80,16 @@
 			 | ") ] [ buffer size (>= 0) | 'd' (default " | BufSize
 			 | ") ]" ;
+		exit( EXIT_FAILURE );
 	} // switch
 
-	executor e{ Processors, Processors, Processors == 1 ? 1 : Processors * 512, true };
+    executor e{ Processors, Processors, Processors == 1 ? 1 : Processors * 512, true };
 
-	sout | "starting";
+    printf("starting\n");
 
-	start_actor_system( e );
+    start_actor_system( e );
 
-	sout | "started";
+    printf("started\n");
 
-	d_actor actors[ Actors ];
+    d_actor actors[ Actors ];
 
 	for ( i; Actors ) {
@@ -95,8 +97,10 @@
 	} // for
 
-	sout | "stopping";
+    printf("stopping\n");
 
-	stop_actor_system();
+    stop_actor_system();
 
-	sout | "stopped";
+    printf("stopped\n");
+
+    return 0;
 }
Index: tests/concurrency/actors/inherit.cfa
===================================================================
--- tests/concurrency/actors/inherit.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/actors/inherit.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -18,5 +18,5 @@
 
 allocation handle() {
-	return Finished;
+    return Finished;
 }
 
@@ -27,30 +27,30 @@
 
 int main() {
-	sout | "Start";
-	{
-		start_actor_system();
-		D_msg * dm = alloc();
-		(*dm){};
-		D_msg2 * dm2 = alloc();
-		(*dm2){};
-		Server2 * s = alloc();
-		(*s){};
-		Server2 * s2 = alloc();
-		(*s2){};
-		*s | *dm;
-		*s2 | *dm2;
-		stop_actor_system();
-	}
-	{
-		start_actor_system();
-		Server s[2];
-		D_msg * dm = alloc();
-		(*dm){};
-		D_msg2 * dm2 = alloc();
-		(*dm2){};
-		s[0] | *dm;
-		s[1] | *dm2;
-		stop_actor_system();
-	}
-	sout | "Finished";
+    sout | "Start";
+    {
+        start_actor_system();
+        D_msg * dm = alloc();
+        (*dm){};
+        D_msg2 * dm2 = alloc();
+        (*dm2){};
+        Server2 * s = alloc();
+        (*s){};
+        Server2 * s2 = alloc();
+        (*s2){};
+        *s | *dm;
+        *s2 | *dm2;
+        stop_actor_system();
+    }
+    {
+        start_actor_system();
+        Server s[2];
+        D_msg * dm = alloc();
+        (*dm){};
+        D_msg2 * dm2 = alloc();
+        (*dm2){};
+        s[0] | *dm;
+        s[1] | *dm2;
+        stop_actor_system();
+    }
+    sout | "Finished";
 }
Index: tests/concurrency/actors/inline.cfa
===================================================================
--- tests/concurrency/actors/inline.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/actors/inline.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -3,15 +3,15 @@
 
 struct d_actor {
-	inline actor;
+    inline actor;
 };
 struct msg_wrapper {
-	int b;
-	inline message;
+    int b;
+    inline message;
 };
 void ^?{}( msg_wrapper & this ) { sout | "msg_wrapper dtor"; }
 
 struct d_msg {
-	int m;
-	inline msg_wrapper;
+    int m;
+    inline msg_wrapper;
 };
 void ?{}( d_msg & this, int m, int b ) { this.m = m; this.b = b; set_allocation( this, Delete ); }
@@ -19,40 +19,40 @@
 
 allocation receive( d_actor &, d_msg & msg ) {
-	sout | msg.m;
-	sout | msg.b;
-	return Finished;
+    sout | msg.m;
+    sout | msg.b;
+    return Finished;
 }
 
 struct d_msg2 {
-	int m;
-	inline msg_wrapper;
+    int m;
+    inline msg_wrapper;
 };
 void ^?{}( d_msg2 & this ) { sout | "d_msg2 dtor";}
 
 allocation receive( d_actor &, d_msg2 & msg ) {
-	sout | msg.m;
-	return Finished;
+    sout | msg.m;
+    return Finished;
 }
 
 int main() {
-	processor p;
-	{
-		start_actor_system();								// sets up executor
-		d_actor da;
-		d_msg * dm = alloc();
-		(*dm){ 42, 2423 };
-		da | *dm;
-		stop_actor_system();								// waits until actors finish
-	}
-	{
-		start_actor_system();								// sets up executor
-		d_actor da;
-		d_msg2 dm{ 29079 };
-		set_allocation( dm, Nodelete );
-		msg_wrapper * mw = &dm;
-		message * mg = &dm;
-		virtual_dtor * v = &dm;
-		da | dm;
-		stop_actor_system();								// waits until actors finish
-	}
+    processor p;
+    {
+        start_actor_system();                                // sets up executor
+        d_actor da;
+        d_msg * dm = alloc();
+        (*dm){ 42, 2423 };
+        da | *dm;
+        stop_actor_system();                                // waits until actors finish
+    }
+    {
+        start_actor_system();                                // sets up executor
+        d_actor da;
+        d_msg2 dm{ 29079 };
+        set_allocation( dm, Nodelete );
+        msg_wrapper * mw = &dm;
+        message * mg = &dm;
+        virtual_dtor * v = &dm;
+        da | dm;
+        stop_actor_system();                                // waits until actors finish
+    }
 }
Index: tests/concurrency/actors/matrix.cfa
===================================================================
--- tests/concurrency/actors/matrix.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
+++ tests/concurrency/actors/matrix.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -0,0 +1,125 @@
+#include <actor.hfa>
+#include <fstream.hfa>
+#include <stdlib.hfa>
+#include <string.h>
+#include <stdio.h>
+
+unsigned int xr = 500, xc = 500, yc = 500, Processors = 1; // default values
+
+struct derived_actor { inline actor; };
+
+struct derived_msg {
+    inline message;
+    int * Z;
+	int * X;
+    int ** Y;
+};
+
+void ?{}( derived_msg & this ) {}
+void ?{}( derived_msg & this, int * Z, int * X, int ** Y ) {
+    ((message &) this){ Nodelete };
+    this.Z = Z;
+    this.X = X;
+    this.Y = Y;
+}
+
+allocation receive( derived_actor & receiver, derived_msg & msg ) {
+    for ( unsigned int i = 0; i < yc; i += 1 ) { // multiply X_row by Y_col and sum products
+        msg.Z[i] = 0;
+        for ( unsigned int j = 0; j < xc; j += 1 ) {
+            msg.Z[i] += msg.X[j] * msg.Y[j][i];
+        } // for
+    } // for
+    return Finished;
+}
+
+int main( int argc, char * argv[] ) {
+    switch ( argc ) {
+	  case 5:
+		if ( strcmp( argv[4], "d" ) != 0 ) {			// default ?
+			Processors = atoi( argv[4] );
+			if ( Processors < 1 ) goto Usage;
+		} // if
+	  case 4:
+		if ( strcmp( argv[3], "d" ) != 0 ) {			// default ?
+			xr = atoi( argv[3] );
+			if ( xr < 1 ) goto Usage;
+		} // if
+	  case 3:
+		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
+			xc = atoi( argv[2] );
+			if ( xc < 1 ) goto Usage;
+		} // if
+	  case 2:
+		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
+			yc = atoi( argv[1] );
+			if ( yc < 1 ) goto Usage;
+		} // if
+	  case 1:											// use defaults
+		break;
+	  default:
+	  Usage:
+		sout | "Usage: " | argv[0]
+			 | " [ yc (> 0) | 'd' (default " | yc
+			 | ") ] [ xc (> 0) | 'd' (default " | xc
+			 | ") ] [ xr (> 0) | 'd' (default " | xr
+			 | ") ] [ processors (> 0) | 'd' (default " | Processors
+			 | ") ]" ;
+		exit( EXIT_FAILURE );
+	} // switch
+
+    unsigned int r, c;
+	int * Z[xr], * X[xr], * Y[xc];
+
+	for ( r = 0; r < xr; r += 1 ) {						// create/initialize X matrix
+		X[r] = aalloc( xc );
+		for ( c = 0; c < xc; c += 1 ) {
+			X[r][c] = r * c % 37;						// for timing
+		} // for
+	} // for
+	for ( r = 0; r < xc; r += 1 ) {						// create/initialize Y matrix
+		Y[r] = aalloc( yc );
+		for ( c = 0; c < yc; c += 1 ) {
+			Y[r][c] = r * c % 37;						// for timing
+		} // for
+	} // for
+	for ( r = 0; r < xr; r += 1 ) {						// create Z matrix
+		Z[r] = aalloc( yc );
+	} // for
+
+    executor e{ Processors, Processors, Processors == 1 ? 1 : Processors * 16, true };
+
+    printf("starting\n");
+
+    start_actor_system( e );
+
+    printf("started\n");
+
+    derived_msg messages[xr];
+
+    derived_actor actors[xr];
+
+	for ( unsigned int r = 0; r < xr; r += 1 ) {
+		messages[r]{ Z[r], X[r], Y };
+	} // for
+
+	for ( unsigned int r = 0; r < xr; r += 1 ) {
+		actors[r] | messages[r];
+	} // for
+
+    printf("stopping\n");
+
+    stop_actor_system();
+
+    printf("stopped\n");
+
+    for ( r = 0; r < xr; r += 1 ) {						// deallocate X and Z matrices
+		free( X[r] );
+        free( Z[r] );
+	} // for
+	for ( r = 0; r < xc; r += 1 ) {						// deallocate Y matrix
+        free( Y[r] );
+	} // for
+
+    return 0;
+}
Index: sts/concurrency/actors/matrixMultiply.cfa
===================================================================
--- tests/concurrency/actors/matrixMultiply.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,120 +1,0 @@
-#include <actor.hfa>
-#include <fstream.hfa>
-#include <stdlib.hfa>
-#include <string.h>
-#include <stdio.h>
-
-ssize_t xr = 500, xc = 500, yc = 500, Processors = 1; // default values, must be signed
-
-struct derived_actor { inline actor; };
-
-struct derived_msg {
-	inline message;
-	int * Z;
-	int * X;
-	int ** Y;
-};
-
-void ?{}( derived_msg & this ) {}
-void ?{}( derived_msg & this, int * Z, int * X, int ** Y ) {
-	set_allocation( this, Nodelete );
-	this.Z = Z;
-	this.X = X;
-	this.Y = Y;
-}
-
-allocation receive( derived_actor & receiver, derived_msg & msg ) {
-	for ( i; yc ) {										// multiply X_row by Y_col and sum products
-		msg.Z[i] = 0;
-		for ( j; xc ) {
-			msg.Z[i] += msg.X[j] * msg.Y[j][i];
-		} // for
-	} // for
-	return Finished;
-}
-
-int main( int argc, char * argv[] ) {
-	switch ( argc ) {
-	  case 5:
-		if ( strcmp( argv[4], "d" ) != 0 ) {			// default ?
-			Processors = ato( argv[4] );
-			if ( Processors < 1 ) fallthru default;
-		} // if
-	  case 4:
-		if ( strcmp( argv[3], "d" ) != 0 ) {			// default ?
-			xr = ato( argv[3] );
-			if ( xr < 1 ) fallthru default;
-		} // if
-	  case 3:
-		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
-			xc = ato( argv[2] );
-			if ( xc < 1 ) fallthru default;
-		} // if
-	  case 2:
-		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			yc = ato( argv[1] );
-			if ( yc < 1 ) fallthru default;
-		} // if
-	  case 1:											// use defaults
-		break;
-	  default:
-		exit | "Usage: " | argv[0]
-			 | " [ yc (> 0) | 'd' (default " | yc
-			 | ") ] [ xc (> 0) | 'd' (default " | xc
-			 | ") ] [ xr (> 0) | 'd' (default " | xr
-			 | ") ] [ processors (> 0) | 'd' (default " | Processors
-			 | ") ]" ;
-	} // switch
-
-	int * Z[xr], * X[xr], * Y[xc];
-
-	for ( r; xr ) {										// create/initialize X matrix
-		X[r] = aalloc( xc );
-		for ( c; xc ) {
-			X[r][c] = r * c % 37;						// for timing
-		} // for
-	} // for
-	for ( r; xc ) {										// create/initialize Y matrix
-		Y[r] = aalloc( yc );
-		for ( c; yc ) {
-			Y[r][c] = r * c % 37;						// for timing
-		} // for
-	} // for
-	for ( r; xr ) {										// create Z matrix
-		Z[r] = aalloc( yc );
-	} // for
-
-	executor e{ Processors, Processors, Processors == 1 ? 1 : Processors * 16, true };
-
-	sout | "starting";
-
-	start_actor_system( e );
-
-	sout | "started";
-
-	derived_msg messages[xr];
-
-	derived_actor actors[xr];
-
-	for ( r; xr ) {
-		messages[r]{ Z[r], X[r], Y };
-	} // for
-
-	for ( r; xr ) {
-		actors[r] | messages[r];
-	} // for
-
-	sout | "stopping";
-
-	stop_actor_system();
-
-	sout | "stopped";
-
-	for ( r; xr ) {										// deallocate X and Z matrices
-		free( X[r] );
-		free( Z[r] );
-	} // for
-	for ( r; xc ) {										// deallocate Y matrix
-		free( Y[r] );
-	} // for
-}
Index: tests/concurrency/actors/pingpong.cfa
===================================================================
--- tests/concurrency/actors/pingpong.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/actors/pingpong.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -10,9 +10,8 @@
 
 struct p_msg {
-	inline message;
-	size_t count;
+    inline message;
+    size_t count;
 };
-//static inline void ?{}( p_msg & this ) { ((message &)this){}; this.count = 0; }
-static inline void ?{}( p_msg & this ) { this.count = 0; }
+static inline void ?{}( p_msg & this ) { ((message &)this){}; this.count = 0; }
 
 ping * pi;
@@ -21,21 +20,21 @@
 
 allocation receive( ping & receiver, p_msg & msg ) {
-	msg.count++;
-	if ( msg.count > times ) return Finished;
+    msg.count++;
+    if ( msg.count > times ) return Finished;
 
-	allocation retval = Nodelete;
-	if ( msg.count == times ) retval = Finished;
-	*po | msg;
-	return retval;
+    allocation retval = Nodelete;
+    if ( msg.count == times ) retval = Finished;
+    *po | msg;
+    return retval;
 }
 
 allocation receive( pong & receiver, p_msg & msg ) {
-	msg.count++;
-	if ( msg.count > times ) return Finished;
-	
-	allocation retval = Nodelete;
-	if ( msg.count == times ) retval = Finished;
-	*pi | msg;
-	return retval;
+    msg.count++;
+    if ( msg.count > times ) return Finished;
+    
+    allocation retval = Nodelete;
+    if ( msg.count == times ) retval = Finished;
+    *pi | msg;
+    return retval;
 }
 
@@ -43,17 +42,19 @@
 
 int main( int argc, char * argv[] ) {
-	sout | "start";
+    printf("start\n");
 
-	processor p[Processors - 1];
+    processor p[Processors - 1];
 
-	start_actor_system( Processors ); // test passing number of processors
-	ping pi_actor;
-	pong po_actor;
-	po = &po_actor;
-	pi = &pi_actor;
-	p_msg m;
-	pi_actor | m;
-	stop_actor_system();
+    start_actor_system( Processors ); // test passing number of processors
 
-	sout | "end";
+    ping pi_actor;
+    pong po_actor;
+    po = &po_actor;
+    pi = &pi_actor;
+    p_msg m;
+    pi_actor | m;
+    stop_actor_system();
+
+    printf("end\n");
+    return 0;
 }
Index: tests/concurrency/actors/poison.cfa
===================================================================
--- tests/concurrency/actors/poison.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/actors/poison.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -11,39 +11,40 @@
 
 int main() {
-	sout | "Start";
+    sout | "Start";
 
-	sout | "Finished";
-	{
-		start_actor_system();
-		Server s[10];
-		for ( i; 10 ) {
-			s[i] | finished_msg;
-		}
-		stop_actor_system();
-	}
+    sout | "Finished";
+    {
+        start_actor_system();
+        Server s[10];
+        for ( i; 10 ) {
+            s[i] | finished_msg;
+        }
+        stop_actor_system();
+    }
 
-	sout | "Delete";
-	{
-		start_actor_system();
-		for ( i; 10 ) {
-			Server * s = alloc();
-			(*s){};
-			(*s) | delete_msg;
-		}
-		stop_actor_system();
-	}
+    sout | "Delete";
+    {
+        start_actor_system();
+        for ( i; 10 ) {
+            Server * s = alloc();
+            (*s){};
+            (*s) | delete_msg;
+        }
+        stop_actor_system();
+    }
 
-	sout | "Destroy";
-	{
-		start_actor_system();
-		Server s[10];
-		for ( i; 10 )
-			s[i] | destroy_msg;
-		stop_actor_system();
-		for ( i; 10 )
-			if (s[i].val != 777)
-				sout | "Error: dtor not called correctly.";
-	}
+    sout | "Destroy";
+    {
+        start_actor_system();
+        Server s[10];
+        for ( i; 10 )
+            s[i] | destroy_msg;
+        stop_actor_system();
+        for ( i; 10 )
+            if (s[i].val != 777)
+                sout | "Error: dtor not called correctly.";
+    }
 
-	sout | "Done";
+    sout | "Done";
+    return 0;
 }
Index: tests/concurrency/actors/static.cfa
===================================================================
--- tests/concurrency/actors/static.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/actors/static.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -9,54 +9,58 @@
 struct derived_actor { inline actor; };
 struct derived_msg {
-	inline message;
-	int cnt;
+    inline message;
+    int cnt;
 };
 
 void ?{}( derived_msg & this, int cnt ) {
-	set_allocation( this, Nodelete );
-	this.cnt = cnt;
+    ((message &) this){ Nodelete };
+    this.cnt = cnt;
 }
 void ?{}( derived_msg & this ) { ((derived_msg &)this){ 0 }; }
 
 allocation receive( derived_actor & receiver, derived_msg & msg ) {
-	if ( msg.cnt >= Times ) {
-		sout | "Done";
-		return Finished;
-	}
-	msg.cnt++;
-	receiver | msg;
-	return Nodelete;
+    if ( msg.cnt >= Times ) {
+        sout | "Done";
+        return Finished;
+    }
+    msg.cnt++;
+    receiver | msg;
+    return Nodelete;
 }
 
 int main( int argc, char * argv[] ) {
-	switch ( argc ) {
+    switch ( argc ) {
 	  case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Times = ato( argv[1] );
-			if ( Times < 1 ) fallthru default;
+			Times = atoi( argv[1] );
+			if ( Times < 1 ) goto Usage;
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0] | " [ times (> 0) ]";
+	  Usage:
+		sout | "Usage: " | argv[0] | " [ times (> 0) ]";
+		exit( EXIT_FAILURE );
 	} // switch
 
-	sout | "starting";
+    printf("starting\n");
 
-	executor e{ 0, 1, 1, false };
-	start_actor_system( e );
+    executor e{ 0, 1, 1, false };
+    start_actor_system( e );
 
-	sout | "started";
+    printf("started\n");
 
-	derived_msg msg;
+    derived_msg msg;
 
-	derived_actor actor;
+    derived_actor actor;
 
-	actor | msg;
+    actor | msg;
 
-	sout | "stopping";
+    printf("stopping\n");
 
-	stop_actor_system();
+    stop_actor_system();
 
-	sout | "stopped";
+    printf("stopped\n");
+
+    return 0;
 }
Index: tests/concurrency/actors/types.cfa
===================================================================
--- tests/concurrency/actors/types.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/actors/types.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -9,34 +9,34 @@
 
 struct derived_actor {
-	inline actor;
-	int counter;
+    inline actor;
+    int counter;
 };
 static inline void ?{}( derived_actor & this ) { ((actor &)this){}; this.counter = 0; }
 
 struct d_msg {
-	inline message;
-	int num;
+    inline message;
+    int num;
 };
 
 // this isn't a valid receive routine since int is not a message type
 allocation receive( derived_actor & receiver, int i ) with( receiver ) {
-	mutex(sout) sout | i;
-	counter++;
-	if ( counter == 2 ) return Finished;
-	return Nodelete; 
+    mutex(sout) sout | i;
+    counter++;
+    if ( counter == 2 ) return Finished;
+    return Nodelete; 
 }
 
 allocation receive( derived_actor & receiver, d_msg & msg ) {
-	return receive( receiver, msg.num );
+    return receive( receiver, msg.num );
 }
 
 struct derived_actor2 {
-	struct nested { int i; }; // testing nested before inline
-	inline actor;
+    struct nested { int i; }; // testing nested before inline
+    inline actor;
 };
 
 allocation receive( derived_actor2 & receiver, d_msg & msg ) {
-	mutex(sout) sout | msg.num;
-	return Finished;
+    mutex(sout) sout | msg.num;
+    return Finished;
 }
 
@@ -44,17 +44,17 @@
 struct derived_actor4 { inline derived_actor3; };
 struct d_msg2 {
-	inline message;
-	int num;
+    inline message;
+    int num;
 };
 
 allocation receive( derived_actor3 & receiver, d_msg & msg ) {
-	mutex(sout) sout | msg.num;
-	if ( msg.num == -1 ) return Nodelete;
-	return Finished;
+    mutex(sout) sout | msg.num;
+    if ( msg.num == -1 ) return Nodelete;
+    return Finished;
 }
 
 allocation receive( derived_actor3 & receiver, d_msg2 & msg ) {
-	mutex(sout) sout | msg.num;
-	return Finished;
+    mutex(sout) sout | msg.num;
+    return Finished;
 }
 
@@ -62,66 +62,67 @@
 
 int main( int argc, char * argv[] ) {
-	sout | "start";
+    printf("start\n");
 
-	processor p[Processors - 1];
+    processor p[Processors - 1];
 
-	sout | "basic test"; 
-	start_actor_system( Processors ); // test passing number of processors
-	derived_actor a;
-	d_msg b, c;
-	b.num = 1;
-	c.num = 2;
-	a | b | c;
-	stop_actor_system();
+    printf("basic test\n"); 
+    start_actor_system( Processors ); // test passing number of processors
+    derived_actor a;
+    d_msg b, c;
+    b.num = 1;
+    c.num = 2;
+    a | b | c;
+    stop_actor_system();
 
-	sout | "same message and different actors test";
-	start_actor_system(); // let system detect # of processors
-	derived_actor2 d_ac2_0, d_ac2_1;
-	d_msg d_ac2_msg;
-	d_ac2_msg.num = 3;
-	d_ac2_0 | d_ac2_msg;
-	d_ac2_1 | d_ac2_msg;
-	stop_actor_system();
+    printf("same message and different actors test\n");
+    start_actor_system(); // let system detect # of processors
+    derived_actor2 d_ac2_0, d_ac2_1;
+    d_msg d_ac2_msg;
+    d_ac2_msg.num = 3;
+    d_ac2_0 | d_ac2_msg;
+    d_ac2_1 | d_ac2_msg;
+    stop_actor_system();
 
-	
-	{
-		sout | "same message and different actor types test";
-		executor e{ 0, Processors, Processors == 1 ? 1 : Processors * 4, false };
-		start_actor_system( e ); // pass an explicit executor
-		derived_actor2 d_ac2_2;
-		derived_actor3 d_ac3_0;
-		d_msg d_ac23_msg;
-		d_ac23_msg.num = 4;
-		d_ac3_0 | d_ac23_msg;
-		d_ac2_2 | d_ac23_msg;
-		stop_actor_system();
-	} // RAII to clean up executor
+    
+    {
+        printf("same message and different actor types test\n");
+        executor e{ 0, Processors, Processors == 1 ? 1 : Processors * 4, false };
+        start_actor_system( e ); // pass an explicit executor
+        derived_actor2 d_ac2_2;
+        derived_actor3 d_ac3_0;
+        d_msg d_ac23_msg;
+        d_ac23_msg.num = 4;
+        d_ac3_0 | d_ac23_msg;
+        d_ac2_2 | d_ac23_msg;
+        stop_actor_system();
+    } // RAII to clean up executor
 
-	{
-		sout | "different message types, one actor test";
-		executor e{ 1, Processors, Processors == 1 ? 1 : Processors * 4, true };
-		start_actor_system( Processors );
-		derived_actor3 a3;
-		d_msg b1;
-		d_msg2 c2;
-		b1.num = -1;
-		c2.num = 5;
-		a3 | b1 | c2;
-		stop_actor_system();
-	} // RAII to clean up executor
+    {
+        printf("different message types, one actor test\n");
+        executor e{ 1, Processors, Processors == 1 ? 1 : Processors * 4, true };
+        start_actor_system( Processors );
+        derived_actor3 a3;
+        d_msg b1;
+        d_msg2 c2;
+        b1.num = -1;
+        c2.num = 5;
+        a3 | b1 | c2;
+        stop_actor_system();
+    } // RAII to clean up executor
 
-	{
-		sout | "nested inheritance actor test";
-		executor e{ 1, Processors, Processors == 1 ? 1 : Processors * 4, true };
-		start_actor_system( Processors );
-		derived_actor4 a4;
-		d_msg b1;
-		d_msg2 c2;
-		b1.num = -1;
-		c2.num = 5;
-		a4 | b1 | c2;
-		stop_actor_system();
-	} // RAII to clean up executor
+    {
+        printf("nested inheritance actor test\n");
+        executor e{ 1, Processors, Processors == 1 ? 1 : Processors * 4, true };
+        start_actor_system( Processors );
+        derived_actor4 a4;
+        d_msg b1;
+        d_msg2 c2;
+        b1.num = -1;
+        c2.num = 5;
+        a4 | b1 | c2;
+        stop_actor_system();
+    } // RAII to clean up executor
 
-	sout | "end";
+    printf("end\n");
+    return 0;
 }
Index: tests/concurrency/channels/barrier.cfa
===================================================================
--- tests/concurrency/channels/barrier.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/channels/barrier.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -8,5 +8,5 @@
 
 size_t total_operations = 0;
-ssize_t Processors = 1, Tasks = 5, BarrierSize = 2;		// must be signed
+int Processors = 1, Tasks = 5, BarrierSize = 2;
 
 typedef channel( int ) Channel;
@@ -65,19 +65,21 @@
 	  case 3:
 		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
-			BarrierSize = ato( argv[2] );
-            if ( Processors < 1 ) fallthru default;
+			BarrierSize = atoi( argv[2] );
+            if ( Processors < 1 ) goto Usage;
 		} // if
 	  case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Processors = ato( argv[1] );
-			if ( Processors < 1 ) fallthru default;
+			Processors = atoi( argv[1] );
+			if ( Processors < 1 ) goto Usage;
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0]
+	  Usage:
+		sout | "Usage: " | argv[0]
              | " [ processors (> 0) | 'd' (default " | Processors
 			 | ") ] [ BarrierSize (> 0) | 'd' (default " | BarrierSize
 			 | ") ]" ;
+		exit( EXIT_FAILURE );
 	} // switch
     if ( Tasks < BarrierSize )
Index: tests/concurrency/channels/big_elems.cfa
===================================================================
--- tests/concurrency/channels/big_elems.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/channels/big_elems.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -2,5 +2,5 @@
 #include "parallel_harness.hfa"
 
-ssize_t Processors = 10, Channels = 10, Producers = 40, Consumers = 40, ChannelSize = 128;
+size_t Processors = 10, Channels = 10, Producers = 40, Consumers = 40, ChannelSize = 128;
 
 int main() {
Index: tests/concurrency/channels/churn.cfa
===================================================================
--- tests/concurrency/channels/churn.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/channels/churn.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -7,5 +7,5 @@
 #include <time.hfa>
 
-ssize_t Processors = 1, Channels = 4, Producers = 2, Consumers = 2, ChannelSize = 128;
+size_t Processors = 1, Channels = 4, Producers = 2, Consumers = 2, ChannelSize = 128;
 
 owner_lock o;
@@ -90,25 +90,27 @@
       case 4:
 		if ( strcmp( argv[3], "d" ) != 0 ) {			// default ?
-			ChannelSize = ato( argv[3] );
-			if ( ChannelSize < 1 ) fallthru default;
+			if ( atoi( argv[3] ) < 1 ) goto Usage;
+			ChannelSize = atoi( argv[3] );
 		} // if
       case 3:
 		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
-			Channels = ato( argv[2] );
-			if ( Channels < 1 ) fallthru default;
+			if ( atoi( argv[2] ) < 1 ) goto Usage;
+			Channels = atoi( argv[2] );
 		} // if
       case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Processors = ato( argv[1] );
-			if ( Processors < 1 ) fallthru default;
+			if ( atoi( argv[1] ) < 1 ) goto Usage;
+			Processors = atoi( argv[1] );
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0]
+	  Usage:
+		sout | "Usage: " | argv[0]
              | " [ processors > 0 | d ]"
              | " [ producers > 0 | d ]"
              | " [ consumers > 0 | d ]"
              | " [ channels > 0 | d ]";
+		exit( EXIT_FAILURE );
     }
     processor p[Processors - 1];
Index: tests/concurrency/channels/contend.cfa
===================================================================
--- tests/concurrency/channels/contend.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/channels/contend.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -127,21 +127,21 @@
 	  case 3:
 		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
-			ChannelSize = ato( argv[2] );
-			if ( ChannelSize < 1 ) fallthru default;
+			ChannelSize = atoi( argv[2] );
 		} // if
 	  case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Processors = ato( argv[1] );
-			if ( Processors < 1 ) fallthru default;
+			Processors = atoi( argv[1] );
+			if ( Processors < 1 ) goto Usage;
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0]
+	  Usage:
+		sout | "Usage: " | argv[0]
              | " [ processors (> 0) | 'd' (default " | Processors
 			 | ") ] [ channel size (>= 0) | 'd' (default " | ChannelSize
 			 | ") ]" ;
+		exit( EXIT_FAILURE );
 	} // switch
-
     test(Processors, Channels, Producers, Consumers, ChannelSize);
 }
Index: tests/concurrency/channels/daisy_chain.cfa
===================================================================
--- tests/concurrency/channels/daisy_chain.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/channels/daisy_chain.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -8,5 +8,5 @@
 
 size_t total_operations = 0;
-ssize_t Processors = 1, Tasks = 4;						// must be signed
+size_t Processors = 1, Tasks = 4;
 
 owner_lock o;
@@ -37,19 +37,21 @@
 	  case 3:
 		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
-			Tasks = ato( argv[2] );
-            if ( Tasks < 1 ) fallthru default;
+			Tasks = atoi( argv[2] );
+            if ( Tasks < 1 ) goto Usage;
 		} // if
 	  case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Processors = ato( argv[1] );
-			if ( Processors < 1 ) fallthru default;
+			Processors = atoi( argv[1] );
+			if ( Processors < 1 ) goto Usage;
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0]
+	  Usage:
+		sout | "Usage: " | argv[0]
              | " [ processors (> 0) | 'd' (default " | Processors
 			 | ") ] [ channel size (>= 0) | 'd' (default " | Tasks
 			 | ") ]" ;
+		exit( EXIT_FAILURE );
 	} // switch
     processor proc[Processors - 1];
@@ -69,3 +71,5 @@
     // sout | total_operations;
     sout | "done";
+
+    return 0;
 }
Index: tests/concurrency/channels/hot_potato.cfa
===================================================================
--- tests/concurrency/channels/hot_potato.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/channels/hot_potato.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -8,5 +8,5 @@
 
 size_t total_operations = 0;
-ssize_t Processors = 1, Tasks = 4;						// must be signed
+size_t Processors = 1, Tasks = 4;
 
 owner_lock o;
@@ -38,25 +38,27 @@
 }
 
+
 int main( int argc, char * argv[] ) {
     switch ( argc ) {
 	  case 3:
 		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
-			Tasks = ato( argv[2] );
-            if ( Tasks < 1 ) fallthru default;
+			Tasks = atoi( argv[2] );
+            if ( Tasks < 1 ) goto Usage;
 		} // if
 	  case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Processors = ato( argv[1] );
-			if ( Processors < 1 ) fallthru default;
+			Processors = atoi( argv[1] );
+			if ( Processors < 1 ) goto Usage;
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0]
+	  Usage:
+		sout | "Usage: " | argv[0]
              | " [ processors (> 0) | 'd' (default " | Processors
 			 | ") ] [ channel size (>= 0) | 'd' (default " | Tasks
 			 | ") ]" ;
+		exit( EXIT_FAILURE );
 	} // switch
-
     processor proc[Processors - 1];
 
Index: tests/concurrency/channels/pub_sub.cfa
===================================================================
--- tests/concurrency/channels/pub_sub.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/channels/pub_sub.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -87,19 +87,21 @@
 	  case 3:
 		if ( strcmp( argv[2], "d" ) != 0 ) {			// default ?
-			Tasks = ato( argv[2] );
-            if ( Tasks < 1 ) fallthru default;
+			Tasks = atoi( argv[2] );
+            if ( Tasks < 1 ) goto Usage;
 		} // if
 	  case 2:
 		if ( strcmp( argv[1], "d" ) != 0 ) {			// default ?
-			Processors = ato( argv[1] );
-			if ( Processors < 1 ) fallthru default;
+			Processors = atoi( argv[1] );
+			if ( Processors < 1 ) goto Usage;
 		} // if
 	  case 1:											// use defaults
 		break;
 	  default:
-		exit | "Usage: " | argv[0]
+	  Usage:
+		sout | "Usage: " | argv[0]
              | " [ processors (> 0) | 'd' (default " | Processors
 			 | ") ] [ Tasks (> 0) | 'd' (default " | Tasks
 			 | ") ]" ;
+		exit( EXIT_FAILURE );
 	} // switch
     BarrierSize = Tasks;
Index: sts/concurrency/cofor.cfa
===================================================================
--- tests/concurrency/cofor.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,15 +1,0 @@
-#include <cofor.hfa>
-
-long total = 0;
-void add_num( void * arg ) { __atomic_fetch_add( &total, (long)arg, __ATOMIC_SEQ_CST ); }
-
-int main() {
-    printf("start\n");
-    processor p[4];
-    COFOR( i, 0, 10, __atomic_fetch_add( &total, i, __ATOMIC_SEQ_CST ); );
-    parallel_stmt_t stmts[5] = { add_num, add_num, add_num, add_num, add_num };
-    void * nums[5] = { (void *)11, (void *)12, (void *)13, (void *)14, (void *)15 };
-    parallel( stmts, nums, 5 );
-    printf("total: %ld\n", total);
-    printf("done\n");
-}
Index: tests/concurrency/examples/matrixSum.cfa
===================================================================
--- tests/concurrency/examples/matrixSum.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/examples/matrixSum.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -10,9 +10,10 @@
 // Created On       : Mon Oct  9 08:29:28 2017
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Fri Sep  8 19:05:34 2023
-// Update Count     : 19
+// Last Modified On : Wed Feb 20 08:37:53 2019
+// Update Count     : 16
 //
 
 #include <fstream.hfa>
+#include <kernel.hfa>
 #include <thread.hfa>
 
@@ -34,20 +35,18 @@
 
 int main() {
-	const int rows = 10, cols = 1000;
+	/* const */ int rows = 10, cols = 1000;
 	int matrix[rows][cols], subtotals[rows], total = 0;
 	processor p;										// add kernel thread
 
-	for ( r; rows ) {									// initialize
+	for ( r; rows ) {
 		for ( c; cols ) {
 			matrix[r][c] = 1;
 		} // for
 	} // for
-
 	Adder * adders[rows];
 	for ( r; rows ) {									// start threads to sum rows
 		adders[r] = &(*malloc()){ matrix[r], cols, subtotals[r] };
-		// adders[r] = new( matrix[r], cols, subtotals[r] );
+//		adders[r] = new( matrix[r], cols, &subtotals[r] );
 	} // for
-
 	for ( r; rows ) {									// wait for threads to finish
 		delete( adders[r] );
@@ -58,4 +57,5 @@
 
 // Local Variables: //
+// tab-width: 4 //
 // compile-command: "cfa matrixSum.cfa" //
 // End: //
Index: tests/concurrency/unified_locking/locks.cfa
===================================================================
--- tests/concurrency/unified_locking/locks.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/unified_locking/locks.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,4 +1,4 @@
 #include <stdio.h>
-#include <locks.hfa>
+#include "locks.hfa"
 #include <stdlib.hfa>
 #include <thread.hfa>
Index: tests/concurrency/unified_locking/pthread_locks.cfa
===================================================================
--- tests/concurrency/unified_locking/pthread_locks.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/unified_locking/pthread_locks.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,4 +1,4 @@
 #include <stdio.h>
-#include <locks.hfa>
+#include "locks.hfa"
 #include <stdlib.hfa>
 #include <thread.hfa>
Index: tests/concurrency/unified_locking/test_debug.cfa
===================================================================
--- tests/concurrency/unified_locking/test_debug.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/unified_locking/test_debug.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,3 +1,3 @@
-#include <locks.hfa>
+#include "locks.hfa"
 
 fast_block_lock f;
Index: tests/concurrency/unified_locking/thread_test.cfa
===================================================================
--- tests/concurrency/unified_locking/thread_test.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/unified_locking/thread_test.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,4 +1,4 @@
 #include <stdio.h>
-#include <locks.hfa>
+#include "locks.hfa"
 #include <stdlib.hfa>
 #include <thread.hfa>
Index: tests/concurrency/waituntil/locks.cfa
===================================================================
--- tests/concurrency/waituntil/locks.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/concurrency/waituntil/locks.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -73,3 +73,2 @@
     printf("done\n");
 }
-
Index: tests/exceptions/.expect/finally-error.txt
===================================================================
--- tests/exceptions/.expect/finally-error.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
+++ tests/exceptions/.expect/finally-error.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -0,0 +1,15 @@
+exceptions/finally-error.cfa:7:1 error: 'break' outside a loop, 'switch', or labelled block
+exceptions/finally-error.cfa:15:1 error: 'break' outside a loop, 'switch', or labelled block
+exceptions/finally-error.cfa:23:1 error: 'break' outside a loop, 'switch', or labelled block
+exceptions/finally-error.cfa:31:1 error: 'continue' target must be an enclosing loop: 
+exceptions/finally-error.cfa:48:1 error: 'break' target must be an enclosing control structure: mainLoop
+exceptions/finally-error.cfa:56:1 error: 'continue' target must be an enclosing loop: mainLoop
+exceptions/finally-error.cfa:65:1 error: 'break' outside a loop, 'switch', or labelled block
+exceptions/finally-error.cfa:76:1 error: 'break' outside a loop, 'switch', or labelled block
+exceptions/finally-error.cfa:87:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
+exceptions/finally-error.cfa:98:1 error: 'break' target must be an enclosing control structure: mainBlock
+exceptions/finally-error.cfa:111:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
+exceptions/finally-error.cfa:124:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
+exceptions/finally-error.cfa:133:1 error: 'return' may not appear in a finally clause
+exceptions/finally-error.cfa:139:1 error: 'return' may not appear in a finally clause
+exceptions/finally-error.cfa:148:1 error: 'break' outside a loop, 'switch', or labelled block
Index: sts/exceptions/.expect/try-ctrl-flow.txt
===================================================================
--- tests/exceptions/.expect/try-ctrl-flow.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,18 +1,0 @@
-exceptions/try-ctrl-flow.cfa:7:1 error: 'break' outside a loop, 'switch', or labelled block
-exceptions/try-ctrl-flow.cfa:15:1 error: 'break' outside a loop, 'switch', or labelled block
-exceptions/try-ctrl-flow.cfa:23:1 error: 'break' outside a loop, 'switch', or labelled block
-exceptions/try-ctrl-flow.cfa:31:1 error: 'continue' target must be an enclosing loop: 
-exceptions/try-ctrl-flow.cfa:48:1 error: 'break' target must be an enclosing control structure: mainLoop
-exceptions/try-ctrl-flow.cfa:56:1 error: 'continue' target must be an enclosing loop: mainLoop
-exceptions/try-ctrl-flow.cfa:65:1 error: 'break' outside a loop, 'switch', or labelled block
-exceptions/try-ctrl-flow.cfa:76:1 error: 'break' outside a loop, 'switch', or labelled block
-exceptions/try-ctrl-flow.cfa:87:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
-exceptions/try-ctrl-flow.cfa:98:1 error: 'break' target must be an enclosing control structure: mainBlock
-exceptions/try-ctrl-flow.cfa:111:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
-exceptions/try-ctrl-flow.cfa:124:1 error: 'fallthrough' must be enclosed in a 'switch' or 'choose'
-exceptions/try-ctrl-flow.cfa:133:1 error: 'return' may not appear in a finally clause
-exceptions/try-ctrl-flow.cfa:139:1 error: 'return' may not appear in a finally clause
-exceptions/try-ctrl-flow.cfa:148:1 error: 'break' outside a loop, 'switch', or labelled block
-exceptions/try-ctrl-flow.cfa:159:1 error: 'return' may not appear in a try statement with a catch clause
-exceptions/try-ctrl-flow.cfa:187:1 error: 'return' may not appear in a catch clause
-exceptions/try-ctrl-flow.cfa:195:1 error: 'return' may not appear in a catchResume clause
Index: tests/exceptions/finally-error.cfa
===================================================================
--- tests/exceptions/finally-error.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
+++ tests/exceptions/finally-error.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -0,0 +1,156 @@
+// All of these should be caught as long as the check remains in the same
+// pass. (Although not even all of the checks are in place yet.)
+
+void break_in_finally() {
+	while (true) {
+		try {} finally {
+			break;
+		}
+	}
+}
+
+void for_break_in_finally() {
+	for (10) {
+		try {} finally {
+			break;
+		}
+	}
+}
+
+void do_while_break_in_finally() {
+	do {
+		try {} finally {
+			break;
+		}
+	} while (false);
+}
+
+void continue_in_finally() {
+	while (true) {
+		try {} finally {
+			continue;
+		}
+	}
+}
+
+void goto_in_finally() {
+	while (true) {
+		try {} finally {
+			goto end_of_function;
+		}
+	}
+	end_of_function: {}
+}
+
+void labelled_break_in_finally() {
+	mainLoop: while (true) {
+		try {} finally {
+			break mainLoop;
+		}
+	}
+}
+
+void labelled_continue_in_finally() {
+	mainLoop: while (true) {
+		try {} finally {
+			continue mainLoop;
+		}
+	}
+}
+
+void switch_break_in_finally() {
+	switch (1) {
+	case 1:
+		try {} finally {
+			break;
+		}
+	default:
+		break;
+	}
+}
+
+void choose_break_in_finally() {
+	choose (1) {
+	case 1:
+		try {} finally {
+			break;
+		}
+	default:
+		break;
+	}
+}
+
+void choose_fallthru_in_finally() {
+	choose (1) {
+	case 1:
+		try {} finally {
+			fallthru;
+		}
+	default:
+		break;
+	}
+}
+
+void labelled_choose_break_in_finally() {
+	mainBlock: choose (1) {
+	case 1:
+		try {} finally {
+			break mainBlock;
+		}
+	case 2:
+		break;
+	default:
+		break;
+	}
+}
+
+void labelled_choose_fallthru_in_finally() {
+	mainBlock: choose (1) {
+	case 1:
+		try {} finally {
+			fallthru mainBlock;
+		}
+	case 2:
+		break;
+	default:
+		break;
+	}
+}
+
+void choose_fallthru_default_in_finally() {
+	choose (1) {
+	case 1:
+		try {} finally {
+			fallthru default;
+		}
+	default:
+		break;
+	}
+}
+
+void void_return_in_finally() {
+	try {} finally {
+		return;
+	}
+}
+
+int value_return_in_finally() {
+	try {} finally {
+		return -7;
+	}
+
+}
+
+// Checked in the same place, make sure it does't break.
+void break_in_function() {
+	while (true) {
+		void inner() {
+			break;
+		}
+	}
+}
+
+void main() {
+	// Should not compile.
+	return 1;
+}
Index: sts/exceptions/try-ctrl-flow.cfa
===================================================================
--- tests/exceptions/try-ctrl-flow.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ 	(revision )
@@ -1,202 +1,0 @@
-// Check all the local control flow structures that are "sealed" by some the
-// try statement clauses; where structured programming is stricter.
-
-void break_in_finally() {
-	while (true) {
-		try {} finally {
-			break;
-		}
-	}
-}
-
-void for_break_in_finally() {
-	for (10) {
-		try {} finally {
-			break;
-		}
-	}
-}
-
-void do_while_break_in_finally() {
-	do {
-		try {} finally {
-			break;
-		}
-	} while (false);
-}
-
-void continue_in_finally() {
-	while (true) {
-		try {} finally {
-			continue;
-		}
-	}
-}
-
-void goto_in_finally() {
-	while (true) {
-		try {} finally {
-			goto end_of_function;
-		}
-	}
-	end_of_function: {}
-}
-
-void labelled_break_in_finally() {
-	mainLoop: while (true) {
-		try {} finally {
-			break mainLoop;
-		}
-	}
-}
-
-void labelled_continue_in_finally() {
-	mainLoop: while (true) {
-		try {} finally {
-			continue mainLoop;
-		}
-	}
-}
-
-void switch_break_in_finally() {
-	switch (1) {
-	case 1:
-		try {} finally {
-			break;
-		}
-	default:
-		break;
-	}
-}
-
-void choose_break_in_finally() {
-	choose (1) {
-	case 1:
-		try {} finally {
-			break;
-		}
-	default:
-		break;
-	}
-}
-
-void choose_fallthru_in_finally() {
-	choose (1) {
-	case 1:
-		try {} finally {
-			fallthru;
-		}
-	default:
-		break;
-	}
-}
-
-void labelled_choose_break_in_finally() {
-	mainBlock: choose (1) {
-	case 1:
-		try {} finally {
-			break mainBlock;
-		}
-	case 2:
-		break;
-	default:
-		break;
-	}
-}
-
-void labelled_choose_fallthru_in_finally() {
-	mainBlock: choose (1) {
-	case 1:
-		try {} finally {
-			fallthru mainBlock;
-		}
-	case 2:
-		break;
-	default:
-		break;
-	}
-}
-
-void choose_fallthru_default_in_finally() {
-	choose (1) {
-	case 1:
-		try {} finally {
-			fallthru default;
-		}
-	default:
-		break;
-	}
-}
-
-void void_return_in_finally() {
-	try {} finally {
-		return;
-	}
-}
-
-int value_return_in_finally() {
-	try {} finally {
-		return -7;
-	}
-
-}
-
-// Checked in the same place, make sure it does't break.
-void break_in_function() {
-	while (true) {
-		void inner() {
-			break;
-		}
-	}
-}
-
-// Now just use return to test the other try control flow interactions.
-
-exception nil_exception {};
-
-void return_in_try_with_catch() {
-	try {
-		return;
-	} catch (nil_exception *) {
-		;
-	}
-}
-
-// Allowed.
-void return_in_try_with_catchReturn() {
-	try {
-		return;
-	} catchResume (nil_exception *) {
-		;
-	}
-}
-
-// Allowed.
-void return_in_try_with_finally() {
-	try {
-		return;
-	} finally {
-		;
-	}
-}
-
-void return_in_catch() {
-	try {
-		;
-	} catch (nil_exception *) {
-		return;
-	}
-}
-
-void return_in_catchResume() {
-	try {
-		;
-	} catchResume (nil_exception *) {
-		return;
-	}
-}
-
-void main() {
-	// Should not compile.
-	return 1;
-}
Index: tests/io/.expect/manipulatorsInput.arm64.txt
===================================================================
--- tests/io/.expect/manipulatorsInput.arm64.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/io/.expect/manipulatorsInput.arm64.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,5 +1,2 @@
-pre1 "123456", canary ok
-pre2a "1234567", exception occurred, canary ok
-pre2b "89", canary ok
 1 yyyyyyyyyyyyyyyyyyyy
 2 abcxxx
Index: tests/io/.expect/manipulatorsInput.x64.txt
===================================================================
--- tests/io/.expect/manipulatorsInput.x64.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/io/.expect/manipulatorsInput.x64.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,5 +1,2 @@
-pre1 "123456", canary ok
-pre2a "1234567", exception occurred, canary ok
-pre2b "89", canary ok
 1 yyyyyyyyyyyyyyyyyyyy
 2 abcxxx
Index: tests/io/.expect/manipulatorsInput.x86.txt
===================================================================
--- tests/io/.expect/manipulatorsInput.x86.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/io/.expect/manipulatorsInput.x86.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,5 +1,2 @@
-pre1 "123456", canary ok
-pre2a "1234567", exception occurred, canary ok
-pre2b "89", canary ok
 1 yyyyyyyyyyyyyyyyyyyy
 2 abcxxx
Index: tests/io/.in/manipulatorsInput.txt
===================================================================
--- tests/io/.in/manipulatorsInput.txt	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/io/.in/manipulatorsInput.txt	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -1,4 +1,2 @@
-123456
-123456789
 abc 
 abc 
Index: tests/io/manipulatorsInput.cfa
===================================================================
--- tests/io/manipulatorsInput.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/io/manipulatorsInput.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -15,39 +15,4 @@
 
 int main() {
-	{
-		// Upfront checks to ensure buffer safety.  Once these pass, the simpler `wdi(sizeof(s),s)`
-		// usage, as in the scanf alignment cases below, is justified.
-		struct {
-			char buf[8];
-			char canary;
-		} data;
-		static_assert( sizeof(data.buf) == 8 );
-		static_assert( &data.buf[8] == &data.canary );  // canary comes right after buf
-
-		void rep(const char* casename) {
-			data.canary = 42;
-			bool caught = false;
-			try {
-				sin | wdi( sizeof(data.buf), data.buf );
-			} catch (cstring_length*) {
-				caught = true;
-			}
-			printf( "%s \"%s\"", casename, data.buf );
-			if ( caught ) {
-				printf(", exception occurred");
-			}
-			if ( data.canary == 42 ) {
-				printf(", canary ok");
-			} else {
-				printf(", canary overwritten to %d", data.canary);
-			}
-			printf("\n");
-		}
-
-		rep("pre1");
-		rep("pre2a");
-		rep("pre2b");
-		scanf("\n");  // next test does not start with %s so does not tolerate leading whitespace
-	}
 	{
 		char s[] = "yyyyyyyyyyyyyyyyyyyy";
Index: tests/minmax.cfa
===================================================================
--- tests/minmax.cfa	(revision deda7e6002cc711be5c0af09984cec24300d5990)
+++ tests/minmax.cfa	(revision c1e66d966aadf6846330871033458d4a398bd576)
@@ -45,15 +45,4 @@
 	sout | "double\t\t\t"				| 4.0 | 3.1 | "\tmax" | max( 4.0, 3.1 );
 	sout | "long double\t\t"			| 4.0l | 3.1l | "\tmax" | max( 4.0l, 3.1l );
-
-	sout | nl;
-
-	sout | "3 arguments";
-	sout | 2 | 3 | 4 | "\tmin" | min(2, 3, 4) | "\tmax" | max(2, 3, 4);
-	sout | 4 | 2 | 3 | "\tmin" | min(4, 2, 3) | "\tmax" | max(4, 2, 3);
-	sout | 3 | 4 | 2 | "\tmin" | min(3, 4, 2) | "\tmax" | max(3, 4, 2);
-
-	sout | "4 arguments";
-	sout | 3 | 2 | 5 | 4 | "\tmin" | min(3, 2, 5, 4) | "\tmax" | max(3, 2, 5, 4);
-	sout | 5 | 3 | 4 | 2 | "\tmin" | min(5, 3, 4, 2) | "\tmax" | max(5, 3, 4, 2);
 } // main
 
