Open harveyghq opened 1 year ago
I find Rust std::env::args_os
is widely used in command line parser library (e.g. clap), so it'd better fix this.
btw here is the code snippet, and I use rustc 1.63.0 to compile to wasm32-wasi
use std::env;
fn main() {
// Prints each argument on a separate line
for argument in env::args_os() {
println!("{argument:?}");
}
}
Describe the bug When using Rust
std::env::args_os
to accept command line arguments, z3 backend generates an error. I think z3 doesn't support some types, becausestd::env::args_os
is designed to accept invalid unicode argument. refSome of the last analyzed functions:
To Reproduce
python launcher.py -f args_os.d.wasm -s -v debug --source_type rust
Expected behavior No errors.
Additional context args_os.d.wasm.tar.gz