Skip to content

pyInterpret fails on any Python program that uses classes #1069

@robin-aws

Description

@robin-aws

Many tests fail with the message:

\[ERROR\] procedure '__main__': expected 1 arguments, got 0

This is because the translation from Laurel to Core introduces $heap in and out parameters, but the pyInterpret command does not provide any argument for this. The correct behavior is to explicitly pass a value, as long as it is completely unconstrained (i.e. initialized with a havoced value). This should only be the behavior for this parameter since it's part of the translation behavior - we should still raise an error if the main method accepts any additional parameters.

Metadata

Metadata

Assignees

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