Closed mihaibudiu closed 1 year ago
@Kixiron this fixes several bugs in the three-operand conversion, but not all. I have thus marked the PR as a draft. But you should try this, since it should give you useful results for many queries.
This pr makes the body of the function get put into a block within function calls a la
let x = wrap_bool({
let a = ...;
let b = ...;
b
});
x
@Kixiron I hope now I have fixed the three-operand code generation. I am also testing it thoroughly by running the generated three-operand as Rust code. The Rust compiler likes the result.
Signed-off-by: Mihai Budiu mbudiu@vmware.com