diff options
Diffstat (limited to 'c_compiler/test/out')
61 files changed, 420 insertions, 0 deletions
diff --git a/c_compiler/test/out/01.diff.txt b/c_compiler/test/out/01.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/01.diff.txt diff --git a/c_compiler/test/out/01.pretty.xml b/c_compiler/test/out/01.pretty.xml new file mode 100644 index 0000000..e0545e4 --- /dev/null +++ b/c_compiler/test/out/01.pretty.xml @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<Program> + <Variable id="a" /> + <Variable id="b" /> + <Variable id="c" /> + <Variable id="d" /> + <Variable id="e" /> + <Variable id="f" /> +</Program> diff --git a/c_compiler/test/out/01.stderr.txt b/c_compiler/test/out/01.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/01.stderr.txt diff --git a/c_compiler/test/out/01.stdout.txt b/c_compiler/test/out/01.stdout.txt new file mode 100644 index 0000000..bd7cd1f --- /dev/null +++ b/c_compiler/test/out/01.stdout.txt @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<Program> +<Variable id="a" /> +<Variable id="b" /> +<Variable id="c" /> +<Variable id="d" /> +<Variable id="e" /> +<Variable id="f" /> +</Program> diff --git a/c_compiler/test/out/01.stdout.xml b/c_compiler/test/out/01.stdout.xml new file mode 100644 index 0000000..bd7cd1f --- /dev/null +++ b/c_compiler/test/out/01.stdout.xml @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<Program> +<Variable id="a" /> +<Variable id="b" /> +<Variable id="c" /> +<Variable id="d" /> +<Variable id="e" /> +<Variable id="f" /> +</Program> diff --git a/c_compiler/test/out/02.diff.txt b/c_compiler/test/out/02.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/02.diff.txt diff --git a/c_compiler/test/out/02.pretty.xml b/c_compiler/test/out/02.pretty.xml new file mode 100644 index 0000000..1f73bca --- /dev/null +++ b/c_compiler/test/out/02.pretty.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<Program> + <Function id="f"> + <Scope></Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/02.stderr.txt b/c_compiler/test/out/02.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/02.stderr.txt diff --git a/c_compiler/test/out/02.stdout.xml b/c_compiler/test/out/02.stdout.xml new file mode 100644 index 0000000..bc37d7a --- /dev/null +++ b/c_compiler/test/out/02.stdout.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<Program> +<Function id="f"> +<Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/03.diff.txt b/c_compiler/test/out/03.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/03.diff.txt diff --git a/c_compiler/test/out/03.pretty.xml b/c_compiler/test/out/03.pretty.xml new file mode 100644 index 0000000..6ab6ab3 --- /dev/null +++ b/c_compiler/test/out/03.pretty.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<Program> + <Function id="foo"> + <Parameter id="bar" /> + <Scope></Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/03.stderr.txt b/c_compiler/test/out/03.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/03.stderr.txt diff --git a/c_compiler/test/out/03.stdout.xml b/c_compiler/test/out/03.stdout.xml new file mode 100644 index 0000000..6ca0ab2 --- /dev/null +++ b/c_compiler/test/out/03.stdout.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<Program> +<Function id="foo"> +<Parameter id="bar" /> +<Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/04.diff.txt b/c_compiler/test/out/04.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/04.diff.txt diff --git a/c_compiler/test/out/04.pretty.xml b/c_compiler/test/out/04.pretty.xml new file mode 100644 index 0000000..caae53b --- /dev/null +++ b/c_compiler/test/out/04.pretty.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<Program> + <Function id="foo"> + <Parameter id="bar1" /> + <Parameter id="bar2" /> + <Scope> + <Variable id="x" /> + <Variable id="y" /> + <Variable id="z" /> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/04.stderr.txt b/c_compiler/test/out/04.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/04.stderr.txt diff --git a/c_compiler/test/out/04.stdout.xml b/c_compiler/test/out/04.stdout.xml new file mode 100644 index 0000000..9257eac --- /dev/null +++ b/c_compiler/test/out/04.stdout.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<Program> +<Function id="foo"> +<Parameter id="bar1" /> +<Parameter id="bar2" /> +<Scope> +<Variable id="x" /> +<Variable id="y" /> +<Variable id="z" /> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/05.diff.txt b/c_compiler/test/out/05.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/05.diff.txt diff --git a/c_compiler/test/out/05.pretty.xml b/c_compiler/test/out/05.pretty.xml new file mode 100644 index 0000000..944d950 --- /dev/null +++ b/c_compiler/test/out/05.pretty.xml @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<Program> + <Function id="foo"> + <Parameter id="x" /> + <Parameter id="y" /> + <Scope> + <Scope></Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/05.stderr.txt b/c_compiler/test/out/05.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/05.stderr.txt diff --git a/c_compiler/test/out/05.stdout.xml b/c_compiler/test/out/05.stdout.xml new file mode 100644 index 0000000..7381e51 --- /dev/null +++ b/c_compiler/test/out/05.stdout.xml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<Program> +<Function id="foo"> +<Parameter id="x" /> +<Parameter id="y" /> +<Scope> +<Scope> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/06.diff.txt b/c_compiler/test/out/06.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/06.diff.txt diff --git a/c_compiler/test/out/06.pretty.xml b/c_compiler/test/out/06.pretty.xml new file mode 100644 index 0000000..6422001 --- /dev/null +++ b/c_compiler/test/out/06.pretty.xml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<Program> + <Function id="f"> + <Parameter id="a" /> + <Parameter id="b" /> + <Parameter id="c" /> + <Scope> + <Variable id="d" /> + <Scope> + <Variable id="e" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/06.stderr.txt b/c_compiler/test/out/06.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/06.stderr.txt diff --git a/c_compiler/test/out/06.stdout.xml b/c_compiler/test/out/06.stdout.xml new file mode 100644 index 0000000..fbcbebd --- /dev/null +++ b/c_compiler/test/out/06.stdout.xml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<Program> +<Function id="f"> +<Parameter id="a" /> +<Parameter id="b" /> +<Parameter id="c" /> +<Scope> +<Variable id="d" /> +<Scope> +<Variable id="e" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/07.diff.txt b/c_compiler/test/out/07.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/07.diff.txt diff --git a/c_compiler/test/out/07.pretty.xml b/c_compiler/test/out/07.pretty.xml new file mode 100644 index 0000000..11c3b77 --- /dev/null +++ b/c_compiler/test/out/07.pretty.xml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<Program> + <Function id="foo"> + <Parameter id="a" /> + <Scope> + <Scope> + <Variable id="z" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/07.stderr.txt b/c_compiler/test/out/07.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/07.stderr.txt diff --git a/c_compiler/test/out/07.stdout.xml b/c_compiler/test/out/07.stdout.xml new file mode 100644 index 0000000..ff0efb2 --- /dev/null +++ b/c_compiler/test/out/07.stdout.xml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<Program> +<Function id="foo"> +<Parameter id="a" /> +<Scope> +<Scope> +<Variable id="z" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/08.diff.txt b/c_compiler/test/out/08.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/08.diff.txt diff --git a/c_compiler/test/out/08.pretty.xml b/c_compiler/test/out/08.pretty.xml new file mode 100644 index 0000000..6cf0f8e --- /dev/null +++ b/c_compiler/test/out/08.pretty.xml @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<Program> + <Function id="func"> + <Parameter id="a" /> + <Parameter id="b" /> + <Scope> + <Variable id="c" /> + <Scope> + <Variable id="d" /> + </Scope> + <Scope> + <Variable id="e" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/08.stderr.txt b/c_compiler/test/out/08.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/08.stderr.txt diff --git a/c_compiler/test/out/08.stdout.xml b/c_compiler/test/out/08.stdout.xml new file mode 100644 index 0000000..7929e75 --- /dev/null +++ b/c_compiler/test/out/08.stdout.xml @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<Program> +<Function id="func"> +<Parameter id="a" /> +<Parameter id="b" /> +<Scope> +<Variable id="c" /> +<Scope> +<Variable id="d" /> +</Scope> +<Scope> +<Variable id="e" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/09.diff.txt b/c_compiler/test/out/09.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/09.diff.txt diff --git a/c_compiler/test/out/09.pretty.xml b/c_compiler/test/out/09.pretty.xml new file mode 100644 index 0000000..6c137df --- /dev/null +++ b/c_compiler/test/out/09.pretty.xml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<Program> + <Function id="x"> + <Scope></Scope> + </Function> + <Variable id="g" /> + <Function id="zz"> + <Parameter id="a" /> + <Parameter id="b" /> + <Parameter id="c" /> + <Scope> + <Scope> + <Variable id="a" /> + </Scope> + <Scope> + <Variable id="fsdfsdfs" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/09.stderr.txt b/c_compiler/test/out/09.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/09.stderr.txt diff --git a/c_compiler/test/out/09.stdout.xml b/c_compiler/test/out/09.stdout.xml new file mode 100644 index 0000000..7a7a770 --- /dev/null +++ b/c_compiler/test/out/09.stdout.xml @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<Program> +<Function id="x"> +<Scope> +</Scope> +</Function> +<Variable id="g" /> +<Function id="zz"> +<Parameter id="a" /> +<Parameter id="b" /> +<Parameter id="c" /> +<Scope> +<Scope> +<Variable id="a" /> +</Scope> +<Scope> +<Variable id="fsdfsdfs" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/10.diff.txt b/c_compiler/test/out/10.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/10.diff.txt diff --git a/c_compiler/test/out/10.pretty.xml b/c_compiler/test/out/10.pretty.xml new file mode 100644 index 0000000..89a6292 --- /dev/null +++ b/c_compiler/test/out/10.pretty.xml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<Program> + <Function id="f"> + <Scope></Scope> + </Function> + <Variable id="g" /> + <Function id="x"> + <Parameter id="y" /> + <Scope> + <Variable id="z" /> + <Scope> + <Variable id="r" /> + </Scope> + <Scope> + <Variable id="f" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/10.stderr.txt b/c_compiler/test/out/10.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/10.stderr.txt diff --git a/c_compiler/test/out/10.stdout.xml b/c_compiler/test/out/10.stdout.xml new file mode 100644 index 0000000..b07997e --- /dev/null +++ b/c_compiler/test/out/10.stdout.xml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<Program> +<Function id="f"> +<Scope> +</Scope> +</Function> +<Variable id="g" /> +<Function id="x"> +<Parameter id="y" /> +<Scope> +<Variable id="z" /> +<Scope> +<Variable id="r" /> +</Scope> +<Scope> +<Variable id="f" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/11.diff.txt b/c_compiler/test/out/11.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/11.diff.txt diff --git a/c_compiler/test/out/11.pretty.xml b/c_compiler/test/out/11.pretty.xml new file mode 100644 index 0000000..b9779d7 --- /dev/null +++ b/c_compiler/test/out/11.pretty.xml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<Program> + <Function id="f"> + <Scope> + <Variable id="x" /> + <Scope> + <Variable id="y" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/11.stderr.txt b/c_compiler/test/out/11.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/11.stderr.txt diff --git a/c_compiler/test/out/11.stdout.xml b/c_compiler/test/out/11.stdout.xml new file mode 100644 index 0000000..0822742 --- /dev/null +++ b/c_compiler/test/out/11.stdout.xml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<Program> +<Function id="f"> +<Scope> +<Variable id="x" /> +<Scope> +<Variable id="y" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/12.diff.txt b/c_compiler/test/out/12.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/12.diff.txt diff --git a/c_compiler/test/out/12.pretty.xml b/c_compiler/test/out/12.pretty.xml new file mode 100644 index 0000000..9f49265 --- /dev/null +++ b/c_compiler/test/out/12.pretty.xml @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<Program> + <Function id="f"> + <Parameter id="b" /> + <Parameter id="c" /> + <Scope> + <Variable id="a" /> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/12.stderr.txt b/c_compiler/test/out/12.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/12.stderr.txt diff --git a/c_compiler/test/out/12.stdout.xml b/c_compiler/test/out/12.stdout.xml new file mode 100644 index 0000000..471f225 --- /dev/null +++ b/c_compiler/test/out/12.stdout.xml @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<Program> +<Function id="f"> +<Parameter id="b" /> +<Parameter id="c" /> +<Scope> +<Variable id="a" /> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/13.diff.txt b/c_compiler/test/out/13.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/13.diff.txt diff --git a/c_compiler/test/out/13.pretty.xml b/c_compiler/test/out/13.pretty.xml new file mode 100644 index 0000000..a604ecd --- /dev/null +++ b/c_compiler/test/out/13.pretty.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<Program> + <Function id="func"> + <Parameter id="x" /> + <Parameter id="y" /> + <Scope> + <Variable id="i" /> + <Scope> + <Variable id="z" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/13.stderr.txt b/c_compiler/test/out/13.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/13.stderr.txt diff --git a/c_compiler/test/out/13.stdout.xml b/c_compiler/test/out/13.stdout.xml new file mode 100644 index 0000000..511d93b --- /dev/null +++ b/c_compiler/test/out/13.stdout.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<Program> +<Function id="func"> +<Parameter id="x" /> +<Parameter id="y" /> +<Scope> +<Variable id="i" /> +<Scope> +<Variable id="z" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/14.diff.txt b/c_compiler/test/out/14.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/14.diff.txt diff --git a/c_compiler/test/out/14.pretty.xml b/c_compiler/test/out/14.pretty.xml new file mode 100644 index 0000000..866d44e --- /dev/null +++ b/c_compiler/test/out/14.pretty.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<Program> + <Function id="function_1"> + <Parameter id="a" /> + <Parameter id="b" /> + <Scope> + <Variable id="x" /> + <Scope> + <Variable id="c" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/14.stderr.txt b/c_compiler/test/out/14.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/14.stderr.txt diff --git a/c_compiler/test/out/14.stdout.xml b/c_compiler/test/out/14.stdout.xml new file mode 100644 index 0000000..1b412d3 --- /dev/null +++ b/c_compiler/test/out/14.stdout.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<Program> +<Function id="function_1"> +<Parameter id="a" /> +<Parameter id="b" /> +<Scope> +<Variable id="x" /> +<Scope> +<Variable id="c" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_compiler/test/out/15.diff.txt b/c_compiler/test/out/15.diff.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/15.diff.txt diff --git a/c_compiler/test/out/15.pretty.xml b/c_compiler/test/out/15.pretty.xml new file mode 100644 index 0000000..b06dde0 --- /dev/null +++ b/c_compiler/test/out/15.pretty.xml @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<Program> + <Function id="add"> + <Parameter id="a" /> + <Parameter id="b" /> + <Scope> + <Variable id="c" /> + </Scope> + </Function> + <Function id="sub"> + <Parameter id="a" /> + <Parameter id="b" /> + <Scope> + <Variable id="c" /> + </Scope> + </Function> + <Function id="mult_by_5"> + <Parameter id="a" /> + <Scope> + <Variable id="b" /> + </Scope> + </Function> + <Function id="add_5"> + <Parameter id="a" /> + <Scope> + <Variable id="i" /> + <Scope> + <Variable id="b" /> + </Scope> + </Scope> + </Function> +</Program> diff --git a/c_compiler/test/out/15.stderr.txt b/c_compiler/test/out/15.stderr.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_compiler/test/out/15.stderr.txt diff --git a/c_compiler/test/out/15.stdout.xml b/c_compiler/test/out/15.stdout.xml new file mode 100644 index 0000000..d4c29b2 --- /dev/null +++ b/c_compiler/test/out/15.stdout.xml @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<Program> +<Function id="add"> +<Parameter id="a" /> +<Parameter id="b" /> +<Scope> +<Variable id="c" /> +</Scope> +</Function> +<Function id="sub"> +<Parameter id="a" /> +<Parameter id="b" /> +<Scope> +<Variable id="c" /> +</Scope> +</Function> +<Function id="mult_by_5"> +<Parameter id="a" /> +<Scope> +<Variable id="b" /> +</Scope> +</Function> +<Function id="add_5"> +<Parameter id="a" /> +<Scope> +<Variable id="i" /> +<Scope> +<Variable id="b" /> +</Scope> +</Scope> +</Function> +</Program> |