diff --git a/spectec/test-frontend/TEST.md b/spectec/test-frontend/TEST.md index 86d156ae3a..ecc46404b1 100644 --- a/spectec/test-frontend/TEST.md +++ b/spectec/test-frontend/TEST.md @@ -51,7 +51,7 @@ def $min(nat : nat, nat : nat) : nat ;; 0-aux.watsup rec { -;; 0-aux.watsup:33.1-33.21 +;; 0-aux.watsup:33.1-33.56 def $sum(nat*) : nat ;; 0-aux.watsup:34.1-34.18 def $sum([]) = 0 diff --git a/spectec/test-latex/TEST.md b/spectec/test-latex/TEST.md index fdd9d4a266..3465eca79a 100644 --- a/spectec/test-latex/TEST.md +++ b/spectec/test-latex/TEST.md @@ -1299,8 +1299,8 @@ $$ $$ \begin{array}{@{}lcl@{}l@{}} -{\mathrm{sum}}(\epsilon) &=& 0 \\ -{\mathrm{sum}}(n~{{n'}^\ast}) &=& n + {\mathrm{sum}}({{n'}^\ast}) \\ +{\Sigma\,}{\epsilon} &=& 0 \\ +{\Sigma\,}{n~{{n'}^\ast}} &=& n + {\Sigma\,}{{{n'}^\ast}} \\ \end{array} $$ @@ -9619,7 +9619,7 @@ $$ & {\mathtt{module}} &::=& {\mathtt{magic}}~~{\mathtt{version}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{type}}^\ast}{:}{\mathtt{typesec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{import}}^\ast}{:}{\mathtt{importsec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{typeidx}}^{n}}{:}{\mathtt{funcsec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{table}}^\ast}{:}{\mathtt{tablesec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{mem}}^\ast}{:}{\mathtt{memsec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{global}}^\ast}{:}{\mathtt{globalsec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{export}}^\ast}{:}{\mathtt{exportsec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{start}}^\ast}{:}{\mathtt{startsec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{elem}}^\ast}{:}{\mathtt{elemsec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{m'}^\ast}{:}{\mathtt{datacntsec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{({{\mathit{local}}^\ast}, {\mathit{expr}})^{n}}{:}{\mathtt{codesec}} \\ &&& {{\mathtt{customsec}}^\ast}~~{{\mathit{data}}^{m}}{:}{\mathtt{datasec}} \\ &&& {{\mathtt{customsec}}^\ast} &\quad\Rightarrow&\quad \\ &&& \multicolumn{3}{@{}l@{}}{\qquad \mathsf{module}~{{\mathit{type}}^\ast}~{{\mathit{import}}^\ast}~{{\mathit{func}}^{n}}~{{\mathit{global}}^\ast}~{{\mathit{table}}^\ast}~{{\mathit{mem}}^\ast}~{{\mathit{elem}}^\ast}~{{\mathit{data}}^{m}}~{{\mathit{start}}^\ast}~{{\mathit{export}}^\ast} } \\ &&&&& \multicolumn{2}{l@{}}{\quad \mbox{if}~{{m'}^\ast} \neq \epsilon \lor {\mathrm{dataidx}}({{\mathit{func}}^{n}}) = \epsilon} \\ - &&&&& \multicolumn{2}{l@{}}{\quad {\land}~m = {\mathrm{sum}}({{m'}^\ast})} \\ + &&&&& \multicolumn{2}{l@{}}{\quad {\land}~m = {\Sigma\,}{{{m'}^\ast}}} \\ &&&&& \multicolumn{2}{l@{}}{\quad {\land}~({\mathit{func}} = \mathsf{func}~{\mathit{typeidx}}~{{\mathit{local}}^\ast}~{\mathit{expr}})^{n}} \\ \end{array} $$ diff --git a/spectec/test-middlend/TEST.md b/spectec/test-middlend/TEST.md index 2d80b151a9..60c59bac3e 100644 --- a/spectec/test-middlend/TEST.md +++ b/spectec/test-middlend/TEST.md @@ -41,7 +41,7 @@ def $min(nat : nat, nat : nat) : nat ;; 0-aux.watsup rec { -;; 0-aux.watsup:33.1-33.21 +;; 0-aux.watsup:33.1-33.56 def $sum(nat*) : nat ;; 0-aux.watsup:34.1-34.18 def $sum([]) = 0 @@ -6463,7 +6463,7 @@ def $min(nat : nat, nat : nat) : nat ;; 0-aux.watsup rec { -;; 0-aux.watsup:33.1-33.21 +;; 0-aux.watsup:33.1-33.56 def $sum(nat*) : nat ;; 0-aux.watsup:34.1-34.18 def $sum([]) = 0 @@ -12890,7 +12890,7 @@ def $min(nat : nat, nat : nat) : nat ;; 0-aux.watsup rec { -;; 0-aux.watsup:33.1-33.21 +;; 0-aux.watsup:33.1-33.56 def $sum(nat*) : nat ;; 0-aux.watsup:34.1-34.18 def $sum([]) = 0 @@ -19317,7 +19317,7 @@ def $min(nat : nat, nat : nat) : nat ;; 0-aux.watsup rec { -;; 0-aux.watsup:33.1-33.21 +;; 0-aux.watsup:33.1-33.56 def $sum(nat*) : nat ;; 0-aux.watsup:34.1-34.18 def $sum([]) = 0 @@ -25907,7 +25907,7 @@ def $min(nat : nat, nat : nat) : nat ;; 0-aux.watsup rec { -;; 0-aux.watsup:33.1-33.21 +;; 0-aux.watsup:33.1-33.56 def $sum(nat*) : nat ;; 0-aux.watsup:34.1-34.18 def $sum([]) = 0