Skip to content

Commit 38f6498

Browse files
committed
Add isspace API in str
1 parent 6f5e527 commit 38f6498

37 files changed

+894
-2034
lines changed

tests/reference/asr-array_01_decl-39cf894.stdout

Lines changed: 66 additions & 319 deletions
Large diffs are not rendered by default.

tests/reference/asr-array_02_decl-e8f6874.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-array_02_decl-e8f6874.stdout",
9-
<<<<<<< HEAD
10-
"stdout_hash": "10faf1f9266769bacad661fe18961dc2bf504183566aee9d8dc3528e",
11-
=======
129
"stdout_hash": "a442d1685188ae1ac93a98e1c9d15aa8c9eb53cf7ef9d926911d941c",
13-
>>>>>>> 665badeb7 (TEST: Update reference tests)
1410
"stderr": null,
1511
"stderr_hash": null,
1612
"returncode": 0

tests/reference/asr-array_02_decl-e8f6874.stdout

Lines changed: 48 additions & 228 deletions
Large diffs are not rendered by default.

tests/reference/asr-bindc_02-bc1a7ea.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-bindc_02-bc1a7ea.stdout",
9-
"stdout_hash": "01a64e5f6cf42ede674e82e44dae47760b77e108155c498d63ad4638",
9+
"stdout_hash": "babbe21b044a6f5a8229779a9ab06e5776b56bf4291f69fa3ab64708",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-bindc_02-bc1a7ea.stdout

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__main__global_stmts:
1111
(Function
1212
(SymbolTable
13-
202
13+
215
1414
{
1515

1616
})
@@ -77,11 +77,11 @@
7777
f:
7878
(Function
7979
(SymbolTable
80-
212
80+
201
8181
{
8282
y:
8383
(Variable
84-
212
84+
201
8585
y
8686
[]
8787
Local
@@ -102,7 +102,7 @@
102102
),
103103
yptr1:
104104
(Variable
105-
212
105+
201
106106
yptr1
107107
[]
108108
Local
@@ -125,7 +125,7 @@
125125
),
126126
yq:
127127
(Variable
128-
212
128+
201
129129
yq
130130
[]
131131
Local
@@ -158,14 +158,14 @@
158158
[]
159159
[]
160160
[(=
161-
(Var 212 yq)
161+
(Var 201 yq)
162162
(PointerNullConstant
163163
(CPtr)
164164
)
165165
()
166166
)
167167
(=
168-
(Var 212 y)
168+
(Var 201 y)
169169
(ArrayConstant
170170
[]
171171
(Array
@@ -180,7 +180,7 @@
180180
)
181181
(=
182182
(ArrayItem
183-
(Var 212 y)
183+
(Var 201 y)
184184
[(()
185185
(IntegerConstant 0 (Integer 4))
186186
())]
@@ -198,7 +198,7 @@
198198
)
199199
(=
200200
(ArrayItem
201-
(Var 212 y)
201+
(Var 201 y)
202202
[(()
203203
(IntegerConstant 1 (Integer 4))
204204
())]
@@ -215,9 +215,9 @@
215215
()
216216
)
217217
(=
218-
(Var 212 yptr1)
218+
(Var 201 yptr1)
219219
(GetPointer
220-
(Var 212 y)
220+
(Var 201 y)
221221
(Pointer
222222
(Array
223223
(Integer 2)
@@ -233,7 +233,7 @@
233233
(Print
234234
()
235235
[(GetPointer
236-
(Var 212 y)
236+
(Var 201 y)
237237
(Pointer
238238
(Array
239239
(Integer 2)
@@ -244,14 +244,14 @@
244244
)
245245
()
246246
)
247-
(Var 212 yptr1)]
247+
(Var 201 yptr1)]
248248
()
249249
()
250250
)
251251
(Print
252252
()
253253
[(ArrayItem
254-
(Var 212 yptr1)
254+
(Var 201 yptr1)
255255
[(()
256256
(IntegerConstant 0 (Integer 4))
257257
())]
@@ -260,7 +260,7 @@
260260
()
261261
)
262262
(ArrayItem
263-
(Var 212 yptr1)
263+
(Var 201 yptr1)
264264
[(()
265265
(IntegerConstant 1 (Integer 4))
266266
())]
@@ -274,7 +274,7 @@
274274
(Assert
275275
(IntegerCompare
276276
(ArrayItem
277-
(Var 212 yptr1)
277+
(Var 201 yptr1)
278278
[(()
279279
(IntegerConstant 0 (Integer 4))
280280
())]
@@ -297,7 +297,7 @@
297297
(Assert
298298
(IntegerCompare
299299
(ArrayItem
300-
(Var 212 yptr1)
300+
(Var 201 yptr1)
301301
[(()
302302
(IntegerConstant 1 (Integer 4))
303303
())]
@@ -318,8 +318,8 @@
318318
()
319319
)
320320
(CPtrToPointer
321-
(Var 212 yq)
322-
(Var 212 yptr1)
321+
(Var 201 yq)
322+
(Var 201 yptr1)
323323
(ArrayConstant
324324
[(IntegerConstant 2 (Integer 4))]
325325
(Array
@@ -343,8 +343,8 @@
343343
)
344344
(Print
345345
()
346-
[(Var 212 yq)
347-
(Var 212 yptr1)]
346+
[(Var 201 yq)
347+
(Var 201 yptr1)]
348348
()
349349
()
350350
)]
@@ -408,11 +408,11 @@
408408
main_program:
409409
(Program
410410
(SymbolTable
411-
214
411+
203
412412
{
413413
__main__global_stmts:
414414
(ExternalSymbol
415-
214
415+
203
416416
__main__global_stmts
417417
2 __main__global_stmts
418418
__main__
@@ -424,7 +424,7 @@
424424
main_program
425425
[__main__]
426426
[(SubroutineCall
427-
214 __main__global_stmts
427+
203 __main__global_stmts
428428
2 __main__global_stmts
429429
[]
430430
()

tests/reference/asr-cast-435c233.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-cast-435c233.stdout",
9-
"stdout_hash": "1d616232829e2d73cf1f82681176b8f5e82ae5159e9bc3b39794a33f",
9+
"stdout_hash": "6d9568ad9f73c8acc2548ad68ddea25198f61efd6859e2eb0c5ceb73",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-cast-435c233.stdout

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__main__global_stmts:
1111
(Function
1212
(SymbolTable
13-
119
13+
132
1414
{
1515

1616
})
@@ -285,11 +285,11 @@
285285
main_program:
286286
(Program
287287
(SymbolTable
288-
131
288+
120
289289
{
290290
__main__global_stmts:
291291
(ExternalSymbol
292-
131
292+
120
293293
__main__global_stmts
294294
2 __main__global_stmts
295295
__main__
@@ -301,7 +301,7 @@
301301
main_program
302302
[__main__]
303303
[(SubroutineCall
304-
131 __main__global_stmts
304+
120 __main__global_stmts
305305
2 __main__global_stmts
306306
[]
307307
()

tests/reference/asr-complex1-f26c460.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-complex1-f26c460.stdout",
9-
<<<<<<< HEAD
10-
"stdout_hash": "6c0a86a90a0ce0083ed1b3667930028d5919712385f11e8937155d03",
11-
=======
129
"stdout_hash": "8c3db4b88ed74a020b6a0ed76f47a65c3da89b2e0756dd260de0a9fb",
13-
>>>>>>> 665badeb7 (TEST: Update reference tests)
1410
"stderr": null,
1511
"stderr_hash": null,
1612
"returncode": 0

tests/reference/asr-complex1-f26c460.stdout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@
781781
main_program:
782782
(Program
783783
(SymbolTable
784-
120
784+
133
785785
{
786786

787787
})

tests/reference/asr-constants1-5828e8a.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-constants1-5828e8a.stdout",
9-
<<<<<<< HEAD
109
"stdout_hash": "d301c858a5a147a2d631600a741fe7546e1563043328f742f6b340c2",
11-
=======
12-
"stdout_hash": "8ad517b1fb9537e903479b813ed839f72c36608a890401e78187eaa1",
13-
>>>>>>> 665badeb7 (TEST: Update reference tests)
1410
"stderr": null,
1511
"stderr_hash": null,
1612
"returncode": 0

0 commit comments

Comments
 (0)