extract_proofs: use \Call for function call in alg
extract_proofs: use match in alg