Project

General

Profile

Actions

Task #7527

closed

constant casting while type conversion

Added by Sergey Smolov about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Expression
Target version:
Start date:
08/24/2016
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Published in build:
0.4.21

Description

Add an option to NodeOperation object constructor that encodes constants casting mode.
By default an exception should be thrown when a "logic family" NodeOperation object(this family includes Boolean and arithmetical operations) has at least one non-constant operand of type that differ from at least one constant (NodeValue) operand's type.
When the option is set, all the constant operands, which types are different from non-constant operand types, should be casted to corresponding types. This technique should be performed in a recursive way (for NodeOperation object and for all it's NodeOperation operands and sub-...operands).
The option should have different values for signed and unsigned extension of bit vector constants.

Actions

Also available in: Atom PDF