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
joezuntz/cmbview/src/Other_sources/cfitsio/fitscore.c
int ffpxsz(int datatype) { if (datatype == 11) return(sizeof(char)); else if (datatype == 20) return(sizeof(short)); else if (datatype == 21) return(sizeof(short)); else if (datatype == 40) return(sizeof(long)); else if (datatype == 41) return(sizeof(long)); ...
int ffpxsz(intdatatype)
int ffpxsz(int datatype)
ffpxsz
[ "int", "int" ]
{ "code": [ ".globl ffpxsz\n.type ffpxsz, @function\nffpxsz:\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$11, -4(%rbp)\n\tjne\t.L2\n\tmovl\t$1, %eax\n\tjmp\t.L3\n.L2:\n\tcmpl\t$2...
null
#include <string.h> #include <limits.h> #include <stdlib.h> #include <math.h> #include <ctype.h> #include <errno.h> #include <stddef.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": [ "106" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_54apor64i1.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": ["datatype"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "ffpxsz", "funargs": ["datatype"], "typemap": {"datatype": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_54apor64i1.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
Razish/CompJA/codemp/qcommon/q_shared.c
int Q_PrintStrlen( const char *string ) { int len; const char *p; if( !string ) { return 0; } len = 0; p = string; while( *p ) { if( ( p && *(p) == '^' && *((p)+1) && *((p)+1) != '^' && *((p)+1) <= '9' && *((p)+1) >= '0' ) ) { p += 2; continue; } p++; len++; } return len; }
int Q_PrintStrlen(const char *string)
int Q_PrintStrlen( const char *string )
Q_PrintStrlen
[ "int", "const char *" ]
{ "code": [ ".globl Q_PrintStrlen\n.type Q_PrintStrlen, @function\nQ_PrintStrlen:\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\tcmpq\t$0, -24(%rbp)\n\tjne\t.L2\n\tmovl\t$0, %eax\n\tjmp\...
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": [ "\"aacdrpgkbvdhl\"" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_3597cu3sl9.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_PrintStrlen", "funargs": ["string"], "typemap": {"string": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_3597cu3sl9.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": ...
ativor/left-truncatable-prime/main.c
char is_prime(int n) { int i; if (n <= 3 || n == 13 || n == 17 || n == 23 || n == 37 || n == 43 || n == 47 || n == 53 || n == 67 || n == 73 || n == 83 || n == 97){ return n > 1; } else if (n % 2 == 0 || n % 3 == 0) { return 0; } else { for (i = 5; i * i < n; i += 6) { if (n % i ==...
char is_prime(intn)
char is_prime(int n)
is_prime
[ "char", "int" ]
{ "code": [ ".globl is_prime\n.type is_prime, @function\nis_prime:\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\tcmpl\t$3, -20(%rbp)\n\tjle\t.L2\n\tcmpl\t$13, -20(%rbp)\n\tje\t.L2\n\tcm...
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": [ "45" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_38ep1qr31f.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_prime", "funargs": ["n"], "typemap": {"n": "int32", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38ep1qr31f.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
ClaudioNahmad/Servicio-Social/Parametros/CosmoMC/prerrequisitos/cfitsio/imcompress.c
int imcomp_calc_max_elem (int comptype, int nx, int zbitpix, int blocksize) { if (comptype == 11) { if (zbitpix == 16) return (sizeof(short) * nx + nx / blocksize + 2 + 4); else return (sizeof(float) * nx + nx / blocksize + 2 + 4); } else if ((comptype == 21) || (...
int imcomp_calc_max_elem(intcomptype, intnx, intzbitpix, intblocksize)
int imcomp_calc_max_elem (int comptype, int nx, int zbitpix, int blocksize)
imcomp_calc_max_elem
[ "int", "int", "int", "int", "int" ]
{ "code": [ ".globl imcomp_calc_max_elem\n.type imcomp_calc_max_elem, @function\nimcomp_calc_max_elem:\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, -...
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": [ "39", "40", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_543r2i0q1u.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": ["comptype", "nx", "zbitpix", "blocksize"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "imcomp_calc_max_elem", "funargs": ["comptype", "nx", "zbitpix", "blocksize"], "typemap": {"comptype": "int32", "nx": "int32", "zbitpix": "int32", "blocksize": "int32", "returnv": "int32"}, "req...
petosegan/krc-solutions/chapter5/ex_5_06_strindex.c
int strindex(char *s, char *t) { char *s_start = s; char *j, *k; while (*s != '\0') { for (j=s, k=t;*k != '\0' && *j==*k; j++, k++) ; if (k > t && *k == '\0') return (s-s_start); s += 1; } return -1; }
int strindex(char *s, char *t)
int strindex(char *s, char *t)
strindex
[ "int", "char *", "char *" ]
{ "code": [ ".globl strindex\n.type strindex, @function\nstrindex:\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\tmovq\t-40(%rbp), %rax\n\tmovq\t%rax, -8(%rbp)\n...
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": [ "\"qkrqlfydaafqrpaxb\""...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_4377brf_s9.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": "strindex", "funargs": ["s", "t"], "typemap": {"s": "string", "t": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_4377brf_s9.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globa...
gokutek/ReverseKit/InTheBoxSim/vm/alloc/clz.c
int dvmClzImpl(unsigned int x) { # 40 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/gokutek/ReverseKit/refs/heads/master/InTheBoxSim/vm/alloc/clz.c" if (!x) return 32; int e = 31; if (x&0xFFFF0000) { e -=16; x >>=16; } if (x&0x0000FF00) { e -= 8; x >>= 8; } ...
int dvmClzImpl(unsigned intx)
int dvmClzImpl(unsigned int x)
dvmClzImpl
[ "int", "unsigned int" ]
{ "code": [ ".globl dvmClzImpl\n.type dvmClzImpl, @function\ndvmClzImpl:\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\tmovl\t$32, %eax\n\tjmp\t.L3\n.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": [ "965" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_33f3j14ra8.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": "dvmClzImpl", "funargs": ["x"], "typemap": {"x": "uint32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_33f3j14ra8.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
metaliciouz/kandrtcpl/chapter_3/3_1.c
int binsearch(int x, int v[], int n) { int low, high, mid; low = 0; high = n - 1; while (low <= high) { mid = (low + high) / 2; if (x < v[mid]) high = mid - 1; else if (x > v[mid]) low = mid ...
int binsearch(intx, int *v, intn)
int binsearch(int x, int v[], int n)
binsearch
[ "int", "int", "int *", "int" ]
{ "code": [ ".globl binsearch\n.type binsearch, @function\nbinsearch:\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\tmovq\t%rsi, -32(%rbp)\n\tmovl\t%edx, -24(%rbp)\n\tmovl\t$0, -12(%rbp)...
null
#include <stdio.h> #include <time.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": [ "22", "[120, 68...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_33vttwmws3.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", "v", "n"], "liveout": ["v"], "returnvarname": ["returnv"], "execcmd": "", "funname": "binsearch", "funargs": ["x", "v", "n"], "typemap": {"x": "int32", "v": "array(int32#32)", "n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_33vttwmws3.c"], "classmap": {}, "range": ...
Lowercases/tcprstat/src/output.c
int check_format(char format[]) { char *c; for (c = format; *c; c ++) if (c[0] == '%') { int r = -1; c ++; switch (c[0]) { case '0' ... '9': r = 0; while (c[0] >= '0' && c[0] <= '9') { r *= 10; ...
int check_format(char *format)
int check_format(char format[])
check_format
[ "int", "char *" ]
{ "code": [ ".globl check_format\n.type check_format, @function\ncheck_format:\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-24(%rbp), %rax\n\tmovq\t%rax, -8(%rbp)\n\tjmp\t.L2\n....
null
#include <stdlib.h> #include <stdio.h> #include <time.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": [ "\"xfpcu\"" ], ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_519sw2t2zc.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": ["format"], "liveout": ["format"], "returnvarname": ["returnv"], "execcmd": "", "funname": "check_format", "funargs": ["format"], "typemap": {"format": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_519sw2t2zc.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": [...
DeadDork/learning_c/KnR/ch_1/1.24/1-24.c
void comnt_check( int cquad[], int pnctn_sts[] ) { if( pnctn_sts[ 2 ] == 0 && pnctn_sts[ 1 ] == 0 && cquad[ 2 ] == '/' && cquad[ 3 ] == '/' ) { pnctn_sts[ 2 ] = 1; } else if( pnctn_sts[ 2 ] == 0 && pnctn_sts[ 1 ] == 0 && cquad[ 2 ] == '/' && cquad[ 3 ] == '*' ) { pnctn_sts[ 1 ] = 1; } else if( pnctn_sts[ 2...
void comnt_check(int *cquad, int *pnctn_sts)
void comnt_check( int cquad[], int pnctn_sts[] )
comnt_check
[ "void", "int *", "int *" ]
{ "code": [ ".globl comnt_check\n.type comnt_check, @function\ncomnt_check:\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-16(%rbp), %rax\n\taddq\t$8, %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": [ "[80, 15, 54, 47, 44, 1...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_406cuferx5.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": ["cquad", "pnctn_sts"], "liveout": ["cquad", "pnctn_sts"], "returnvarname": [], "execcmd": "", "funname": "comnt_check", "funargs": ["cquad", "pnctn_sts"], "typemap": {"cquad": "array(int32#32)", "pnctn_sts": "array(int32#32)"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_406cuferx5.c"], "classmap": {...
ncoe/rosetta/Product_of_divisors/C/ProductOfDivisors/Source.c
unsigned int divisor_count(unsigned int n) { unsigned int total = 1; unsigned int p; for (; (n & 1) == 0; n >>= 1) { ++total; } for (p = 3; p * p <= n; p += 2) { unsigned int count = 1; for (; n % p == 0; n /= p) { ++count; } total *= count; ...
unsigned int divisor_count(unsigned intn)
unsigned int divisor_count(unsigned int n)
divisor_count
[ "unsigned int", "unsigned int" ]
{ "code": [ ".globl divisor_count\n.type divisor_count, @function\ndivisor_count:\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$1, -12(%rbp)\n\tjmp\t.L2\n.L3:\n\taddl\t$1, -12(%r...
null
#include <math.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": [ "227" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_392w55g8l9.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": "divisor_count", "funargs": ["n"], "typemap": {"n": "uint32", "returnv": "uint32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_392w55g8l9.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
jassam/falab/src/project/falabaac/libfalabaac/fa_aacenc.c
int get_samplerate_index(int sample_rate) { if (92017 <= sample_rate) return 0; if (75132 <= sample_rate) return 1; if (55426 <= sample_rate) return 2; if (46009 <= sample_rate) return 3; if (37566 <= sample_rate) return 4; if (27713 <= sample_rate) return 5; if (23004 <= sample_rate) return...
int get_samplerate_index(intsample_rate)
int get_samplerate_index(int sample_rate)
get_samplerate_index
[ "int", "int" ]
{ "code": [ ".globl get_samplerate_index\n.type get_samplerate_index, @function\nget_samplerate_index:\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$92016, -4(%rbp)\n\tjle\t.L2\n\...
null
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <memory.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": [ "109" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_544ojeqwf0.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": ["sample_rate"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "get_samplerate_index", "funargs": ["sample_rate"], "typemap": {"sample_rate": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_544ojeqwf0.c"], "classmap": {}, "range": {}, "needs_cast": {}...
0x7F800000/gcc/ARMToolChain/source/gcc-5.2.0/gcc/testsuite/gcc.target/arm/get_address_cost_aligned_max_offset.c
unsigned int test (const short p16[6 * 64]) { unsigned int i = 6; unsigned int ret = 0; do { unsigned long long *p64 = (unsigned long long*) p16; unsigned int *p32 = (unsigned int*) p16; ret += ret; if (p16[1] || p32[1]) ret++; else if (p64[1] | p64[2] | p64[3]) ret++; p...
unsigned int test(const short *p16)
unsigned int test (const short p16[6 * 64])
test
[ "unsigned int", "const short *" ]
{ "code": [ ".globl test\n.type test, @function\ntest:\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$6, -24(%rbp)\n\tmovl\t$0, -20(%rbp)\n.L5:\n\tmovq\t-40(%rbp), %rax\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": [ "[28, 15, 80, 110, 59, ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_47d0f91j7p.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 ...
arm-hot-cold
null
{"livein": ["p16"], "liveout": ["p16"], "returnvarname": ["returnv"], "execcmd": "", "funname": "test", "funargs": ["p16"], "typemap": {"p16": "array(int16#384)", "returnv": "uint32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_47d0f91j7p.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
fediskhakov/RLS/esr.c
int iK (int iC, int ic1, int ic2,int nC) { # 29 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fediskhakov/RLS/refs/heads/master/esr.c" int K=0; int iCp; iCp=nC-iC-1; K+=iCp*(iCp+1)*(2*iCp+1)/6; if (ic1!=iC && ic2!=iC) return K+=(nC-iC-1)*(ic1-iC-1) ...
int iK(intiC, intic1, intic2, intnC)
int iK (int iC, int ic1, int ic2,int nC)
iK
[ "int", "int", "int", "int", "int" ]
{ "code": [ ".globl iK\n.type iK, @function\niK:\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\tmovl\t%edx, -28(%rbp)\n\tmovl\t%ecx, -32(%rbp)\n\tmovl\t$0, -8(%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": [ "26", "77", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_38nh6wtxx6.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": ["iC", "ic1", "ic2", "nC"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "iK", "funargs": ["iC", "ic1", "ic2", "nC"], "typemap": {"iC": "int32", "ic1": "int32", "ic2": "int32", "nC": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38nh6wtxx6.c"], "cl...
DiligentGraphics/DiligentSamples/Samples/Asteroids/src/simplexnoise1234.c
float grad3(int hash, float x, float y, float z) { int h = hash & 15; float u = h < 8 ? x : y; float v = h < 4 ? y : h == 12 || h == 14 ? x : z; return ((h & 1) ? -u : u) + ((h & 2) ? -v : v); }
float grad3(inthash, floatx, floaty, floatz)
float grad3(int hash, float x, float y, float z)
grad3
[ "float", "int", "float", "float", "float" ]
{ "code": [ ".globl grad3\n.type grad3, @function\ngrad3:\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\tmovss\t%xmm2, -32(%rbp)\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": [ "110", "91.8644...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_51y1w7i9uq.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", "z"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "grad3", "funargs": ["hash", "x", "y", "z"], "typemap": {"hash": "int32", "x": "float32", "y": "float32", "z": "float32", "returnv": "float32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_51y1w7i9uq.c"], "...
Kyoo32/NEXT2015-1/DATASTRUCTURE/dataStructureHW2/dataStructureHW2/recursiveBinarySearch.c
int recursiveBinarySearch(int list[], int left, int right, int key){ int middle; if(left>right) return -1; else{ middle = left + (right - left)/2; if(key == list[middle]) return middle; else if(key <list[middle]) right = middle -1; else left = middle ...
int recursiveBinarySearch(int *list, intleft, intright, intkey)
int recursiveBinarySearch(int list[], int left, int right, int key)
recursiveBinarySearch
[ "int", "int *", "int", "int", "int" ]
{ "code": [ ".globl recursiveBinarySearch\n.type recursiveBinarySearch, @function\nrecursiveBinarySearch:\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\tmovq\t%rdi, -24(%rbp)\n\tmovl\t%esi, -2...
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": [ "[72, 32, 86, 10, 45, 9...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_42g96niw8z.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": ["list", "left", "right", "key"], "liveout": ["list"], "returnvarname": ["returnv"], "execcmd": "", "funname": "recursiveBinarySearch", "funargs": ["list", "left", "right", "key"], "typemap": {"list": "array(int32#32)", "left": "int32", "right": "int32", "key": "int32", "returnv": "int32"}, "required_include...
ncoe/rosetta/Humble_numbers/C/HumbleNumbers/humble.c
bool isHumble(int i) { if (i <= 1) return true; if (i % 2 == 0) return isHumble(i / 2); if (i % 3 == 0) return isHumble(i / 3); if (i % 5 == 0) return isHumble(i / 5); if (i % 7 == 0) return isHumble(i / 7); return false; }
int isHumble(inti)
bool isHumble(int i)
isHumble
[ "int", "int" ]
{ "code": [ ".globl isHumble\n.type isHumble, @function\nisHumble:\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\tcmpl\t$1, -4(%rbp)\n\tjg\t.L2\n\tmovl\t$1, %eax\n\tjmp...
#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 <limits.h> #include <stdbool.h> #include <stdio.h> #include <string.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" ], "va...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577758qkl_hbcp.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_3949aingz1.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": ["i"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "isHumble", "funargs": ["i"], "typemap": {"i": "int32", "returnv": "bool"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_3949aingz1.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
andreivasiliu/IronMoon/src/main.c
char *socks5_msgs( int type, unsigned char msg ) { if ( type == 1 ) { if ( msg == 0x00 ) return "No authentification required"; if ( msg == 0xFF ) return "No acceptable methods"; return "Unknown Socks5 message"; } if ( type == 2 ) { if ( msg == 0x00 ) return "Succeeded"; if ( msg == ...
char * socks5_msgs(inttype, unsigned charmsg)
char *socks5_msgs( int type, unsigned char msg )
socks5_msgs
[ "char *", "int", "unsigned char" ]
{ "code": [ ".globl socks5_msgs\n.type socks5_msgs, @function\nsocks5_msgs:\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, %eax\n\tmovb\t%al, -8(%rbp)\n\tcmpl\t$1, -4(%rbp)\n\...
null
#include <unistd.h> /* For write(), read() */ #include <stdarg.h> /* For variable argument functions */ #include <signal.h> /* For signal() */ #include <time.h> /* For time() */ #include <sys/stat.h> /* For stat() */ #include <fcntl.h> /* For fcntl() */ # 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": [ "79", "678" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_648g5adxbg.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", "msg"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "socks5_msgs", "funargs": ["type", "msg"], "typemap": {"type": "int32", "msg": "uint8", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_648g5adxbg.c"], "classmap": {}, "range": {}, "needs_cast": {...
oriansj/stage0/stage2/High_level_prototypes/cc_aarch64/functions/numerate_number.c
int char2hex(int c) { if (c >= '0' && c <= '9') return (c - 48); else if (c >= 'a' && c <= 'f') return (c - 87); else if (c >= 'A' && c <= 'F') return (c - 55); else return -1; }
int char2hex(intc)
int char2hex(int c)
char2hex
[ "int", "int" ]
{ "code": [ ".globl char2hex\n.type char2hex, @function\nchar2hex:\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$47, -4(%rbp)\n\tjle\t.L2\n\tcmpl\t$57, -4(%rbp)\n\tjg\t.L2\n\tmovl...
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": [ "56" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_47vbmff5f3.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": "char2hex", "funargs": ["c"], "typemap": {"c": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_47vbmff5f3.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
ErikSwan/ECE264/exam1/exam.c
int hidden_subsequence (const char * s1, const char * s2) { for(; *s1 != '\0'; s1++) { for(; *s2 != *s1; s2++) { if(*s2 == '\0') { return 0; } } } return 1; }
int hidden_subsequence(const char *s1, const char *s2)
int hidden_subsequence (const char * s1, const char * s2)
hidden_subsequence
[ "int", "const char *", "const char *" ]
{ "code": [ ".globl hidden_subsequence\n.type hidden_subsequence, @function\nhidden_subsequence:\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.L6:\n\t...
null
#include <stdlib.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": [ "\"ttbbalhfo\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_45_99xxt79.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": "hidden_subsequence", "funargs": ["s1", "s2"], "typemap": {"s1": "string", "s2": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45_99xxt79.c"], "classmap": {}, "range": {}, "needs...
JasonLiJT/HDR-backlight-driver/arduino-serial/arduino-serial-lib.c
int serialport_read_until(int fd, char* buf, char until, int buf_max, int timeout) { char b[1]; int i=0; do { int n = read(fd, b, 1); if( n==-1) return -1; if( n==0 ) { usleep( 1 * 1000 ); timeout--; if( timeout==0 ) return -2; continue...
int serialport_read_until(intfd, char *buf, charuntil, intbuf_max, inttimeout)
int serialport_read_until(int fd, char* buf, char until, int buf_max, int timeout)
serialport_read_until
[ "int", "int", "char *", "char", "int", "int" ]
{ "code": [ ".globl serialport_read_until\n.type serialport_read_until, @function\nserialport_read_until:\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$64, %rsp\n\tmovl\t%edi, -36(%rbp)\n\tmovq\t%rsi, -4...
#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> // Standard input/output definitions #include <unistd.h> // UNIX standard function definitions #include <fcntl.h> // File control definitions #include <errno.h> // Error number definitions #include <termios.h> // POSIX terminal control definitions #include <string.h> // String...
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": [ "106", "\"r\"",...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_32kmzlcuo7.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", "until", "buf_max", "timeout"], "liveout": ["buf"], "returnvarname": ["returnv"], "execcmd": "", "funname": "serialport_read_until", "funargs": ["fd", "buf", "until", "buf_max", "timeout"], "typemap": {"fd": "int32", "buf": "string", "until": "int8", "buf_max": "int32", "timeout": "int32", "ret...
nushio3/formura/attic/flops-test/schisse.c
double f(double x) { return x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+...
double f(doublex)
double f(double x)
f
[ "double", "double" ]
{ "code": [ ".globl f\n.type f, @function\nf:\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, -8(%rbp)\n\tmovsd\t-8(%rbp), %xmm0\n\taddsd\t%xmm0, %xmm0\n\taddsd\t-8(%rbp), %xmm0\n\taddsd\t-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": [ "2.84486389969" ]...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_33k70nf51a.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": "f", "funargs": ["x"], "typemap": {"x": "float64", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_33k70nf51a.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
progman/libcore.c/libcore.c
int is_sint(const char *str) { const char *p = str; if (p == NULL) return 1; for (;;p++) { if (*p == 0) break; if ( (*p < '0') || (*p > '9') ) { if (p == str) { if ( (*p == '-') || (*p == '+') ) { continue; } } return 0; } } if ((p - str) == 0) r...
int is_sint(const char *str)
int is_sint(const char *str)
is_sint
[ "int", "const char *" ]
{ "code": [ ".globl is_sint\n.type is_sint, @function\nis_sint:\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\tmovq\t%rax, -8(%rbp)\n\tcmpq\t$0, -8(%rbp)\n\tjne\...
#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 <stdlib.h> #include <string.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": [ "\"kckclobgbwrwrjvyhqkn...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_51h8bzqjz_.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": "is_sint", "funargs": ["str"], "typemap": {"str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_51h8bzqjz_.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
camsci/meteor-pi/src/imageProjection/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;...
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": [ "\"plzjmohlirncyfmfxywd...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_322w4qlixj.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_322w4qlixj.c"], "class...
johnstultz-work/timetests/consistent-offsets.c
char *clockstring(int clockid) { switch (clockid) { case 0: return "CLOCK_REALTIME"; case 1: return "CLOCK_MONOTONIC"; case 2: return "CLOCK_PROCESS_CPUTIME_ID"; case 3: return "CLOCK_THREAD_CPUTIME_ID"; case 4: return "CLOCK_MONOTONIC_RAW"; case 5: return "CLOCK_REALTIME_COARSE"; case 6: return "...
char * clockstring(intclockid)
char *clockstring(int clockid)
clockstring
[ "char *", "int" ]
{ "code": [ ".globl clockstring\n.type clockstring, @function\nclockstring:\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$11, -4(%rbp)\n\tja\t.L2\n\tmovl\t-4(%rbp), %eax\n\tleaq\t...
null
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <sys/timex.h> #include <string.h> #include <signal.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" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_61pd_z1yny.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": ["clockid"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "clockstring", "funargs": ["clockid"], "typemap": {"clockid": "int32", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_61pd_z1yny.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
najib999/C/gcd.c
int gcd(int a, int b){ if ( a == 0 || b == 0) return -1; if (a > b){ if (a%b == 0) return b; else return gcd(b, a%b); } else { if (b%a == 0) return a; else return gcd(a, b%a); } }
int gcd(inta, intb)
int gcd(int a, int b)
gcd
[ "int", "int", "int" ]
{ "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\tsubq\t$16, %rsp\n\tmovl\t%edi, -4(%rbp)\n\tmovl\t%esi, -8(%rbp)\n\tcmpl\t$0, -4(%rbp)\n\tje\t.L2\n\tcmpl\t$0, -8...
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": [ "105", "13" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_43om1qnam6.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_43om1qnam6.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
65apps/omim/3party/robust/predicates.c
double incirclefast(double * pa, double * pb, double * pc, double * pd) { double adx, ady, bdx, bdy, cdx, cdy; double abdet, bcdet, cadet; double alift, blift, clift; adx = pa[0] - pd[0]; ady = pa[1] - pd[1]; bdx = pb[0] - pd[0]; bdy = pb[1] - pd[1]; cdx = pc[0] - pd[0]; cdy = pc[1] - pd[1]; abdet...
double incirclefast(double *pa, double *pb, double *pc, double *pd)
double incirclefast(double * pa, double * pb, double * pc, double * pd)
incirclefast
[ "double", "double *", "double *", "double *", "double *" ]
{ "code": [ ".globl incirclefast\n.type incirclefast, @function\nincirclefast:\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$8, %rsp\n\tmovq\t%rdi, -104(%rbp)\n\tmovq\t%rsi, -112(%rbp)\n\tmovq\t%rdx, -12...
null
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.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": [ "[43.4125433776, 27.385...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_45e42x9mtr.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": ["pa", "pb", "pc", "pd"], "liveout": ["pa", "pb", "pc", "pd"], "returnvarname": ["returnv"], "execcmd": "", "funname": "incirclefast", "funargs": ["pa", "pb", "pc", "pd"], "typemap": {"pa": "array(float64#32)", "pb": "array(float64#32)", "pc": "array(float64#32)", "pd": "array(float64#32)", "returnv": "float...
Distrotech/libss7/ss7.c
char * ss7_event2str(int event) { switch (event) { case 1: return "SS7_EVENT_UP"; case 2: return "SS7_EVENT_DOWN"; case 3: return "MTP2_LINK_UP"; case 4: return "MTP2_LINK_DOWN"; case 5: return "ISUP_EVENT_IAM"; case 6: return "ISUP_EVENT_ACM"; case 7: return "ISUP_EVENT_ANM"; case...
char * ss7_event2str(intevent)
char * ss7_event2str(int event)
ss7_event2str
[ "char *", "int" ]
{ "code": [ ".globl ss7_event2str\n.type ss7_event2str, @function\nss7_event2str:\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$35, -4(%rbp)\n\tja\t.L2\n\tmovl\t-4(%rbp), %eax\n\t...
null
#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <stdarg.h> #include <string.h> #include <time.h> #include <sys/ioctl.h> #include <sys/poll.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": [ "102" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_36tbzyb9di.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 ...
distrotech-libss7
null
{"livein": ["event"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "ss7_event2str", "funargs": ["event"], "typemap": {"event": "int32", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_36tbzyb9di.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
wingolab-org/mpd-c/src/mpd.c
void fill_hs (char a, char b, double *h, double *s) { if (a == 'A') { if (b == 'A') { (*h) += 9100; (*s) += 24; } else if (b == 'C') { (*h) += 6500; (*s) += 17.3; } else if (b == 'G') { (*...
void fill_hs(chara, charb, double *h, double *s)
void fill_hs (char a, char b, double *h, double *s)
fill_hs
[ "void", "char", "char", "double *", "double *" ]
{ "code": [ ".globl fill_hs\n.type fill_hs, @function\nfill_hs:\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%esi, %eax\n\tmovq\t%rdx, -16(%rbp)\n\tmovq\t%rcx, -24(%rbp)\n\tmovl\t%edi, %edx\n\tmovb\t%dl,...
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": [ "102", "14", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_609i_j7vuw.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", "h", "s"], "liveout": ["h", "s"], "returnvarname": [], "execcmd": "", "funname": "fill_hs", "funargs": ["a", "b", "h", "s"], "typemap": {"a": "int8", "b": "int8", "h": "array(float64#32)", "s": "array(float64#32)"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_609i_j7vuw.c"], "classmap": {},...
Memeriaj/osProject/shell/shell.c
int match(char* line, char* command){ int q; for(q=0; line[q] != '\n' && line[q] != '\0' && command[q] != '\0'; q++){ if(line[q] != command[q]){ return 0; } } if(!((line[q] == '\n' || line[q] == '\0') && command[q] == '\0')){ return 0; } return 1; }
int match(char *line, char *command)
int match(char* line, char* command)
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, -24(%rbp)\n\tmovq\t%rsi, -32(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L6:\n\tmovl\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": [ "\"vmegojrqtslgiczmduth...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_59cn52rl8f.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": ["line", "command"], "liveout": ["line", "command"], "returnvarname": ["returnv"], "execcmd": "", "funname": "match", "funargs": ["line", "command"], "typemap": {"line": "string", "command": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_59cn52rl8f.c"], "classmap": {}, "ran...
mytch444/mlm/old/mlm.c
int string_is_string(char *string) { int i; for (i = 0; string[i] && string[i + 1]; i++); if (string[0] == '\"' && string[i] == '\"') return 1; return 0; }
int string_is_string(char *string)
int string_is_string(char *string)
string_is_string
[ "int", "char *" ]
{ "code": [ ".globl string_is_string\n.type string_is_string, @function\nstring_is_string:\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\tjmp\t.L2\n.L4:\n\taddl\t$1...
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": [ "\"reeqmwnwybaubytofmit...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_63rsd644zr.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": "string_is_string", "funargs": ["string"], "typemap": {"string": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_63rsd644zr.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals...
LIMachi/42/printf/src/parsing/parse_number.c
int parse_number(const char *format, int *number, int *arg_number, int *pos) { int tmp; if (format[*pos] == '*') { if (format[++(*pos)] >= '1' && format[*pos] <= '9') { *number = 0; tmp = *pos; while (format[tmp] >= '0' && format[tmp] <= '9') *number = (*number) * 10 + format[tmp++] - '0'; (form...
int parse_number(const char *format, int *number, int *arg_number, int *pos)
int parse_number(const char *format, int *number, int *arg_number, int *pos)
parse_number
[ "int", "const char *", "int *", "int *", "int *" ]
{ "code": [ ".globl parse_number\n.type parse_number, @function\nparse_number:\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%rdx, -40(%rbp)\n\tmovq\t%rcx...
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": [ "\"lqwrclctvxyr\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_49r9o6n1xu.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 ...
mac
null
{"livein": ["format", "number", "arg_number", "pos"], "liveout": ["format", "number", "arg_number", "pos"], "returnvarname": ["returnv"], "execcmd": "", "funname": "parse_number", "funargs": ["format", "number", "arg_number", "pos"], "typemap": {"format": "string", "number": "array(int32#32)", "arg_number": "array(int3...
ttencate/curly/src/url.c
void remove_dot_segments(char *path) { char *output = path; char *input = path; while (*input) { if (input[0] == '.') { if (input[1] == '.' && input[2] == '/') { input += 3; continue; } if (input[1] == '/') { input += 2; continue; } } if (input[0] == '/' && inpu...
void remove_dot_segments(char *path)
void remove_dot_segments(char *path)
remove_dot_segments
[ "void", "char *" ]
{ "code": [ ".globl remove_dot_segments\n.type remove_dot_segments, @function\nremove_dot_segments:\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\tmovq\t%rax, -1...
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": [ "\"we\"" ], ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_64fpr05p5q.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": ["path"], "liveout": ["path"], "returnvarname": [], "execcmd": "", "funname": "remove_dot_segments", "funargs": ["path"], "typemap": {"path": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64fpr05p5q.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
CoolerVoid/C/beer.h
char Hex2Char(char *Hex) { char rch=0; int i=0; while(i<2) { if ( *(Hex + i) >= '0' && *(Hex + i) <= '9' ) rch = (rch << 4) + (*(Hex + i) - '0'); else if ( *(Hex + i) >= 'A' && *(Hex + i) <= 'F' ) rch = (rch << 4) + (*(Hex + i) - 'A' + 10); else break; i++; } return rch; }
char Hex2Char(char *Hex)
char Hex2Char(char *Hex)
Hex2Char
[ "char", "char *" ]
{ "code": [ ".globl Hex2Char\n.type Hex2Char, @function\nHex2Char:\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\tmovb\t$0, -5(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L6:\n\tmovl\t-4(%...
null
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <dirent.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": [ "\"hgextgetqdlpctf\"" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_4497qrsska.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": ["Hex"], "liveout": ["Hex"], "returnvarname": ["returnv"], "execcmd": "", "funname": "Hex2Char", "funargs": ["Hex"], "typemap": {"Hex": "string", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_4497qrsska.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
dsuni/svndumpsanitizer/svndumpsanitizer.c
int matches_path_start(char *path, char *name) { int i = 0; while (name[i] != '\0') { if (path[i] != name[i]) { return 0; } ++i; } if (path[i] == '/' || path[i] == '\0') { return 1; } return 0; }
int matches_path_start(char *path, char *name)
int matches_path_start(char *path, char *name)
matches_path_start
[ "int", "char *", "char *" ]
{ "code": [ ".globl matches_path_start\n.type matches_path_start, @function\nmatches_path_start:\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...
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": [ "\"viuzyona\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_505pvd5hwl.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": ["path", "name"], "liveout": ["path", "name"], "returnvarname": ["returnv"], "execcmd": "", "funname": "matches_path_start", "funargs": ["path", "name"], "typemap": {"path": "string", "name": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_505pvd5hwl.c"], "classmap": {}, "ra...
satterly/rtgpoll-ganglia/src/rtgutil.c
int alldigits(char *s) { int result = !0; if (*s == '\0') return 0; while (*s != '\0') { if (!(*s >= '0' && *s <= '9')) return 0; s++; } return result; }
int alldigits(char *s)
int alldigits(char *s)
alldigits
[ "int", "char *" ]
{ "code": [ ".globl alldigits\n.type alldigits, @function\nalldigits:\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$1, -4(%rbp)\n\tmovq\t-24(%rbp), %rax\n\tmovzbl\t(%rax), %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": [ "\"omdhalcbevtps\"" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_317vhqhcld.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": "alldigits", "funargs": ["s"], "typemap": {"s": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_317vhqhcld.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
Sable/Ostrich/dynamic-programming/nw/c/needle.c
int seq_equal(int* seq_1, int* seq_2, int seq_1_size, int seq_2_size) { int i; if (seq_1_size != seq_2_size) { return 0; } for (i=0; i<seq_1_size; ++i) { if (seq_1[i] != seq_2[i]) { return 0; } } return 1; }
int seq_equal(int *seq_1, int *seq_2, intseq_1_size, intseq_2_size)
int seq_equal(int* seq_1, int* seq_2, int seq_1_size, int seq_2_size)
seq_equal
[ "int", "int *", "int *", "int", "int" ]
{ "code": [ ".globl seq_equal\n.type seq_equal, @function\nseq_equal:\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%edx, -36(%rbp)\n\tmovl\t%ecx, -40(%rb...
null
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <sys/time.h> #include <getopt.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": [ "[98, 114, 28, 120, 16,...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_31kls91uqy.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": ["seq_1", "seq_2", "seq_1_size", "seq_2_size"], "liveout": ["seq_1", "seq_2"], "returnvarname": ["returnv"], "execcmd": "", "funname": "seq_equal", "funargs": ["seq_1", "seq_2", "seq_1_size", "seq_2_size"], "typemap": {"seq_1": "array(int32#32)", "seq_2": "array(int32#32)", "seq_1_size": "int32", "seq_2_size...
SmallElephant/FELeetcode/9-PalindromeNumber/9-PalindromeNumber/main.c
bool isPalindrome(int x) { if (x < 0) { return false; } int div = 1; while (x / div >= 10) { div *= 10; } while (x > 0) { int left = x / div; int right = x % 10; if (left != right) { return false; } x = (x % div) / 10; d...
int isPalindrome(intx)
bool isPalindrome(int x)
isPalindrome
[ "int", "int" ]
{ "code": [ ".globl isPalindrome\n.type isPalindrome, @function\nisPalindrome:\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\tjns\t.L2\n\tmovl\t$0, %eax\n\tjmp\t.L...
#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": [ "112" ], "v...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_35777561p4vla7h.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_58fr967q2i.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": "isPalindrome", "funargs": ["x"], "typemap": {"x": "int32", "returnv": "bool"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_58fr967q2i.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
Xiug/Piscine_42/ex00_jour04/ft_iterative_factorial.c
int ft_iterative_factorial(int nb) { int a; int b; b = 1; a = 1; if (nb == 0) { return (1); } if (nb > 0 && nb <= 12) { while (a <= nb) { b = b * a; a++; } return (b); } if (nb < 0 || nb > 12) { return (0); } return (0); }
int ft_iterative_factorial(intnb)
int ft_iterative_factorial(int nb)
ft_iterative_factorial
[ "int", "int" ]
{ "code": [ ".globl ft_iterative_factorial\n.type ft_iterative_factorial, @function\nft_iterative_factorial:\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$1, -4(%rbp)\n\tmovl\t$1...
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" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_37682c_1_g.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": "ft_iterative_factorial", "funargs": ["nb"], "typemap": {"nb": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_37682c_1_g.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
zning1994/practice/Program/CLanguage/HOMEWORK/Homework8/exC.c
char *trim(char *s) { int i=0,j,k,p=0; for(i=0; s[i]==32; i++); if(i==0) { i=0,p=0; while(s[p]!='\0')p++; for(k=p-1; s[k]==32; k--); s[k+1]='\0'; } else { p=0; while(s[p]!='\0')p++; for(k=p-1; s[k]==32; k--); s[k+1]='\0'; ...
char * trim(char *s)
char *trim(char *s)
trim
[ "char *", "char *" ]
{ "code": [ ".globl trim\n.type trim, @function\ntrim:\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, -16(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tmovl\t$0, -16(%rbp)\n\tjmp\t.L2\n.L3:\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": [ "\"cxbkcdqkotztoyvdvqfk...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_6389jl9c3d.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": "trim", "funargs": ["s"], "typemap": {"s": "string", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_6389jl9c3d.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
JonSteinn/Kattis-Solutions/src/Poker Hand/C/main.c
int array_pos(char rank) { if (rank == 'A') return 0; if (rank == 'T') return 9; if (rank == 'J') return 10; if (rank == 'Q') return 11; if (rank == 'K') return 12; return (int)(rank - '1'); }
int array_pos(charrank)
int array_pos(char rank)
array_pos
[ "int", "char" ]
{ "code": [ ".globl array_pos\n.type array_pos, @function\narray_pos:\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$65, -4(%rbp)\n\tjne\t.L2\n\tmovl\t$0, %eax\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": [ "37" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_64av9sy7x_.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": ["rank"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "array_pos", "funargs": ["rank"], "typemap": {"rank": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64av9sy7x_.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
npatel33/shell/sh.c
int chkBadRdir(char *str){ char *pStr; int count=0; int flag =0; pStr = str; while(*pStr){ if(*pStr == '<'){ count++; } pStr++; } if(count > 1){ flag++; } count = 0; pStr = str; while(*pStr){ if(*pStr == '>' && *(pStr+1) ...
int chkBadRdir(char *str)
int chkBadRdir(char *str)
chkBadRdir
[ "int", "char *" ]
{ "code": [ ".globl chkBadRdir\n.type chkBadRdir, @function\nchkBadRdir:\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, -16(%rbp)\n\tmovl\t$0, -12(%rbp)\n\tmovq\t-24(%rbp), %ra...
null
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <string.h> #include <ctype.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": [ "\"nheqzvngeklfxwg\"" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_399cmb0j1z.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": "chkBadRdir", "funargs": ["str"], "typemap": {"str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_399cmb0j1z.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
ericherman/eh-no-libc/src/string.c
int ehnlc_strcmp(const char *s1, const char *s2) { size_t i; i = 0; if (s1 == s2) { return 0; } if (!s1 || !s2) { return s1 ? 1 : -1; } for (i = 0; s1[i] && s2[i] && s1[i] == s2[i]; ++i) ; return s1[i] - s2[i]; }
int ehnlc_strcmp(const char *s1, const char *s2)
int ehnlc_strcmp(const char *s1, const char *s2)
ehnlc_strcmp
[ "int", "const char *", "const char *" ]
{ "code": [ ".globl ehnlc_strcmp\n.type ehnlc_strcmp, @function\nehnlc_strcmp:\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$0, -8(%rbp)\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...
#include <string.h> #include <errno.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": [ "\"twixxopjnwopgfzdbgaz...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577750z6kdg2pf.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_38ks_chb42.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": "ehnlc_strcmp", "funargs": ["s1", "s2"], "typemap": {"s1": "string", "s2": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38ks_chb42.c"], "classmap": {}, "range": {}, "needs_cast"...
ikamikaz3/my_42sh/lib/get_next_line.c
int get_line(const int fd, char *line) { static int nb = 4096; static int k = 0; static char buff[4096]; if (k == 0 || k >= nb) { k = 0; if ((nb = read(fd, buff, 4096)) < 0) return (0); } if (nb == 0) { line[0] = '\0'; k = -1; } else if (buff[k] == '\n') l...
int get_line(const intfd, char *line)
int get_line(const int fd, char *line)
get_line
[ "int", "const int", "char *" ]
{ "code": [ ".globl get_line\n.type get_line, @function\nget_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$16, %rsp\n\tmovl\t%edi, -4(%rbp)\n\tmovq\t%rsi, -16(%rbp)\n\tmovl\tk.1924(%rip), %eax\n\tt...
#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 <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": [ "42", "\"kvkmcw...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_384bkcvfbx.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", "line"], "liveout": ["line"], "returnvarname": ["returnv"], "execcmd": "", "funname": "get_line", "funargs": ["fd", "line"], "typemap": {"fd": "int32", "line": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_384bkcvfbx.c"], "classmap": {}, "range": {}, "needs_cast": {...
kujenga/euler/Euler_10/PrimeSum.c
int isPrime ( int n ) { if ( n == 2 ) return 1; if ( n < 2 ) return 0; int i = 2; while ( i*i <= n ) { if ( n%i == 0 ) return 0; i++; } return 1; }
int isPrime(intn)
int isPrime ( int n )
isPrime
[ "int", "int" ]
{ "code": [ ".globl isPrime\n.type isPrime, @function\nisPrime:\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$2, -20(%rbp)\n\tjne\t.L2\n\tmovl\t$1, %eax\n\tjmp\t.L3\n.L2:\n\tcmpl...
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": [ "13" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_37euop2bp_.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": "isPrime", "funargs": ["n"], "typemap": {"n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_37euop2bp_.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
execunix/vinos/usr.bin/sort/init.c
int optval(int desc, int tcolflag) { switch(desc) { case 'b': if (!tcolflag) return 0x20; else return 0x40; case 'd': return 0x08; case 'f': return 0x02; case 'i': return 0x04; case 'l': return 0x80; case 'n': return 0x10; case 'r': return 0x01; default: return 0; } }
int optval(intdesc, inttcolflag)
int optval(int desc, int tcolflag)
optval
[ "int", "int", "int" ]
{ "code": [ ".globl optval\n.type optval, @function\noptval:\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-4(%rbp), %eax\n\tsubl\t$98, %eax\n\tcmpl\t$16, %...
null
#include <ctype.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": [ "34", "57" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_40qhu111po.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": ["desc", "tcolflag"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "optval", "funargs": ["desc", "tcolflag"], "typemap": {"desc": "int32", "tcolflag": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_40qhu111po.c"], "classmap": {}, "range": {}, "needs...
AlfiyaZi/ios-webkit-debug-proxy/src/char_buffer.c
int hex2int(char c) { if (c >= '0' && c <= '9') return c - '0'; else if (c >= 'a' && c <= 'f') return 10 + c - 'a'; else if (c >= 'A' && c <= 'F') return 10 + c - 'A'; else return -1; }
int hex2int(charc)
int hex2int(char c)
hex2int
[ "int", "char" ]
{ "code": [ ".globl hex2int\n.type hex2int, @function\nhex2int:\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$47, -4(%rbp)\n\tjle\t.L2\n\tcmpb\t$57, -4(%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 <math.h> #include <stdio.h> #include <stdlib.h> #include <string.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": [ "89" ], "va...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_3577746hbhhcndr.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_32un8gjwg0.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 ...
bs_webkit
null
{"livein": ["c"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "hex2int", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_32un8gjwg0.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
abh/ezmlm-idx/case_diffb.c
int case_diffb(const char *s,unsigned int len,const char *t) { unsigned char x; unsigned char y; while (len > 0) { --len; 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 (x != y) return ((int)(unsigned int)...
int case_diffb(const char *s, unsigned intlen, const char *t)
int case_diffb(const char *s,unsigned int len,const char *t)
case_diffb
[ "int", "const char *", "unsigned int", "const char *" ]
{ "code": [ ".globl case_diffb\n.type case_diffb, @function\ncase_diffb:\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\tjmp\t.L2\n.L8:\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": [ "\"d\"", "559",...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_64d5edd43b.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_diffb", "funargs": ["s", "len", "t"], "typemap": {"s": "string", "len": "uint32", "t": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64d5edd43b.c"], "classmap": {}, "ran...
shehan492/C_programs/pdslab/day4/cs1803-day4-prog2.c
int checkPrime(int n) { int i; if(n == 0) return 0; if(n < 2) return 1; if(n == 2) return 0; for(i =2;i<(n/2);i++) { if((n%i) == 0) { return 1; } } return 0; }
int checkPrime(intn)
int checkPrime(int n)
checkPrime
[ "int", "int" ]
{ "code": [ ".globl checkPrime\n.type checkPrime, @function\ncheckPrime:\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\tcmpl\t$0, -20(%rbp)\n\tjne\t.L2\n\tmovl\t$0, %eax\n\tjmp\t.L3\n.L2...
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": [ "52" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_61_yez71ql.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": "checkPrime", "funargs": ["n"], "typemap": {"n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_61_yez71ql.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
edelmanclaudia/hebocr/src/fonts/ho_recognize_font_1.c
double ho_recognize_font_1_nun (const double *array_in) { double return_value = 0.0; if ((array_in[17])) return_value += 0.1; if ((array_in[19])) return_value += 0.1; if ((array_in[22])) return_value += 0.1; if ((array_in[38])) return_value += 0.1; if ((array_in[8]) == 1 && (array_in[1]) < ...
double ho_recognize_font_1_nun(const double *array_in)
double ho_recognize_font_1_nun (const double *array_in)
ho_recognize_font_1_nun
[ "double", "const double *" ]
{ "code": [ ".globl ho_recognize_font_1_nun\n.type ho_recognize_font_1_nun, @function\nho_recognize_font_1_nun:\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\tpxor\t%xmm0, %xmm0\n\tmovsd...
null
#include <stdio.h> #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": [ "[98.6490029608, 30.261...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_35tqgh6l5m.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_in"], "liveout": ["array_in"], "returnvarname": ["returnv"], "execcmd": "", "funname": "ho_recognize_font_1_nun", "funargs": ["array_in"], "typemap": {"array_in": "array(float64#32)", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35tqgh6l5m.c"], "classmap": {}, "range": {}...
execunix/vinos/games/rogue/room.c
char get_mask_char(unsigned short mask) { switch(mask) { case ((unsigned short) 04): return('?'); case ((unsigned short) 010): return('!'); case ((unsigned short) 020): return('*'); case ((unsigned short) 040): return(':'); case ((unsigned short) 0100): return('/'); case ((unsigned short) 0...
char get_mask_char(unsigned shortmask)
char get_mask_char(unsigned short mask)
get_mask_char
[ "char", "unsigned short" ]
{ "code": [ ".globl get_mask_char\n.type get_mask_char, @function\nget_mask_char:\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\tmovw\t%ax, -4(%rbp)\n\tmovzwl\t-4(%rbp), %eax\n\tcmpl\t$256, %...
null
#include <sys/cdefs.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": [ "451" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_39vloe44hz.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": ["mask"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "get_mask_char", "funargs": ["mask"], "typemap": {"mask": "uint16", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_39vloe44hz.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
lipsia-fmri/lipsia/src/lib_viaio/Addfunc.c
float vrintf(float x) { float y, iy; int i; i = (int) x; iy = (float) i; if (x >= 0) { if (iy + 0.5 > x) y = iy; else y = iy + 1.0; } else { if (iy - 0.5 < x) y = iy; else y = iy - 1.0; } return(y); }
float vrintf(floatx)
float vrintf(float x)
vrintf
[ "float", "float" ]
{ "code": [ ".globl vrintf\n.type vrintf, @function\nvrintf:\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, -20(%rbp)\n\tmovss\t-20(%rbp), %xmm0\n\tcvttss2sil\t%xmm0, %eax\n\tmovl\t%eax, -8(%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": [ "22.6872778237" ]...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_346vy68q8e.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": "vrintf", "funargs": ["x"], "typemap": {"x": "float32", "returnv": "float32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_346vy68q8e.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
nolink/algorithm/test.c
int nthUglyNumber(int n) { if(n <= 1) return n; int two = 1, three = 1, five = 1, nth = 1; for(int i=2;i<=n;i++){ int two_next = two*2; int three_next = three*3; int five_next = five*5; if(two_next < three_next && two_next < five_next){ ...
int nthUglyNumber(intn)
int nthUglyNumber(int n)
nthUglyNumber
[ "int", "int" ]
{ "code": [ ".globl nthUglyNumber\n.type nthUglyNumber, @function\nnthUglyNumber:\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, -36(%rbp)\n\tcmpl\t$1, -36(%rbp)\n\tjg\t.L2\n\tmovl\t-36(%rbp), %eax\n...
null
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <limits.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": [ "63" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_611xw7lqdb.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": "nthUglyNumber", "funargs": ["n"], "typemap": {"n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_611xw7lqdb.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
hayamiz/minicc/parser_tests/regular/f41.c
int f() { int i; int c; i = 0; c = 0; while(i < 100) { if(i % 4 == 0) c = c + 1; else if(i % 4 == 1) c = c + 100; else if(i % 4 == 2) c = c + 10000; else c = c + 1000000; i = i + 1; } return c; }
int f()
int f()
f
[ "int", "" ]
{ "code": [ ".globl f\n.type f, @function\nf:\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$0, -8(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L7:\n\tmovl\t-8(%rbp), %eax\n\tandl\t$3, %eax\n\ttestl\t%eax, %...
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": [], "var": [] }, { ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_46sb6rma_v.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": [], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "f", "funargs": [], "typemap": {"returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_46sb6rma_v.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
rofl0r/eudev-temp/src/libudev/device-nodes.c
int whitelisted_char_for_devnode(char c, const char *white) { if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || strchr("#+-.:=@_", c) != NULL || (white != NULL && strchr(white, c) != NULL)) return 1; return...
int whitelisted_char_for_devnode(charc, const char *white)
int whitelisted_char_for_devnode(char c, const char *white)
whitelisted_char_for_devnode
[ "int", "char", "const char *" ]
{ "code": [ ".globl whitelisted_char_for_devnode\n.type whitelisted_char_for_devnode, @function\nwhitelisted_char_for_devnode:\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, %eax\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 <stdlib.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include <sys/types.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": [ "62", "\"zdoihu...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_59r81ud636.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", "white"], "liveout": ["white"], "returnvarname": ["returnv"], "execcmd": "", "funname": "whitelisted_char_for_devnode", "funargs": ["c", "white"], "typemap": {"c": "int8", "white": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_59r81ud636.c"], "classmap": {}, "range":...
alachins/sweed/SweeD_Input.c
int isValidDNACharacter(char input) { if(input=='A') return 1; if(input=='C') return 1; if(input=='G') return 1; if(input=='T') return 1; if(input=='-') return 1; if(input=='N') return 1; if(input == 'a') return 1; if(input == 'c') return 1; if(input == 'g') return 1; if(input == 't') return 1; if(input=='...
int isValidDNACharacter(charinput)
int isValidDNACharacter(char input)
isValidDNACharacter
[ "int", "char" ]
{ "code": [ ".globl isValidDNACharacter\n.type isValidDNACharacter, @function\nisValidDNACharacter:\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$65, -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": [ "5" ], "var...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_403lk2s_6k.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"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "isValidDNACharacter", "funargs": ["input"], "typemap": {"input": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_403lk2s_6k.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
maciozo/ELEC2204-CPU-Emulator/2204/2204.c
int legalCopy(int sourceDev, int destinationDev) { if (sourceDev == -1) { return (-7); } if (destinationDev == -1) { return (-6); } if ((sourceDev == 1) | (destinationDev == 1)) { return (0); } if ((sourceDev == 0) | (destinationDev == 0)) { ...
int legalCopy(intsourceDev, intdestinationDev)
int legalCopy(int sourceDev, int destinationDev)
legalCopy
[ "int", "int", "int" ]
{ "code": [ ".globl legalCopy\n.type legalCopy, @function\nlegalCopy:\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\tcmpl\t$-1, -4(%rbp)\n\tjne\t.L2\n\tmovl\t$-7, ...
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": [ "107", "92" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_51z8gsdf_5.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": ["sourceDev", "destinationDev"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "legalCopy", "funargs": ["sourceDev", "destinationDev"], "typemap": {"sourceDev": "int32", "destinationDev": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_51z8gsdf_5.c"],...
bhagatyj/algorithms/lt/28.c
int strStr(char* haystack, char* needle) { int j=0, curr=0; if ( ! needle[0]) { return 0; } while ( haystack[curr] ) { if ( haystack[curr] == needle[0]) { j = 0; while ((needle[j]) && (haystack[curr+j]) && (needle[j] == haystack[curr+j])) { ...
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\tmovl\t$0, -8(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tmovq\t-32...
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": [ "\"kgcymnpxlsc\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_33z5gt_yto.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_33z5gt_yto.c"], "classm...
monfort/ffTES/demo.c
int hexToBin(char hex) { if (hex >= '0' && hex <= '9') return hex - '0'; else if (hex >= 'A' && hex <= 'F') return hex - 'A' + 10; else if (hex >= 'a' && hex <= 'f') return hex - 'a' + 10; else return -1; }
int hexToBin(charhex)
int hexToBin(char hex)
hexToBin
[ "int", "char" ]
{ "code": [ ".globl hexToBin\n.type hexToBin, @function\nhexToBin:\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)...
null
#include <stdio.h> #include <string.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": [ "15" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_45xb8ks6ko.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": ["hex"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "hexToBin", "funargs": ["hex"], "typemap": {"hex": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45xb8ks6ko.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
yigezhe/algorithm-summary/math/gcd/gcd_idea4.c
int gcd(int a,int b) { if(a<0) { a=-a; } if(b<0) { b=-b; } if(b>a) { int tmp=a; a=b; b=tmp; } while(b>0 ) { int tmp=a; a=b; b=tmp-b; } return a; }
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": [ "47", "5" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_59funyz_5z.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_59funyz_5z.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
stream/Algo/Algorithms/intlength.c
int IntLength(int x) { x = (x<0) ? -x : x ; if(x>999999999) return 10; if(x>99999999) return 9; if(x>9999999) return 8; if(x>999999) return 7; if(x>99999) return 6; if(x>9999) return 5; if(x>999) return 4; if(x>99) return 3; if(x>9) return 2; return 1; }
int IntLength(intx)
int IntLength(int x)
IntLength
[ "int", "int" ]
{ "code": [ ".globl IntLength\n.type IntLength, @function\nIntLength:\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\tsarl\t$31, %eax\n\txorl\t%eax, -4(%rbp)\n\tsub...
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": [ "10" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_35w6lr6t5r.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": "IntLength", "funargs": ["x"], "typemap": {"x": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35w6lr6t5r.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
wilseypa/llamaOS/src/apps/NPB3.2-MPI/sys/setparams.c
int ilog2(int i) { int log2; int exp2 = 1; if (i <= 0) return(-1); for (log2 = 0; log2 < 20; log2++) { if (exp2 == i) return(log2); exp2 *= 2; } return(-1); }
int ilog2(inti)
int ilog2(int i)
ilog2
[ "int", "int" ]
{ "code": [ ".globl ilog2\n.type ilog2, @function\nilog2:\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$1, -4(%rbp)\n\tcmpl\t$0, -20(%rbp)\n\tjg\t.L2\n\tmovl\t$-1, %eax\n\tjmp\t....
null
#include <sys/types.h> #include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <string.h> #include <time.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": [ "105" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_44gfraxl0p.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": ["i"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "ilog2", "funargs": ["i"], "typemap": {"i": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_44gfraxl0p.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
Surfingnet/piscine42/d04/ex05/ft_sqrt.c
int ft_sqrt(int nb) { int res; int pow2; if (nb < 1) return (0); res = 1; pow2 = 1; while (pow2 < nb) { res++; pow2 = res * res; } return (pow2 == nb ? res : 0); }
int ft_sqrt(intnb)
int ft_sqrt(int nb)
ft_sqrt
[ "int", "int" ]
{ "code": [ ".globl ft_sqrt\n.type ft_sqrt, @function\nft_sqrt:\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\tjg\t.L2\n\tmovl\t$0, %eax\n\tjmp\t.L3\n.L2:\n\tmovl\...
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": [ "81" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_45ntui3jun.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": "ft_sqrt", "funargs": ["nb"], "typemap": {"nb": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45ntui3jun.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
martindemello/updawg/SpellLib/prime.c
int isprime(long i) { long f, d, squirt; for (squirt = i; i/squirt < squirt; squirt >>= 1) ; squirt = (squirt << 1) + 1; for (f = 3; f <= squirt; f += 2) { d = i / f; if (d*f == i) { return(0!=0); } } return(0==0); }
int isprime(longi)
int isprime(long i)
isprime
[ "int", "long" ]
{ "code": [ ".globl isprime\n.type isprime, @function\nisprime:\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, -16(%rbp)\n\tjmp\t.L2\n.L3:\n\tsarq\t-...
null
#include <stdio.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": [ "49" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_369c21deer.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": ["i"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "isprime", "funargs": ["i"], "typemap": {"i": "int64", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_369c21deer.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
gravgun/bin2hex/bin2hex.c
bool isnum(const char *str) { if (*str == 0) return false; while (*str != 0) { if (*str < '0' || *str++ > '9') return false; } return true; }
int isnum(const char *str)
bool isnum(const char *str)
isnum
[ "int", "const char *" ]
{ "code": [ ".globl isnum\n.type isnum, @function\nisnum:\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\ttestb\t%al, %al\n\tjne\t.L4\n\tmov...
#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 <stdint.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": [ "\"gxrtjwiclfohjzqjrqus...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_35777305d5mucij.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_30hv66579y.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": "isnum", "funargs": ["str"], "typemap": {"str": "string", "returnv": "bool"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_30hv66579y.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
Angelfirenze/madness/external/pmrrr/src/lapack/olsame.c
int olsame(char *ca, char *cb) { int ret_val; static int inta, intb, zcode; # 46 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Angelfirenze/madness/refs/heads/master/external/pmrrr/src/lapack/olsame.c" ret_val = *(unsigned char *)ca == *(unsigned char *)cb; ...
int olsame(char *ca, char *cb)
int olsame(char *ca, char *cb)
olsame
[ "int", "char *", "char *" ]
{ "code": [ ".globl olsame\n.type olsame, @function\nolsame:\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-24(%rbp), %rax\n\tmovzbl\t(%rax), %edx\n\tmovq...
null
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <float.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": [ "\"nzskamijuveeghoje\""...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_38u7oyi_mc.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": ["ca", "cb"], "liveout": ["ca", "cb"], "returnvarname": ["returnv"], "execcmd": "", "funname": "olsame", "funargs": ["ca", "cb"], "typemap": {"ca": "string", "cb": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38u7oyi_mc.c"], "classmap": {}, "range": {}, "needs_cast": {}, ...
stevelatif/cpy-proj/templates/libevent_server01.c
char rot13_char(char c) { if ((c >= 'a' && c <= 'm') || (c >= 'A' && c <= 'M')) return c + 13; else if ((c >= 'n' && c <= 'z') || (c >= 'N' && c <= 'Z')) return c - 13; else return c; }
char rot13_char(charc)
char rot13_char(char c)
rot13_char
[ "char", "char" ]
{ "code": [ ".globl rot13_char\n.type rot13_char, @function\nrot13_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\tcmpb\t$96, -4(%rbp)\n\tjle\t.L2\n\tcmpb\t$109, -...
null
#include <netinet/in.h> #include <sys/socket.h> #include <fcntl.h> #include <event2/event.h> #include <event2/buffer.h> #include <event2/bufferevent.h> #include <assert.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <stdio.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" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_5902wy6f9y.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": "rot13_char", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_5902wy6f9y.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
picosonic/bbc-fdc/tools/adfs.c
char *adfs_filetype(const unsigned int filetype) { switch (filetype) { case 0x695: return "GIF"; case 0xa91: return "Zip"; case 0xadf: return "PDF"; case 0xae9: return "Alarm"; case 0xaf1: return "Music"; case 0xaff: return "DrawFile"; case 0xb60: return "PNG"; case 0xc85: return "JP...
char * adfs_filetype(const unsigned intfiletype)
char *adfs_filetype(const unsigned int filetype)
adfs_filetype
[ "char *", "const unsigned int" ]
{ "code": [ ".globl adfs_filetype\n.type adfs_filetype, @function\nadfs_filetype:\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$4095, -4(%rbp)\n\tja\t.L2\n\tcmpl\t$3977, -4(%rbp)\...
null
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <strings.h> #include <sys/types.h> #include <utime.h> #include <sys/stat.h> #include <stdint.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": [ "348" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_380abzw0wj.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": ["filetype"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "adfs_filetype", "funargs": ["filetype"], "typemap": {"filetype": "uint32", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_380abzw0wj.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": [...
Midnighter/pyorganism/pyorganism/regulation/src/continuous.c
double functional_comparison(int *sources, int *targets, int *function, const int num_links, double *rate) { double sum = 0.0; int i = 0; for (i = 0; i < num_links; ++i) { if (function[i] == 1) { sum += (rate[sources[i]] > 0) ? (double)(rate[targets[i]] >= 0.0) : (double)(rate[ta...
double functional_comparison(int *sources, int *targets, int *function, const intnum_links, double *rate)
double functional_comparison(int *sources, int *targets, int *function, const int num_links, double *rate)
functional_comparison
[ "double", "int *", "int *", "int *", "const int", "double *" ]
{ "code": [ ".globl functional_comparison\n.type functional_comparison, @function\nfunctional_comparison:\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%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": [ "[121, 64, 103, 77, 113...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_59mreha0fw.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": ["sources", "targets", "function", "num_links", "rate"], "liveout": ["sources", "targets", "function", "rate"], "returnvarname": ["returnv"], "execcmd": "", "funname": "functional_comparison", "funargs": ["sources", "targets", "function", "num_links", "rate"], "typemap": {"sources": "array(int32#32)", "targe...
ayyucedemirbas/Minix-Source-Code/minix-master/usr.bin/seq/seq.c
int valid_format(const char *fmt) { unsigned conversions = 0; while (*fmt != '\0') { if (*fmt != '%') { fmt++; continue; } fmt++; if (*fmt == '%') { fmt++; continue; } while (*fmt != '\0' && strchr("#0- +'", *fmt)) { fmt++; } while (*fmt != '\0' && strchr("0123456789", *fmt)) { ...
int valid_format(const char *fmt)
int valid_format(const char *fmt)
valid_format
[ "int", "const char *" ]
{ "code": [ ".globl valid_format\n.type valid_format, @function\nvalid_format:\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\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L16:\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 <sys/cdefs.h> #include <ctype.h> #include <err.h> #include <errno.h> #include <math.h> #include <locale.h> #include <stdio.h> #include <stdlib.h> #include <string.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": [ "\"evzvgrkkl\"" ]...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_408ck5_033.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": ["fmt"], "liveout": ["fmt"], "returnvarname": ["returnv"], "execcmd": "", "funname": "valid_format", "funargs": ["fmt"], "typemap": {"fmt": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_408ck5_033.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
DimkaM/FUZIX/Applications/V7/cmd/look.c
int compare(char *s, char *t) { for(;*s==*t;s++,t++) if(*s==0) return(0); return(*s==0? -1: *t==0? 1: *s<*t? -2: 2); }
int compare(char *s, char *t)
int compare(char *s, char *t)
compare
[ "int", "char *", "char *" ]
{ "code": [ ".globl compare\n.type compare, @function\ncompare:\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\tmovzbl\t(...
null
#include <stdio.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": [ "\"wkyznsevjzavbkwqcm\"...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_51sjs0x85o.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": "compare", "funargs": ["s", "t"], "typemap": {"s": "string", "t": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_51sjs0x85o.c"], "classmap": {}, "range": {}, "needs_cast": {}, "global...
AlbertDeFusco/avogadro/libavogadro/src/extensions/symmetry/libmsym/src/linalg.c
double mdet(double M[3][3]){ double d0 = M[1][1] * M[2][2] - M[2][1] * M[1][2]; double d1 = M[1][0] * M[2][2] - M[1][2] * M[2][0]; double d2 = M[1][0] * M[2][1] - M[1][1] * M[2][0]; return (M[0][0]*d0 - M[0][1]*d1 + M[0][2]*d2); }
double mdet(doubleM)
double mdet(double M[3][3])
mdet
[ "double", "double" ]
{ "code": [ ".globl mdet\n.type mdet, @function\nmdet:\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-40(%rbp), %rax\n\taddq\t$24, %rax\n\tmovsd\t8(%rax), %xmm1\n\tmovq\t-40(%rbp)...
null
#include <stdio.h> #include <float.h> #include <stdlib.h> #include <string.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": [ "[98.2815884346, 37.957...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_48it6crv5y.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"], "liveout": ["M"], "returnvarname": ["returnv"], "execcmd": "", "funname": "mdet", "funargs": ["M"], "typemap": {"M": "array(float64#9)", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_48it6crv5y.c"], "classmap": {}, "range": {}, "needs_cast": {"M": {"old_type": "double", "ne...
edelmanclaudia/hebocr/src/fonts/ho_recognize_font_1.c
double ho_recognize_font_1_question (const double *array_in) { double return_value = 0.0; if ((array_in[52]) || (array_in[49])) return_value += 0.1; if ((array_in[1]) < 0.3) return_value += 0.1; if ((array_in[70])) return_value += 0.2; if ((array_in[28]) || (array_in[29])) return_value += 0.1...
double ho_recognize_font_1_question(const double *array_in)
double ho_recognize_font_1_question (const double *array_in)
ho_recognize_font_1_question
[ "double", "const double *" ]
{ "code": [ ".globl ho_recognize_font_1_question\n.type ho_recognize_font_1_question, @function\nho_recognize_font_1_question:\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\tpxor\t%xmm0,...
null
#include <stdio.h> #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": [ "[98.6490029608, 30.261...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_35rkic1l0z.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_in"], "liveout": ["array_in"], "returnvarname": ["returnv"], "execcmd": "", "funname": "ho_recognize_font_1_question", "funargs": ["array_in"], "typemap": {"array_in": "array(float64#32)", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35rkic1l0z.c"], "classmap": {}, "range...
herophuong/kpl-compiler/code_gen_1/token.c
int keywordEq(char *kw, char *string) { while ((*kw != '\0') && (*string != '\0')) { if (*kw != *string) break; kw ++; string ++; } return ((*kw == '\0') && (*string == '\0')); }
int keywordEq(char *kw, char *string)
int keywordEq(char *kw, char *string)
keywordEq
[ "int", "char *", "char *" ]
{ "code": [ ".globl keywordEq\n.type keywordEq, @function\nkeywordEq:\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 <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": [ "\"lje\"", "\"z...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_41fp4xx6nd.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": ["kw", "string"], "liveout": ["kw", "string"], "returnvarname": ["returnv"], "execcmd": "", "funname": "keywordEq", "funargs": ["kw", "string"], "typemap": {"kw": "string", "string": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_41fp4xx6nd.c"], "classmap": {}, "range": {},...
mzechmeister/serval/src/cbspline.c
int add_DTD(double *lhsbnd, int nk, double lam, int pord) { int k; if (lam > 0.) { if (pord==0){ for (k=0; k<nk; ++k) lhsbnd[k] += lam; } if (pord==1){ lhsbnd[0] += lam; for (k=1; k<nk-1; ++k) lhsbnd[k] += 2 * lam; lhsbnd[k] += lam; for (k=...
int add_DTD(double *lhsbnd, intnk, doublelam, intpord)
int add_DTD(double *lhsbnd, int nk, double lam, int pord)
add_DTD
[ "int", "double *", "int", "double", "int" ]
{ "code": [ ".globl add_DTD\n.type add_DTD, @function\nadd_DTD:\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\tmovsd\t%xmm0, -40(%rbp)\n\tmovl\t%edx, -32(%rbp)\n...
null
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <dlfcn.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": [ "[74.8918269387, 23.768...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_34qy739h6h.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": ["lhsbnd", "nk", "lam", "pord"], "liveout": ["lhsbnd"], "returnvarname": ["returnv"], "execcmd": "", "funname": "add_DTD", "funargs": ["lhsbnd", "nk", "lam", "pord"], "typemap": {"lhsbnd": "array(float64#32)", "nk": "int32", "lam": "float64", "pord": "int32", "returnv": "int32"}, "required_includes": ["/tmp/...
mspublic/openair4G-mirror/openair1/PHY/TOOLS/lut.c
double interp(double x, double *xs, double *ys, int count) { int i; double dx, dy; if (x < xs[0]) { return 1.0; } if (x > xs[count-1]) { return 0.0; } for (i = 0; i < count-1; i++) { if (xs[i+1] > x) { break; } } dx = xs[i+1] - xs[i];...
double interp(doublex, double *xs, double *ys, intcount)
double interp(double x, double *xs, double *ys, int count)
interp
[ "double", "double", "double *", "double *", "int" ]
{ "code": [ ".globl interp\n.type interp, @function\ninterp:\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\tmovq\t%rdi, -48(%rbp)\n\tmovq\t%rsi, -56(%rbp)\n\tmovl\t%edx, -60(%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": [ "17.9673499627", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_487f8ogwb2.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", "xs", "ys", "count"], "liveout": ["xs", "ys"], "returnvarname": ["returnv"], "execcmd": "", "funname": "interp", "funargs": ["x", "xs", "ys", "count"], "typemap": {"x": "float64", "xs": "array(float64#32)", "ys": "array(float64#32)", "count": "int32", "returnv": "float64"}, "required_includes": ["/tmp/...
makrutenko/dunovo/align.c
int _test_match(char *seq1, int start1, char *seq2, int start2) { int matches = 0; int total = 0; char base1, base2; int i; for (i = 0; i < 6 -1; i++) { base1 = seq1[start1+i]; base2 = seq2[start2+i]; if (base1 == 0 || base2 == 0) { break; } if (base1 == base2) { matches++; ...
int _test_match(char *seq1, intstart1, char *seq2, intstart2)
int _test_match(char *seq1, int start1, char *seq2, int start2)
_test_match
[ "int", "char *", "int", "char *", "int" ]
{ "code": [ ".globl _test_match\n.type _test_match, @function\n_test_match:\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\tmovq\t%rdx, -40(%rbp)\n\tmovl\t%ecx, -...
null
#include <stdio.h> #include <stdlib.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": [ "\"qbswvczuveynkknmaivy...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_3341dzg8pm.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": ["seq1", "start1", "seq2", "start2"], "liveout": ["seq1", "seq2"], "returnvarname": ["returnv"], "execcmd": "", "funname": "_test_match", "funargs": ["seq1", "start1", "seq2", "start2"], "typemap": {"seq1": "string", "start1": "int32", "seq2": "string", "start2": "int32", "returnv": "int32"}, "required_inclu...
iamsubhranil/Expressioner/expressioner.c
int priority(char c){ if(c=='(') return 4; if(c=='^' || c=='$') return 3; if(c=='*' || c=='/') return 2; if(c=='+' || c=='-') return 1; if(c=='%') return 0; return -1; }
int priority(charc)
int priority(char c)
priority
[ "int", "char" ]
{ "code": [ ".globl priority\n.type priority, @function\npriority:\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$40, -4(%rbp)\n\tjne\t.L2\n\tmovl\t$4, %eax\n\tj...
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_5553ewviku.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 ...
c
null
{"livein": ["c"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "priority", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_5553ewviku.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
jasonleaster/Pointer-On-C/Chapter nine/Chapter nine exercise 11.c
int counter(char* str) { int temp = 0; int num = 0; if(str[0]=='t' && str[1]=='h' && str[2]== 'e') { num++; } for(temp = 0;temp<96 && str[temp+3] != '\0';temp++) { if(str[temp] == ' ' && str[temp+1] == 't'&& str[temp+2] == 'h' && str[temp+3] == 'e') { num++; } } return num; }
int counter(char *str)
int counter(char* str)
counter
[ "int", "char *" ]
{ "code": [ ".globl counter\n.type counter, @function\ncounter:\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...
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": [ "\"\"" ], "...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_42aklrdbw3.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": "counter", "funargs": ["str"], "typemap": {"str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_42aklrdbw3.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
geofft/linmodem/v34gen.c
void find_data_rot(int *data_ptr, int *rot_ptr, int x0, int y0) { int xx,yy,data,rot,x,y; for(data=0;data<4;data++) { x = -3 + (data & 1) * 4; y = -3 + (data >> 1) * 4; for(rot=0;rot<4;rot++) { if (x == x0 && y == y0) { *data_ptr = data; *rot...
void find_data_rot(int *data_ptr, int *rot_ptr, intx0, inty0)
void find_data_rot(int *data_ptr, int *rot_ptr, int x0, int y0)
find_data_rot
[ "void", "int *", "int *", "int", "int" ]
{ "code": [ ".globl find_data_rot\n.type find_data_rot, @function\nfind_data_rot:\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\tmovl\t%edx, -52(%rbp)\n\tmovl\t%...
null
#include <stdlib.h> #include <stdio.h> #include <math.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": [ "[64, 28, 87, 112, 21, ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_46yjdbjgd0.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": ["data_ptr", "rot_ptr", "x0", "y0"], "liveout": ["data_ptr", "rot_ptr"], "returnvarname": [], "execcmd": "", "funname": "find_data_rot", "funargs": ["data_ptr", "rot_ptr", "x0", "y0"], "typemap": {"data_ptr": "array(int32#32)", "rot_ptr": "array(int32#32)", "x0": "int32", "y0": "int32"}, "required_includes":...
yigezhe/algorithm-summary/math/gcd/gcd_idea1.c
int gcd(int a,int b) { if(a<0) { a=-a; } if(b<0) { b=-b; } if(a==0) return b; if(b==0) return a; int gcd_ab=1; int i; for(i=2; i<=a; i++) { if(a%i==0 && b%i==0) { gcd_ab=i; } } return gcd_ab; }
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": [ "75", "19" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_597f9gb94r.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_597f9gb94r.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
robertding/The-C-Programming-Language/Chapter-1/1-18/main.c
int rstrip(char line[], int len) { int ln = 0; if (line[len-1] == '\n') { len--; ln = 1; }; while(len--) { if (line[len] == ' ' || line[len] == '\t') { if (ln) { line[len] = '\n'; line[len+1] = '\0'; } else { ...
int rstrip(char *line, intlen)
int rstrip(char line[], int len)
rstrip
[ "int", "char *", "int" ]
{ "code": [ ".globl rstrip\n.type rstrip, @function\nrstrip:\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\tmovl\t-28(%rbp), %eax\n\tcltq\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": [ "\"vaorqgvauysn\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_41hjuptw0u.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": ["line", "len"], "liveout": ["line"], "returnvarname": ["returnv"], "execcmd": "", "funname": "rstrip", "funargs": ["line", "len"], "typemap": {"line": "string", "len": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_41hjuptw0u.c"], "classmap": {}, "range": {}, "needs_cast": ...
HulaSamsquanch/1100d_lantern/src/gdb.c
int gdb_hexnibble2dec(char ch) { if ((ch >= 'a') && (ch <= 'f')) { return ch - 'a' + 10; } if ((ch >= '0') && (ch <= '9')) { return ch - '0'; } if ((ch >= 'A') && (ch <= 'F')) { return ch - 'A' + 10; } return -1; }
int gdb_hexnibble2dec(charch)
int gdb_hexnibble2dec(char ch)
gdb_hexnibble2dec
[ "int", "char" ]
{ "code": [ ".globl gdb_hexnibble2dec\n.type gdb_hexnibble2dec, @function\ngdb_hexnibble2dec:\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$96, -4(%rbp)\n\tjle\...
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" ], "var...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_561d1ob6vm.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": "gdb_hexnibble2dec", "funargs": ["ch"], "typemap": {"ch": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_561d1ob6vm.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
anuragpallaprolu/crepo/bs.c
int min(int inp[], int n){ int i,j,state; j=0; state = 0; for(i=0; i<=n && state == 0 ; ++i){ state = 1; for(j=i+1; j<=n && state == 1; ++j){ if(inp[0]<inp[j]){ state = 0; retu...
int min(int *inp, intn)
int min(int inp[], int n)
min
[ "int", "int *", "int" ]
{ "code": [ ".globl min\n.type min, @function\nmin:\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, -12(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tmovl\t$0, -16(%rb...
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": [ "[102, 100, 65, 115, 89...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_43xtkljy5w.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": ["inp", "n"], "liveout": ["inp"], "returnvarname": ["returnv"], "execcmd": "", "funname": "min", "funargs": ["inp", "n"], "typemap": {"inp": "array(int32#32)", "n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_43xtkljy5w.c"], "classmap": {}, "range": {}, "needs_cast": {}, ...
roice/ntripcaster/ntripcaster0.1.5/src/ntrip_string.c
char unalphabet(char alpha) { if (alpha >= 'A' && alpha <= 'Z') return (alpha - 'A'); else if (alpha >= 'a' && alpha <= 'z') return (alpha - 'a' + 26); else if (alpha >= '0' && alpha <= '9') return (alpha - '0' + 52); else if (alpha == '+') return 62; else if (alpha == '/') return 63; else if (alpha == ...
char unalphabet(charalpha)
char unalphabet(char alpha)
unalphabet
[ "char", "char" ]
{ "code": [ ".globl unalphabet\n.type unalphabet, @function\nunalphabet:\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...
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": [ "36" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_635g_k3zqq.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": ["alpha"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "unalphabet", "funargs": ["alpha"], "typemap": {"alpha": "int8", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_635g_k3zqq.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
chbrown/sandbox/c/k_and_r/search.c
int binsearch2(int x, int v[], int n) { int low = 0, mid, high = n - 1; while (low <= high) { mid = (low + high) / 2; if (x < v[mid]) high = mid - 1; else low = mid + 1; } if (x == v[mid]) return mid; return -1; }
int binsearch2(intx, int *v, intn)
int binsearch2(int x, int v[], int n)
binsearch2
[ "int", "int", "int *", "int" ]
{ "code": [ ".globl binsearch2\n.type binsearch2, @function\nbinsearch2:\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\tmovq\t%rsi, -32(%rbp)\n\tmovl\t%edx, -24(%rbp)\n\tmovl\t$0, -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": [ "120", "[61, 79...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_44bke2eyeo.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 ...
gh-pages
null
{"livein": ["x", "v", "n"], "liveout": ["v"], "returnvarname": ["returnv"], "execcmd": "", "funname": "binsearch2", "funargs": ["x", "v", "n"], "typemap": {"x": "int32", "v": "array(int32#32)", "n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_44bke2eyeo.c"], "classmap": {}, "range":...
livinsunny/alpha/binary_search.c
int binary_search(int a[],int key) { int mid=0; int low=0; int high=10 -1; while(low <= high) { mid=(low+high)/2; if(key == a[mid]) return mid+1; else if(key < a[mid]) { high = mid-1; } else { low =mid+1; } } return 0; }
int binary_search(int *a, intkey)
int binary_search(int a[],int key)
binary_search
[ "int", "int *", "int" ]
{ "code": [ ".globl binary_search\n.type binary_search, @function\nbinary_search:\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\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": [ "[15, 99, 71, 101, 74, ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_43ht5_9q8u.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", "key"], "liveout": ["a"], "returnvarname": ["returnv"], "execcmd": "", "funname": "binary_search", "funargs": ["a", "key"], "typemap": {"a": "array(int32#32)", "key": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_43ht5_9q8u.c"], "classmap": {}, "range": {}, "needs_cas...
xiaokeng/tcpl-exercise-answers/ch1/1-18.c
int del_space(char s[], int len) { int i; if (len == 1) return 1; for (i = len - 2; i >= 0; --i) { if (s[i] == '\t' || s[i] == ' ') { s[i] = '\n'; s[i + 1] = '\0'; } else { i = i + 1; break; } }...
int del_space(char *s, intlen)
int del_space(char s[], int len)
del_space
[ "int", "char *", "int" ]
{ "code": [ ".globl del_space\n.type del_space, @function\ndel_space:\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\tcmpl\t$1, -28(%rbp)\n\tjne\t.L2\n\tmovl\t$1,...
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": [ "\"zbcp\"", "79...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_619ebvf2qs.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"], "liveout": ["s"], "returnvarname": ["returnv"], "execcmd": "", "funname": "del_space", "funargs": ["s", "len"], "typemap": {"s": "string", "len": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_619ebvf2qs.c"], "classmap": {}, "range": {}, "needs_cast": {}, "glob...
embecosm/epiphany-gcc/gcc/testsuite/gcc.dg/pr46309.c
int f6 (unsigned int a) { int v1 = (a <= 31); int v2 = (a >= 64 && a <= 95); int v3 = (a >= 128 && a <= 159); int v4 = (a >= 192 && a <= 223); return v1 || v2 || v3 || v4; }
int f6(unsigned inta)
int f6 (unsigned int a)
f6
[ "int", "unsigned int" ]
{ "code": [ ".globl f6\n.type f6, @function\nf6:\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$31, -20(%rbp)\n\tsetbe\t%al\n\tmovzbl\t%al, %eax\n\tmovl\t%eax, -16(%rbp)\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": [ "736" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_37bcoai0lk.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 ...
parallella-gcc-4.7
null
{"livein": ["a"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "f6", "funargs": ["a"], "typemap": {"a": "uint32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_37bcoai0lk.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
jucimarjr/pca/trabalho2/lista2/lista2.03/function.c
int funcPrimo(int a) { int i, vezes = 0, valor; for (i = 1; i <= a && vezes <= 3; i++) { if (a % i == 0) vezes ++; } if (vezes == 2) { valor = 1; } else { valor = 0; } return valor; }
int funcPrimo(inta)
int funcPrimo(int a)
funcPrimo
[ "int", "int" ]
{ "code": [ ".globl funcPrimo\n.type funcPrimo, @function\nfuncPrimo:\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, -8(%rbp)\n\tmovl\t$1, -12(%rbp)\n\tjmp\t.L2\n.L5:\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": [ "31" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_37go3iavex.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": "funcPrimo", "funargs": ["a"], "typemap": {"a": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_37go3iavex.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
shucommon/little-routine/leetcode/8-atoi.c
int myAtoi(char * str){ long long a = 0; int sign = 1; while(*str == ' ') str++; if(*str != '+' && *str != '-' && (*str < '0' || *str > '9')) return 0; if(*str == '-') { sign = -1; str++; } else if(*str == '+') { str++; } while(*str >= '0' && *str <= ...
int myAtoi(char *str)
int myAtoi(char * str)
myAtoi
[ "int", "char *" ]
{ "code": [ ".globl myAtoi\n.type myAtoi, @function\nmyAtoi:\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\tmovl\t$1, -16(%rbp)\n\tjmp\t.L2\n.L3:\n\taddq\t$1, -24(%...
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": [ "\"mpiugxoglyountnicw\"...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_443i5rs8io.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": "myAtoi", "funargs": ["str"], "typemap": {"str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_443i5rs8io.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
morningsend/zkernel/device/PL011.c
int xtoi( char x ) { if ( ( x >= '0' ) && ( x <= '9' ) ) { return ( 0 + ( x - '0' ) ); } else if ( ( x >= 'a' ) && ( x <= 'f' ) ) { return ( 10 + ( x - 'a' ) ); } else if ( ( x >= 'A' ) && ( x <= 'F' ) ) { return ( 10 + ( x - 'A' ) ); } return -1; }
int xtoi(charx)
int xtoi( char x )
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\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.L2\...
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": [ "33" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_40odagsbcu.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": "xtoi", "funargs": ["x"], "typemap": {"x": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_40odagsbcu.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
taidalab/openwrt_widora/package/iot_gw_nxp/src/IotCommon/iotError.c
char * iotErrorStringRaw( int err ) { switch ( err ) { case 0: return( "No error" ); break; case 4: return( "Authorize timeout" ); break; case 5: return( "Authorize response" ); break; case 6: return( "No TLS received" ); break; ...
char * iotErrorStringRaw(interr)
char * iotErrorStringRaw( int err )
iotErrorStringRaw
[ "char *", "int" ]
{ "code": [ ".globl iotErrorStringRaw\n.type iotErrorStringRaw, @function\niotErrorStringRaw:\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$80, -4(%rbp)\n\tja\t.L2\n\tmovl\t-4(%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...
#include <stdio.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": [ "90" ], "va...
extern "C" { #include "/run/user/1000/pytmpfile_jordiws_35777259rm5iq85.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_41ygke72xl.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": ["err"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "iotErrorStringRaw", "funargs": ["err"], "typemap": {"err": "int32", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_41ygke72xl.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
JonSteinn/Kattis-Solutions/src/Marko/C/main.c
int matches(char n, char c) { return (n == '2' && c <= 'c') || (n == '3' && c <= 'f') || (n == '4' && c <= 'i') || (n == '5' && c <= 'l') || (n == '6' && c <= 'o') || (n == '7' && c <= 's') || (n == '8' && c <= 'v') || (n == '9' && c <= 'z...
int matches(charn, charc)
int matches(char n, char c)
matches
[ "int", "char", "char" ]
{ "code": [ ".globl matches\n.type matches, @function\nmatches:\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\t$50, -4(...
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": [ "34", "60" ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_64qub54837.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", "c"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "matches", "funargs": ["n", "c"], "typemap": {"n": "int8", "c": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64qub54837.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
tmathmeyer/kernel_sanders/stringlib.c
int string_testEqualN(const char * one, const char * two, const unsigned int n){ if(!one || !two) return 0; char * m1 = (char *)one; char * m2 = (char *)two; unsigned int i; for(i = 0; i < n && *m1; i++) if(*m1++ != *m2++) return 0; return 1; }
int string_testEqualN(const char *one, const char *two, const unsigned intn)
int string_testEqualN(const char * one, const char * two, const unsigned int n)
string_testEqualN
[ "int", "const char *", "const char *", "const unsigned int" ]
{ "code": [ ".globl string_testEqualN\n.type string_testEqualN, @function\nstring_testEqualN:\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%edx, -52(%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": [ "\"rkkmepbvlu\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_48ggewoklb.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", "two", "n"], "liveout": ["one", "two"], "returnvarname": ["returnv"], "execcmd": "", "funname": "string_testEqualN", "funargs": ["one", "two", "n"], "typemap": {"one": "string", "two": "string", "n": "uint32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_48ggewoklb.c"], "cl...
dengue8830/sudoku/generarSudoku.h
int getCantidadConflictosEnReglaVertical(int tabla[9][9], int ii, int jj, int candidato, int enGral){ int i, count = 0; for (i=0; i < 9; i++) { if(enGral && i == ii){ continue; } if(tabla[i][jj] == candidato){ count++; } } return count; }
int getCantidadConflictosEnReglaVertical(inttabla)
int getCantidadConflictosEnReglaVertical(int tabla[9][9], int ii, int jj, int candidato, int enGral)
getCantidadConflictosEnReglaVertical
[ "int", "int" ]
{ "code": [ ".globl getCantidadConflictosEnReglaVertical\n.type getCantidadConflictosEnReglaVertical, @function\ngetCantidadConflictosEnReglaVertical:\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, -...
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": [ "[117, 114, 0, 34, 125,...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_52sxssw0nc.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": ["tabla", "ii", "jj", "candidato", "enGral"], "liveout": ["tabla"], "returnvarname": ["returnv"], "execcmd": "", "funname": "getCantidadConflictosEnReglaVertical", "funargs": ["tabla", "ii", "jj", "candidato", "enGral"], "typemap": {"tabla": "array(int32#81)", "ii": "int32", "jj": "int32", "candidato": "int3...
walafc0/soclib/soclib/platform/topcells/caba-smith-waterman/soft/dsx/src/common/aa.h
char AA2char(short x){ switch (x) { case 0 : return 'C'; case 1 : return 'G'; case 2 : return 'P'; case 3 : return 'S'; case 4 : return 'A'; case 5 : return 'T'; case 6 : return 'D'; c...
char AA2char(shortx)
char AA2char(short x)
AA2char
[ "char", "short" ]
{ "code": [ ".globl AA2char\n.type AA2char, @function\nAA2char:\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\tmovw\t%ax, -4(%rbp)\n\tmovswl\t-4(%rbp), %eax\n\tcmpl\t$19, %eax\n\tja\t.L2\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": [ "53" ], "va...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_49x0sp4420.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": "AA2char", "funargs": ["x"], "typemap": {"x": "int16", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_49x0sp4420.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
vincho7012/po-homework/2015-2016/V/13/06/task1.c
int is_prime(unsigned int in) { int i; if(in < 2) return -1; if(in == 2 || in == 3) return 1; if(in % 2 == 0 || in % 3 == 0) return 0; else return 1; return -1; }
int is_prime(unsigned intin)
int is_prime(unsigned int in)
is_prime
[ "int", "unsigned int" ]
{ "code": [ ".globl is_prime\n.type is_prime, @function\nis_prime:\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$1, -4(%rbp)\n\tja\t.L2\n\tmovl\t$-1, %eax\n\tjmp\t.L3\n.L2:\n\tcmp...
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": [ "442" ], "v...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_43vxhocfjw.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": ["in"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "is_prime", "funargs": ["in"], "typemap": {"in": "uint32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_43vxhocfjw.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []}
costaafm/C/anagram.c
int check_anagram(char a[], char b[]) { int first[26] = {0}, second[26] = {0}, c = 0; while (a[c] != '\0') { first[a[c]-'a']++; c++; } c = 0; while (b[c] != '\0') { second[b[c]-'a']++; c++; } for (c = 0; c < 26; c++) { if (first[c] != second[c]) r...
int check_anagram(char *a, char *b)
int check_anagram(char a[], char b[])
check_anagram
[ "int", "char *", "char *" ]
{ "code": [ ".globl check_anagram\n.type check_anagram, @function\ncheck_anagram:\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$256, %rsp\n\tmovq\t%rdi, -248(%rbp)\n\tmovq\t%rsi, -256(%rbp)\n\tmovq\t%fs:...
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": [ "\"cveruseightih\"", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_3619jbm071.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": "check_anagram", "funargs": ["a", "b"], "typemap": {"a": "string", "b": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_3619jbm071.c"], "classmap": {}, "range": {}, "needs_cast": {}, "...
COL-IU/TransGeneScan/util_lib.c
int trinucleotide (char a, char b, char c){ int freq_id; if (a == 'A' || a == 'a'){ freq_id = 0;} else if (a == 'C' || a == 'c'){ freq_id = 16;} else if (a == 'G' || a == 'g'){ freq_id = 32;} else if (a == 'T' || a == 't'){ freq_id = 48;} else { freq_id = 0;} if (b == 'A' || b == 'a'){ freq_id += 0;} ...
int trinucleotide(chara, charb, charc)
int trinucleotide (char a, char b, char c)
trinucleotide
[ "int", "char", "char", "char" ]
{ "code": [ ".globl trinucleotide\n.type trinucleotide, @function\ntrinucleotide:\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%esi, %ecx\n\tmovl\t%edx, %eax\n\tmovl\t%edi, %edx\n\tmovb\t%dl, -20(%rbp)\n...
null
#include <stdio.h> #include <math.h> #include <stdlib.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": [ "42", "39", ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_57wyo3n56n.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", "c"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "trinucleotide", "funargs": ["a", "b", "c"], "typemap": {"a": "int8", "b": "int8", "c": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_57wyo3n56n.c"], "classmap": {}, "range": {}, "needs_c...
Gwendocg/babeldToS/util.c
int parse_thousands(const char *string) { unsigned int in, fl; int i, j; in = fl = 0; i = 0; while(string[i] == ' ' || string[i] == '\t') i++; while(string[i] >= '0' && string[i] <= '9') { in = in * 10 + string[i] - '0'; i++; } if(string[i] == '.') { i++;...
int parse_thousands(const char *string)
int parse_thousands(const char *string)
parse_thousands
[ "int", "const char *" ]
{ "code": [ ".globl parse_thousands\n.type parse_thousands, @function\nparse_thousands:\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-12(%rbp), %eax\n\tmov...
null
#include <stdlib.h> #include <stdarg.h> #include <string.h> #include <sys/time.h> #include <time.h> #include <stdio.h> #include <unistd.h> #include <limits.h> #include <assert.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.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": [ "\"szuv\"" ], ...
null
extern "C" { #include "/tmp/pytmpfile_2d0c40262005_540sfqxyht.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": "parse_thousands", "funargs": ["string"], "typemap": {"string": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_540sfqxyht.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals"...