Change test
This commit is contained in:
23
eval-final-projet/ref-asynt/eval1.asynt
Normal file
23
eval-final-projet/ref-asynt/eval1.asynt
Normal file
@@ -0,0 +1,23 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<intExp>1</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
28
eval-final-projet/ref-asynt/eval10.asynt
Normal file
28
eval-final-projet/ref-asynt/eval10.asynt
Normal file
@@ -0,0 +1,28 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
procedure
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<intExp>1</intExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<appelExp>
|
||||
<appel>
|
||||
procedure
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
37
eval-final-projet/ref-asynt/eval11.asynt
Normal file
37
eval-final-projet/ref-asynt/eval11.asynt
Normal file
@@ -0,0 +1,37 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
procedure
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<intExp>1</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
procedure
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
20
eval-final-projet/ref-asynt/eval12.asynt
Normal file
20
eval-final-projet/ref-asynt/eval12.asynt
Normal file
@@ -0,0 +1,20 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<intExp>1</intExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<intExp>1</intExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
25
eval-final-projet/ref-asynt/eval13.asynt
Normal file
25
eval-final-projet/ref-asynt/eval13.asynt
Normal file
@@ -0,0 +1,25 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<intExp>0</intExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<intExp>1</intExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<intExp>0</intExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
96
eval-final-projet/ref-asynt/eval14.asynt
Normal file
96
eval-final-projet/ref-asynt/eval14.asynt
Normal file
@@ -0,0 +1,96 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<tabDec>$tab[10]</tabDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<intExp>0</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_tantque>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<intExp>10</intExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</var_indicee>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</instr_tantque>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<intExp>0</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_tantque>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<intExp>10</intExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</var_indicee>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</instr_tantque>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
29
eval-final-projet/ref-asynt/eval15.asynt
Normal file
29
eval-final-projet/ref-asynt/eval15.asynt
Normal file
@@ -0,0 +1,29 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<tabDec>$tab[10]</tabDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>4</intExp>
|
||||
</var_indicee>
|
||||
<intExp>4</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>4</intExp>
|
||||
</var_indicee>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
20
eval-final-projet/ref-asynt/eval16.asynt
Normal file
20
eval-final-projet/ref-asynt/eval16.asynt
Normal file
@@ -0,0 +1,20 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_tantque>
|
||||
<intExp>0</intExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<intExp>1</intExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</instr_tantque>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
46
eval-final-projet/ref-asynt/eval17.asynt
Normal file
46
eval-final-projet/ref-asynt/eval17.asynt
Normal file
@@ -0,0 +1,46 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<intExp>0</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_tantque>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<intExp>10</intExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</instr_tantque>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
107
eval-final-projet/ref-asynt/eval18.asynt
Normal file
107
eval-final-projet/ref-asynt/eval18.asynt
Normal file
@@ -0,0 +1,107 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$t0</varDec>
|
||||
<l_dec>
|
||||
<varDec>$t1</varDec>
|
||||
<l_dec>
|
||||
<varDec>$123</varDec>
|
||||
<l_dec>
|
||||
<varDec>$</varDec>
|
||||
<l_dec>
|
||||
<varDec>$$</varDec>
|
||||
<l_dec>
|
||||
<varDec>$$$</varDec>
|
||||
<l_dec>
|
||||
<varDec>$f</varDec>
|
||||
<l_dec>
|
||||
<varDec>$_</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
f
|
||||
<l_dec>
|
||||
<varDec>$$</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<varDec>$$$</varDec>
|
||||
<l_dec>
|
||||
<varDec>$f</varDec>
|
||||
<l_dec>
|
||||
<varDec>$_</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$</var_simple>
|
||||
<opExp>
|
||||
plus
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$123</var_simple>
|
||||
</varExp>
|
||||
<varExp>
|
||||
<var_simple>$_</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
<varExp>
|
||||
<var_simple>$$</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$t0</var_simple>
|
||||
<intExp>1</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$123</var_simple>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$t0</var_simple>
|
||||
</varExp>
|
||||
<intExp>0</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
f
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$123</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
16
eval-final-projet/ref-asynt/eval19.asynt
Normal file
16
eval-final-projet/ref-asynt/eval19.asynt
Normal file
@@ -0,0 +1,16 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
et
|
||||
<intExp>1</intExp>
|
||||
<intExp>2</intExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
63
eval-final-projet/ref-asynt/eval2.asynt
Normal file
63
eval-final-projet/ref-asynt/eval2.asynt
Normal file
@@ -0,0 +1,63 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$i</varDec>
|
||||
<l_dec>
|
||||
<varDec>$carre</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$i</var_simple>
|
||||
<intExp>0</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_tantque>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
<intExp>10</intExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$carre</var_simple>
|
||||
<opExp>
|
||||
fois
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$carre</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$i</var_simple>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</instr_tantque>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
93
eval-final-projet/ref-asynt/eval20.asynt
Normal file
93
eval-final-projet/ref-asynt/eval20.asynt
Normal file
@@ -0,0 +1,93 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
fact
|
||||
<l_dec>
|
||||
<varDec>$f</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<opExp>
|
||||
ou
|
||||
<opExp>
|
||||
egal
|
||||
<varExp>
|
||||
<var_simple>$f</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
<opExp>
|
||||
egal
|
||||
<varExp>
|
||||
<var_simple>$f</var_simple>
|
||||
</varExp>
|
||||
<intExp>0</intExp>
|
||||
</opExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<intExp>1</intExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<opExp>
|
||||
fois
|
||||
<appelExp>
|
||||
<appel>
|
||||
fact
|
||||
<l_exp>
|
||||
<opExp>
|
||||
moins
|
||||
<varExp>
|
||||
<var_simple>$f</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
<varExp>
|
||||
<var_simple>$f</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<appelExp>
|
||||
<appel>
|
||||
fact
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
85
eval-final-projet/ref-asynt/eval21.asynt
Normal file
85
eval-final-projet/ref-asynt/eval21.asynt
Normal file
@@ -0,0 +1,85 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
fibo
|
||||
<l_dec>
|
||||
<varDec>$n</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$n</var_simple>
|
||||
</varExp>
|
||||
<intExp>2</intExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<intExp>1</intExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<opExp>
|
||||
plus
|
||||
<appelExp>
|
||||
<appel>
|
||||
fibo
|
||||
<l_exp>
|
||||
<opExp>
|
||||
moins
|
||||
<varExp>
|
||||
<var_simple>$n</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
<appelExp>
|
||||
<appel>
|
||||
fibo
|
||||
<l_exp>
|
||||
<opExp>
|
||||
moins
|
||||
<varExp>
|
||||
<var_simple>$n</var_simple>
|
||||
</varExp>
|
||||
<intExp>2</intExp>
|
||||
</opExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
</opExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<appelExp>
|
||||
<appel>
|
||||
fibo
|
||||
<l_exp>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
161
eval-final-projet/ref-asynt/eval22.asynt
Normal file
161
eval-final-projet/ref-asynt/eval22.asynt
Normal file
@@ -0,0 +1,161 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
<l_dec>
|
||||
<varDec>$b</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
pgcd
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
<l_dec>
|
||||
<varDec>$b</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<varDec>$c</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$c</var_simple>
|
||||
<opExp>
|
||||
moins
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<opExp>
|
||||
fois
|
||||
<opExp>
|
||||
divise
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<opExp>
|
||||
egal
|
||||
<varExp>
|
||||
<var_simple>$c</var_simple>
|
||||
</varExp>
|
||||
<intExp>0</intExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<appelExp>
|
||||
<appel>
|
||||
pgcd
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$c</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$b</var_simple>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<appelExp>
|
||||
<appel>
|
||||
pgcd
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<appelExp>
|
||||
<appel>
|
||||
pgcd
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
22
eval-final-projet/ref-asynt/eval23.asynt
Normal file
22
eval-final-projet/ref-asynt/eval23.asynt
Normal file
@@ -0,0 +1,22 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<opExp>
|
||||
ou
|
||||
<intExp>1</intExp>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<intExp>5</intExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
65
eval-final-projet/ref-asynt/eval24.asynt
Normal file
65
eval-final-projet/ref-asynt/eval24.asynt
Normal file
@@ -0,0 +1,65 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
ou
|
||||
<intExp>3</intExp>
|
||||
<intExp>4</intExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
et
|
||||
<intExp>3</intExp>
|
||||
<intExp>6</intExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
ou
|
||||
<intExp>3</intExp>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
et
|
||||
<intExp>3</intExp>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
ou
|
||||
<intExp>0</intExp>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
et
|
||||
<intExp>0</intExp>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
33
eval-final-projet/ref-asynt/eval25.asynt
Normal file
33
eval-final-projet/ref-asynt/eval25.asynt
Normal file
@@ -0,0 +1,33 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$a</var_simple>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
condexp
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<intExp>10</intExp>
|
||||
</opExp>
|
||||
<intExp>0</intExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
126
eval-final-projet/ref-asynt/eval26.asynt
Normal file
126
eval-final-projet/ref-asynt/eval26.asynt
Normal file
@@ -0,0 +1,126 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_dec>
|
||||
<varDec>$temp</varDec>
|
||||
<l_dec>
|
||||
<varDec>$g</varDec>
|
||||
<l_dec>
|
||||
<varDec>$l</varDec>
|
||||
<l_dec>
|
||||
<varDec>$v</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$temp</var_simple>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$g</var_simple>
|
||||
<opExp>
|
||||
condexp
|
||||
<opExp>
|
||||
ou
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$temp</var_simple>
|
||||
</varExp>
|
||||
<intExp>0</intExp>
|
||||
</opExp>
|
||||
<opExp>
|
||||
egal
|
||||
<varExp>
|
||||
<var_simple>$temp</var_simple>
|
||||
</varExp>
|
||||
<intExp>0</intExp>
|
||||
</opExp>
|
||||
</opExp>
|
||||
<intExp>1</intExp>
|
||||
<intExp>0</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$l</var_simple>
|
||||
<opExp>
|
||||
condexp
|
||||
<opExp>
|
||||
et
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$temp</var_simple>
|
||||
</varExp>
|
||||
<intExp>100</intExp>
|
||||
</opExp>
|
||||
<opExp>
|
||||
inf
|
||||
<intExp>0</intExp>
|
||||
<varExp>
|
||||
<var_simple>$temp</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
</opExp>
|
||||
<intExp>1</intExp>
|
||||
<intExp>0</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$v</var_simple>
|
||||
<opExp>
|
||||
condexp
|
||||
<opExp>
|
||||
et
|
||||
<opExp>
|
||||
non
|
||||
<varExp>
|
||||
<var_simple>$g</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
<opExp>
|
||||
non
|
||||
<varExp>
|
||||
<var_simple>$l</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
</opExp>
|
||||
<intExp>1</intExp>
|
||||
<intExp>0</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$g</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$l</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$v</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
52
eval-final-projet/ref-asynt/eval27.asynt
Normal file
52
eval-final-projet/ref-asynt/eval27.asynt
Normal file
@@ -0,0 +1,52 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
condexp
|
||||
<intExp>1</intExp>
|
||||
<intExp>0</intExp>
|
||||
<opExp>
|
||||
condexp
|
||||
<intExp>1</intExp>
|
||||
<intExp>0</intExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
condexp
|
||||
<opExp>
|
||||
condexp
|
||||
<intExp>1</intExp>
|
||||
<intExp>0</intExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
<intExp>0</intExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
condexp
|
||||
<intExp>1</intExp>
|
||||
<intExp>0</intExp>
|
||||
<opExp>
|
||||
condexp
|
||||
<intExp>1</intExp>
|
||||
<intExp>0</intExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
19
eval-final-projet/ref-asynt/eval3.asynt
Normal file
19
eval-final-projet/ref-asynt/eval3.asynt
Normal file
@@ -0,0 +1,19 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
fois
|
||||
<intExp>5</intExp>
|
||||
<intExp>2</intExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
106
eval-final-projet/ref-asynt/eval4.asynt
Normal file
106
eval-final-projet/ref-asynt/eval4.asynt
Normal file
@@ -0,0 +1,106 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
max
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
<l_dec>
|
||||
<varDec>$b</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<varExp>
|
||||
<var_simple>$b</var_simple>
|
||||
</varExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
<l_instr>
|
||||
<instr_retour>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</instr_retour>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_dec>
|
||||
<varDec>$v_1</varDec>
|
||||
<l_dec>
|
||||
<varDec>$v_2</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$v_1</var_simple>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$v_2</var_simple>
|
||||
<lireExp>
|
||||
</lireExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<opExp>
|
||||
egal
|
||||
<appelExp>
|
||||
<appel>
|
||||
max
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$v_1</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$v_2</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</appelExp>
|
||||
<varExp>
|
||||
<var_simple>$v_1</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$v_1</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$v_2</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
418
eval-final-projet/ref-asynt/eval5.asynt
Normal file
418
eval-final-projet/ref-asynt/eval5.asynt
Normal file
@@ -0,0 +1,418 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<tabDec>$tab[10]</tabDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
initialiser
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>0</intExp>
|
||||
</var_indicee>
|
||||
<intExp>8</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>1</intExp>
|
||||
</var_indicee>
|
||||
<intExp>6</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>2</intExp>
|
||||
</var_indicee>
|
||||
<intExp>9</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>3</intExp>
|
||||
</var_indicee>
|
||||
<intExp>9</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>4</intExp>
|
||||
</var_indicee>
|
||||
<intExp>4</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>5</intExp>
|
||||
</var_indicee>
|
||||
<intExp>2</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>6</intExp>
|
||||
</var_indicee>
|
||||
<intExp>3</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>7</intExp>
|
||||
</var_indicee>
|
||||
<intExp>1</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>8</intExp>
|
||||
</var_indicee>
|
||||
<intExp>4</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<intExp>9</intExp>
|
||||
</var_indicee>
|
||||
<intExp>5</intExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
afficher
|
||||
<l_dec>
|
||||
<varDec>$n</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<varDec>$i</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$i</var_simple>
|
||||
<intExp>0</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_tantque>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
<varExp>
|
||||
<var_simple>$n</var_simple>
|
||||
</varExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
</var_indicee>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$i</var_simple>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</instr_tantque>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<intExp>0</intExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
echanger
|
||||
<l_dec>
|
||||
<varDec>$i</varDec>
|
||||
<l_dec>
|
||||
<varDec>$j</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<varDec>$temp</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$temp</var_simple>
|
||||
<varExp>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<varExp>
|
||||
<var_simple>$j</var_simple>
|
||||
</varExp>
|
||||
</var_indicee>
|
||||
</varExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<varExp>
|
||||
<var_simple>$j</var_simple>
|
||||
</varExp>
|
||||
</var_indicee>
|
||||
<varExp>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
</var_indicee>
|
||||
</varExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<varExp>
|
||||
<var_simple>$i</var_simple>
|
||||
</varExp>
|
||||
</var_indicee>
|
||||
<varExp>
|
||||
<var_simple>$temp</var_simple>
|
||||
</varExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
trier
|
||||
<l_dec>
|
||||
<varDec>$n</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<varDec>$echange</varDec>
|
||||
<l_dec>
|
||||
<varDec>$j</varDec>
|
||||
<l_dec>
|
||||
<varDec>$m</varDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$m</var_simple>
|
||||
<varExp>
|
||||
<var_simple>$n</var_simple>
|
||||
</varExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$echange</var_simple>
|
||||
<intExp>1</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_tantque>
|
||||
<opExp>
|
||||
egal
|
||||
<varExp>
|
||||
<var_simple>$echange</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$echange</var_simple>
|
||||
<intExp>0</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$j</var_simple>
|
||||
<intExp>0</intExp>
|
||||
</instr_affect>
|
||||
<l_instr>
|
||||
<instr_tantque>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_simple>$j</var_simple>
|
||||
</varExp>
|
||||
<opExp>
|
||||
moins
|
||||
<varExp>
|
||||
<var_simple>$m</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_si>
|
||||
<opExp>
|
||||
inf
|
||||
<varExp>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$j</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</var_indicee>
|
||||
</varExp>
|
||||
<varExp>
|
||||
<var_indicee>
|
||||
<var_base_tableau>$tab</var_base_tableau>
|
||||
<varExp>
|
||||
<var_simple>$j</var_simple>
|
||||
</varExp>
|
||||
</var_indicee>
|
||||
</varExp>
|
||||
</opExp>
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
echanger
|
||||
<l_exp>
|
||||
<varExp>
|
||||
<var_simple>$j</var_simple>
|
||||
</varExp>
|
||||
<l_exp>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$j</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$echange</var_simple>
|
||||
<intExp>1</intExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</instr_si>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$j</var_simple>
|
||||
<opExp>
|
||||
plus
|
||||
<varExp>
|
||||
<var_simple>$j</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</instr_tantque>
|
||||
<l_instr>
|
||||
<instr_affect>
|
||||
<var_simple>$m</var_simple>
|
||||
<opExp>
|
||||
moins
|
||||
<varExp>
|
||||
<var_simple>$m</var_simple>
|
||||
</varExp>
|
||||
<intExp>1</intExp>
|
||||
</opExp>
|
||||
</instr_affect>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</instr_tantque>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
initialiser
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
afficher
|
||||
<l_exp>
|
||||
<intExp>10</intExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
trier
|
||||
<l_exp>
|
||||
<intExp>10</intExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
afficher
|
||||
<l_exp>
|
||||
<intExp>10</intExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
29
eval-final-projet/ref-asynt/eval6.asynt
Normal file
29
eval-final-projet/ref-asynt/eval6.asynt
Normal file
@@ -0,0 +1,29 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
procedure
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<intExp>1</intExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
procedure
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
23
eval-final-projet/ref-asynt/eval7.asynt
Normal file
23
eval-final-projet/ref-asynt/eval7.asynt
Normal file
@@ -0,0 +1,23 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<opExp>
|
||||
plus
|
||||
<opExp>
|
||||
moins
|
||||
<intExp>5</intExp>
|
||||
<intExp>3</intExp>
|
||||
</opExp>
|
||||
<intExp>2</intExp>
|
||||
</opExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
34
eval-final-projet/ref-asynt/eval8.asynt
Normal file
34
eval-final-projet/ref-asynt/eval8.asynt
Normal file
@@ -0,0 +1,34 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
procedure
|
||||
<l_dec>
|
||||
<varDec>$a</varDec>
|
||||
</l_dec>
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<varExp>
|
||||
<var_simple>$a</var_simple>
|
||||
</varExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
procedure
|
||||
<l_exp>
|
||||
<intExp>10</intExp>
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
26
eval-final-projet/ref-asynt/eval9.asynt
Normal file
26
eval-final-projet/ref-asynt/eval9.asynt
Normal file
@@ -0,0 +1,26 @@
|
||||
<prog>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
procedure
|
||||
<l_instr>
|
||||
<instr_ecrire>
|
||||
<intExp>1</intExp>
|
||||
</instr_ecrire>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
<l_dec>
|
||||
<foncDec>
|
||||
main
|
||||
<l_instr>
|
||||
<instr_appel>
|
||||
<appel>
|
||||
procedure
|
||||
<l_exp>
|
||||
</l_exp>
|
||||
</appel>
|
||||
</instr_appel>
|
||||
</l_instr>
|
||||
</foncDec>
|
||||
</l_dec>
|
||||
</l_dec>
|
||||
</prog>
|
||||
Reference in New Issue
Block a user