Skip to content

Commit a7712da

Browse files
committed
Update Reference “opencilk-language-specification”
1 parent 0fb40b0 commit a7712da

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/doc/reference/opencilk-language-specification.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ A new form of Statement is introduced:
152152

153153
_Cilk_scope { Statement* }
154154

155-
Statements within _Cilk_scope are executed as usual. There is an implicit _Cilk_sync at the end of the statements included within _Cilk_scope.
155+
Statements within _Cilk_scope are executed as usual. There is an implicit _Cilk_sync at the end of the statements included within the _Cilk_scope construct.
156156

157157
## Semantics
158158

@@ -196,11 +196,11 @@ Statements within _Cilk_scope are executed as usual. There is an implicit _Cilk
196196
<p><strong>The serialization of a pure C or C++ program is itself.</strong></p>
197197
<p>If a C or C++ program has defined behavior and does not use the tasking keywords
198198
or library functions, it is an OpenCilk with the same defined behavior.</p>
199-
<p><strong>The serializations of <code>_Cilk_spawn</code> and <code>_Cilk_sync</code>
199+
<p><strong>The serializations of <code>_Cilk_scope</code>, <code>_Cilk_spawn</code> and <code>_Cilk_sync</code>
200200
are empty.</strong></p>
201201
<p>If an OpenCilk program has defined deterministic behavior, then that behavior is
202202
the same as the behavior of the C or C++ program derived from the original by removing
203-
all instances of the keywords <code>_Cilk_spawn</code>, and <code>_Cilk_sync</code>.</p>
203+
all instances of the keywords <code>_Cilk_scope</code>, <code>_Cilk_spawn</code>, and <code>_Cilk_sync</code>.</p>
204204
<p><strong>The serialization of <code>_Cilk_for</code> is <code>for</code>.</strong></p>
205205
<p>If an OpenCilk program has defined deterministic behavior, then that behavior is
206206
the same as the behavior of the C or C++ program derived from the original by replacing
@@ -689,9 +689,9 @@ else ((<var>first</var>) <code>-</code> (<var>limit</var>)) <code>/</code> <code
689689
a++;</pre>
690690
<p>The call to function <code>f</code> is the spawn point and the statement <code>a++;</code>
691691
is the continuation. The expression <code>a + b</code> and the initialization of
692-
the temporary variable holding that value, and the evaluation of <code>x\\\\[g()]</code>
692+
the temporary variable holding that value, and the evaluation of <code>x\\\\\[g()]</code>
693693
take place before the spawn point. The execution of <code>f</code>, the assignment
694-
to <code>x\\\\[g()]</code>, and the destruction of the temporary variable holding <code>
694+
to <code>x\\\\\[g()]</code>, and the destruction of the temporary variable holding <code>
695695
a + b</code> take place in the child.</p>
696696
<p>If a statement is followed by an implicit sync, that sync is the spawn continuation.</p>
697697
<p class="note">Programmer note: The sequencing may be more clear if</p>
@@ -1204,8 +1204,8 @@ void <var>T_destroy</var>(void* <var>r</var>, void* <var>view</var>);</pre>
12041204
<tbody>
12051205
<tr>
12061206
<td><var>T_reduce</var></td>
1207-
<td>Evaluate &#x201c;<code>\\\\*(T\\\\*)</code><var>left</var> <code>= \\\\*(T\\\\*)</code> <var>left</var>
1208-
&#x2297; <code>\\\\*(T\\\\*)</code> <var>right</var>&#x201d;</td>
1207+
<td>Evaluate &#x201c;<code>\\\\\*(T\\\\\*)</code><var>left</var> <code>= \\\\\*(T\\\\\*)</code> <var>left</var>
1208+
&#x2297; <code>\\\\\*(T\\\\\*)</code> <var>right</var>&#x201d;</td>
12091209
</tr>
12101210
<tr>
12111211
<td><var>T_identity</var></td>

0 commit comments

Comments
 (0)