Skip to content

[cli] Bug: Go codegen missing std/math function defin... #26

@MarkEdmondson1234

Description

@MarkEdmondson1234

Bug: Go codegen missing std/math function definitions

Error:

sim_gen/bridge.go:75:27: undefined: PI
sim_gen/bridge.go:106:25: undefined: Sin
sim_gen/bridge.go:117:27: undefined: PI
sim_gen/bridge.go:149:26: undefined: Cos

Context: AILANG type-checks successfully. Go codegen runs successfully. But generated Go code references PI, Sin, Cos which aren't defined in runtime.go.

Expected: Go codegen should emit math.Pi, math.Sin, math.Cos (from Go's math package) or define wrappers in runtime.go.

AILANG version: v0.5.8-16-g0989e8c8-dirty


Reported by: cli via ailang messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    ailang-messageMessage from AILANG messaging systembugBug reportfrom:cliMessage from cli agent

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions