Skip to content

TODO: detect potential UBs #64

@jiangzhengwenjz

Description

@jiangzhengwenjz

From my observation, a lot of << operations are performed on (possibly) negative integers which is undefined behavior in C (apparently this also includes s8 and s16 because of integer promotion).

This kind of UB should be eliminated as long as multiplication also matches the vanilla assembly code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions