fn get_threshold(input: &Input, os: &WitnessOutput) -> Threshold