Included lama compilation in root's make regression target

This commit is contained in:
Egor Sheremetov 2023-09-04 13:25:12 +02:00
parent 52ef663986
commit 89536c67e0
3240 changed files with 14640 additions and 6 deletions

View file

@ -0,0 +1,18 @@
TESTS=$(sort $(basename $(wildcard generated*.lama)))
LAMAC = ../../src/lama-impl
.PHONY: check $(TESTS)
check: $(TESTS)
$(TESTS): %: %.lama
@echo $@
@cat $@.input | $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
@cat $@.input | $(LAMAC) -s $< > $@.log && diff $@.log orig/$@.log
@LAMA_RUNTIME=../../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
clean:
rm -f *.log *.s *~
find . -maxdepth 1 -type f -not -name '*.*' -not -name 'Makefile' -delete

View file

@ -0,0 +1,2 @@
75
19

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0/(x0+39+40);
write (y)

View file

@ -0,0 +1,2 @@
68
44

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17+23-x0+40+41;
write (y)

View file

@ -0,0 +1,2 @@
10
6

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 25+x0+39+40+46-47;
write (y)

View file

@ -0,0 +1,2 @@
72
56

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := (22+23)/(34-35+x0);
write (y)

View file

@ -0,0 +1,2 @@
96
93

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+x0+x0+61+62-x0;
write (y)

View file

@ -0,0 +1,2 @@
96
93

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+x0+x0+x0-x0;
write (y)

View file

@ -0,0 +1,2 @@
4
80

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17-23+x0+40+41;
write (y)

View file

@ -0,0 +1,2 @@
18
90

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 25+x0-x0/40;
write (y)

View file

@ -0,0 +1,2 @@
27
31

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17+x0+x0+45+46;
write (y)

View file

@ -0,0 +1,2 @@
98
68

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17+28+29+40-41+x0;
write (y)

View file

@ -0,0 +1,2 @@
56
3

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+x0+x0*(53+54);
write (y)

View file

@ -0,0 +1,2 @@
26
10

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x1*(x0+41+42);
write (y)

View file

@ -0,0 +1,2 @@
32
22

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+x0+42+x0*54;
write (y)

View file

@ -0,0 +1,2 @@
65
33

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x1!=30+31;
write (y)

View file

@ -0,0 +1,2 @@
11
41

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+x1*(41+42);
write (y)

View file

@ -0,0 +1,2 @@
15
99

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 22-23-x0-40+41;
write (y)

View file

@ -0,0 +1,2 @@
7
91

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17+x1/(36+37);
write (y)

View file

@ -0,0 +1,2 @@
31
22

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17-x1*(36+37);
write (y)

View file

@ -0,0 +1,2 @@
47
19

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 22+23+29+x0+46+47;
write (y)

View file

@ -0,0 +1,2 @@
88
46

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := (x0+x1)*(49+50+x0);
write (y)

View file

@ -0,0 +1,2 @@
92
89

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0-x1-41+42;
write (y)

View file

@ -0,0 +1,2 @@
90
87

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+31+42-43+x0;
write (y)

View file

@ -0,0 +1,2 @@
15
91

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17*(x1-36+37);
write (y)

View file

@ -0,0 +1,2 @@
0
80

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x1+x1-43+44;
write (y)

View file

@ -0,0 +1,2 @@
47
30

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 22-28+29+x1;
write (y)

View file

@ -0,0 +1,2 @@
21
24

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0-x1+44+x1;
write (y)

View file

@ -0,0 +1,2 @@
82
62

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 25+x0-34-40+41;
write (y)

View file

@ -0,0 +1,2 @@
11
16

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := (22-23)*(34-35+x0);
write (y)

View file

@ -0,0 +1,2 @@
68
66

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 22+23+x1*(42+43);
write (y)

View file

@ -0,0 +1,2 @@
42
19

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+(28!=x1);
write (y)

View file

@ -0,0 +1,2 @@
62
9

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 25+x0+x0-45+46;
write (y)

View file

@ -0,0 +1,2 @@
3
68

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+x0-47-48-x0;
write (y)

View file

@ -0,0 +1,2 @@
9
93

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17+(23<=x1);
write (y)

View file

@ -0,0 +1,2 @@
56
27

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 22*23+34+35+41-42;
write (y)

View file

@ -0,0 +1,2 @@
28
58

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17-(23!=x1);
write (y)

View file

@ -0,0 +1,2 @@
89
3

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+x0+42+48+54+55;
write (y)

View file

@ -0,0 +1,2 @@
15
73

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0+x1+x0%50;
write (y)

View file

@ -0,0 +1,2 @@
47
48

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0-(28==x1);
write (y)

View file

@ -0,0 +1,2 @@
90
43

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x0*(x1+41+42);
write (y)

View file

@ -0,0 +1,2 @@
58
30

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17*(23==x1);
write (y)

View file

@ -0,0 +1,2 @@
36
98

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x1+(30==x1);
write (y)

View file

@ -0,0 +1,2 @@
90
68

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := (x0-31)*x0;
write (y)

View file

@ -0,0 +1,2 @@
66
2

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17/(x1+36+37);
write (y)

View file

@ -0,0 +1,2 @@
55
95

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 22+23-x1-42+43;
write (y)

View file

@ -0,0 +1,2 @@
26
80

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := x1-x1+43+44;
write (y)

View file

@ -0,0 +1,2 @@
47
30

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 22+23+(29!=x1);
write (y)

View file

@ -0,0 +1,2 @@
5
11

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17>x1;
write (y)

View file

@ -0,0 +1,2 @@
73
55

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17!=x0-29;
write (y)

View file

@ -0,0 +1,2 @@
71
3

View file

@ -0,0 +1,6 @@
var x0, x1, y;
x0 := read ();
x1 := read ();
y := 17+23+x1+42+43;
write (y)

View file

@ -0,0 +1,2 @@
63
35

Some files were not shown because too many files have changed in this diff Show more