File tree Expand file tree Collapse file tree 2 files changed +165
-4
lines changed Expand file tree Collapse file tree 2 files changed +165
-4
lines changed Original file line number Diff line number Diff line change 22 "basename" : " asr-array_04-f95b8eb" ,
33 "cmd" : " lc --show-asr --no-color {infile} -o {outfile}" ,
44 "infile" : " tests/../integration_tests/array_04.cpp" ,
5- "infile_hash" : " dd38786061d4a19743e4c32c2a3ecb08193777f81a2a0d3e87af0f0a " ,
5+ "infile_hash" : " 86bab3bcf300c07e9861e92ce21215829ae2893db1d378776b8ab332 " ,
66 "outfile" : null ,
77 "outfile_hash" : null ,
88 "stdout" : " asr-array_04-f95b8eb.stdout" ,
9- "stdout_hash" : " ecd1c3d056e6792b7c6ec0baa0730c74d60745d34d459ffb6122aee1 " ,
9+ "stdout_hash" : " b72419a0a8bd62f822377669e6e98ca64a95400f6c7ce7b7ad33a68a " ,
1010 "stderr" : null ,
1111 "stderr_hash" : null ,
1212 "returncode" : 0
Original file line number Diff line number Diff line change 9393 Public
9494 Required
9595 .false.
96+ ),
97+ res_:
98+ (Variable
99+ 2
100+ res_
101+ []
102+ Local
103+ ()
104+ ()
105+ Default
106+ (Array
107+ (Real 8)
108+ [((IntegerConstant 0 (Integer 4))
109+ (IntegerConstant 3 (Integer 4)))]
110+ FixedSizeArray
111+ )
112+ ()
113+ Source
114+ Public
115+ Required
116+ .false.
96117 )
97118 })
98119 main
251272 )
252273 ()
253274 )
275+ (=
276+ (Var 2 res_)
277+ (ArrayConstant
278+ [(RealConstant
279+ 7.000000
280+ (Real 8)
281+ )
282+ (RealConstant
283+ 11.000000
284+ (Real 8)
285+ )
286+ (RealConstant
287+ 14.000000
288+ (Real 8)
289+ )]
290+ (Array
291+ (Real 8)
292+ [((IntegerConstant 0 (Integer 4))
293+ (IntegerConstant 3 (Integer 4)))]
294+ FixedSizeArray
295+ )
296+ RowMajor
297+ )
298+ ()
299+ )
254300 (Allocate
255301 [((Var 2 res)
256302 [((IntegerConstant 0 (Integer 4))
306352 )
307353 (Print
308354 [(Var 2 arr1)
309- (Var 2 arr2)]
355+ (StringConstant
356+ "\n"
357+ (Character 1 1 ())
358+ )]
359+ (StringConstant
360+ ""
361+ (Character 1 1 ())
362+ )
363+ (StringConstant
364+ ""
365+ (Character 1 1 ())
366+ )
367+ )
368+ (Print
369+ [(Var 2 arr2)
370+ (StringConstant
371+ "\n"
372+ (Character 1 1 ())
373+ )]
310374 (StringConstant
311375 ""
312376 (Character 1 1 ())
317381 )
318382 )
319383 (Print
320- [(Var 2 res)]
384+ [(Var 2 res)
385+ (StringConstant
386+ "\n"
387+ (Character 1 1 ())
388+ )]
321389 (StringConstant
322390 ""
323391 (Character 1 1 ())
327395 (Character 1 1 ())
328396 )
329397 )
398+ (If
399+ (IntrinsicArrayFunction
400+ Any
401+ [(RealCompare
402+ (IntrinsicScalarFunction
403+ Abs
404+ [(RealBinOp
405+ (Var 2 res)
406+ Sub
407+ (Var 2 res_)
408+ (Array
409+ (Real 8)
410+ [(()
411+ ())]
412+ DescriptorArray
413+ )
414+ ()
415+ )]
416+ 0
417+ (Array
418+ (Real 8)
419+ [(()
420+ ())]
421+ DescriptorArray
422+ )
423+ ()
424+ )
425+ Gt
426+ (ArrayBroadcast
427+ (RealConstant
428+ 0.000000
429+ (Real 8)
430+ )
431+ (IntrinsicArrayFunction
432+ Shape
433+ [(IntrinsicScalarFunction
434+ Abs
435+ [(RealBinOp
436+ (Var 2 res)
437+ Sub
438+ (Var 2 res_)
439+ (Array
440+ (Real 8)
441+ [(()
442+ ())]
443+ DescriptorArray
444+ )
445+ ()
446+ )]
447+ 0
448+ (Array
449+ (Real 8)
450+ [(()
451+ ())]
452+ DescriptorArray
453+ )
454+ ()
455+ )
456+ (IntegerConstant 4 (Integer 4))]
457+ 0
458+ (Array
459+ (Integer 4)
460+ [((IntegerConstant 1 (Integer 4))
461+ (IntegerConstant 1 (Integer 4)))]
462+ FixedSizeArray
463+ )
464+ ()
465+ )
466+ (Array
467+ (Real 8)
468+ [(()
469+ ())]
470+ DescriptorArray
471+ )
472+ ()
473+ )
474+ (Array
475+ (Logical 4)
476+ [(()
477+ ())]
478+ DescriptorArray
479+ )
480+ ()
481+ )]
482+ 0
483+ (Logical 4)
484+ ()
485+ )
486+ [(ErrorStop
487+ (IntegerConstant 2 (Integer 4))
488+ )]
489+ []
490+ )
330491 (=
331492 (Var 2 __return_var)
332493 (IntegerConstant 0 (Integer 4))
You can’t perform that action at this time.
0 commit comments