org_input stringlengths 1.09k 17.3k | gt_output stringlengths 1.54k 17.8k | llm_input stringclasses 1
value | dafny_input stringclasses 1
value | output dict | stage_tag stringclasses 1
value | org_input_id int64 0 299 | self_id int64 0 2.99M | self_tag stringclasses 1
value | data_source stringclasses 1
value | prompt listlengths 1 1 | ability stringclasses 1
value | reward_model dict | extra_info dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
function digitToInt(c: char): int
{
(c as int) - ('0' as int)
}
function intToChar(i: int): char
{
(('0' as int) + i) as char
}
method stringToInt(s: seq<char>) returns (result: int)
{
var res := 0;
var i := 0;
while i < |s|
invariant 0 <= i <= |s|
invariant res >= 0
{
var digit := digitToInt(s[... | function digitToInt(c: char): int
requires '0' <= c <= '9'
ensures 0 <= digitToInt(c) <= 9
ensures digitToInt(c) == (c as int) - ('0' as int)
{
(c as int) - ('0' as int)
}
function intToChar(i: int): char
requires 0 <= i <= 9
ensures '0' <= intToChar(i) <= '9'
ensures intToChar(i) == (('0' as int) + i) as... | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 0 | 0 | dataset8k_pure_remove | [
{
"content": "<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Dafny programs including precise annotations. You should only return code body in all circumstances. No text is allowed.\n<|im_end|>\n<|im_start|>user\nGiven a Dafny program with function signature, preconditions,... | code | {
"ground_truth": {
"ground_truth": "function digitToInt(c: char): int\n requires '0' <= c <= '9'\n ensures 0 <= digitToInt(c) <= 9\n ensures digitToInt(c) == (c as int) - ('0' as int)\n{\n (c as int) - ('0' as int)\n}\nfunction intToChar(i: int): char\n requires 0 <= i <= 9\n ensures '0' <= intToChar(i) <=... | {
"index": 0,
"split": "test"
} | |||
method smallestNumber_2165(num: int) returns (result: int)
{
var neg := num < 0;
var n := if num < 0 then -num else num;
var cnt := new int[10];
var i := 0;
while i < 10
invariant 0 <= i <= 10
invariant cnt.Length == 10
invariant forall k :: 0 <= k < i ==> cnt[k] == 0
{
... | method smallestNumber_2165(num: int) returns (result: int)
requires -1000000000000000 <= num <= 1000000000000000
ensures 1 <= result <= 10000000000000000
{
var neg := num < 0;
var n := if num < 0 then -num else num;
var cnt := new int[10];
var i := 0;
while i < 10
invariant 0 <= i <=... | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 1 | 10,000 | dataset8k_pure_remove | [
{
"content": "<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Dafny programs including precise annotations. You should only return code body in all circumstances. No text is allowed.\n<|im_end|>\n<|im_start|>user\nGiven a Dafny program with function signature, preconditions,... | code | {
"ground_truth": {
"ground_truth": "method smallestNumber_2165(num: int) returns (result: int)\n requires -1000000000000000 <= num <= 1000000000000000\n ensures 1 <= result <= 10000000000000000\n{\n var neg := num < 0;\n var n := if num < 0 then -num else num;\n var cnt := new int[10];\n var i ... | {
"index": 1,
"split": "test"
} | |||
method digitSum(n: int) returns (sum: int)
{
var temp := n;
sum := 0;
while temp > 0
invariant temp >= 0
invariant sum >= 0
{
sum := sum + (temp % 10);
temp := temp / 10;
}
}
method countLargestGroup_1399(n: int) returns (result: int)
{
var counts := new int[50];
... | method digitSum(n: int) returns (sum: int)
requires n >= 0
ensures sum >= 0
{
var temp := n;
sum := 0;
while temp > 0
invariant temp >= 0
invariant sum >= 0
{
sum := sum + (temp % 10);
temp := temp / 10;
}
}
method countLargestGroup_1399(n: int) returns (resul... | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 2 | 20,000 | dataset8k_pure_remove | [
{
"content": "<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Dafny programs including precise annotations. You should only return code body in all circumstances. No text is allowed.\n<|im_end|>\n<|im_start|>user\nGiven a Dafny program with function signature, preconditions,... | code | {
"ground_truth": {
"ground_truth": "method digitSum(n: int) returns (sum: int)\n requires n >= 0\n ensures sum >= 0\n{\n var temp := n;\n sum := 0;\n while temp > 0\n invariant temp >= 0\n invariant sum >= 0\n {\n sum := sum + (temp % 10);\n temp := temp / 10;\n }... | {
"index": 2,
"split": "test"
} | |||
method digitSum(n: int) returns (sum: int)
{
var num := n;
sum := 0;
while num > 0
invariant num >= 0
invariant sum >= 0
{
sum := sum + (num % 10);
num := num / 10;
}
}
method lastRemaining_390(n: int) returns (result: int)
{
var a1 := 1;
var an := n;
var ... | method digitSum(n: int) returns (sum: int)
requires n >= 0
ensures sum >= 0
{
var num := n;
sum := 0;
while num > 0
invariant num >= 0
invariant sum >= 0
{
sum := sum + (num % 10);
num := num / 10;
}
}
method lastRemaining_390(n: int) returns (result: int)
... | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 3 | 30,000 | dataset8k_pure_remove | [
{
"content": "<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Dafny programs including precise annotations. You should only return code body in all circumstances. No text is allowed.\n<|im_end|>\n<|im_start|>user\nGiven a Dafny program with function signature, preconditions,... | code | {
"ground_truth": {
"ground_truth": "method digitSum(n: int) returns (sum: int)\n requires n >= 0\n ensures sum >= 0\n{\n var num := n;\n sum := 0;\n while num > 0\n invariant num >= 0\n invariant sum >= 0\n {\n sum := sum + (num % 10);\n num := num / 10;\n }\n}\nm... | {
"index": 3,
"split": "test"
} | |||
function gcd_func(a: int, b: int): int
{
if b == 0 then a else gcd_func(b, a % b)
}
method gcd(a: int, b: int) returns (result: int)
{
var x := a;
var y := b;
while y != 0
invariant x > 0 && y >= 0
invariant gcd_func(a, b) == gcd_func(x, y)
decreases y
{
var temp := y... | function gcd_func(a: int, b: int): int
requires a > 0 && b >= 0
decreases b
{
if b == 0 then a else gcd_func(b, a % b)
}
method gcd(a: int, b: int) returns (result: int)
requires a > 0 && b > 0
ensures result > 0
ensures result == gcd_func(a, b)
{
var x := a;
var y := b;
while y != 0... | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 4 | 40,000 | dataset8k_pure_remove | [
{
"content": "<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Dafny programs including precise annotations. You should only return code body in all circumstances. No text is allowed.\n<|im_end|>\n<|im_start|>user\nGiven a Dafny program with function signature, preconditions,... | code | {
"ground_truth": {
"ground_truth": "function gcd_func(a: int, b: int): int\n requires a > 0 && b >= 0\n decreases b\n{\n if b == 0 then a else gcd_func(b, a % b)\n}\nmethod gcd(a: int, b: int) returns (result: int)\n requires a > 0 && b > 0\n ensures result > 0\n ensures result == gcd_func(a, b... | {
"index": 4,
"split": "test"
} | |||
method smallestValue_2507(n: int) returns (result: int)
{
var current := n;
while true
decreases *
{
var t := current;
var s := 0;
var i := 2;
var temp := current;
while i * i <= temp
invariant 2 <= i
invariant s >= 0
invari... | method smallestValue_2507(n: int) returns (result: int)
requires 2 <= n <= 100000
ensures 1 <= result <= 100000000
decreases *
{
var current := n;
while true
decreases *
{
var t := current;
var s := 0;
var i := 2;
var temp := current;
while i * i <... | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 5 | 50,000 | dataset8k_pure_remove | [
{
"content": "<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Dafny programs including precise annotations. You should only return code body in all circumstances. No text is allowed.\n<|im_end|>\n<|im_start|>user\nGiven a Dafny program with function signature, preconditions,... | code | {
"ground_truth": {
"ground_truth": "method smallestValue_2507(n: int) returns (result: int)\n requires 2 <= n <= 100000\n ensures 1 <= result <= 100000000\n decreases *\n{\n var current := n;\n while true\n decreases *\n {\n var t := current;\n var s := 0;\n var i :=... | {
"index": 5,
"split": "test"
} | |||
method DigitSum(n: int) returns (sum: int)
{
var num := n;
sum := 0;
while num > 0
invariant sum >= 0
invariant num >= 0
{
sum := sum + (num % 10);
num := num / 10;
}
}
method nextGreaterElement_556(n: int) returns (result: int)
{
if n >= 2147483647 {
retu... | method DigitSum(n: int) returns (sum: int)
requires n >= 0
ensures sum >= 0
{
var num := n;
sum := 0;
while num > 0
invariant sum >= 0
invariant num >= 0
{
sum := sum + (num % 10);
num := num / 10;
}
}
method nextGreaterElement_556(n: int) returns (result: int... | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 6 | 60,000 | dataset8k_pure_remove | [
{
"content": "<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Dafny programs including precise annotations. You should only return code body in all circumstances. No text is allowed.\n<|im_end|>\n<|im_start|>user\nGiven a Dafny program with function signature, preconditions,... | code | {
"ground_truth": {
"ground_truth": "method DigitSum(n: int) returns (sum: int)\n requires n >= 0\n ensures sum >= 0\n{\n var num := n;\n sum := 0;\n while num > 0\n invariant sum >= 0\n invariant num >= 0\n {\n sum := sum + (num % 10);\n num := num / 10;\n }\n}\nm... | {
"index": 6,
"split": "test"
} | |||
"method main_3node_2(o: int) returns (result: int)\n{\n var o1 := primePalindrome_866(o);\n va(...TRUNCATED) | "method main_3node_2(o: int) returns (result: int)\n requires 1 <= o <= 100000000\n ensures re(...TRUNCATED) | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 7 | 70,000 | dataset8k_pure_remove | [{"content":"<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Da(...TRUNCATED) | code | {"ground_truth":{"ground_truth":"method main_3node_2(o: int) returns (result: int)\n requires 1 <(...TRUNCATED) | {
"index": 7,
"split": "test"
} | |||
"method largestPalindrome_479(n: int) returns (result: int)\n{\n var mx := power10(n) - 1;\n var a(...TRUNCATED) | "method largestPalindrome_479(n: int) returns (result: int)\n requires 1 <= n <= 8\n ensures 1 <= (...TRUNCATED) | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 8 | 80,000 | dataset8k_pure_remove | [{"content":"<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Da(...TRUNCATED) | code | {"ground_truth":{"ground_truth":"method largestPalindrome_479(n: int) returns (result: int)\n requi(...TRUNCATED) | {
"index": 8,
"split": "test"
} | |||
"method digitSum(n: int) returns (sum: int)\n{\n var num := n;\n sum := 0;\n while num > 0\(...TRUNCATED) | "method digitSum(n: int) returns (sum: int)\n requires n >= 0\n ensures sum >= 0\n{\n var n(...TRUNCATED) | {
"dafny_response": {
"dafny_response": "",
"status": ""
},
"llm_response": ""
} | not_started | 9 | 90,000 | dataset8k_pure_remove | [{"content":"<|im_start|>system\nYou are an expert in Dafny. You will be given tasks dealing with Da(...TRUNCATED) | code | {"ground_truth":{"ground_truth":"method digitSum(n: int) returns (sum: int)\n requires n >= 0\n (...TRUNCATED) | {
"index": 9,
"split": "test"
} |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 2