Separate the IR evaluator, add an interesting stack-breaking case.

This commit is contained in:
2024-04-18 12:33:34 -07:00
parent 7d4f182a67
commit 6800064bdf
16 changed files with 283 additions and 122 deletions

View File

@@ -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(),