Changeset 6171841
- Timestamp:
- Mar 12, 2018, 9:18:20 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 0f9e6b20, 68f9c43, 8573729
- Parents:
- 53dece1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/Paper.tex
r53dece1 r6171841 1009 1009 \begin{cquote} 1010 1010 \lstDeleteShortInline@% 1011 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{}}1012 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\1011 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{}} 1012 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\ 1013 1013 \begin{cfa} 1014 1014 case 2, 10, 34, 42: … … 1024 1024 \begin{cquote} 1025 1025 \lstDeleteShortInline@% 1026 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{}}1027 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\1026 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{}} 1027 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\ 1028 1028 \begin{cfa} 1029 1029 case 2~42: … … 1041 1041 \end{cfa} 1042 1042 1043 C allows placement of @case@ clauses \emph{within} statements nested in the @switch@ body ( seeDuff's device~\cite{Duff83});1043 C allows placement of @case@ clauses \emph{within} statements nested in the @switch@ body (called Duff's device~\cite{Duff83}); 1044 1044 \begin{cfa} 1045 1045 switch ( i ) { … … 1052 1052 } 1053 1053 \end{cfa} 1054 \CFA precludes this form of transfer intoa control structure because it causes undefined behaviour, especially with respect to missed initialization, and provides very limited functionality.1054 \CFA precludes this form of transfer \emph{into} a control structure because it causes undefined behaviour, especially with respect to missed initialization, and provides very limited functionality. 1055 1055 1056 1056 C allows placement of declaration within the @switch@ body and unreachable code at the start, resulting in undefined behaviour: … … 1568 1568 \begin{cquote} 1569 1569 \lstDeleteShortInline@% 1570 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{\hspace{\parindentlnth}}l@{}}1571 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\1570 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{\hspace{2\parindentlnth}}l@{}} 1571 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\ 1572 1572 \begin{cfa} 1573 1573 `[5] *` int x1; … … 1596 1596 \begin{cquote} 1597 1597 \lstDeleteShortInline@% 1598 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{}}1599 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\1598 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{}} 1599 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\ 1600 1600 \begin{cfa} 1601 1601 `*` int x, y; … … 1616 1616 \begin{cquote} 1617 1617 \lstDeleteShortInline@% 1618 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{\hspace{\parindentlnth}}l@{}}1619 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c@{\hspace{\parindentlnth}}}{\textbf{C}} \\1618 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{\hspace{2\parindentlnth}}l@{}} 1619 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{C}} \\ 1620 1620 \begin{cfa} 1621 1621 [ 5 ] int z; … … 1658 1658 \begin{cquote} 1659 1659 \lstDeleteShortInline@% 1660 \begin{tabular}{@{}l@{\hspace{ 1em}}l@{\hspace{1em}}l@{}}1661 \multicolumn{1}{c@{\hspace{ 1em}}}{\textbf{\CFA}} & \multicolumn{1}{c@{\hspace{1em}}}{\textbf{C}} \\1660 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{\hspace{2\parindentlnth}}l@{}} 1661 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{C}} \\ 1662 1662 \begin{cfa} 1663 1663 extern const * const int x; … … 1683 1683 \begin{cquote} 1684 1684 \lstDeleteShortInline@% 1685 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{}}1686 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\1685 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{}} 1686 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\ 1687 1687 \begin{cfa} 1688 1688 y = (* int)x; … … 1711 1711 \begin{cquote} 1712 1712 \lstDeleteShortInline@% 1713 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{}}1714 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\1713 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{}} 1714 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{C}} \\ 1715 1715 \begin{cfa} 1716 1716 [double] foo(), foo( int ), foo( double ) {...} … … 2038 2038 \begin{cquote} 2039 2039 \lstDeleteShortInline@% 2040 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{\hspace{\parindentlnth}}l@{}}2040 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{\hspace{2\parindentlnth}}l@{}} 2041 2041 \begin{cfa} 2042 2042 20_`hh` // signed char … … 2430 2430 \begin{cquote} 2431 2431 \lstDeleteShortInline@% 2432 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}l@{}}2433 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{\CC}} \\2432 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}l@{}} 2433 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{c}{\textbf{\CC}} \\ 2434 2434 \begin{cfa} 2435 2435 int x = 1, y = 2, z = 3; … … 2519 2519 \centering 2520 2520 \lstDeleteShortInline@% 2521 \begin{tabular}{@{}l@{\hspace{ \parindentlnth}}@{\hspace{\parindentlnth}}l@{}}2522 \multicolumn{1}{c@{\hspace{ \parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{@{\hspace{\parindentlnth}}c}{\textbf{C}} \\2521 \begin{tabular}{@{}l@{\hspace{2\parindentlnth}}@{\hspace{2\parindentlnth}}l@{}} 2522 \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{\CFA}} & \multicolumn{1}{@{\hspace{2\parindentlnth}}c}{\textbf{C}} \\ 2523 2523 \begin{cfa} 2524 2524 #include <gmp>
Note: See TracChangeset
for help on using the changeset viewer.