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
listlengths
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": []}
ayyucedemirbas/Minix-Source-Code/common/dist/zlib/contrib/untgz/untgz.c
int getoct (char *p,int width) { int result = 0; char c; while (width--) { c = *p++; if (c == 0) break; if (c == ' ') continue; if (c < '0' || c > '7') return -1; result = result * 8 + (c - '0'); } return result; }
int getoct(char *p, intwidth)
int getoct (char *p,int width)
getoct
[ "int", "char *", "int" ]
{ "code": [ ".globl getoct\n.type getoct, @function\ngetoct:\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%esi, -28(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L9:\n\tmovq\t-24(%rb...
#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...
# 1
{ "dummy_funcs": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ], "dummy_funcs_seed": [ 0, 0, 0, 0, ...
{ "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": [ "\"sxi\"", "11"...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577735k5vlq10v.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. u...
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_408dxjc241.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": ["p", "width"], "liveout": ["p"], "returnvarname": ["returnv"], "execcmd": "", "funname": "getoct", "funargs": ["p", "width"], "typemap": {"p": "string", "width": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_408dxjc241.c"], "classmap": {}, "range": {}, "needs_cast": {}, "g...
OpenNurbsFit/OpenNurbsFit/TomGine/ply.c
int equal_strings(char *s1, char *s2) { while (*s1 && *s2) if (*s1++ != *s2++) return (0); if (*s1 != *s2) return (0); else return (1); }
int equal_strings(char *s1, char *s2)
int equal_strings(char *s1, char *s2)
equal_strings
[ "int", "char *", "char *" ]
{ "code": [ ".globl equal_strings\n.type equal_strings, @function\nequal_strings:\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),...
null
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.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": [ "\"enstohphsltvzxzqsdlx...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_52i98symri.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": "equal_strings", "funargs": ["s1", "s2"], "typemap": {"s1": "string", "s2": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_52i98symri.c"], "classmap": {}, "range": {}, "needs_cast...
nicaraguabinary/lib-tlali-openstreetmap/src/tests/tests-main.c
double TLAString_toDouble(const char* string){ const char sign= (*string); double value = 0; if(sign=='-' || sign=='+') string++; while((*string)!='\0' && (*string)!='.'){ value = (value * 10.0f) + ((*string) - 48.0f); string++; } if((*string)=='.'){ float factorDivisor = 10.0f; string++; while((*stri...
double TLAString_toDouble(const char *string)
double TLAString_toDouble(const char* string)
TLAString_toDouble
[ "double", "const char *" ]
{ "code": [ ".globl TLAString_toDouble\n.type TLAString_toDouble, @function\nTLAString_toDouble:\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-24(%rbp), %rax\n\tmovzbl\t(%rax), %...
null
#include <stdio.h> //FILE* #include <time.h> //clock_t, clock() # 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": [ "\"\"" ], "...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_56v1kwm80m.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": ["string"], "liveout": ["string"], "returnvarname": ["returnv"], "execcmd": "", "funname": "TLAString_toDouble", "funargs": ["string"], "typemap": {"string": "string", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_56v1kwm80m.c"], "classmap": {}, "range": {}, "needs_cast": {}, "glo...
MigNov/libminCrypt/src/byteops.c
int apply_binary_operation_on_byte(int tbit, int kbit, int operation) { if (operation == 0x00) { return ((tbit == '1') || (kbit == '1')) ? '1' : '0'; } else if (operation == 0x01) { return ((tbit == '1') && (kbit == '1')) ? '1' : '0'; } else if (operation == 0x02) { return (((tbit == '0') && (kbit == '1'))...
int apply_binary_operation_on_byte(inttbit, intkbit, intoperation)
int apply_binary_operation_on_byte(int tbit, int kbit, int operation)
apply_binary_operation_on_byte
[ "int", "int", "int", "int" ]
{ "code": [ ".globl apply_binary_operation_on_byte\n.type apply_binary_operation_on_byte, @function\napply_binary_operation_on_byte:\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%...
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": [ "35", "1", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_49jxcr3cd_.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": ["tbit", "kbit", "operation"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "apply_binary_operation_on_byte", "funargs": ["tbit", "kbit", "operation"], "typemap": {"tbit": "int32", "kbit": "int32", "operation": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c...
philsmd/sharpfin/src/libreciva/src/lcd/lcd_devel.c
char lcd_hwchr(char *str, int pos) { int i ; unsigned long int c=0 ; if (str==NULL) return '\0' ; for (i=0; str[i]!='\0' && i<pos; ) { if ((str[i]&'\x80')==0) i++ ; else { i++ ; while ((str[i]&'\xC0')=='\x80') i++ ; } } if ((str[i]&'\x80')==0) return str[i] ; if ((str[i]&'\xE0')=='\xC0') { c|=(...
char lcd_hwchr(char *str, intpos)
char lcd_hwchr(char *str, int pos)
lcd_hwchr
[ "char", "char *", "int" ]
{ "code": [ ".globl lcd_hwchr\n.type lcd_hwchr, @function\nlcd_hwchr:\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%esi, -28(%rbp)\n\tmovq\t$0, -8(%rbp)\n\tcmpq\t$0, -24(%rbp)\n\...
#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 <errno.h> #include <sys/ioctl.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <stdio.h> #include <ncurses.h> # 1
{ "dummy_funcs": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ], "dummy_funcs_seed": [ 0, 0, 0, 0, ...
{ "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": [ "\"zssxuolrfgidgvhxvgbk...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577740ez0441_7.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. u...
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_58q4jhtmf8.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", "pos"], "liveout": ["str"], "returnvarname": ["returnv"], "execcmd": "", "funname": "lcd_hwchr", "funargs": ["str", "pos"], "typemap": {"str": "string", "pos": "int32", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_58q4jhtmf8.c"], "classmap": {}, "range": {}, "needs_cast": {}...
pmq20/ruby-compiler/ruby/ext/socket/constdefs.c
int rsock_ip_level_to_int(const char *str, long len, int *valp) { switch (len) { case 2: # 5182 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pmq20/ruby-compiler/refs/heads/master/ruby/ext/socket/constdefs.c" return -1; case 3: # 5221 "/scratch/repos...
int rsock_ip_level_to_int(const char *str, longlen, int *valp)
int rsock_ip_level_to_int(const char *str, long len, int *valp)
rsock_ip_level_to_int
[ "int", "const char *", "long", "int *" ]
{ "code": [ ".globl rsock_ip_level_to_int\n.type rsock_ip_level_to_int, @function\nrsock_ip_level_to_int:\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, -8(%rbp)\n\tmovq\t%rsi, -16(%rbp)\n\tmovq\t%rd...
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": [ "\"tsmlrfgmuuums\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_37ztfm68xj.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", "len", "valp"], "liveout": ["str", "valp"], "returnvarname": ["returnv"], "execcmd": "", "funname": "rsock_ip_level_to_int", "funargs": ["str", "len", "valp"], "typemap": {"str": "string", "len": "int64", "valp": "array(int32#32)", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c402620...
ruipimenta/newOseaClassifier/qrsfilt.c
int deriv1(int x, int init) { static int derBuff[2], derI = 0 ; int y ; if(init != 0) { for(derI = 0; derI < 2; ++derI) derBuff[derI] = 0 ; derI = 0 ; return(0) ; } y = x - derBuff[derI] ; derBuff[derI] = x ; if(++derI == 2) derI = 0 ; return(y) ; }
int deriv1(intx, intinit)
int deriv1(int x, int init)
deriv1
[ "int", "int", "int" ]
{ "code": [ ".globl deriv1\n.type deriv1, @function\nderiv1:\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$0, -24(%rbp)\n\tje\t.L2\n\tmovl\t$0, derI.3552...
null
#include <math.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": [ "71", "5" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_63g3ccv9od.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": ["x", "init"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "deriv1", "funargs": ["x", "init"], "typemap": {"x": "int32", "init": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_63g3ccv9od.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals"...
mtirado/eslib/eslib_string.c
int eslib_string_is_sane(char *buf, const unsigned int len) { unsigned int idx; if (len == 0) return -1; for (idx = 0; idx < len; ++idx) { char c = buf[idx]; if (c < 32 || c >= 127) { if (!( c == ' ' || c == '\n' || c == '\t' )) { return 0; } } } return 1; }
int eslib_string_is_sane(char *buf, const unsigned intlen)
int eslib_string_is_sane(char *buf, const unsigned int len)
eslib_string_is_sane
[ "int", "char *", "const unsigned int" ]
{ "code": [ ".globl eslib_string_is_sane\n.type eslib_string_is_sane, @function\neslib_string_is_sane:\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%esi, -28(%rbp)\n\tcmpl\t$0, -...
null
#include <errno.h> #include <stddef.h> #include <limits.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #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": [ "\"czv\"", "368...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_55rc90uos8.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": ["buf", "len"], "liveout": ["buf"], "returnvarname": ["returnv"], "execcmd": "", "funname": "eslib_string_is_sane", "funargs": ["buf", "len"], "typemap": {"buf": "string", "len": "uint32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_55rc90uos8.c"], "classmap": {}, "range": {}, "ne...
ieugen/ipc/scaner.c
int isoperator (char c) { return ( c==','|| c=='|' || c=='6'|| c=='^' || c=='='|| c== '!'|| c=='<' || c== '>' || c== '+' || c== '-' || c=='%' || c=='/' || c=='*' || c== '~' || c=='(' || c==')' || c=='[' || c== ']' || c=='.' || ';' || c=='\'' || c=='"'); }
int isoperator(charc)
int isoperator (char c)
isoperator
[ "int", "char" ]
{ "code": [ ".globl isoperator\n.type isoperator, @function\nisoperator:\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\tmovl\t$1, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, ...
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": [ "39" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_50sgdt_l9n.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": "isoperator", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_50sgdt_l9n.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
lecram/zap/src/zcpl_expr.c
char * escape_char(char e) { switch (e) { case 'a': return "\a"; case 'b': return "\b"; case 't': return "\t"; case 'n': return "\n"; case 'v': return "\v"; case 'f': return "\f"; case 'r'...
char * escape_char(chare)
char * escape_char(char e)
escape_char
[ "char *", "char" ]
{ "code": [ ".globl escape_char\n.type escape_char, @function\nescape_char:\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\tmovsbl\t-4(%rbp), %eax\n\tcmpl\t$118, %eax\n\...
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": [ "121" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_57kezb1res.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": ["e"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "escape_char", "funargs": ["e"], "typemap": {"e": "int8", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_57kezb1res.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
jjancheta/C_Programming_Fall_2015/assignment3.c
char symbolToDraw(char condition, float avgTemp){ char symbolFunction5; if (condition == 's') symbolFunction5 = '@'; else if (condition == 'c') symbolFunction5 = '~'; else if (condition == 'p' && avgTemp <= 0) symbolFunction5 = '*'; else symbolFunction5 = ';'; ...
char symbolToDraw(charcondition, floatavgTemp)
char symbolToDraw(char condition, float avgTemp)
symbolToDraw
[ "char", "char", "float" ]
{ "code": [ ".globl symbolToDraw\n.type symbolToDraw, @function\nsymbolToDraw:\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\tmovss\t%xmm0, -24(%rbp)\n\tmovb\t%al, -20(%rbp)\n\tcmpb\t$115, -2...
null
#include <stdio.h> #include <string.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": [ "117", "98.5058...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_48ehuj172c.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": ["condition", "avgTemp"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "symbolToDraw", "funargs": ["condition", "avgTemp"], "typemap": {"condition": "int8", "avgTemp": "float32", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_48ehuj172c.c"], "classmap": {}, "...
MU-Software/hs_c/1115/resident_id_checker.c
int isvalid_id(const char *input_str) { char tmp_charset[15] = { 0 }; int total = 0, magic_array[] = { 2, 3, 4, 5, 6, 7, 0, 8, 9, 2, 3, 4, 5 }; for (int i = 0; i<13; i++) if (input_str[i] >= 0) { tmp_charset[i] = input_str[i]*magic_array[i]; total += tmp_charset[i]; } if (11 - (total % 11) == input_str[13]) re...
int isvalid_id(const char *input_str)
int isvalid_id(const char *input_str)
isvalid_id
[ "int", "const char *" ]
{ "code": [ ".globl isvalid_id\n.type isvalid_id, @function\nisvalid_id:\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$112, %rsp\n\tmovq\t%rdi, -104(%rbp)\n\tmovq\t%fs:40, %rax\n\tmovq\t%rax, -8(%rbp)\n\...
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": [ "\"kebfqitwim\"" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_30i03lkx1v.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": ["input_str"], "liveout": ["input_str"], "returnvarname": ["returnv"], "execcmd": "", "funname": "isvalid_id", "funargs": ["input_str"], "typemap": {"input_str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_30i03lkx1v.c"], "classmap": {}, "range": {}, "needs_cast": {}, "g...
bjornbytes/lovr/src/lib/noise1234/noise1234.c
float grad2( int hash, float x, float y ) { int h = hash & 7; float u = h<4 ? x : y; float v = h<4 ? y : x; return ((h&1)? -u : u) + ((h&2)? -2.0*v : 2.0*v); }
float grad2(inthash, floatx, floaty)
float grad2( int hash, float x, float y )
grad2
[ "float", "int", "float", "float" ]
{ "code": [ ".globl grad2\n.type grad2, @function\ngrad2:\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\tmovss\t%xmm0, -24(%rbp)\n\tmovss\t%xmm1, -28(%rbp)\n\tmovl\t-20(%rbp), %eax\n\tan...
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": [ "94", "98.27764...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_41hgro8_u0.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": ["hash", "x", "y"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "grad2", "funargs": ["hash", "x", "y"], "typemap": {"hash": "int32", "x": "float32", "y": "float32", "returnv": "float32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_41hgro8_u0.c"], "classmap": {}, "range": {}...
Benjins/GBADev/pureAsm/asm.c
int ParseInt(const char* str, int len) { const char* cursor = str; int val = 0; int sign = 1; int isHex = 0; if (*cursor == '-') { cursor++; sign = -1; } else if (*cursor == '0' && cursor[1] == 'x') { cursor += 2; isHex = 1; } const int base = (isHex ? 16 : 10); while (*cursor && (cursor - str) < le...
int ParseInt(const char *str, intlen)
int ParseInt(const char* str, int len)
ParseInt
[ "int", "const char *", "int" ]
{ "code": [ ".globl ParseInt\n.type ParseInt, @function\nParseInt:\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, -40(%rbp)\n\tmovl\t%esi, -44(%rbp)\n\tmovq\t-40(%rbp), %rax\n\tmovq\t%rax, -8(%rbp)\n...
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": [ "\"k\"", "69" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_586r6ywq3e.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", "len"], "liveout": ["str"], "returnvarname": ["returnv"], "execcmd": "", "funname": "ParseInt", "funargs": ["str", "len"], "typemap": {"str": "string", "len": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_586r6ywq3e.c"], "classmap": {}, "range": {}, "needs_cast": {}...
jbush001/NyuziProcessor/tests/whole-program/meteor-contest-noverilator.c
int triple_is_okay(char row1, char row2, char row3, int even) { if(even) { return ((row1 == 0x03) && (row2 == 0x0B) && ((row3 & 0x1C) == 0x0C)) || ((row1 == 0x01) && (row2 == 0x05) && (row3 == 0x06)) || ((row1 == 0x19) && (row2 == 0x11)) || ((row1 == 0x15) && (row2 == 0...
int triple_is_okay(charrow1, charrow2, charrow3, inteven)
int triple_is_okay(char row1, char row2, char row3, int even)
triple_is_okay
[ "int", "char", "char", "char", "int" ]
{ "code": [ ".globl triple_is_okay\n.type triple_is_okay, @function\ntriple_is_okay:\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%edx, %eax\n\tmovl\t%ecx, -16(%rbp)\n\tmovl\t%edi, %edx\n\tmovb\t%dl, -4(...
null
#include <stdlib.h> #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": [ "107", "6", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_60dkcgbzcb.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": ["row1", "row2", "row3", "even"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "triple_is_okay", "funargs": ["row1", "row2", "row3", "even"], "typemap": {"row1": "int8", "row2": "int8", "row3": "int8", "even": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c4...
JonSteinn/Kattis-Solutions/src/Bits/C/main.c
int start_div(int n) { if (n > 999999999) return 1000000000; if (n > 99999999) return 100000000; if (n > 9999999) return 10000000; if (n > 999999) return 1000000; if (n > 99999) return 100000; if (n > 9999) return 10000; if (n > 999) return 1000; if (n > 99) return 100; if (n > 9) re...
int start_div(intn)
int start_div(int n)
start_div
[ "int", "int" ]
{ "code": [ ".globl start_div\n.type start_div, @function\nstart_div:\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$999999999, -4(%rbp)\n\tjle\t.L2\n\tmovl\t$1000000000, %eax\n\tj...
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": [ "28" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_64946u8nkw.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": "start_div", "funargs": ["n"], "typemap": {"n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64946u8nkw.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
abh/ezmlm-idx/case_starts.c
int case_starts(const char *s,const char *t) { unsigned char x; unsigned char y; for (;;) { x = *s++ - 'A'; if (x <= 'Z' - 'A') x += 'a'; else x += 'A'; y = *t++ - 'A'; if (y <= 'Z' - 'A') y += 'a'; else y += 'A'; if (!y) return 1; if (x != y) return 0; } }
int case_starts(const char *s, const char *t)
int case_starts(const char *s,const char *t)
case_starts
[ "int", "const char *", "const char *" ]
{ "code": [ ".globl case_starts\n.type case_starts, @function\ncase_starts:\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.L9:\n\tmovq\t-24(%rbp), %rax\n\tleaq\t1...
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": [ "\"tqivlmhptacnsifikwfz...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_645qpr0bvd.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": ["s", "t"], "liveout": ["s", "t"], "returnvarname": ["returnv"], "execcmd": "", "funname": "case_starts", "funargs": ["s", "t"], "typemap": {"s": "string", "t": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_645qpr0bvd.c"], "classmap": {}, "range": {}, "needs_cast": {}, "gl...
elsys/po-homework/G/04/03/task1.c
int name_t(char * help,char *bb,char *ab,char * fp,char*pb) { int i= 6; int b; if(help[i]== 57 && help[i+1]== 51&& help[i+2]== 51 && help[i+3]== 51 &&help[i+4]== 52 &&help[i+5]== 54 && help[i+6] == '-') { return b= 1 ; } if(help[i]== 53 &&help[i+1]== 53 && help[i+2]== 53 && help[i+3]=...
int name_t(char *help, char *bb, char *ab, char *fp, char *pb)
int name_t(char * help,char *bb,char *ab,char * fp,char*pb)
name_t
[ "int", "char *", "char *", "char *", "char *", "char *" ]
{ "code": [ ".globl name_t\n.type name_t, @function\nname_t:\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\tmovq\t%rsi, -32(%rbp)\n\tmovq\t%rdx, -40(%rbp)\n\tmovq\t%rcx, -48(%rbp)\n\tmov...
null
#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": [ "\"evlwqvloqvoyiekpdpuh...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_43i7pcnxba.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": ["help", "bb", "ab", "fp", "pb"], "liveout": ["help", "bb", "ab", "fp", "pb"], "returnvarname": ["returnv"], "execcmd": "", "funname": "name_t", "funargs": ["help", "bb", "ab", "fp", "pb"], "typemap": {"help": "string", "bb": "string", "ab": "string", "fp": "string", "pb": "string", "returnv": "int32"}, "req...
damageless/linux-kernel-ican-tab/drivers/video/hdmi/chips/sii9022/SIIVideoModeTable.c
unsigned char ConvertVIC_To_VM_Index(unsigned char VIC, unsigned char _3D_Struct) { unsigned char ConvertedVIC; const unsigned char VIC2Index[] = { 0, 0, 1, 1, 2, 3, 4, 4, 5, 5, 7, 7, 8, 8, 10, 10, 11, 12, 12, 13, 14,...
unsigned char ConvertVIC_To_VM_Index(unsigned charVIC, unsigned char_3D_Struct)
unsigned char ConvertVIC_To_VM_Index(unsigned char VIC, unsigned char _3D_Struct)
ConvertVIC_To_VM_Index
[ "unsigned char", "unsigned char", "unsigned char" ]
{ "code": [ ".globl ConvertVIC_To_VM_Index\n.type ConvertVIC_To_VM_Index, @function\nConvertVIC_To_VM_Index:\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$112, %rsp\n\tmovl\t%edi, %edx\n\tmovl\t%esi, %ea...
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": [ "873", "330" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_38t4x_aavl.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": ["VIC", "_3D_Struct"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "ConvertVIC_To_VM_Index", "funargs": ["VIC", "_3D_Struct"], "typemap": {"VIC": "uint8", "_3D_Struct": "uint8", "returnv": "uint8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38t4x_aavl.c"], "classmap": {}, ...
luciferfran/codigos-luciferfran/C/Ejemplos C-C++/Cap12/busquedaBin2.c
int busquedaBin1(double m[], int n, double v) { int mitad, inf = 0, sup = n - 1; if (n == 0) return -1; do { mitad = (inf + sup) / 2; if (v > m[mitad]) inf = mitad + 1; else sup = mitad - 1; } while( m[mitad] != v && inf <= sup); if (m[mitad] == v) return mitad; else ...
int busquedaBin1(double *m, intn, doublev)
int busquedaBin1(double m[], int n, double v)
busquedaBin1
[ "int", "double *", "int", "double" ]
{ "code": [ ".globl busquedaBin1\n.type busquedaBin1, @function\nbusquedaBin1:\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%esi, -28(%rbp)\n\tmovsd\t%xmm0, -40(%rbp)\n\tmovl\t$0...
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": [ "[87.4516113129, 79.120...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_5129c_0090.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": ["m", "n", "v"], "liveout": ["m"], "returnvarname": ["returnv"], "execcmd": "", "funname": "busquedaBin1", "funargs": ["m", "n", "v"], "typemap": {"m": "array(float64#32)", "n": "int32", "v": "float64", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_5129c_0090.c"], "classmap": {}, "r...
elominp/BSQ/src/my_square_root.c
int my_square_root(int nb) { int i; i = 2; if (nb <= 0) return (0); else if (nb == 1) return (1); else while (1 == 1) { if ((i * i) == nb) return (i); else if (i >= nb) return (0); else ++i; } }
int my_square_root(intnb)
int my_square_root(int nb)
my_square_root
[ "int", "int" ]
{ "code": [ ".globl my_square_root\n.type my_square_root, @function\nmy_square_root:\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$2, -4(%rbp)\n\tcmpl\t$0, -20(%rbp)\n\tjg\t.L2\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": [ "85" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_55vw0ohoe9.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": ["nb"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "my_square_root", "funargs": ["nb"], "typemap": {"nb": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_55vw0ohoe9.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
nsierra-/nsh/libft/ft_sisnum.c
int ft_sisnum(const char *str) { if (!str) return (0); while (*str != '\0') { if (*str >= '0' && *str <= '9') ++str; else return (0); } return (1); }
int ft_sisnum(const char *str)
int ft_sisnum(const char *str)
ft_sisnum
[ "int", "const char *" ]
{ "code": [ ".globl ft_sisnum\n.type ft_sisnum, @function\nft_sisnum:\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, -8(%rbp)\n\tcmpq\t$0, -8(%rbp)\n\tjne\t.L4\n\tmovl\t$0, %eax\n\tjmp\t.L3\n.L6:\n\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": [ "\"csknlexu\"" ],...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_38qo7vlnp9.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": "ft_sisnum", "funargs": ["str"], "typemap": {"str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38qo7vlnp9.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
BartokW/sagetv/native/ax/TSnative/ConstData.c
char* DVBGenreCode( unsigned char code ) { char *p=""; switch ( code ) { case 0x00: p="";break; case 0x10: p="Movie/drama"; break; case 0x11: p="Detective/thriller"; break; case 0x12: p="Adventure/western/war"; break; case 0x13: p="Sci-Fi/fantasy/horror"; break; case 0x14: p="Comedy"; break; case 0x15: p...
char * DVBGenreCode(unsigned charcode)
char* DVBGenreCode( unsigned char code )
DVBGenreCode
[ "char *", "unsigned char" ]
{ "code": [ ".globl DVBGenreCode\n.type DVBGenreCode, @function\nDVBGenreCode:\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, -20(%rbp)\n\tleaq\t.LC0(%rip), %rax\n\tmovq\t%rax, -8(...
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": [ "694" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_41d6qk6c5o.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": ["code"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "DVBGenreCode", "funargs": ["code"], "typemap": {"code": "uint8", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_41d6qk6c5o.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
alomax/NonLinLoc/www_beta/src/GridLib.c
double InterpCubeLagrange(double xdiff, double ydiff, double zdiff, double vval000, double vval001, double vval010, double vval011, double vval100, double vval101, double vval110, double vval111) { double value; double oneMinusXdiff; double oneMinusYdiff; double oneMinusZdiff; oneM...
double InterpCubeLagrange(doublexdiff, doubleydiff, doublezdiff, doublevval000, doublevval001, doublevval010, doublevval011, doublevval100, doublevval101, doublevval110, doublevval111)
double InterpCubeLagrange(double xdiff, double ydiff, double zdiff, double vval000, double vval001, double vval010, double vval011, double vval100, double vval101, double vval110, double vval111)
InterpCubeLagrange
[ "double", "double", "double", "double", "double", "double", "double", "double", "double", "double", "double", "double" ]
{ "code": [ ".globl InterpCubeLagrange\n.type InterpCubeLagrange, @function\nInterpCubeLagrange:\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\tmovsd\t%xmm0, -40(%rbp)\n\tmovsd\t%xmm1, -48(%rbp)\n\tmovsd\t%xmm2,...
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": [ "37.0912151159", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_484u0iswji.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": ["xdiff", "ydiff", "zdiff", "vval000", "vval001", "vval010", "vval011", "vval100", "vval101", "vval110", "vval111"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "InterpCubeLagrange", "funargs": ["xdiff", "ydiff", "zdiff", "vval000", "vval001", "vval010", "vval011", "vval100", "vval...
nolink/algorithm/Leetcode/N165CompareVersion.c
int compareVersion(char* version1, char* version2) { int value1=0; int value2=0; while(1){ value1=0; value2=0; while((*version1) != '\0' && (*version1) != '.'){ value1 = (value1 * 10) + (*version1) - '0'; version1++; } while((*version2) != '...
int compareVersion(char *version1, char *version2)
int compareVersion(char* version1, char* version2)
compareVersion
[ "int", "char *", "char *" ]
{ "code": [ ".globl compareVersion\n.type compareVersion, @function\ncompareVersion:\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$...
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": [ "\"eyvrypiuphulcnrwsymz...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_6181wmsekn.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": ["version1", "version2"], "liveout": ["version1", "version2"], "returnvarname": ["returnv"], "execcmd": "", "funname": "compareVersion", "funargs": ["version1", "version2"], "typemap": {"version1": "string", "version2": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_6181wms...
turboscrew/rpi_stub/util.c
int util_hex_to_nib(char ch) { int val; switch (ch) { case 'a': case 'A': val = 10; break; case 'b': case 'B': val = 11; break; case 'c': case 'C': val = 12; break; case 'd': case 'D': val = 13; break; case 'e': case 'E': val = 14; break; case 'f': case 'F': val = 15; break; defa...
int util_hex_to_nib(charch)
int util_hex_to_nib(char ch)
util_hex_to_nib
[ "int", "char" ]
{ "code": [ ".globl util_hex_to_nib\n.type util_hex_to_nib, @function\nutil_hex_to_nib:\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, -20(%rbp)\n\tmovsbl\t-20(%rbp), %eax\n\tsubl\...
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": [ "49" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_58rx4r0yik.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": "util_hex_to_nib", "funargs": ["ch"], "typemap": {"ch": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_58rx4r0yik.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
jde-maga/lem-in/libft/src/ft_multi_strchr.c
int ft_multi_strchr(char *s, char *src) { char *bufs; bufs = s; while (*src) { while (*s) { if (*s == *src) return (1); s++; } s = bufs; src++; } return (0); }
int ft_multi_strchr(char *s, char *src)
int ft_multi_strchr(char *s, char *src)
ft_multi_strchr
[ "int", "char *", "char *" ]
{ "code": [ ".globl ft_multi_strchr\n.type ft_multi_strchr, @function\nft_multi_strchr:\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\tmovq\t-24(%rbp), %rax\n\tm...
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": [ "\"qufqmlzpg\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_43omhysg_f.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": ["s", "src"], "liveout": ["s", "src"], "returnvarname": ["returnv"], "execcmd": "", "funname": "ft_multi_strchr", "funargs": ["s", "src"], "typemap": {"s": "string", "src": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_43omhysg_f.c"], "classmap": {}, "range": {}, "needs_ca...
imruf84/tmsolver/projects/solver/src/utils.c
long nCr(long n, long r) { if (n < r) return 0; if (r > n/2) return nCr(n, n-r); long out = 1; for(long k = 1; k <= r; ++k) { out *= n-k+1; out /= k; } return out; }
long nCr(longn, longr)
long nCr(long n, long r)
nCr
[ "long", "long", "long" ]
{ "code": [ ".globl nCr\n.type nCr, @function\nnCr:\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\tmovq\t%rdi, -24(%rbp)\n\tmovq\t%rsi, -32(%rbp)\n\tmovq\t-24(%rbp), %rax\n\tcmpq\t-32(%rbp), %...
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": [ "34", "22" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_35euivn451.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", "r"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "nCr", "funargs": ["n", "r"], "typemap": {"n": "int64", "r": "int64", "returnv": "int64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35euivn451.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
pmq20/ruby-compiler/ruby/ext/socket/constdefs.c
int rsock_family_to_int(const char *str, long len, int *valp) { switch (len) { case 2: return -1; case 3: # 4517 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pmq20/ruby-compiler/refs/heads/master/ruby/ext/socket/constdefs.c" return -1; ...
int rsock_family_to_int(const char *str, longlen, int *valp)
int rsock_family_to_int(const char *str, long len, int *valp)
rsock_family_to_int
[ "int", "const char *", "long", "int *" ]
{ "code": [ ".globl rsock_family_to_int\n.type rsock_family_to_int, @function\nrsock_family_to_int:\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, -8(%rbp)\n\tmovq\t%rsi, -16(%rbp)\n\tmovq\t%rdx, -24...
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": [ "\"tsmlrfgmuuums\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_37wp8r3444.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", "len", "valp"], "liveout": ["str", "valp"], "returnvarname": ["returnv"], "execcmd": "", "funname": "rsock_family_to_int", "funargs": ["str", "len", "valp"], "typemap": {"str": "string", "len": "int64", "valp": "array(int32#32)", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005...
Mugurell/Learning/C/Gookin_CAIO/book 4 - Advanced/cmplib.c
int c_sensitive(char *a, char *b) { int x; for(x=0; a[x] != '\0' && b[x] != '\0'; x++) { if(a[x] > b[x]) return 1; else if(a[x] < b[x]) return -1; } return 0; }
int c_sensitive(char *a, char *b)
int c_sensitive(char *a, char *b)
c_sensitive
[ "int", "char *", "char *" ]
{ "code": [ ".globl c_sensitive\n.type c_sensitive, @function\nc_sensitive:\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, -4(%rbp)\n\tjmp\t.L2\n.L7:\n...
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": [ "\"iykduh\"", "...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_57lpldixze.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": ["a", "b"], "returnvarname": ["returnv"], "execcmd": "", "funname": "c_sensitive", "funargs": ["a", "b"], "typemap": {"a": "string", "b": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_57lpldixze.c"], "classmap": {}, "range": {}, "needs_cast": {}, "gl...
dlna/DeveloperToolsForUPnP/Tools/DeviceBuilder/FileStore/ILibParsers.c
int ILibIsDelimiter (const char* buffer, int offset, int buffersize, const char* Delimiter, int DelimiterLength) { int i=0; int RetVal = 1; if (DelimiterLength>buffersize) { return(0); } for(i=0;i<DelimiterLength;++i) { if (buffer[offset+i]!=Delimiter[i]) { RetVal = 0; break; } } retur...
int ILibIsDelimiter(const char *buffer, intoffset, intbuffersize, const char *Delimiter, intDelimiterLength)
int ILibIsDelimiter (const char* buffer, int offset, int buffersize, const char* Delimiter, int DelimiterLength)
ILibIsDelimiter
[ "int", "const char *", "int", "int", "const char *", "int" ]
{ "code": [ ".globl ILibIsDelimiter\n.type ILibIsDelimiter, @function\nILibIsDelimiter:\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%esi, -28(%rbp)\n\tmovl\t%edx, -32(%rbp)\n\tm...
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": [ "\"ynedwalgcrc\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_52dz041a21.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": ["buffer", "offset", "buffersize", "Delimiter", "DelimiterLength"], "liveout": ["buffer", "Delimiter"], "returnvarname": ["returnv"], "execcmd": "", "funname": "ILibIsDelimiter", "funargs": ["buffer", "offset", "buffersize", "Delimiter", "DelimiterLength"], "typemap": {"buffer": "string", "offset": "int32", ...
cmkaul/pycles/Csrc/kinematics.h
double interp_weno7(double phim3, double phim2, double phim1, double phi, double phip1, double phip2, double phip3){ const double p0 = (-1.0/4.0)*phim3 + (13.0/12.0) * phim2 + (-23.0/12.0) * phim1 + (25.0/12.0)*phi; const double p1 = (1.0/12.0)*phim2 + (-5.0/12.0)*phim1 + (13.0/12.0)*phi + (1.0/4.0)*phip1; ...
double interp_weno7(doublephim3, doublephim2, doublephim1, doublephi, doublephip1, doublephip2, doublephip3)
double interp_weno7(double phim3, double phim2, double phim1, double phi, double phip1, double phip2, double phip3)
interp_weno7
[ "double", "double", "double", "double", "double", "double", "double", "double" ]
{ "code": [ ".globl interp_weno7\n.type interp_weno7, @function\ninterp_weno7:\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$80, %rsp\n\tmovsd\t%xmm0, -152(%rbp)\n\tmovsd\t%xmm1, -160(%rbp)\n\tmovsd\t%xm...
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": [ "1.50872508277", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_53ty8ngpob.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": ["phim3", "phim2", "phim1", "phi", "phip1", "phip2", "phip3"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "interp_weno7", "funargs": ["phim3", "phim2", "phim1", "phi", "phip1", "phip2", "phip3"], "typemap": {"phim3": "float64", "phim2": "float64", "phim1": "float64", "phi": "float...
ptomato/gnome-inform7/src/inweb/Tangled/inweb.c
int Characters__combine_accent(int accent, int letter) { switch(accent) { case 0x0300: switch(letter) { case 'a': return 0xE0; case 'e': return 0xE8; case 'i': return 0xEC; case 'o': return 0xF2; case 'u': return 0xF9; case 'A': return 0xC0; case 'E': return 0xC8; case 'I': return 0xCC; case 'O': ...
int Characters__combine_accent(intaccent, intletter)
int Characters__combine_accent(int accent, int letter)
Characters__combine_accent
[ "int", "int", "int" ]
{ "code": [ ".globl Characters__combine_accent\n.type Characters__combine_accent, @function\nCharacters__combine_accent:\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%esi, -8(%rbp...
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": [ "89", "25" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_47vm4ueaj9.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": ["accent", "letter"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "Characters__combine_accent", "funargs": ["accent", "letter"], "typemap": {"accent": "int32", "letter": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_47vm4ueaj9.c"], "classmap": {},...
TheArbiter/Computing1/doomsday.c
int dayOfWeek (int doomsday, int leapYear, int month, int day) { int dayOfWeek = 0; int dateOfDoomsday = 0; if (month == 1 && leapYear == 1) { dateOfDoomsday=4; }else if (month == 1 && leapYear == 0) { dateOfDoomsday=3; }else if (month == 2 && leapYear == 1) { dateOfDoomsday=29; }else if (month == 2 && ...
int dayOfWeek(intdoomsday, intleapYear, intmonth, intday)
int dayOfWeek (int doomsday, int leapYear, int month, int day)
dayOfWeek
[ "int", "int", "int", "int", "int" ]
{ "code": [ ".globl dayOfWeek\n.type dayOfWeek, @function\ndayOfWeek:\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\tmovl\t%edx, -28(%rbp)\n\tmovl\t%ecx, -32(%rb...
null
#include <stdio.h> #include <stdlib.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": [ "124", "117", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_34f9aidant.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": ["doomsday", "leapYear", "month", "day"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "dayOfWeek", "funargs": ["doomsday", "leapYear", "month", "day"], "typemap": {"doomsday": "int32", "leapYear": "int32", "month": "int32", "day": "int32", "returnv": "int32"}, "required_includes": ...
timmontague/euler-solutions/112/bouncy-numbers.c
bool is_bouncy(int n) { bool up = false, down = false; int lasti = n % 10; n = n/10; while(n) { int i = n % 10; n = n/10; if (i > lasti) up = true; if (i < lasti) down = true; if (up && down) return true; lasti = i; } return false; }
int is_bouncy(intn)
bool is_bouncy(int n)
is_bouncy
[ "int", "int" ]
{ "code": [ ".globl is_bouncy\n.type is_bouncy, @function\nis_bouncy:\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$0, -16(%rbp)\n\tmovl\t$0, -12(%rbp)\n\tmovl\t-20(%rbp), %edx\n...
#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 <stdio.h> #include <stdbool.h> # 1
{ "dummy_funcs": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ], "dummy_funcs_seed": [ 0, 0, 0, 0, ...
{ "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": [ "73" ], "va...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577744nsdvyb89.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. u...
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_35n69tvolt.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": "is_bouncy", "funargs": ["n"], "typemap": {"n": "int32", "returnv": "bool"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35n69tvolt.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
nicaraguabinary/lib-tlali-openstreetmap/src/tests/tests-main.c
float TLAString_toFloat(const char* string){ const char sign= (*string); float value = 0; if(sign=='-' || sign=='+') string++; while((*string)!='\0' && (*string)!='.'){ value = (value * 10.0f) + ((*string) - 48.0f); string++; } if((*string)=='.'){ float factorDivisor = 10.0f; string++; while((*string)...
float TLAString_toFloat(const char *string)
float TLAString_toFloat(const char* string)
TLAString_toFloat
[ "float", "const char *" ]
{ "code": [ ".globl TLAString_toFloat\n.type TLAString_toFloat, @function\nTLAString_toFloat:\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-24(%rbp), %rax\n\tmovzbl\t(%rax), %eax...
null
#include <stdio.h> //FILE* #include <time.h> //clock_t, clock() # 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": [ "\"\"" ], "...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_56ov4y8877.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": ["string"], "liveout": ["string"], "returnvarname": ["returnv"], "execcmd": "", "funname": "TLAString_toFloat", "funargs": ["string"], "typemap": {"string": "string", "returnv": "float32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_56ov4y8877.c"], "classmap": {}, "range": {}, "needs_cast": {}, "glob...
bju2000/android_kernel_lge_msm8994/drivers/broadcast/oneseg/fc8300/fc8300Driver/app/clib.c
unsigned char toint(char c) { if ( c >= '0' && c <= '9' ) return(c-'0'); else if ( c >= 'a' && c <= 'f' ) return(c-'a'+10); else if ( c >= 'A' && c <= 'F' ) return(c-'A'+10); else return(0); }
unsigned char toint(charc)
unsigned char toint(char c)
toint
[ "unsigned char", "char" ]
{ "code": [ ".globl toint\n.type toint, @function\ntoint:\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$47, -4(%rbp)\n\tjle\t.L2\n\tcmpb\t$57, -4(%rbp)\n\tjg\t....
null
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.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": [ "30" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_60zvtsqmos.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 ...
cm-12.1
null
{"livein": ["c"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "toint", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "uint8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_60zvtsqmos.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
shines77/my_docs/tech/string-match/LeetCode_strstr.c
int strStr(char * haystack, char * needle) { int i, j; if (needle[0] == '\0') return 0; for (i = 0; haystack[i] != '\0'; i++) { for (j = 0; haystack[i + j] == needle[j]; j++) { if (needle[j + 1] == '\0') return i; if (haystack[i + j + 1] == '\0') ...
int strStr(char *haystack, char *needle)
int strStr(char * haystack, char * needle)
strStr
[ "int", "char *", "char *" ]
{ "code": [ ".globl strStr\n.type strStr, @function\nstrStr:\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\tmovq\t-32(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\ttest...
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": [ "\"hkmdsjlzrbidfrhde\""...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_4599cy66ri.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": ["haystack", "needle"], "liveout": ["haystack", "needle"], "returnvarname": ["returnv"], "execcmd": "", "funname": "strStr", "funargs": ["haystack", "needle"], "typemap": {"haystack": "string", "needle": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_4599cy66ri.c"], "classm...
guonaihong/exercise/corecode/ant_string.c
char *ant_dump_num(char *dst, unsigned int ui, int base) { char *d = dst; int n = sizeof(unsigned int) * 8; static const char hex[] = "0123456789abcdef"; if (base == 2) { while (n--) *dst++ = hex[(ui >> n) & 0x1]; }else if (base == 16) { do { n -= 4; ...
char * ant_dump_num(char *dst, unsigned intui, intbase)
char *ant_dump_num(char *dst, unsigned int ui, int base)
ant_dump_num
[ "char *", "char *", "unsigned int", "int" ]
{ "code": [ ".globl ant_dump_num\n.type ant_dump_num, @function\nant_dump_num:\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%esi, -28(%rbp)\n\tmovl\t%edx, -32(%rbp)\n\tmovq\t-24(...
null
#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": [ "\"zzrizzbuhxcooiuabljw...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_52957_372y.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": ["dst", "ui", "base"], "liveout": ["dst"], "returnvarname": ["returnv"], "execcmd": "", "funname": "ant_dump_num", "funargs": ["dst", "ui", "base"], "typemap": {"dst": "string", "ui": "uint32", "base": "int32", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_52957_372y.c"], "classmap...
BartokW/sagetv/native/ax/TSnative/AVUtility.c
int Mepg2AspectRatioDeno( unsigned char code, long width, long height ) { switch ( code & 0x0f ) { case 1: return 1; case 2: return 3; case 3: return 9; case 4: return 100; case 5: return 11; case 6: return 11; case 7: return 11; case 8: return 33; case 0x0f: return width; default: re...
int Mepg2AspectRatioDeno(unsigned charcode, longwidth, longheight)
int Mepg2AspectRatioDeno( unsigned char code, long width, long height )
Mepg2AspectRatioDeno
[ "int", "unsigned char", "long", "long" ]
{ "code": [ ".globl Mepg2AspectRatioDeno\n.type Mepg2AspectRatioDeno, @function\nMepg2AspectRatioDeno:\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\tmovq\t%rsi, -16(%rbp)\n\tmovq\t%rdx, -24(...
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": [ "138", "24", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_374ce04b3m.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": ["code", "width", "height"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "Mepg2AspectRatioDeno", "funargs": ["code", "width", "height"], "typemap": {"code": "uint8", "width": "int64", "height": "int64", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_374ce04...
DeadDork/learning_c/KnR/ch_4/4.06/4-6.c
int strcomp(char s[], char ss[]) { int i; for (i = 0; s[i] != '\0' && ss[i] != '\0' && s[i] == ss[i]; ++i); if (s[i] == ss[i]) return 1; else return 0; }
int strcomp(char *s, char *ss)
int strcomp(char s[], char ss[])
strcomp
[ "int", "char *", "char *" ]
{ "code": [ ".globl strcomp\n.type strcomp, @function\nstrcomp:\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\tmovq\t%rsi, -32(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L4:\n\taddl\t$1, ...
null
#include <ctype.h> #include <math.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": [ "\"pdevengtufbkhpomdrgs...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_40e7cd8_qq.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": ["s", "ss"], "liveout": ["s", "ss"], "returnvarname": ["returnv"], "execcmd": "", "funname": "strcomp", "funargs": ["s", "ss"], "typemap": {"s": "string", "ss": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_40e7cd8_qq.c"], "classmap": {}, "range": {}, "needs_cast": {}, "gl...
pizhi/HttpServer/http_server.c
int read_line(int fd,char *buf,int size) { int i = 0; char ch; for(i = 0;i < size;++i) { int n = recv(fd,&ch,1,0); if(1 == n) { buf[i] = ch; if(ch == '\n') break; } else { return -1; } } return i+1; }
int read_line(intfd, char *buf, intsize)
int read_line(int fd,char *buf,int size)
read_line
[ "int", "int", "char *", "int" ]
{ "code": [ ".globl read_line\n.type read_line, @function\nread_line:\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\tmovl\t%edx, -40(%rbp)\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 <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> /* See NOTES */ #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #include <sys/select.h> #include <sys/time.h> #include <sys/ipc.h> ...
{ "dummy_funcs": [ "#define MAX_STRING_SIZE 32\nint recv (int b, char * d, int e, int o) {\n\tint returnv;\n\tint temp_variable = 45;\n\treturnv = temp_variable;\n\treturn returnv;\n}\n", "#define MAX_STRING_SIZE 32\nint recv (int b, char * d, int e, int o) {\n\tint returnv;\n\tint temp_variable = 45;\n\tretu...
{ "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": [ "44", "\"iy\"",...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577759ruwo_lzk.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. u...
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_51f0iknw3i.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", "buf", "size"], "liveout": ["buf"], "returnvarname": ["returnv"], "execcmd": "", "funname": "read_line", "funargs": ["fd", "buf", "size"], "typemap": {"fd": "int32", "buf": "string", "size": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_51f0iknw3i.c"], "classmap": {}...
camsci/meteor-pi/archive/20150309_observe/src/asciidouble.c
int StrWildcardTest(const char *test, const char *wildcard) { int i=0, j, k, mineat=0, maxeat=0; while ((wildcard[i]!='\0') && (wildcard[i]!='?') && (wildcard[i]!='*')) if (test[i] != wildcard[i]) { return 0; } else { i++; } if (wildcard[i]=='\0') return (test[i]=='\0'); j=i; while ((wildcard[j]=='?') || (...
int StrWildcardTest(const char *test, const char *wildcard)
int StrWildcardTest(const char *test, const char *wildcard)
StrWildcardTest
[ "int", "const char *", "const char *" ]
{ "code": [ ".globl StrWildcardTest\n.type StrWildcardTest, @function\nStrWildcardTest:\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$48, %rsp\n\tmovq\t%rdi, -40(%rbp)\n\tmovq\t%rsi, -48(%rbp)\n\tmovl\t$...
null
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.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": [ "\"xblaktxdyvshrrdedwgz...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_322z2jm55d.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": ["test", "wildcard"], "liveout": ["test", "wildcard"], "returnvarname": ["returnv"], "execcmd": "", "funname": "StrWildcardTest", "funargs": ["test", "wildcard"], "typemap": {"test": "string", "wildcard": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_322z2jm55d.c"], "class...
DeathlyDeep/DDDCPU16/src/emulator/parse.c
long read_hz(const char* string) { unsigned long result = 0; if (*string < '0' || *string > '9') return -1; do result = result * 10 + *string - '0'; while (*++string >= '0' && *string <= '9'); if (!*string) return result; switch (*string) { case 'G': re...
long read_hz(const char *string)
long read_hz(const char* string)
read_hz
[ "long", "const char *" ]
{ "code": [ ".globl read_hz\n.type read_hz, @function\nread_hz:\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$0, -8(%rbp)\n\tmovq\t-24(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\tcmpb...
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": [ "\"sbgxpbyhvpwnqz\"" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_45ji9ejb36.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": ["string"], "liveout": ["string"], "returnvarname": ["returnv"], "execcmd": "", "funname": "read_hz", "funargs": ["string"], "typemap": {"string": "string", "returnv": "int64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45ji9ejb36.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
RocketSumit/IC250P/assignment06/partA/my_functions.c
int compareStrings(char *a, char *b) { int count = 0; while(*(a + count) == *(b + count)) { count++; if(*(a + count) == '\0' && *(b + count) == '\0') return 0; else if(*(a + count) == '\0') return 1; ...
int compareStrings(char *a, char *b)
int compareStrings(char *a, char *b)
compareStrings
[ "int", "char *", "char *" ]
{ "code": [ ".globl compareStrings\n.type compareStrings, @function\ncompareStrings:\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, -4(%rbp)\n\tjmp\t.L...
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": [ "\"ewfwieowjmavediygyvq...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_64qmy8wen0.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": ["a", "b"], "returnvarname": ["returnv"], "execcmd": "", "funname": "compareStrings", "funargs": ["a", "b"], "typemap": {"a": "string", "b": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64qmy8wen0.c"], "classmap": {}, "range": {}, "needs_cast": {}, ...
moki/The-C-Programming-Language-walkthrough/chapter-4-Functions-and-Program-Structure/4.1/mini-grep.c
int stridx(char s[], char t[]) { int i, j, k; for (i = 0; s[i] != '\0'; i++) { for (j = i, k = 0; t[k] != '\0' && s[j] == t[k]; j++, k++) { } if (k > 0 && t[k] == '\0') { return i; } } return -1; }
int stridx(char *s, char *t)
int stridx(char s[], char t[])
stridx
[ "int", "char *", "char *" ]
{ "code": [ ".globl stridx\n.type stridx, @function\nstridx:\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, -12(%rbp)\n\tjmp\t.L2\n.L8:\n\tmovl\t-12(%r...
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": [ "\"maxtvkmorjhawdw\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_62n_plm0it.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": ["s", "t"], "liveout": ["s", "t"], "returnvarname": ["returnv"], "execcmd": "", "funname": "stridx", "funargs": ["s", "t"], "typemap": {"s": "string", "t": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_62n_plm0it.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals...
Semyonic/Study/C/patternMatchingWithPointers.c
int match(char *a, char *b) { int position = 0; char *x, *y; x = a; y = b; while (*a) { while (*x == *y) { x++; y++; if (*x == '\0' || *y == '\0') break; } if (*y == '\0') break; a++; position...
int match(char *a, char *b)
int match(char *a, char *b)
match
[ "int", "char *", "char *" ]
{ "code": [ ".globl match\n.type match, @function\nmatch:\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, -40(%rbp)\n\tmovq\t%rsi, -48(%rbp)\n\tmovl\t$0, -20(%rbp)\n\tmovq\t-40(%rbp), %rax\n\tmovq\t%r...
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": [ "\"cturkdwpcmbavsjzowmb...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_40ej_m2w0p.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": ["a", "b"], "returnvarname": ["returnv"], "execcmd": "", "funname": "match", "funargs": ["a", "b"], "typemap": {"a": "string", "b": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_40ej_m2w0p.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals"...
DIVGAMES/DIV-Games-Studio/bits.c
int vtweak(int value, int shift, int scale) { return((int)(((((value+(shift<<1)-255-127.5)*scale/(double)(256-scale)+127.5)>(0)?((value+(shift<<1)-255-127.5)*scale/(double)(256-scale)+127.5):(0)))>(255)?(255):((((value+(shift<<1)-255-127.5)*scale/(double)(256-scale)+127.5)>(0)?((value+(shift<<1)-255-127.5)*scale/(doub...
int vtweak(intvalue, intshift, intscale)
int vtweak(int value, int shift, int scale)
vtweak
[ "int", "int", "int", "int" ]
{ "code": [ ".globl vtweak\n.type vtweak, @function\nvtweak:\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%esi, -8(%rbp)\n\tmovl\t%edx, -12(%rbp)\n\tmovl\t-8(%rbp), %eax\n\tleal\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": [ "96", "23", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_35yhsq_16i.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": ["value", "shift", "scale"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "vtweak", "funargs": ["value", "shift", "scale"], "typemap": {"value": "int32", "shift": "int32", "scale": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35yhsq_16i.c"], "clas...
songplay/c/interview_questions/flipbit5.3/flip.c
int findLongest1s(int x) { int k; int longest=0; int l1=0; int l2=0; int size = 8* sizeof(int); for(k=0; k < size; k++) { while (x >> k & 0x1) { l1++; k++; } if ((l1 + l2) > longest) longest = l1 + l2; l2 = l1; l1 = 0; if (((x >> k & 0x1) == 0x0) && (x >> (k+1) & 0x1 == 0x0)) { l2 =...
int findLongest1s(intx)
int findLongest1s(int x)
findLongest1s
[ "int", "int" ]
{ "code": [ ".globl findLongest1s\n.type findLongest1s, @function\nfindLongest1s:\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, -36(%rbp)\n\tmovl\t$0, -16(%rbp)\n\tmovl\t$0, -12(%rbp)\n\tmovl\t$0, -...
null
#include <stdio.h> #include <stdbool.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": [ "70" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_309zb2ya4t.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": ["x"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "findLongest1s", "funargs": ["x"], "typemap": {"x": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_309zb2ya4t.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
micshe/minio/minio.c
int character(char buf[8]) { if(buf[0] == 27 && buf[1] >= 32 && buf[2] == 0) return buf[1]; else if(buf[0] == 27 && buf[1] < 32 && buf[1] != 27 && buf[1] != 13 && buf[1] != 9 && buf[2] == 0) return buf[1] + 'a'-1; else if(buf[0] == 27 && buf[1] < 32 && buf[1] == 9 && buf[2] == 0) return 'i'; else if(buf[0]...
int character(char *buf)
int character(char buf[8])
character
[ "int", "char *" ]
{ "code": [ ".globl character\n.type character, @function\ncharacter:\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, -8(%rbp)\n\tmovq\t-8(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\tcmpb\t$27, %al\n\tjne\...
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": [ "[52, 85, 42, 27, 10, 4...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_54d0dqbi3a.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": ["buf"], "liveout": ["buf"], "returnvarname": ["returnv"], "execcmd": "", "funname": "character", "funargs": ["buf"], "typemap": {"buf": "array(int8#8)", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_54d0dqbi3a.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
segfaulthunter/k-and-r/2-3.c
int htoi(char s[]) { char v; int i = 0, r = 0; if (s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) { i = 2; } for (; s[i] != '\0'; ++i) { if (s[i] >= '0' && s[i] <= '9') { v = s[i] - '0'; } else if (s[i] >= 'a' ...
int htoi(char *s)
int htoi(char s[])
htoi
[ "int", "char *" ]
{ "code": [ ".globl htoi\n.type htoi, @function\nhtoi:\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\tmovl\t$0, -4(%rbp)\n\tmovq\t-24(%rbp), %rax\n\tmovzbl\t(%rax),...
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": [ "\"kifymqoijwylqysquwlu...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_51j_2zlri_.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": ["s"], "liveout": ["s"], "returnvarname": ["returnv"], "execcmd": "", "funname": "htoi", "funargs": ["s"], "typemap": {"s": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_51j_2zlri_.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
daviwesley/Exercicios-Resolvidos-em-C/Matrizes/Atividade_Matrizes.c
int maior_valor_matriz(int matriz[4][4]) { int maior=0,i,j; for(i=0;i<4;i++){ for(j=0;j<4;j++){ if(matriz[i][j]>maior) maior=matriz[i][j]; } } return maior; }
int maior_valor_matriz(intmatriz)
int maior_valor_matriz(int matriz[4][4])
maior_valor_matriz
[ "int", "int" ]
{ "code": [ ".globl maior_valor_matriz\n.type maior_valor_matriz, @function\nmaior_valor_matriz:\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, -12(%rbp)\n\tmovl\t$0, -8(%rbp)\...
null
#include <stdio.h> #include <stdlib.h> #include <stdbool.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": [ "[93, 33, 64, 26, 120, ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_591r3dtk4h.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": ["matriz"], "liveout": ["matriz"], "returnvarname": ["returnv"], "execcmd": "", "funname": "maior_valor_matriz", "funargs": ["matriz"], "typemap": {"matriz": "array(int32#16)", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_591r3dtk4h.c"], "classmap": {}, "range": {}, "needs_cast": {...
zning1994/practice/Program/CLanguage/Class/class1119/ex3.c
int yamadie(char n) { if(n>='A'&&n<='Z') return 1; else if(n>='a'&&n<='z') return 2; else if(n>='0'&&n<='9') return 3; else return 4; }
int yamadie(charn)
int yamadie(char n)
yamadie
[ "int", "char" ]
{ "code": [ ".globl yamadie\n.type yamadie, @function\nyamadie:\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\tcmpb\t$64, -4(%rbp)\n\tjle\t.L2\n\tcmpb\t$90, -4(%rbp)\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": [ "92" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_63cpbut9uy.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": "yamadie", "funargs": ["n"], "typemap": {"n": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_63cpbut9uy.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
zw267/coding-practice/100-interview-problems/maxsum.c
int maxSum(int *a) { int max = 0, current = 0; int i; for (i = 0; a[i] != '\0'; i++) { current += a[i]; if (current > max) max = current; else if (0 > current) current = 0; } return max; }
int maxSum(int *a)
int maxSum(int *a)
maxSum
[ "int", "int *" ]
{ "code": [ ".globl maxSum\n.type maxSum, @function\nmaxSum:\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, -12(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n....
null
#include <stdio.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": [ "[41, 33, 83, 111, 124,...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_45uy_o8ri7.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"], "liveout": ["a"], "returnvarname": ["returnv"], "execcmd": "", "funname": "maxSum", "funargs": ["a"], "typemap": {"a": "array(int32#32)", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45uy_o8ri7.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
scanepa/apt-spy/trim.c
char *rtrim(char *s, const int d) { char *t= s; while(*s) s++; if (d == ' ') while(*--s==' ' || *s=='\t' || *s=='\r' || *s=='\n') *s= 0; else while(*--s==d) *s= 0; return t; }
char * rtrim(char *s, const intd)
char *rtrim(char *s, const int d)
rtrim
[ "char *", "char *", "const int" ]
{ "code": [ ".globl rtrim\n.type rtrim, @function\nrtrim:\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%esi, -28(%rbp)\n\tmovq\t-24(%rbp), %rax\n\tmovq\t%rax, -8(%rbp)\n\tjmp\t.L...
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": [ "\"xngfffsmdbn\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_29hofhcq6u.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": ["s", "d"], "liveout": ["s"], "returnvarname": ["returnv"], "execcmd": "", "funname": "rtrim", "funargs": ["s", "d"], "typemap": {"s": "string", "d": "int32", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_29hofhcq6u.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
karvonz/Mandelbrot/soc_plasma/vhdl/plasma_core/kernel/math.c
int FP_Cmp(float a_fp, float b_fp) { unsigned long a, b; unsigned long as, ae, af, bs, be, bf; int gt; a = (*(unsigned long*)&(a_fp)); b = (*(unsigned long*)&(b_fp)); if(a == b) return 0; as = a >> 31; bs = b >> 31; if(as > bs) return -1; if(as < bs) return 1; gt = as ...
int FP_Cmp(floata_fp, floatb_fp)
int FP_Cmp(float a_fp, float b_fp)
FP_Cmp
[ "int", "float", "float" ]
{ "code": [ ".globl FP_Cmp\n.type FP_Cmp, @function\nFP_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\tmovss\t%xmm0, -84(%rbp)\n\tmovss\t%xmm1, -88(%rbp)\n\tleaq\t-84(%rbp), %rax\n\tmovq\t(%rax), %rax\n\tmo...
null
#include <math.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": [ "19.78143626", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_324n499d_1.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_fp", "b_fp"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "FP_Cmp", "funargs": ["a_fp", "b_fp"], "typemap": {"a_fp": "float32", "b_fp": "float32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_324n499d_1.c"], "classmap": {}, "range": {}, "needs_cast": ...
ETrun/ETrun/src/game/q_shared.c
char *Q_CleanStr( char *string ) { char* d; char* s; int c; s = string; d = string; while ( ( c = *s ) != 0 ) { if ( ( s && *( s ) == '^' && *( ( s ) + 1 ) && *( ( s ) + 1 ) != '^' ) ) { s++; } else if ( c >= 0x20 && c <= 0x7E ) { *d++ = c; } s++; } *d = '\0'; return string; }
char * Q_CleanStr(char *string)
char *Q_CleanStr( char *string )
Q_CleanStr
[ "char *", "char *" ]
{ "code": [ ".globl Q_CleanStr\n.type Q_CleanStr, @function\nQ_CleanStr:\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, -40(%rbp)\n\tmovq\t-40(%rbp), %rax\n\tmovq\t%rax, -8(%rbp)\n\tmovq\t-40(%rbp), ...
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": [ "\"emjpbhdaggyfgwpuepdo...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_38prx3yyz3.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": ["string"], "liveout": ["string"], "returnvarname": ["returnv"], "execcmd": "", "funname": "Q_CleanStr", "funargs": ["string"], "typemap": {"string": "string", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38prx3yyz3.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []...
nathan818fr/Epitech_Bistromathique/v2014/lib/my/src/my_strncmp.c
int my_strncmp(char *s1, char *s2, int n) { int i; if (n <= 0) { return (0); } i = 0; while (i < n - 1 && s1[i] != '\0' && s2[i] != '\0' && s1[i] == s2[i]) { i = i + 1; } return (s1[i] - s2[i]); }
int my_strncmp(char *s1, char *s2, intn)
int my_strncmp(char *s1, char *s2, int n)
my_strncmp
[ "int", "char *", "char *", "int" ]
{ "code": [ ".globl my_strncmp\n.type my_strncmp, @function\nmy_strncmp:\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%edx, -36(%rbp)\n\tcmpl\t$0, -36(%r...
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": [ "\"yfzhezznsaalkehpibrd...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_48xordn6t2.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", "n"], "liveout": ["s1", "s2"], "returnvarname": ["returnv"], "execcmd": "", "funname": "my_strncmp", "funargs": ["s1", "s2", "n"], "typemap": {"s1": "string", "s2": "string", "n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_48xordn6t2.c"], "classmap": {}, "ra...
prateekk91/SpojSolutions/ONP-4114833-src.c
int in(char a) { int y=a=='^'?70:a=='/'?60:a=='*'?50:a=='-'?40:a=='+'?30:a=='('?20:0; return y; }
int in(chara)
int in(char a)
in
[ "int", "char" ]
{ "code": [ ".globl in\n.type in, @function\nin:\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, -20(%rbp)\n\tcmpb\t$94, -20(%rbp)\n\tje\t.L2\n\tcmpb\t$47, -20(%rbp)\n\tje\t.L3\n\tc...
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": [ "1" ], "var...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_58yf2ldn8s.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"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "in", "funargs": ["a"], "typemap": {"a": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_58yf2ldn8s.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
arcutright/sudoku-solver/sudoku-solver.c
bool isCorrect(int board[][9]) { int r, c; int validsum = 0, sum = 0; for(r=1; r <= 9; r++){ validsum += r; } for(r=0; r < 9; r++){ sum = 0; for(c=0; c < 9; c++){ sum += board[r][c]; } if(sum != validsum) return false; } return true; }
int isCorrect(intboard)
bool isCorrect(int board[][9])
isCorrect
[ "int", "int" ]
{ "code": [ ".globl isCorrect\n.type isCorrect, @function\nisCorrect:\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\tmovl\t$0, -4(%rbp)\n\tmovl\t$1, -16(%rbp)\n\tjm...
#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 <stdio.h> //printf, file, getline #include <pthread.h> //multithreading #include <unistd.h> #include <sys/types.h> //types #include <stdlib.h> #include <semaphore.h> //sem_wait, sem_post, sem_t #include <string.h> //strtok #include <stdbool.h> //bool, true, false #include <time.h> /...
{ "dummy_funcs": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ], "dummy_funcs_seed": [ 0, 0, 0, 0, ...
{ "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": [ "[22, 43, 25, 58, 116, ...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_35777594wpx5u_k.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. u...
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_38ndskjr87.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": ["board"], "liveout": ["board"], "returnvarname": ["returnv"], "execcmd": "", "funname": "isCorrect", "funargs": ["board"], "typemap": {"board": "array(int32#32)", "returnv": "bool"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38ndskjr87.c"], "classmap": {}, "range": {}, "needs_cast": {"board": {"old...
hustlijian/oj-jobdu/1009/main.c
void tree(int *T, char *s) { int i, t, j; for (i = 0; s[i]; i++) { t = s[i] - '0'; for (j = 1; j < 1024;) { if (T[j]<0) { T[j] = t;break; } j *= 2; if (T[j/2]<t) { j++; } } } }
void tree(int *T, char *s)
void tree(int *T, char *s)
tree
[ "void", "int *", "char *" ]
{ "code": [ ".globl tree\n.type tree, @function\ntree:\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, -12(%rbp)\n\tjmp\t.L2\n.L7:\n\tmovl\t-12(%rbp), %...
null
#include <stdio.h> #include <string.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": [ "[25, 37, 94, 62, 48, 4...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_49njscmbfv.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": ["T", "s"], "liveout": ["T", "s"], "returnvarname": [], "execcmd": "", "funname": "tree", "funargs": ["T", "s"], "typemap": {"T": "array(int32#32)", "s": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_49njscmbfv.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
lucidfrontier45/ziproxy/src/jp2tools.c
int return_downscaled_array_len (const int width, const int xpos, const int xstep) { int useful_width = width - xpos; int divided; if ((xstep == 0) || (xpos >= width)) return (0); if (xstep == 1) return (useful_width); if ((useful_width > xstep) && (xstep > 1)) { divided = useful_width / xstep; if ((div...
int return_downscaled_array_len(const intwidth, const intxpos, const intxstep)
int return_downscaled_array_len (const int width, const int xpos, const int xstep)
return_downscaled_array_len
[ "int", "const int", "const int", "const int" ]
{ "code": [ ".globl return_downscaled_array_len\n.type return_downscaled_array_len, @function\nreturn_downscaled_array_len:\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...
null
#include <string.h> #include <stdlib.h> #include <math.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": [ "7", "89", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_418obycmgl.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": ["width", "xpos", "xstep"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "return_downscaled_array_len", "funargs": ["width", "xpos", "xstep"], "typemap": {"width": "int32", "xpos": "int32", "xstep": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_418...
cbdevnet/traccoon/neth.c
int decodedStrlen(char* str, int mlen){ int i,c; for(i=0,c=0;str[i]!='\0'&&(mlen==-1||i<mlen);i++,c++){ if(str[i]=='%'&&str[i+1]!='\0'&&str[i+2]!='\0'){ i+=2; } } return c; }
int decodedStrlen(char *str, intmlen)
int decodedStrlen(char* str, int mlen)
decodedStrlen
[ "int", "char *", "int" ]
{ "code": [ ".globl decodedStrlen\n.type decodedStrlen, @function\ndecodedStrlen:\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%esi, -28(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tmovl\t$0, ...
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": [ "\"rygxkljigajlcbabsqrr...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_41mpbso3rx.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", "mlen"], "liveout": ["str"], "returnvarname": ["returnv"], "execcmd": "", "funname": "decodedStrlen", "funargs": ["str", "mlen"], "typemap": {"str": "string", "mlen": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_41mpbso3rx.c"], "classmap": {}, "range": {}, "needs_c...
lcabrini/prog-c/gcd/main.c
long gcd(long a, long b) { int i, d; d = 1; for (i = 1; i <= a && i <= b; ++i) { if ((a % i == 0) && (b % i == 0)) { d = i; } } return d; }
long gcd(longa, longb)
long gcd(long a, long b)
gcd
[ "long", "long", "long" ]
{ "code": [ ".globl gcd\n.type gcd, @function\ngcd:\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\tmovq\t%rsi, -32(%rbp)\n\tmovl\t$1, -4(%rbp)\n\tmovl\t$1, -8(%rbp)\n\tjmp\t.L2\n.L5:\n\t...
null
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <errno.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": [ "119", "83" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_29js1z_f5c.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": "int64", "b": "int64", "returnv": "int64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_29js1z_f5c.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
gjover/Lima_subtree/camera/adsc/sdk/adsc_sources/src_std/auxlib/swpbyt.c
int swpbyt(int mode, int length, char* array) { char temp, *ap; int i; ap=array; if (mode == 0) { if ( length%2 != 0) return (-1); else { for (i=0; i<length; i+=2) { temp = *ap; *ap = *(ap+1); *(ap+1) = temp; ap+=2; } } } else if (mode =...
int swpbyt(intmode, intlength, char *array)
int swpbyt(int mode, int length, char* array)
swpbyt
[ "int", "int", "int", "char *" ]
{ "code": [ ".globl swpbyt\n.type swpbyt, @function\nswpbyt:\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\tmovq\t%rdx, -32(%rbp)\n\tmovq\t-32(%rbp), %rax\n\tmov...
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": [ "47", "14", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_46aiuow1gi.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": ["mode", "length", "array"], "liveout": ["array"], "returnvarname": ["returnv"], "execcmd": "", "funname": "swpbyt", "funargs": ["mode", "length", "array"], "typemap": {"mode": "int32", "length": "int32", "array": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_46aiuow1gi.c"...
abh/ezmlm-idx/case_startb.c
int case_startb(const char *s,unsigned int len,const char *t) { unsigned char x; unsigned char y; for (;;) { y = *t++ - 'A'; if (y <= 'Z' - 'A') y += 'a'; else y += 'A'; if (!y) return 1; if (!len) return 0; --len; x = *s++ - 'A'; if (x <= 'Z' - 'A') x += 'a'; else x += 'A'; if (x...
int case_startb(const char *s, unsigned intlen, const char *t)
int case_startb(const char *s,unsigned int len,const char *t)
case_startb
[ "int", "const char *", "unsigned int", "const char *" ]
{ "code": [ ".globl case_startb\n.type case_startb, @function\ncase_startb:\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%esi, -28(%rbp)\n\tmovq\t%rdx, -40(%rbp)\n.L10:\n\tmovq\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": [ "\"zokhesb\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_64gh5q19uf.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": ["s", "len", "t"], "liveout": ["s", "t"], "returnvarname": ["returnv"], "execcmd": "", "funname": "case_startb", "funargs": ["s", "len", "t"], "typemap": {"s": "string", "len": "uint32", "t": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64gh5q19uf.c"], "classmap": {}, "ra...
emilydolson/forestcat/pyrobot/brain/psom/csom_src/som_pak-dev/median.c
float median5(float yy,float kaa, float koo, float nee, float vii) { float array[5]; float tmp; int i,j; array[0]=yy; array[1]=kaa; array[2]=koo; array[3]=nee; array[4]=vii; for(j=0;j<5-1;j++) for(i=0;i<5-1-j;i++){ if(array[i]>array[i+1]) { tmp=array[i]; array[i] = array[i+1]; array[i+1]=tmp; ...
float median5(floatyy, floatkaa, floatkoo, floatnee, floatvii)
float median5(float yy,float kaa, float koo, float nee, float vii)
median5
[ "float", "float", "float", "float", "float", "float" ]
{ "code": [ ".globl median5\n.type median5, @function\nmedian5:\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$80, %rsp\n\tmovss\t%xmm0, -52(%rbp)\n\tmovss\t%xmm1, -56(%rbp)\n\tmovss\t%xmm2, -60(%rbp)\n\t...
null
#include <stdio.h> #include <stdlib.h> #include <math.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": [ "75.8080320612", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_616xjy2t2e.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": ["yy", "kaa", "koo", "nee", "vii"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "median5", "funargs": ["yy", "kaa", "koo", "nee", "vii"], "typemap": {"yy": "float32", "kaa": "float32", "koo": "float32", "nee": "float32", "vii": "float32", "returnv": "float32"}, "required_includes":...
vapier/pcalc/convert.c
unsigned long bintol(const char *str) { unsigned long sum = 0L; while (*str) { switch (*str) { case '1': sum <<= 1; ++sum; break; case '0': sum <<= 1; break; case '_': break; default: return sum; } ++str; } return sum; }
unsigned long bintol(const char *str)
unsigned long bintol(const char *str)
bintol
[ "unsigned long", "const char *" ]
{ "code": [ ".globl bintol\n.type bintol, @function\nbintol:\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\tmovq\t$0, -8(%rbp)\n\tjmp\t.L2\n.L8:\n\tmovq\t-24(%rbp), %rax\n\tmovzbl\t(%rax...
null
#include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <time.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": [ "\"fjnrdnlssrekwmezuzvi...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_56u4jr8kk9.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": "bintol", "funargs": ["str"], "typemap": {"str": "string", "returnv": "uint64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_56u4jr8kk9.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
aadishgoel2013/Bot-Program-In-C/bot_reversetictactoe.c
int isempty(int x[3][3]) { int i,j; for(i=0;i<3;i++) for(j=0;j<3;j++) if(x[i][j]!=0) return 0; return 1; }
int isempty(intx)
int isempty(int x[3][3])
isempty
[ "int", "int" ]
{ "code": [ ".globl isempty\n.type isempty, @function\nisempty:\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.L7:\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L3\n.L6...
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": [ "[6, 95, 77, 62, 16, 56...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_58rb5wflki.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": ["x"], "liveout": ["x"], "returnvarname": ["returnv"], "execcmd": "", "funname": "isempty", "funargs": ["x"], "typemap": {"x": "array(int32#9)", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_58rb5wflki.c"], "classmap": {}, "range": {}, "needs_cast": {"x": {"old_type": "int", "new_ty...
swihart/repeated/src/calcs.c
double dChoose( long lNum, long lDenom ) { long lStart; double dResult; long i, j; if ( lNum < lDenom ) return 0.0; if ( lNum < 0.0l || lDenom < 0.0l ) return 0.0; if ( lDenom > lNum - lDenom ) { lStart = lDenom; lDenom = lNum - lDenom; } else { ...
double dChoose(longlNum, longlDenom)
double dChoose( long lNum, long lDenom )
dChoose
[ "double", "long", "long" ]
{ "code": [ ".globl dChoose\n.type dChoose, @function\ndChoose:\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, -40(%rbp)\n\tmovq\t%rsi, -48(%rbp)\n\tmovq\t-40(%rbp), %rax\n\tcmpq\t-48(%rbp), %rax\n\t...
null
#include <memory.h> #include <stdio.h> #include <stdlib.h> #include <math.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": [ "78", "86" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_460g7tv71_.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": ["lNum", "lDenom"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "dChoose", "funargs": ["lNum", "lDenom"], "typemap": {"lNum": "int64", "lDenom": "int64", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_460g7tv71_.c"], "classmap": {}, "range": {}, "needs_ca...
GautamGupta/fall14-cs137/assignments/a3/array.c
int isPermutation (int array[], int n) { int value_count[n+1]; for ( int i = 0; i < n; i++ ) { if ( array[i] < 1 || array[i] > n || value_count[array[i]] == 1 ) return 0; else value_count[array[i]] = 1; } return 1; }
int isPermutation(int *array, intn)
int isPermutation (int array[], int n)
isPermutation
[ "int", "int *", "int" ]
{ "code": [ ".globl isPermutation\n.type isPermutation, @function\nisPermutation:\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$48, %rsp\n\tmovq\t%rdi, -40(%rbp)\n\tmovl\t%esi, -44(%rbp)\n\tmovq\t%fs:40,...
null
#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": [ "[12, 0, 20, 20, 19, 62...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_42nly6t_xf.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": ["array", "n"], "liveout": ["array"], "returnvarname": ["returnv"], "execcmd": "", "funname": "isPermutation", "funargs": ["array", "n"], "typemap": {"array": "array(int32#32)", "n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_42nly6t_xf.c"], "classmap": {}, "range": {}, ...
HenrikSamuelsson/Programming-in-C/Exercises/Chapter_09/Exercise_01/Program_09_04/program_09_04.c
bool equalStrings (const char s1[], const char s2[]) { int i = 0; bool areEqual; while (s1[i] == s2[i] && s1[i] != '\0' && s2[i] != '\0') ++i; if (s1[i] == '\0' && s2[i] == '\0') areEqual = true; else areEqual = false; return areEqual; }
int equalStrings(const char *s1, const char *s2)
bool equalStrings (const char s1[], const char s2[])
equalStrings
[ "int", "const char *", "const char *" ]
{ "code": [ ".globl equalStrings\n.type equalStrings, @function\nequalStrings:\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\tjmp\t.L2\n.L4...
#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 <stdio.h> #include <stdbool.h> # 1
{ "dummy_funcs": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ], "dummy_funcs_seed": [ 0, 0, 0, 0, ...
{ "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": [ "\"zeeolrgrgjdguhtiix\"...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577724q25hr925.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. u...
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_30qky5i029.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": "equalStrings", "funargs": ["s1", "s2"], "typemap": {"s1": "string", "s2": "string", "returnv": "bool"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_30qky5i029.c"], "classmap": {}, "range": {}, "needs_cast":...
michaelbecker/algorithms-and-data-structures/binary-search.c
int BinarySearch (int *A, int Size, int Value) { int Midpoint; int Upper; int Lower; if (Size <= 0) return -1; if (A == NULL) return -1; Lower = 0; Upper = Size - 1; while (Lower <= Upper){ Midpoint = (Upper + Lower) / 2; if ( A[Midpoint] > Valu...
int BinarySearch(int *A, intSize, intValue)
int BinarySearch (int *A, int Size, int Value)
BinarySearch
[ "int", "int *", "int", "int" ]
{ "code": [ ".globl BinarySearch\n.type BinarySearch, @function\nBinarySearch:\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%esi, -28(%rbp)\n\tmovl\t%edx, -32(%rbp)\n\tcmpl\t$0, ...
#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 <stdio.h> #include <stdlib.h> # 1
{ "dummy_funcs": [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" ], "dummy_funcs_seed": [ 0, 0, 0, 0, ...
{ "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": [ "[48, 115, 16, 74, 15, ...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577754_leb2lkt.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. u...
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_427932usjt.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", "Size", "Value"], "liveout": ["A"], "returnvarname": ["returnv"], "execcmd": "", "funname": "BinarySearch", "funargs": ["A", "Size", "Value"], "typemap": {"A": "array(int32#32)", "Size": "int32", "Value": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_427932usjt.c"], "...
zemzem/small-projects/C/prime.c
int prime(int c) { int x=3; if(c==2 || c==3){ return 1; } else if(c%2==0){return 0;} while(x<c){ if((c%x)==0) {return 0; }x+=2; }return 1; }
int prime(intc)
int prime(int c)
prime
[ "int", "int" ]
{ "code": [ ".globl prime\n.type prime, @function\nprime:\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$3, -4(%rbp)\n\tcmpl\t$2, -20(%rbp)\n\tje\t.L2\n\tcmpl\t$3, -20(%rbp)\n\tjn...
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": [ "97" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_43jp202y0m.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": "prime", "funargs": ["c"], "typemap": {"c": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_43jp202y0m.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
Elhuyar/eustagger_Elh/morfologia/fun_def.c
int filtratu(char k) { unsigned char kar ; kar = (unsigned) k ; if (((int)kar >= 128) && (k != ((char)241)) && (k != ((char)209))) return (1); if ((strchr("abcdefghijklmn\361opqrstuvwxyz",k)!=NULL)||(strchr("ABCDEFGHIJKLMN\321OPQRSTUVWXYZ",k)!=NULL)||(strchr("0123456789",k)!=NULL)) return(0); ...
int filtratu(chark)
int filtratu(char k)
filtratu
[ "int", "char" ]
{ "code": [ ".globl filtratu\n.type filtratu, @function\nfiltratu:\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, %eax\n\tmovb\t%al, -20(%rbp)\n\tmovzbl\t-20(%rbp), %eax\n\tmovb\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 <stdio.h> #include <string.h> #include <stdlib.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": [ "12" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_56wb4_kst9.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": ["k"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "filtratu", "funargs": ["k"], "typemap": {"k": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_56wb4_kst9.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
ruipimenta/newOseaClassifier/qrsfilt.c
int lpfilt( int datum ,int init) { static long y1 = 0, y2 = 0 ; static int data[((int) (2*5))], ptr = 0 ; long y0 ; int output, halfPtr ; if(init) { for(ptr = 0; ptr < ((int) (2*5)); ++ptr) data[ptr] = 0 ; y1 = y2 = 0 ; ptr = 0 ; } halfPtr = ptr-(((int) (2*5))/2) ; if(halfPtr < 0) halfPtr += ((in...
int lpfilt(intdatum, intinit)
int lpfilt( int datum ,int init)
lpfilt
[ "int", "int", "int" ]
{ "code": [ ".globl lpfilt\n.type lpfilt, @function\nlpfilt:\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$0, -24(%rbp)\n\tje\t.L2\n\tmovl\t$0, ptr.3554(...
null
#include <math.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": [ "71", "5" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_63zy9bo6_7.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": ["datum", "init"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "lpfilt", "funargs": ["datum", "init"], "typemap": {"datum": "int32", "init": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_63zy9bo6_7.c"], "classmap": {}, "range": {}, "needs_cast": {...
8l/AutoCorres/autocorres/tests/proof-tests/word_abs_cases.c
int gcd_s_rec(int a, int b) { if (a < 0) return gcd_s_rec(-a, b); if (b < 0) return gcd_s_rec(a, -b); if (a > b) return gcd_s_rec(b, a); if (a == 0) return b; return gcd_s_rec(a, b % a); }
int gcd_s_rec(inta, intb)
int gcd_s_rec(int a, int b)
gcd_s_rec
[ "int", "int", "int" ]
{ "code": [ ".globl gcd_s_rec\n.type gcd_s_rec, @function\ngcd_s_rec:\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$16, %rsp\n\tmovl\t%edi, -4(%rbp)\n\tmovl\t%esi, -8(%rbp)\n\tcmpl\t$0, -4(%rbp)\n\tjns\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": [ "60", "97" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_607gg2xmh_.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_s_rec", "funargs": ["a", "b"], "typemap": {"a": "int32", "b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_607gg2xmh_.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
andwn/marsdev/examples/32x-skeleton/src/graphics.c
double ySinTable(const int details){ double result; if(details == 0) { result = 1.000000; } else if(details == 1) { result = 0.995004; } else if(details == 2) { result = 0.980067; } else if(details == 3) { result = 0.955336; } else if(details == 4) { result = 0.921061; } else if(details == 5)...
double ySinTable(const intdetails)
double ySinTable(const int details)
ySinTable
[ "double", "const int" ]
{ "code": [ ".globl ySinTable\n.type ySinTable, @function\nySinTable:\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\tcmpl\t$0, -20(%rbp)\n\tjne\t.L2\n\tmovsd\t.LC0(%rip), %xmm0\n\tmovsd\...
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": [ "24" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_439jyhw7lk.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": ["details"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "ySinTable", "funargs": ["details"], "typemap": {"details": "int32", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_439jyhw7lk.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
fragglet/jigsawn/src/utf8.c
int json_utf8_seq_length(unsigned char start_byte) { if ((start_byte & 0x80) == 0x00) { return 1; } else if ((start_byte & 0xe0) == 0xc0) { return 2; } else if ((start_byte & 0xf0) == 0xe0) { return 3; } else if ((start_byte & 0xf8) == 0xf0...
int json_utf8_seq_length(unsigned charstart_byte)
int json_utf8_seq_length(unsigned char start_byte)
json_utf8_seq_length
[ "int", "unsigned char" ]
{ "code": [ ".globl json_utf8_seq_length\n.type json_utf8_seq_length, @function\njson_utf8_seq_length:\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\tmovzbl\t-4(%rbp), ...
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": [ "647" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_302xwq8hyr.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": ["start_byte"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "json_utf8_seq_length", "funargs": ["start_byte"], "typemap": {"start_byte": "uint8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_302xwq8hyr.c"], "classmap": {}, "range": {}, "needs_cast": {}, "...
andreaaraldo/mytstat/tstat/misc.c
int in_out_loc(int internal_src, int internal_dst, int dir) { if(internal_src && !internal_dst) { if(dir == 1) return 1; else return 2; } else if(!internal_src && internal_dst) { if(dir == 1) return 2; else return 1; } else if(internal_src && i...
int in_out_loc(intinternal_src, intinternal_dst, intdir)
int in_out_loc(int internal_src, int internal_dst, int dir)
in_out_loc
[ "int", "int", "int", "int" ]
{ "code": [ ".globl in_out_loc\n.type in_out_loc, @function\nin_out_loc:\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%esi, -8(%rbp)\n\tmovl\t%edx, -12(%rbp)\n\tcmpl\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": [ "107", "86", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_49ykyrlu9s.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": ["internal_src", "internal_dst", "dir"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "in_out_loc", "funargs": ["internal_src", "internal_dst", "dir"], "typemap": {"internal_src": "int32", "internal_dst": "int32", "dir": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytm...
IvanYakimov/huntl/benchmarks/test-gcd.c
unsigned long gcd(unsigned long a, unsigned long b) { unsigned long r = a | b; if (!a || !b) return r; r &= -r; while (!(b & r)) b >>= 1; if (b == r) return r; for (;;) { while (!(a & r)) a >>= 1; if (a == r) return r; if (a == b) return a; if (a < b) do { typeof(a) __tmp = (a); (a...
unsigned long gcd(unsigned longa, unsigned longb)
unsigned long gcd(unsigned long a, unsigned long b)
gcd
[ "unsigned long", "unsigned long", "unsigned long" ]
{ "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\tmovq\t%rdi, -24(%rbp)\n\tmovq\t%rsi, -32(%rbp)\n\tmovq\t-24(%rbp), %rax\n\torq\t-32(%rbp), %rax\n\tmovq\t%rax, -...
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": [ "650", "550" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_31fal459rc.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": "uint64", "b": "uint64", "returnv": "uint64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_31fal459rc.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
ElettraSciComp/Pore3D/P3D_Skel/Common/p3dThinning.c
void transformNeigh ( int n[27], int dir, int USn[27] ) { int i, j, k; int tmp[27]; switch(dir) { case 0: for(k=0; k < 3; k++) { for(j=0; j < 3; j++) { for(i=0; i < 3; i++) { USn[( (j)*(3) + (i) + (k)*(3)*(3) )] = n[( (j)*(3) + (i) + (k)*(3)*(3) )]; } } } break; case 3: ...
void transformNeigh(int *n, intdir, int *USn)
void transformNeigh ( int n[27], int dir, int USn[27] )
transformNeigh
[ "void", "int *", "int", "int *" ]
{ "code": [ ".globl transformNeigh\n.type transformNeigh, @function\ntransformNeigh:\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$176, %rsp\n\tmovq\t%rdi, -152(%rbp)\n\tmovl\t%esi, -156(%rbp)\n\tmovq\t%...
null
#include <stdlib.h> #include <stdio.h> #include <string.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": [ "[17, 22, 75, 107, 72, ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_38r26y76ix.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", "dir", "USn"], "liveout": ["n", "USn"], "returnvarname": [], "execcmd": "", "funname": "transformNeigh", "funargs": ["n", "dir", "USn"], "typemap": {"n": "array(int32#27)", "dir": "int32", "USn": "array(int32#27)"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38r26y76ix.c"], "classmap": {}, "ran...