path stringlengths 14 156 | func_def stringlengths 68 3.79k | func_head stringlengths 7 435 | func_head_types stringlengths 7 477 | fname stringlengths 1 41 | signature sequencelengths 2 43 | asm dict | synth_deps stringclasses 30
values | real_deps stringlengths 5 561 | synth_io_pairs dict | real_io_pairs dict | synth_exe_wrapper stringclasses 110
values | real_exe_wrapper stringlengths 1.23k 4.18k | ref stringclasses 56
values | synth_iospec stringclasses 1
value | real_iospec stringlengths 265 1.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Shapeways/puppetarium/modules/profiles/files/cron/cronjobber.c | int
prefix_of(char *special, char *s)
{
for (; *special != '\0'; ++special)
if (*special != *s++)
return 0;
return (*s == '=' || *s == '\0');
} | int prefix_of(char *special, char *s) | int prefix_of(char *special, char *s) | prefix_of | [
"int",
"char *",
"char *"
] | {
"code": [
".globl prefix_of\n.type prefix_of, @function\nprefix_of:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -8(%rbp)\n\tmovq\t%rsi, -16(%rbp)\n\tjmp\t.L2\n.L5:\n\tmovq\t-8(%rbp), %rax\n\tmov... | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <stdarg.h>
#include <fcntl.h>
#include <time.h>
#include <signal.h>
#include <dirent.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"rkpdpvgyshuebbedxz\"... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_35014pti0y.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["special", "s"], "liveout": ["special", "s"], "returnvarname": ["returnv"], "execcmd": "", "funname": "prefix_of", "funargs": ["special", "s"], "typemap": {"special": "string", "s": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35014pti0y.c"], "classmap": {}, "range": {},... |
grev-uv/hpg-methyl/containers/cprops/util.c | int xtoi(char *p)
{
int curr;
int res = 0;
while (*p)
{
curr = ((*p) >= '0' && (*p) <= '9' ? (*p) - '0' : (*p) >= 'A' && (*p) <= 'F' ? (*p) - 'A' + 10 : (*p) >= 'a' && (*p) <= 'f' ? (*p) - 'a' + 10 : -1);
if (curr == -1) break;
res = res * 0x10 + curr;
p++;
}
return res;
} | int xtoi(char *p) | int xtoi(char *p) | xtoi | [
"int",
"char *"
] | {
"code": [
".globl xtoi\n.type xtoi, @function\nxtoi:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tjmp\t.L2\n.L11:\n\tmovq\t-24(%rbp), %rax\n\tmovzbl\t(%rax), %e... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"blnyowntfwxpqul\""
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_366iymz6nn.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | develop | null | {"livein": ["p"], "liveout": ["p"], "returnvarname": ["returnv"], "execcmd": "", "funname": "xtoi", "funargs": ["p"], "typemap": {"p": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_366iymz6nn.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
paxromana96/LispCompiler/src/syntax.c | char * getTokenTypeName(int type){
switch(type){
case 1:
return "<LParen>";
case 2:
return "<RParen>";
case 3:
return "<Number>";
case 8:
return "<ID>";
case 6:
return "<Plus>";
case 7:
return "<Minus>";
case -2:
return "<EOF>";
case -1:
return "<Error!>";
default:
return "... | char * getTokenTypeName(inttype) | char * getTokenTypeName(int type) | getTokenTypeName | [
"char *",
"int"
] | {
"code": [
".globl getTokenTypeName\n.type getTokenTypeName, @function\ngetTokenTypeName:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -4(%rbp)\n\tmovl\t-4(%rbp), %eax\n\taddl\t$2, %eax\n\tcmpl\t$... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"13"
],
"va... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_64leyo_aie.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["type"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "getTokenTypeName", "funargs": ["type"], "typemap": {"type": "int32", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64leyo_aie.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
kanner/KnR_solutions/Chapter3/3-03/expand.c | int checkrange(char c1, char c2)
{
if (('a' <= c1 && c1 <= 'z') && (c1 <= c2 && c2 <= 'z'))
return 1;
if (('A' <= c1 && c1 <= 'Z') && (c1 <= c2 && c2 <= 'Z'))
return 1;
if (('0' <= c1 && c1 <= '9') && (c1 <= c2 && c2 <= '9'))
return 1;
return 0;
} | int checkrange(charc1, charc2) | int checkrange(char c1, char c2) | checkrange | [
"int",
"char",
"char"
] | {
"code": [
".globl checkrange\n.type checkrange, @function\ncheckrange:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, %edx\n\tmovl\t%esi, %eax\n\tmovb\t%dl, -4(%rbp)\n\tmovb\t%al, -8(%rbp)\n\tcmpb\... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"4",
"5"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_384w2203gi.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["c1", "c2"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "checkrange", "funargs": ["c1", "c2"], "typemap": {"c1": "int8", "c2": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_384w2203gi.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals":... |
mspenceree/Versa-Filter/firmware/recover.c | int valid_serial(char *carray)
{
int i, code, num[10], sumo=0, sume=0, sumss=0;
for(i=0;i<10;i++){
code = carray[i];
num[i] = code - 0x30;
if((code<0x30)||(code>0x39)){
return 0;
}
}
sumo = num[0]+num[2]+num[4];
sumo = sumo - (sumo/10)*10;
sume = num[1]+num[3]+num[5];
sume = sume - (sume/10)*10;
sumss =... | int valid_serial(char *carray) | int valid_serial(char *carray) | valid_serial | [
"int",
"char *"
] | {
"code": [
".globl valid_serial\n.type valid_serial, @function\nvalid_serial:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tsubq\t$96, %rsp\n\tmovq\t%rdi, -88(%rbp)\n\tmovq\t%fs:40, %rax\n\tmovq\t%rax, -8(%rbp... | null | #include <stdlib.h> /* Include standard library header */
#include <math.h> /* Include math library header */
#include <string.h> /* Include string function header */
#include <ctype.h> /* Include character function header */
#include <limits.h> /* define LONG_MIN and LONG_MAX */
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"uvrujj\""
],
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_44tyhg3423.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["carray"], "liveout": ["carray"], "returnvarname": ["returnv"], "execcmd": "", "funname": "valid_serial", "funargs": ["carray"], "typemap": {"carray": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_44tyhg3423.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": [... |
gdarko/CProgrammingExercises/zbirka_2/datoteki/zad_383.c | int isspec(char c)
{
return (((c >= '!') && (c <= '/')) || (c >= ':' && c <= '@') || ((c >= '[') && (c <= '`')) || ((c >= '{') && (c <= 'DEL')));
} | int isspec(charc) | int isspec(char c) | isspec | [
"int",
"char"
] | {
"code": [
".globl isspec\n.type isspec, @function\nisspec:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, %eax\n\tmovb\t%al, -4(%rbp)\n\tcmpb\t$32, -4(%rbp)\n\tjle\t.L2\n\tcmpb\t$47, -4(%rbp)\n\tjl... | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"69"
],
"va... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_35bvkd2_kn.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["c"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "isspec", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35bvkd2_kn.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
shehan492/C_programs/pdslab/day1/cs1803-day1-prog1.c | int countVowels(char *str)
{
int i,count=0;
for(i=0;str[i]!='\0';++i)
if('a' == str[i] ||
'e' == str[i] ||
'i' == str[i] ||
'o' == str[i] ||
'u' == str[i] ||
'A' == str[i] ||
'E' == str[i] ||
'I' == str[i] ||
'O' == str[i] ||
'U' == str[i] )
count++;
return count;
} | int countVowels(char *str) | int countVowels(char *str) | countVowels | [
"int",
"char *"
] | {
"code": [
".globl countVowels\n.type countVowels, @function\ncountVowels:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tjmp\t.L2\n.L5:\n\tm... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"zxwcljdbsyizzobsjazq... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_61heo1kpe_.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["str"], "liveout": ["str"], "returnvarname": ["returnv"], "execcmd": "", "funname": "countVowels", "funargs": ["str"], "typemap": {"str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_61heo1kpe_.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
IAmAnubhavSaini/blog-posts/c/hcf_via_euclids_division_algorithm.c | int hcf_iterative(int a, int b){
int q, r;
if(a > 0 && b > 0){
if(a < b)
return hcf_iterative(b, a);
q = a / b;
r = a % b;
while(r != 0 && r != 1){
a = b;
b = r;
q = a / b;
r = a % b;
}
if(r == 0)
return b;
else if(r == 1)
return 1;
}
return -1;
} | int hcf_iterative(inta, intb) | int hcf_iterative(int a, int b) | hcf_iterative | [
"int",
"int",
"int"
] | {
"code": [
".globl hcf_iterative\n.type hcf_iterative, @function\nhcf_iterative:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tsubq\t$32, %rsp\n\tmovl\t%edi, -20(%rbp)\n\tmovl\t%esi, -24(%rbp)\n\tcmpl\t$0, -20... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"23",
"55"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_45dbgpeq0i.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["a", "b"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "hcf_iterative", "funargs": ["a", "b"], "typemap": {"a": "int32", "b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45dbgpeq0i.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": ... |
yigezhe/algorithm-summary/math/gcd/gcd_idea2_way2.c | int gcd(int a,int b) {
int r;
if(a<0) {
a=-a;
}
if(b<0) {
b=-b;
}
if(b>a) {
int tmp=a;
a=b;
b=tmp;
}
# 36 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/yigezhe/algorithm-summary/refs/heads/master/math/gcd/... | int gcd(inta, intb) | int gcd(int a,int b) | gcd | [
"int",
"int",
"int"
] | {
"code": [
".globl gcd\n.type gcd, @function\ngcd:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -20(%rbp)\n\tmovl\t%esi, -24(%rbp)\n\tcmpl\t$0, -20(%rbp)\n\tjns\t.L2\n\tnegl\t-20(%rbp)\n.L2:\n\tcm... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"104",
"99"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_59gy4uj0wf.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["a", "b"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "gcd", "funargs": ["a", "b"], "typemap": {"a": "int32", "b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_59gy4uj0wf.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
dlna/DeveloperToolsForUPnP/Samples/EmbeddedSamples/Micro Av Server/MicroMediaServer.c | char MungeHexDigit(char* one_hexdigit)
{
char r = -1;
char c = *one_hexdigit;
if (c >= '0' && c <= '9')
{
r = c - '0';
}
else if (c >= 'A' && c <= 'F')
{
r = c - 'A' + 10;
}
else if (c >= 'a' && c <= 'F')
{
r = c - 'a' + 10;
}
return r;
} | char MungeHexDigit(char *one_hexdigit) | char MungeHexDigit(char* one_hexdigit) | MungeHexDigit | [
"char",
"char *"
] | {
"code": [
".globl MungeHexDigit\n.type MungeHexDigit, @function\nMungeHexDigit:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovb\t$-1, -2(%rbp)\n\tmovq\t-24(%rbp), %rax\n\tmovzbl\t(... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"qfvfw\""
],
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_58e681x_mf.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["one_hexdigit"], "liveout": ["one_hexdigit"], "returnvarname": ["returnv"], "execcmd": "", "funname": "MungeHexDigit", "funargs": ["one_hexdigit"], "typemap": {"one_hexdigit": "string", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_58e681x_mf.c"], "classmap": {}, "range": {}, "needs... |
Desartes/VUT/1.projekt/proj1.c | int isnum(char *c) {
int i = 0;
while( *(c + i) != '\0' ) {
if ( !(*(c + i) >= 48 && *(c + i) <= 57) )
break;
else
i++;
}
if ( *(c + i) == '\0' )
return 1;
else
return 0;
} | int isnum(char *c) | int isnum(char *c) | isnum | [
"int",
"char *"
] | {
"code": [
".globl isnum\n.type isnum, @function\nisnum:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L4:\n\tmovl\t-4(%rbp), %eax\n\tmovslq\t%eax, %rd... | null | #include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <limits.h>
#include <ctype.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"pqzmjlrel\""
]... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_328rtgu9nb.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["c"], "liveout": ["c"], "returnvarname": ["returnv"], "execcmd": "", "funname": "isnum", "funargs": ["c"], "typemap": {"c": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_328rtgu9nb.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
tykowale/learningC/ProgrammingInC/chapter10/ex4.c | int my_str_cmp (const char s1[], const char s2[])
{
int i = 0;
int are_equal = 0;
while ( s1[i] == s2[i] && s1[i] != '\0' && s2[i] != '\0' ) {
++i;
}
if ( s1[i] == '\0' && s2[i] == '\0' ) {
are_equal = 1;
}
return are_equal;
} | int my_str_cmp(const char *s1, const char *s2) | int my_str_cmp (const char s1[], const char s2[]) | my_str_cmp | [
"int",
"const char *",
"const char *"
] | {
"code": [
".globl my_str_cmp\n.type my_str_cmp, @function\nmy_str_cmp:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovq\t%rsi, -32(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tmovl\t$0, -4(%rbp)\... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"atg\"",
"\"e... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_5600ori7sc.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["s1", "s2"], "liveout": ["s1", "s2"], "returnvarname": ["returnv"], "execcmd": "", "funname": "my_str_cmp", "funargs": ["s1", "s2"], "typemap": {"s1": "string", "s2": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_5600ori7sc.c"], "classmap": {}, "range": {}, "needs_cast": ... |
andres-erbsen/baseconvert/opt/shortcuts.c | int magic(int a, int b) {
if (a < 2 || b < 2) return 0;
int r;
while (1) {
if (b > a) {
r = a;
a = b;
b = r;
}
r = a%b;
a /= b;
if (r) return 0;
else if (a == 1) return b;
}
} | int magic(inta, intb) | int magic(int a, int b) | magic | [
"int",
"int",
"int"
] | {
"code": [
".globl magic\n.type magic, @function\nmagic:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -20(%rbp)\n\tmovl\t%esi, -24(%rbp)\n\tcmpl\t$1, -20(%rbp)\n\tjle\t.L2\n\tcmpl\t$1, -24(%rbp)\n... | null | #include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <limits.h>
#include <assert.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"76",
"68"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_45cw4dgww8.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["a", "b"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "magic", "funargs": ["a", "b"], "typemap": {"a": "int32", "b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45cw4dgww8.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
AmyBSOD/ToME-SX/src/init1.c | int color_char_to_attr(char c)
{
switch (c)
{
case 'd':
return (0);
case 'w':
return (1);
case 's':
return (2);
case 'o':
return (3);
case 'r':
return (4);
case 'g':
return (5);
case 'b':
return (6);
case 'u':
return (7);
case 'D':
return (8);
case 'W':
return (9);
case 'v':
return (... | int color_char_to_attr(charc) | int color_char_to_attr(char c) | color_char_to_attr | [
"int",
"char"
] | {
"code": [
".globl color_char_to_attr\n.type color_char_to_attr, @function\ncolor_char_to_attr:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, %eax\n\tmovb\t%al, -4(%rbp)\n\tmovsbl\t-4(%rbp), %eax\n... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"71"
],
"va... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_45_vzv9n_6.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["c"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "color_char_to_attr", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45_vzv9n_6.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
trealla-lang/trealla/src/utf8.c | int readc_utf8(int fd, int *res)
{
unsigned int n = 0;
int expect = 1;
while (expect--) {
unsigned char ch;
int len;
if ((len = read(fd, &ch, 1)) == 0) {
*res = EOF;
return 1;
}
if (len == -1)
return 0;
if ((ch & 0b11111... | int readc_utf8(intfd, int *res) | int readc_utf8(int fd, int *res) | readc_utf8 | [
"int",
"int",
"int *"
] | {
"code": [
".globl readc_utf8\n.type readc_utf8, @function\nreadc_utf8:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tsubq\t$48, %rsp\n\tmovl\t%edi, -36(%rbp)\n\tmovq\t%rsi, -48(%rbp)\n\tmovq\t%fs:40, %rax\n\t... | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"26",
"[52, 17,... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_63x97dmpot.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["fd", "res"], "liveout": ["res", "EOF"], "returnvarname": ["returnv"], "execcmd": "", "funname": "readc_utf8", "funargs": ["fd", "res"], "typemap": {"fd": "int32", "res": "array(int32#32)", "returnv": "int32", "EOF": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_63x97dmpot.c"], "classmap": {}... |
trealla-lang/trealla/src/utf8.c | int put_len_utf8(int _ch)
{
unsigned int ch = (unsigned int)_ch;
int len = 0;
if (ch <= 0x7F)
len = 1;
else if (ch <= 0x07FF)
len = 2;
else if (ch <= 0xFFFF)
len = 3;
else if (ch <= 0x01FFFFF)
len = 4;
else if (ch <= 0x03FFFFFF)
len = 5;
else if (... | int put_len_utf8(int_ch) | int put_len_utf8(int _ch) | put_len_utf8 | [
"int",
"int"
] | {
"code": [
".globl put_len_utf8\n.type put_len_utf8, @function\nput_len_utf8:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -20(%rbp)\n\tmovl\t-20(%rbp), %eax\n\tmovl\t%eax, -4(%rbp)\n\tmovl\t$0, -... | null | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"113"
],
"v... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_634hecziwb.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["_ch"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "put_len_utf8", "funargs": ["_ch"], "typemap": {"_ch": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_634hecziwb.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
yumeyao/zopfli_cgbi/src/zopfli/util.c | int ZopfliGetDistExtraBits(int dist) {
if (dist < 5) return 0;
else if (dist < 9) return 1;
else if (dist < 17) return 2;
else if (dist < 33) return 3;
else if (dist < 65) return 4;
else if (dist < 129) return 5;
else if (dist < 257) return 6;
else if (dist < 513) return 7;
else if (dist < 1025) retur... | int ZopfliGetDistExtraBits(intdist) | int ZopfliGetDistExtraBits(int dist) | ZopfliGetDistExtraBits | [
"int",
"int"
] | {
"code": [
".globl ZopfliGetDistExtraBits\n.type ZopfliGetDistExtraBits, @function\nZopfliGetDistExtraBits:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -4(%rbp)\n\tcmpl\t$4, -4(%rbp)\n\tjg\t.L2\n... | null | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"31"
],
"va... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_370gltfdlb.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["dist"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "ZopfliGetDistExtraBits", "funargs": ["dist"], "typemap": {"dist": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_370gltfdlb.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
JonSteinn/Kattis-Solutions/src/Datum/C/datum.c | int months_to_days(int n)
{
switch(n)
{
case 1:
return 0;
case 2:
return 31;
case 3:
return 59;
case 4:
return 90;
case 5:
return 120;
case 6:
return 151;
case 7:
return 18... | int months_to_days(intn) | int months_to_days(int n) | months_to_days | [
"int",
"int"
] | {
"code": [
".globl months_to_days\n.type months_to_days, @function\nmonths_to_days:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -4(%rbp)\n\tcmpl\t$11, -4(%rbp)\n\tja\t.L2\n\tmovl\t-4(%rbp), %eax\... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"20"
],
"va... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_649ohixd9y.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["n"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "months_to_days", "funargs": ["n"], "typemap": {"n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_649ohixd9y.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7