Skip to content

question(interpreter): what's the semantics for overflow #22

Description

@hsqStephenZhang

Current interpreter did not handle overflow

fn eval_binary(&mut self, inst: &ValueData, bin: &Binary) {
, what's the semantics defined by sysy? Since it's a subset of C, should it also be a undefined behavior?

What's the best handling strategy in interpreter then?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions