File tree 12 files changed +53
-175
lines changed
12 files changed +53
-175
lines changed Original file line number Diff line number Diff line change 2
2
"basename" : " asr-expr9-814e4bc" ,
3
3
"cmd" : " lpython --show-asr --no-color {infile} -o {outfile}" ,
4
4
"infile" : " tests/expr9.py" ,
5
- "infile_hash" : " 1f02a7486b298ae9e74a163875a76f8fa7cc25d7f50547133dbbdfab " ,
5
+ "infile_hash" : " 4819e0f20d2ed25647ab94f74cb7b5b61e3d4f43e159e46ad79c1c4c " ,
6
6
"outfile" : null ,
7
7
"outfile_hash" : null ,
8
8
"stdout" : " asr-expr9-814e4bc.stdout" ,
9
- "stdout_hash" : " fd9a9323419a77d41f2b3b06c607be0aab4dc626a070dda593b2117c " ,
9
+ "stdout_hash" : " b1daccda9413a8fc6ad88b8898e011d5f556e862f9b853b3564d7189 " ,
10
10
"stderr" : null ,
11
11
"stderr_hash" : null ,
12
12
"returncode" : 0
Original file line number Diff line number Diff line change 5
5
_global_symbols:
6
6
(Module
7
7
(SymbolTable
8
- 9
8
+ 8
9
9
{
10
10
_lpython_main_program:
11
11
(Function
12
12
(SymbolTable
13
- 8
13
+ 7
14
14
{
15
15
16
16
})
33
33
[main0]
34
34
[]
35
35
[(SubroutineCall
36
- 9 main0
36
+ 8 main0
37
37
()
38
38
[]
39
39
()
47
47
main0:
48
48
(Function
49
49
(SymbolTable
50
- 6
50
+ 5
51
51
{
52
52
i:
53
53
(Variable
54
- 6
54
+ 5
55
55
i
56
56
[]
57
57
Local
66
66
),
67
67
s:
68
68
(Variable
69
- 6
69
+ 5
70
70
s
71
71
[]
72
72
Local
98
98
)
99
99
[test_return_1
100
100
test_return_2
101
- test_return_3
102
- test_return_4]
101
+ test_return_3]
103
102
[]
104
103
[(=
105
- (Var 6 i)
104
+ (Var 5 i)
106
105
(FunctionCall
107
- 9 test_return_1
106
+ 8 test_return_1
108
107
()
109
108
[((IntegerConstant 4 (Integer 4 [])))]
110
109
(Integer 4 [])
114
113
()
115
114
)
116
115
(=
117
- (Var 6 s)
116
+ (Var 5 s)
118
117
(FunctionCall
119
- 9 test_return_2
118
+ 8 test_return_2
120
119
()
121
120
[((IntegerConstant 4 (Integer 4 [])))]
122
121
(Character 1 -2 () [])
126
125
()
127
126
)
128
127
(=
129
- (Var 6 i)
128
+ (Var 5 i)
130
129
(FunctionCall
131
- 9 test_return_3
130
+ 8 test_return_3
132
131
()
133
132
[((IntegerConstant 4 (Integer 4 [])))]
134
133
(Integer 4 [])
135
134
()
136
135
()
137
136
)
138
137
()
139
- )
140
- (SubroutineCall
141
- 9 test_return_4
142
- ()
143
- [((IntegerConstant 4 (Integer 4 [])))]
144
- ()
145
138
)]
146
139
()
147
140
Public
379
372
[]
380
373
[(Var 4 a)]
381
374
[(=
382
- (Var 4 a)
383
- (IntegerConstant 3 (Integer 4 []))
384
- ()
385
- )
386
- (=
387
375
(Var 4 _lpython_return_variable)
388
376
(Var 4 a)
389
377
()
394
382
.false.
395
383
.false.
396
384
()
397
- ),
398
- test_return_4:
399
- (Function
400
- (SymbolTable
401
- 5
402
- {
403
- a:
404
- (Variable
405
- 5
406
- a
407
- []
408
- In
409
- ()
410
- ()
411
- Default
412
- (Integer 4 [])
413
- Source
414
- Public
415
- Required
416
- .false.
417
- )
418
- })
419
- test_return_4
420
- (FunctionType
421
- [(Integer 4 [])]
422
- ()
423
- Source
424
- Implementation
425
- ()
426
- .false.
427
- .false.
428
- .false.
429
- .false.
430
- .false.
431
- []
432
- []
433
- .false.
434
- )
435
- []
436
- [(Var 5 a)]
437
- [(=
438
- (Var 5 a)
439
- (IntegerConstant 1 (Integer 4 []))
440
- ()
441
- )
442
- (Return)]
443
- ()
444
- Public
445
- .false.
446
- .false.
447
- ()
448
385
)
449
386
})
450
387
_global_symbols
455
392
main_program:
456
393
(Program
457
394
(SymbolTable
458
- 7
395
+ 6
459
396
{
460
397
_lpython_main_program:
461
398
(ExternalSymbol
462
- 7
399
+ 6
463
400
_lpython_main_program
464
- 9 _lpython_main_program
401
+ 8 _lpython_main_program
465
402
_global_symbols
466
403
[]
467
404
_lpython_main_program
471
408
main_program
472
409
[_global_symbols]
473
410
[(SubroutineCall
474
- 7 _lpython_main_program
411
+ 6 _lpython_main_program
475
412
()
476
413
[]
477
414
()
Original file line number Diff line number Diff line change 2
2
"basename" : " asr-generics_02-e2ea5c9" ,
3
3
"cmd" : " lpython --show-asr --no-color {infile} -o {outfile}" ,
4
4
"infile" : " tests/../integration_tests/generics_02.py" ,
5
- "infile_hash" : " 1103ff0edcb14e988eaa30252064dd77c7012884226c63f35f7aab01 " ,
5
+ "infile_hash" : " f34adf5280ade332f6f72c81cdc0d18b463176f23df500f7a08370e0 " ,
6
6
"outfile" : null ,
7
7
"outfile_hash" : null ,
8
8
"stdout" : " asr-generics_02-e2ea5c9.stdout" ,
9
- "stdout_hash" : " e1448166e4027e61053bec1c27e7887537ea0be09fbee1149526ad70 " ,
9
+ "stdout_hash" : " 07c6fa8bd4b7c07692d940f3a74dae682991c938db791445065c3638 " ,
10
10
"stderr" : null ,
11
11
"stderr_hash" : null ,
12
12
"returncode" : 0
Original file line number Diff line number Diff line change 50
50
3
51
51
x
52
52
[]
53
- In
53
+ InOut
54
54
()
55
55
()
56
56
Default
65
65
3
66
66
y
67
67
[]
68
- In
68
+ InOut
69
69
()
70
70
()
71
71
Default
195
195
2
196
196
x
197
197
[]
198
- In
198
+ InOut
199
199
()
200
200
()
201
201
Default
213
213
2
214
214
y
215
215
[]
216
- In
216
+ InOut
217
217
()
218
218
()
219
219
Default
Original file line number Diff line number Diff line change
1
+ {
2
+ "basename" : " asr-test_assign9-51278b8" ,
3
+ "cmd" : " lpython --show-asr --no-color {infile} -o {outfile}" ,
4
+ "infile" : " tests/errors/test_assign9.py" ,
5
+ "infile_hash" : " 3aa4fda6489ce46f10fd95cd257f5d29a59629fc340d6d8ea5e983d8" ,
6
+ "outfile" : null ,
7
+ "outfile_hash" : null ,
8
+ "stdout" : null ,
9
+ "stdout_hash" : null ,
10
+ "stderr" : " asr-test_assign9-51278b8.stderr" ,
11
+ "stderr_hash" : " d6b69b941971863accaf997113f14a990e656c1665324bc3f2f66e8b" ,
12
+ "returncode" : 2
13
+ }
Original file line number Diff line number Diff line change
1
+ semantic error: Assignment to function parameter `x` is not allowed
2
+ --> tests/errors/test_assign9.py:2:5
3
+ |
4
+ 2 | x = 2
5
+ | ^
Original file line number Diff line number Diff line change 2
2
"basename" : " ast-expr9-d184496" ,
3
3
"cmd" : " lpython --show-ast --no-color {infile} -o {outfile}" ,
4
4
"infile" : " tests/expr9.py" ,
5
- "infile_hash" : " 1f02a7486b298ae9e74a163875a76f8fa7cc25d7f50547133dbbdfab " ,
5
+ "infile_hash" : " 4819e0f20d2ed25647ab94f74cb7b5b61e3d4f43e159e46ad79c1c4c " ,
6
6
"outfile" : null ,
7
7
"outfile_hash" : null ,
8
8
"stdout" : " ast-expr9-d184496.stdout" ,
9
- "stdout_hash" : " 53f5e472ca197da7600955039541adb81d458cf53ea6e9c27b742adb " ,
9
+ "stdout_hash" : " 75772c0465dba8aaa9f5cebf3c35558b77827a9b29570828744d84d9 " ,
10
10
"stderr" : null ,
11
11
"stderr_hash" : null ,
12
12
"returncode" : 0
Original file line number Diff line number Diff line change 113
113
[]
114
114
[]
115
115
[])
116
- [(Assign
117
- [(Name
118
- a
119
- Store
120
- )]
121
- (ConstantInt
122
- 3
123
- ()
124
- )
125
- ()
126
- )
127
- (Return
116
+ [(Return
128
117
(Name
129
118
a
130
119
Load
137
126
)
138
127
()
139
128
)
140
- (FunctionDef
141
- test_return_4
142
- ([]
143
- [(a
144
- (Name
145
- i32
146
- Load
147
- )
148
- ())]
149
- []
150
- []
151
- []
152
- []
153
- [])
154
- [(Assign
155
- [(Name
156
- a
157
- Store
158
- )]
159
- (ConstantInt
160
- 1
161
- ()
162
- )
163
- ()
164
- )
165
- (Return
166
- ()
167
- )]
168
- []
169
- ()
170
- ()
171
- )
172
129
(FunctionDef
173
130
main0
174
131
([]
255
212
[]
256
213
)
257
214
()
258
- )
259
- (Expr
260
- (Call
261
- (Name
262
- test_return_4
263
- Load
264
- )
265
- [(ConstantInt
266
- 4
267
- ()
268
- )]
269
- []
270
- )
271
215
)]
272
216
[]
273
217
()
Original file line number Diff line number Diff line change 2
2
"basename" : " cpp-expr9-48868e9" ,
3
3
"cmd" : " lpython --no-color --show-cpp {infile}" ,
4
4
"infile" : " tests/expr9.py" ,
5
- "infile_hash" : " 1f02a7486b298ae9e74a163875a76f8fa7cc25d7f50547133dbbdfab " ,
5
+ "infile_hash" : " 4819e0f20d2ed25647ab94f74cb7b5b61e3d4f43e159e46ad79c1c4c " ,
6
6
"outfile" : null ,
7
7
"outfile_hash" : null ,
8
8
"stdout" : " cpp-expr9-48868e9.stdout" ,
9
- "stdout_hash" : " 8b28ac34d62789df68c60f9a9e6925dbbe05f910916eca7cc0c47c42 " ,
9
+ "stdout_hash" : " 1e07d4af4823dc3f759e16cf567f814918c22127127013a16da3f473 " ,
10
10
"stderr" : null ,
11
11
"stderr_hash" : null ,
12
12
"returncode" : 0
You can’t perform that action at this time.
0 commit comments