|
|
@ -370,17 +370,9 @@ class ExpressionToSlithIR(ExpressionVisitor): |
|
|
|
assert isinstance(type_expression_found, ElementaryTypeNameExpression) |
|
|
|
assert isinstance(type_expression_found, ElementaryTypeNameExpression) |
|
|
|
type_found = type_expression_found.type |
|
|
|
type_found = type_expression_found.type |
|
|
|
if expression.member_name == "min:": |
|
|
|
if expression.member_name == "min:": |
|
|
|
op = Assignment( |
|
|
|
op = Assignment(val, Constant(str(type_found.min), type_found), type_found,) |
|
|
|
val, |
|
|
|
|
|
|
|
Constant(str(type_found.min), type_found), |
|
|
|
|
|
|
|
type_found, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
else: |
|
|
|
else: |
|
|
|
op = Assignment( |
|
|
|
op = Assignment(val, Constant(str(type_found.max), type_found), type_found,) |
|
|
|
val, |
|
|
|
|
|
|
|
Constant(str(type_found.max), type_found), |
|
|
|
|
|
|
|
type_found, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
self._result.append(op) |
|
|
|
self._result.append(op) |
|
|
|
set_val(expression, val) |
|
|
|
set_val(expression, val) |
|
|
|
return |
|
|
|
return |
|
|
|