Separate the IR evaluator, add an interesting stack-breaking case.
This commit is contained in:
@@ -359,11 +359,7 @@ fn generate_random_expression(
|
||||
Expression::Call(
|
||||
Location::manufactured(),
|
||||
out_type,
|
||||
Box::new(ValueOrRef::Primitive(
|
||||
Location::manufactured(),
|
||||
primtype,
|
||||
primop,
|
||||
)),
|
||||
ValueOrRef::Primitive(Location::manufactured(), primtype, primop),
|
||||
args,
|
||||
)
|
||||
}
|
||||
@@ -393,11 +389,7 @@ fn generate_random_expression(
|
||||
Expression::Call(
|
||||
Location::manufactured(),
|
||||
Type::void(),
|
||||
Box::new(ValueOrRef::Primitive(
|
||||
Location::manufactured(),
|
||||
Type::void(),
|
||||
Primitive::Print,
|
||||
)),
|
||||
ValueOrRef::Primitive(Location::manufactured(), Type::void(), Primitive::Print),
|
||||
vec![ValueOrRef::Ref(
|
||||
Location::manufactured(),
|
||||
var_type.clone(),
|
||||
|
||||
Reference in New Issue
Block a user