interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / bench / results / trap / HumanEval_13_greatest_common_divisor.results.json

31 lines · 1961 bytes Raw Blame History
1{
2 "name": "HumanEval_13_greatest_common_divisor",
3 "language": "om",
4 "temperature": 0.0,
5 "top_p": 1.0,
6 "max_tokens": 0,
7 "prompt": "om2\nnote Return a greatest common divisor of two integers a and b\nnote >>> greatest_common_divisor 3 5\nnote 1\nnote >>> greatest_common_divisor 25 15\nnote 5\nfn greatest_common_divisor a long b long to long\n",
8 "tests": "fn tc_0 to bool\nr = greatest_common_divisor 3 7\nret eq r 1\nend\nfn tc_1 to bool\nr = greatest_common_divisor 10 15\nret eq r 5\nend\nfn tc_2 to bool\nr = greatest_common_divisor 49 14\nret eq r 7\nend\nfn tc_3 to bool\nr = greatest_common_divisor 144 60\nret eq r 12\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend",
9 "stop_tokens": [
10 "\nfn ",
11 "\nstruct ",
12 "\nglobal ",
13 "\ntext ",
14 "\nconst ",
15 "\nlayout ",
16 "\nabstract "
17 ],
18 "stub_mode": "trap",
19 "results": [
20 {
21 "program": "om2\nnote Return a greatest common divisor of two integers a and b\nnote >>> greatest_common_divisor 3 5\nnote 1\nnote >>> greatest_common_divisor 25 15\nnote 5\nfn greatest_common_divisor a long b long to long\ntrap 5\nend\n\nfn tc_0 to bool\nr = greatest_common_divisor 3 7\nret eq r 1\nend\nfn tc_1 to bool\nr = greatest_common_divisor 10 15\nret eq r 5\nend\nfn tc_2 to bool\nr = greatest_common_divisor 49 14\nret eq r 7\nend\nfn tc_3 to bool\nr = greatest_common_divisor 144 60\nret eq r 12\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend",
22 "exit_code": 105,
23 "stdout": "",
24 "stderr": "",
25 "status": "Exception",
26 "om_status": "trap",
27 "om_case": 5,
28 "timestamp": 1793102756
29 }
30 ]
31}