Skip to content

Commit

Permalink
Testexpect
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Jul 1, 2024
1 parent f8301b2 commit 4a14abc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion spectec/test-frontend/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions spectec/test-latex/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
$$

Expand Down Expand Up @@ -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}
$$
Expand Down
10 changes: 5 additions & 5 deletions spectec/test-middlend/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a14abc

Please sign in to comment.