GSoC Weekly Report

Week 9 | Swaminath Shiju | LPython

20 July to 27 July

Weekly Agenda

This week I worked on getting the LFortran struct and string refactors to sync with LPython. I also implemented a basic uint test in LFortran.

Achievements

Code Samples


program lp_test
    implicit none

    type(uint) :: x
    x = 1

    do i = 1, 30
        x = x * _lfortran_uint(2)
        y = y * 2
        if ( x < _lfortran_uint(0) ) error stop 
        if ( y < 0 )  error stop 
    end do

    x = x * _lfortran_uint(2)
    if ( x < _lfortran_uint(0) ) error stop 
    x = x * _lfortran_uint(2)
    if ( x /= _lfortran_uint(0) ) error stop 
end program

            

Pull Requests

Goals for next week

Continue the LPython sync