Commit e416bdc8 authored by Bharat's avatar Bharat
Browse files

Remove spurious checks from reading from external EO

parent 26c2e6cb
Pipeline #56819 passed with stages
in 4 minutes and 17 seconds
......@@ -230,11 +230,11 @@ where
ret: &mut Vec<Vec<InputSymbol>>,
) {
let mut string_vec = Vec::with_capacity(buffer_size);
let mut i = 0;
loop {
let mut strline = String::new();
let done = child_out.read_line(&mut strline).unwrap();
if done == 0 && i != 0 {
let ret_code = child_out.read_line(&mut strline).unwrap();
if ret_code == 0 {
// if ret_code == 0 && i != 0 {
// There should be at least one test-case provided
break;
}
......@@ -242,7 +242,6 @@ where
continue;
}
string_vec.push(strline);
i += 1;
}
string_vec
.into_iter()
......
......@@ -134,7 +134,8 @@ impl<'a, T: ObservationTree + Send + Sync> SouchaOracle<'a, T> {
loop {
let mut strline = String::new();
let done = child_out.read_line(&mut strline).unwrap();
if done == 0 && i != 0 {
// if done == 0 && i != 0 {
if done == 0 {
// There should be at least one test-case provided
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment