Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Symbolic Pass failing in LFortran #2553

Closed
@anutosh491

Description

@anutosh491

This issue was brought up here (lfortran/lfortran#3432 (comment))

We were lucky to not have encountered this issue in Lpython itself. Consider the following

def main0():
    x: S = Symbol('x')
    y: S = Symbol('y')
    z: S = x + y
    print(z.func == Add)

main0()

So this is an example which is solved by the code in consideration

} else if (ASR::is_a<ASR::Logical_t>(*ASRUtils::expr_type(val))) {
ASR::expr_t* function_call = process_attributes(x.base.base.loc, val);
print_tmp.push_back(function_call);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions