equal
deleted
inserted
replaced
347 |
347 |
348 def protocol_command_raw(name: String, args: List[Bytes]): Unit = |
348 def protocol_command_raw(name: String, args: List[Bytes]): Unit = |
349 command_input match { |
349 command_input match { |
350 case Some(thread) if thread.is_active => |
350 case Some(thread) if thread.is_active => |
351 if (trace) { |
351 if (trace) { |
352 val payload = (0 /: args)({ case (n, b) => n + b.length }) |
352 val payload = args.foldLeft(0) { case (n, b) => n + b.length } |
353 Output.writeln( |
353 Output.writeln( |
354 "protocol_command " + name + ", args = " + args.length + ", payload = " + payload) |
354 "protocol_command " + name + ", args = " + args.length + ", payload = " + payload) |
355 } |
355 } |
356 thread.send(Bytes(name) :: args) |
356 thread.send(Bytes(name) :: args) |
357 case _ => error("Inactive prover input thread for command " + quote(name)) |
357 case _ => error("Inactive prover input thread for command " + quote(name)) |