Skip to content

ESBMC-Python-CPP fails for a simple Python program that mixes the data types #14

Description

@lucasccordeiro
var=8print(var)
var=3.142assertvar>0var='Python in easy steps'assertvar=='Python in easy steps'
example_34_mix_types.cpp:19:11: error: assigning to 'pyobj *' from incompatible type '__ss_float' (aka 'double')
var = ((__ss_float)(__ss_int(8)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~
example_34_mix_types.cpp:21:11: error: assigning to 'pyobj *' from incompatible type '__ss_float' (aka 'double')
var = __ss_float(3.142);
^~~~~~~~~~~~~~~~~
example_34_mix_types.cpp:22:20: error: use of undeclared identifier '__gt'
ASSERT(___bool(__gt(__example_34_mix_types__::var, ((__ss_float)(__ss_int(0))))), 0);
^
ERROR: PARSING ERROR

Metadata

Metadata

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