Verify Translation
verify_translationRun both programs on the same test inputs and compare outputs to verify that a ported translation matches the original.
Instructions
PROVE that a port is equivalent: run both programs, compare their output.
You write the translation — you are the language model. This runs your source and your port on the same inputs and reports, per input, whether they matched, diverged, or could not be compared (a runtime that is missing or a program that failed on both sides is INCONCLUSIVE, never a pass).
Use it after porting anything: python3 -> go, node -> rust, a rewritten function against the original. Pair with compare_edge_cases to find the inputs worth testing.
Matching tolerates only line-ending/trailing-whitespace noise; stdout_raw carries what actually ran.
A pass is graded cross_checked (two independent implementations, run
and agreeing — see grade_basis for which runtimes). A non-pass is
graded ungraded: never a softer positive grade.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_code | Yes | Original program, in `source_language` | |
| target_code | Yes | Ported program, in `target_language`, to check against `source_code` | |
| test_inputs | No | Inputs to run both programs on and compare; omit to use the default edge-case set | |
| source_language | Yes | Language of `source_code` | |
| target_language | Yes | Language of `target_code` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||