path stringlengths 13 167 | func_def stringlengths 54 3.79k | func_head stringlengths 7 435 | func_head_types stringlengths 7 477 | fname stringlengths 1 44 | signature sequencelengths 2 43 | asm dict | synth_deps stringclasses 52
values | real_deps stringlengths 5 561 | synth_io_pairs dict | real_io_pairs dict | synth_exe_wrapper stringclasses 191
values | real_exe_wrapper stringlengths 1.23k 5.22k | ref stringclasses 85
values | synth_iospec stringclasses 1
value | real_iospec stringlengths 264 1.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Shapeways/puppetarium/modules/profiles/files/cron/cronjobber.c | int
prefix_of(char *special, char *s)
{
for (; *special != '\0'; ++special)
if (*special != *s++)
return 0;
return (*s == '=' || *s == '\0');
} | int prefix_of(char *special, char *s) | int prefix_of(char *special, char *s) | prefix_of | [
"int",
"char *",
"char *"
] | {
"code": [
".globl prefix_of\n.type prefix_of, @function\nprefix_of:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -8(%rbp)\n\tmovq\t%rsi, -16(%rbp)\n\tjmp\t.L2\n.L5:\n\tmovq\t-8(%rbp), %rax\n\tmov... | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <stdarg.h>
#include <fcntl.h>
#include <time.h>
#include <signal.h>
#include <dirent.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"rkpdpvgyshuebbedxz\"... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_35014pti0y.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["special", "s"], "liveout": ["special", "s"], "returnvarname": ["returnv"], "execcmd": "", "funname": "prefix_of", "funargs": ["special", "s"], "typemap": {"special": "string", "s": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35014pti0y.c"], "classmap": {}, "range": {},... |
neosam/s3d/src/compiler.c | char *skipSpaces(char *pc)
{
while((*pc == ' ' || *pc == '\n' || *pc == '\t' || *pc == '\r') &&
*pc != '\0')
pc++;
return pc;
} | char * skipSpaces(char *pc) | char *skipSpaces(char *pc) | skipSpaces | [
"char *",
"char *"
] | {
"code": [
".globl skipSpaces\n.type skipSpaces, @function\nskipSpaces:\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\tjmp\t.L2\n.L5:\n\taddq\t$1, -8(%rbp)\n.L2:\n\tmovq\t-8(%rbp), %rax\... | null | #include <stdio.h>
#include <time.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": [
"\"\""
],
"... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_50r9scjlyd.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": ["pc"], "liveout": ["pc"], "returnvarname": ["returnv"], "execcmd": "", "funname": "skipSpaces", "funargs": ["pc"], "typemap": {"pc": "string", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_50r9scjlyd.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
119/aircam-openwrt/build_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9.32_eabi/gcc-linaro-4.5-2011.02-0/gcc/testsuite/gcc.dg/tree-ssa/pr15349.c | int
foo (int a, int b)
{
int t;
if (b)
{
if (a)
t = 3;
else
t = 5;
a = 0;
}
else
t = 7;
return t;
} | int foo(inta, intb) | int foo (int a, int b) | foo | [
"int",
"int",
"int"
] | {
"code": [
".globl foo\n.type foo, @function\nfoo:\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, -24(%rbp)\n\tje\t.L2\n\tcmpl\t$0, -20(%rbp)\n\tje\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": [
"6",
"80"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_30cbh7opu6.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 ... | ar9344 | null | {"livein": ["a", "b"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "foo", "funargs": ["a", "b"], "typemap": {"a": "int32", "b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_30cbh7opu6.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
grev-uv/hpg-methyl/containers/cprops/util.c | int xtoi(char *p)
{
int curr;
int res = 0;
while (*p)
{
curr = ((*p) >= '0' && (*p) <= '9' ? (*p) - '0' : (*p) >= 'A' && (*p) <= 'F' ? (*p) - 'A' + 10 : (*p) >= 'a' && (*p) <= 'f' ? (*p) - 'a' + 10 : -1);
if (curr == -1) break;
res = res * 0x10 + curr;
p++;
}
return res;
} | int xtoi(char *p) | int xtoi(char *p) | xtoi | [
"int",
"char *"
] | {
"code": [
".globl xtoi\n.type xtoi, @function\nxtoi:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tjmp\t.L2\n.L11:\n\tmovq\t-24(%rbp), %rax\n\tmovzbl\t(%rax), %e... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"blnyowntfwxpqul\""
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_366iymz6nn.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | develop | null | {"livein": ["p"], "liveout": ["p"], "returnvarname": ["returnv"], "execcmd": "", "funname": "xtoi", "funargs": ["p"], "typemap": {"p": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_366iymz6nn.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
jpmrno/ITBA-PI/TP07/Encripta.c | int retPosVector(char letra, char alfabeto[]) {
int i;
for( i = 0; alfabeto[i]; i++) {
if(alfabeto[i] == letra) {
return i;
}
}
} | int retPosVector(charletra, char *alfabeto) | int retPosVector(char letra, char alfabeto[]) | retPosVector | [
"int",
"char",
"char *"
] | {
"code": [
".globl retPosVector\n.type retPosVector, @function\nretPosVector:\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\tmovq\t%rsi, -32(%rbp)\n\tmovb\t%al, -20(%rbp)\n\tmovl\t$0, -4(%rb... | null | #include <stdio.h>
#include <time.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": [
"106",
"\"ptaqh... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_42xwvm1t5e.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": ["letra", "alfabeto"], "liveout": ["alfabeto"], "returnvarname": ["returnv"], "execcmd": "", "funname": "retPosVector", "funargs": ["letra", "alfabeto"], "typemap": {"letra": "int8", "alfabeto": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_42xwvm1t5e.c"], "classmap": {}, ... |
patholden/linux/drivers/CgosLib/Cgos.c | unsigned int CgosStrLen(const char *s)
{
const char *ss=s;
if (!s) return 0;
while (*s++);
return s-ss-1;
} | unsigned int CgosStrLen(const char *s) | unsigned int CgosStrLen(const char *s) | CgosStrLen | [
"unsigned int",
"const char *"
] | {
"code": [
".globl CgosStrLen\n.type CgosStrLen, @function\nCgosStrLen:\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, -24(%rb... | 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": [
"\"zyhvcma\""
],
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_36p06yur55.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": "CgosStrLen", "funargs": ["s"], "typemap": {"s": "string", "returnv": "uint32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_36p06yur55.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
Cnidarias/al-go-rithms/cryptography/atbash_cipher/c/atbash_cipher.c | char cipher (char c){
if(c >= 65 && c<= 90){
c = c - 65;
c = 90 - c;
}else if( c >= 97 && c<= 122){
c = c-97;
c = 122 - c;
}
return c;
} | char cipher(charc) | char cipher (char c) | cipher | [
"char",
"char"
] | {
"code": [
".globl cipher\n.type cipher, @function\ncipher:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, %eax\n\tmovb\t%al, -4(%rbp)\n\tcmpb\t$64, -4(%rbp)\n\tjle\t.L2\n\tcmpb\t$90, -4(%rbp)\n\tjg... | 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": [
"124"
],
"v... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_42ecrm7t2u.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": "cipher", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_42ecrm7t2u.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
paxromana96/LispCompiler/src/syntax.c | char * getTokenTypeName(int type){
switch(type){
case 1:
return "<LParen>";
case 2:
return "<RParen>";
case 3:
return "<Number>";
case 8:
return "<ID>";
case 6:
return "<Plus>";
case 7:
return "<Minus>";
case -2:
return "<EOF>";
case -1:
return "<Error!>";
default:
return "... | char * getTokenTypeName(inttype) | char * getTokenTypeName(int type) | getTokenTypeName | [
"char *",
"int"
] | {
"code": [
".globl getTokenTypeName\n.type getTokenTypeName, @function\ngetTokenTypeName:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -4(%rbp)\n\tmovl\t-4(%rbp), %eax\n\taddl\t$2, %eax\n\tcmpl\t$... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"13"
],
"va... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_64leyo_aie.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["type"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "getTokenTypeName", "funargs": ["type"], "typemap": {"type": "int32", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64leyo_aie.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
kanner/KnR_solutions/Chapter3/3-03/expand.c | int checkrange(char c1, char c2)
{
if (('a' <= c1 && c1 <= 'z') && (c1 <= c2 && c2 <= 'z'))
return 1;
if (('A' <= c1 && c1 <= 'Z') && (c1 <= c2 && c2 <= 'Z'))
return 1;
if (('0' <= c1 && c1 <= '9') && (c1 <= c2 && c2 <= '9'))
return 1;
return 0;
} | int checkrange(charc1, charc2) | int checkrange(char c1, char c2) | checkrange | [
"int",
"char",
"char"
] | {
"code": [
".globl checkrange\n.type checkrange, @function\ncheckrange:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, %edx\n\tmovl\t%esi, %eax\n\tmovb\t%dl, -4(%rbp)\n\tmovb\t%al, -8(%rbp)\n\tcmpb\... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"4",
"5"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_384w2203gi.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["c1", "c2"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "checkrange", "funargs": ["c1", "c2"], "typemap": {"c1": "int8", "c2": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_384w2203gi.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals":... |
mspenceree/Versa-Filter/firmware/recover.c | int valid_serial(char *carray)
{
int i, code, num[10], sumo=0, sume=0, sumss=0;
for(i=0;i<10;i++){
code = carray[i];
num[i] = code - 0x30;
if((code<0x30)||(code>0x39)){
return 0;
}
}
sumo = num[0]+num[2]+num[4];
sumo = sumo - (sumo/10)*10;
sume = num[1]+num[3]+num[5];
sume = sume - (sume/10)*10;
sumss =... | int valid_serial(char *carray) | int valid_serial(char *carray) | valid_serial | [
"int",
"char *"
] | {
"code": [
".globl valid_serial\n.type valid_serial, @function\nvalid_serial:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tsubq\t$96, %rsp\n\tmovq\t%rdi, -88(%rbp)\n\tmovq\t%fs:40, %rax\n\tmovq\t%rax, -8(%rbp... | null | #include <stdlib.h> /* Include standard library header */
#include <math.h> /* Include math library header */
#include <string.h> /* Include string function header */
#include <ctype.h> /* Include character function header */
#include <limits.h> /* define LONG_MIN and LONG_MAX */
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"uvrujj\""
],
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_44tyhg3423.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["carray"], "liveout": ["carray"], "returnvarname": ["returnv"], "execcmd": "", "funname": "valid_serial", "funargs": ["carray"], "typemap": {"carray": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_44tyhg3423.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": [... |
NEWPLAN/books/osask/omake/tolsrc/go_0023s/go_lib/strcmp.c | int GO_strcmp (char *d, char *s)
{
while ('\0' != *d) {
if (*d != *s)
return *d - *s;
d++;
s++;
}
return *d - *s;
} | int GO_strcmp(char *d, char *s) | int GO_strcmp (char *d, char *s) | GO_strcmp | [
"int",
"char *",
"char *"
] | {
"code": [
".globl GO_strcmp\n.type GO_strcmp, @function\nGO_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, -8(%rbp)\n\tmovq\t%rsi, -16(%rbp)\n\tjmp\t.L2\n.L5:\n\tmovq\t-8(%rbp), %rax\n\tmov... | null | #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": [
"\"rcabex\"",
"... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_51fz277x0t.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": ["d", "s"], "liveout": ["d", "s"], "returnvarname": ["returnv"], "execcmd": "", "funname": "GO_strcmp", "funargs": ["d", "s"], "typemap": {"d": "string", "s": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_51fz277x0t.c"], "classmap": {}, "range": {}, "needs_cast": {}, "glob... |
gdarko/CProgrammingExercises/zbirka_2/datoteki/zad_383.c | int isspec(char c)
{
return (((c >= '!') && (c <= '/')) || (c >= ':' && c <= '@') || ((c >= '[') && (c <= '`')) || ((c >= '{') && (c <= 'DEL')));
} | int isspec(charc) | int isspec(char c) | isspec | [
"int",
"char"
] | {
"code": [
".globl isspec\n.type isspec, @function\nisspec:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, %eax\n\tmovb\t%al, -4(%rbp)\n\tcmpb\t$32, -4(%rbp)\n\tjle\t.L2\n\tcmpb\t$47, -4(%rbp)\n\tjl... | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"69"
],
"va... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_35bvkd2_kn.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["c"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "isspec", "funargs": ["c"], "typemap": {"c": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35bvkd2_kn.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
joa-quim/GMT5SAR/preproc/S1A_preproc/lib/xml.c | int cat_nums(char *str_out, char *str){
int i=0,j=0;
while(str[i]!='\0'){
if(str[i] >= '0' && str[i] <= '9'){
str_out[j++] = str[i];
}
i++;
}
str_out[j] = '\0';
return(j);
} | int cat_nums(char *str_out, char *str) | int cat_nums(char *str_out, char *str) | cat_nums | [
"int",
"char *",
"char *"
] | {
"code": [
".globl cat_nums\n.type cat_nums, @function\ncat_nums:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovq\t%rsi, -32(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp... | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.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": [
"\"igbdxnvcqjzqy\"",
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_59v8yufbak.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_out", "str"], "liveout": ["str_out", "str"], "returnvarname": ["returnv"], "execcmd": "", "funname": "cat_nums", "funargs": ["str_out", "str"], "typemap": {"str_out": "string", "str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_59v8yufbak.c"], "classmap": {}, "rang... |
shehan492/C_programs/pdslab/day1/cs1803-day1-prog1.c | int countVowels(char *str)
{
int i,count=0;
for(i=0;str[i]!='\0';++i)
if('a' == str[i] ||
'e' == str[i] ||
'i' == str[i] ||
'o' == str[i] ||
'u' == str[i] ||
'A' == str[i] ||
'E' == str[i] ||
'I' == str[i] ||
'O' == str[i] ||
'U' == str[i] )
count++;
return count;
} | int countVowels(char *str) | int countVowels(char *str) | countVowels | [
"int",
"char *"
] | {
"code": [
".globl countVowels\n.type countVowels, @function\ncountVowels:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tjmp\t.L2\n.L5:\n\tm... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"zxwcljdbsyizzobsjazq... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_61heo1kpe_.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["str"], "liveout": ["str"], "returnvarname": ["returnv"], "execcmd": "", "funname": "countVowels", "funargs": ["str"], "typemap": {"str": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_61heo1kpe_.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
IAmAnubhavSaini/blog-posts/c/hcf_via_euclids_division_algorithm.c | int hcf_iterative(int a, int b){
int q, r;
if(a > 0 && b > 0){
if(a < b)
return hcf_iterative(b, a);
q = a / b;
r = a % b;
while(r != 0 && r != 1){
a = b;
b = r;
q = a / b;
r = a % b;
}
if(r == 0)
return b;
else if(r == 1)
return 1;
}
return -1;
} | int hcf_iterative(inta, intb) | int hcf_iterative(int a, int b) | hcf_iterative | [
"int",
"int",
"int"
] | {
"code": [
".globl hcf_iterative\n.type hcf_iterative, @function\nhcf_iterative:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tsubq\t$32, %rsp\n\tmovl\t%edi, -20(%rbp)\n\tmovl\t%esi, -24(%rbp)\n\tcmpl\t$0, -20... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"23",
"55"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_45dbgpeq0i.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["a", "b"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "hcf_iterative", "funargs": ["a", "b"], "typemap": {"a": "int32", "b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45dbgpeq0i.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": ... |
michalis-/rcu/valtree/v3.19/fake_sched.h | unsigned long int_sqrt(unsigned long x)
{
unsigned long b, m, y = 0;
if (x <= 1)
return x;
m = 1UL << ((sizeof(long) * 8) - 2);
while (m != 0) {
b = y + m;
y >>= 1;
if (x >= b) {
x -= b;
... | unsigned long int_sqrt(unsigned longx) | unsigned long int_sqrt(unsigned long x) | int_sqrt | [
"unsigned long",
"unsigned long"
] | {
"code": [
".globl int_sqrt\n.type int_sqrt, @function\nint_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\tmovq\t%rdi, -40(%rbp)\n\tmovq\t$0, -16(%rbp)\n\tcmpq\t$1, -40(%rbp)\n\tja\t.L2\n\tmovq\t-40(%rbp)... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"21"
],
"va... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_54il_hk1o2.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": "int_sqrt", "funargs": ["x"], "typemap": {"x": "uint64", "returnv": "uint64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_54il_hk1o2.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
NutshellySima/cpp/SYSU/matrix-C/Calculate the day.c | int leapyear(int year) {
if (year % 400 == 0)
return 1;
else if (year % 4 == 0 && year % 100 != 0)
return 1;
else
return 0;
} | int leapyear(intyear) | int leapyear(int year) | leapyear | [
"int",
"int"
] | {
"code": [
".globl leapyear\n.type leapyear, @function\nleapyear:\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), %edx\n\tmovslq\t%edx, %rax\n\timulq\t$1374389535, %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": [
"9"
],
"var... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_61od0zydej.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": ["year"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "leapyear", "funargs": ["year"], "typemap": {"year": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_61od0zydej.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
n-t-roff/DWB3.3/text/troff/n4.c | int quant(int n, int m)
{
int i, neg;
neg = 0;
if (n < 0) {
neg++;
n = -n;
}
i = n / m;
if (n - m * i > m / 2)
i += 1;
i *= m;
if (neg)
i = -i;
return(i);
} | int quant(intn, intm) | int quant(int n, int m) | quant | [
"int",
"int",
"int"
] | {
"code": [
".globl quant\n.type quant, @function\nquant:\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$0, -4(%rbp)\n\tcmpl\t$0, -20(%rbp)\n\tjns\t.L2\n\... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"115",
"15"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_339ai5d10y.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", "m"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "quant", "funargs": ["n", "m"], "typemap": {"n": "int32", "m": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_339ai5d10y.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
yigezhe/algorithm-summary/math/gcd/gcd_idea2_way2.c | int gcd(int a,int b) {
int r;
if(a<0) {
a=-a;
}
if(b<0) {
b=-b;
}
if(b>a) {
int tmp=a;
a=b;
b=tmp;
}
# 36 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/yigezhe/algorithm-summary/refs/heads/master/math/gcd/... | int gcd(inta, intb) | int gcd(int a,int b) | gcd | [
"int",
"int",
"int"
] | {
"code": [
".globl gcd\n.type gcd, @function\ngcd:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -20(%rbp)\n\tmovl\t%esi, -24(%rbp)\n\tcmpl\t$0, -20(%rbp)\n\tjns\t.L2\n\tnegl\t-20(%rbp)\n.L2:\n\tcm... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"104",
"99"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_59gy4uj0wf.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["a", "b"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "gcd", "funargs": ["a", "b"], "typemap": {"a": "int32", "b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_59gy4uj0wf.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
dlna/DeveloperToolsForUPnP/Samples/EmbeddedSamples/Micro Av Server/MicroMediaServer.c | char MungeHexDigit(char* one_hexdigit)
{
char r = -1;
char c = *one_hexdigit;
if (c >= '0' && c <= '9')
{
r = c - '0';
}
else if (c >= 'A' && c <= 'F')
{
r = c - 'A' + 10;
}
else if (c >= 'a' && c <= 'F')
{
r = c - 'a' + 10;
}
return r;
} | char MungeHexDigit(char *one_hexdigit) | char MungeHexDigit(char* one_hexdigit) | MungeHexDigit | [
"char",
"char *"
] | {
"code": [
".globl MungeHexDigit\n.type MungeHexDigit, @function\nMungeHexDigit:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovb\t$-1, -2(%rbp)\n\tmovq\t-24(%rbp), %rax\n\tmovzbl\t(... | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"qfvfw\""
],
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_58e681x_mf.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["one_hexdigit"], "liveout": ["one_hexdigit"], "returnvarname": ["returnv"], "execcmd": "", "funname": "MungeHexDigit", "funargs": ["one_hexdigit"], "typemap": {"one_hexdigit": "string", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_58e681x_mf.c"], "classmap": {}, "range": {}, "needs... |
ningwei1993/beginnerOfC/5.c | int function(int x, int y)
{
switch (y) {
case 2:
if ((x % 4 == 0 && x % 100 != 0) || x % 400 == 0) {
return 29;
} else {
return 28;
}
case 4:
case 6:
case 9:
case 11:
return 30;
default:
return 31;
}
} | int function(intx, inty) | int function(int x, int y) | function | [
"int",
"int",
"int"
] | {
"code": [
".globl function\n.type function, @function\nfunction:\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$11, -8(%rbp)\n\tja\t.L2\n\tmovl\t-8(%rbp),... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"88",
"56"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_3011v4bfnu.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", "y"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "function", "funargs": ["x", "y"], "typemap": {"x": "int32", "y": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_3011v4bfnu.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
Desartes/VUT/1.projekt/proj1.c | int isnum(char *c) {
int i = 0;
while( *(c + i) != '\0' ) {
if ( !(*(c + i) >= 48 && *(c + i) <= 57) )
break;
else
i++;
}
if ( *(c + i) == '\0' )
return 1;
else
return 0;
} | int isnum(char *c) | int isnum(char *c) | isnum | [
"int",
"char *"
] | {
"code": [
".globl isnum\n.type isnum, @function\nisnum:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L4:\n\tmovl\t-4(%rbp), %eax\n\tmovslq\t%eax, %rd... | null | #include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <limits.h>
#include <ctype.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"pqzmjlrel\""
]... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_328rtgu9nb.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["c"], "liveout": ["c"], "returnvarname": ["returnv"], "execcmd": "", "funname": "isnum", "funargs": ["c"], "typemap": {"c": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_328rtgu9nb.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
tykowale/learningC/ProgrammingInC/chapter10/ex4.c | int my_str_cmp (const char s1[], const char s2[])
{
int i = 0;
int are_equal = 0;
while ( s1[i] == s2[i] && s1[i] != '\0' && s2[i] != '\0' ) {
++i;
}
if ( s1[i] == '\0' && s2[i] == '\0' ) {
are_equal = 1;
}
return are_equal;
} | int my_str_cmp(const char *s1, const char *s2) | int my_str_cmp (const char s1[], const char s2[]) | my_str_cmp | [
"int",
"const char *",
"const char *"
] | {
"code": [
".globl my_str_cmp\n.type my_str_cmp, @function\nmy_str_cmp:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovq\t%rsi, -32(%rbp)\n\tmovl\t$0, -8(%rbp)\n\tmovl\t$0, -4(%rbp)\... | null | #include <stdio.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"\"atg\"",
"\"e... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_5600ori7sc.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["s1", "s2"], "liveout": ["s1", "s2"], "returnvarname": ["returnv"], "execcmd": "", "funname": "my_str_cmp", "funargs": ["s1", "s2"], "typemap": {"s1": "string", "s2": "string", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_5600ori7sc.c"], "classmap": {}, "range": {}, "needs_cast": ... |
andres-erbsen/baseconvert/opt/shortcuts.c | int magic(int a, int b) {
if (a < 2 || b < 2) return 0;
int r;
while (1) {
if (b > a) {
r = a;
a = b;
b = r;
}
r = a%b;
a /= b;
if (r) return 0;
else if (a == 1) return b;
}
} | int magic(inta, intb) | int magic(int a, int b) | magic | [
"int",
"int",
"int"
] | {
"code": [
".globl magic\n.type magic, @function\nmagic:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -20(%rbp)\n\tmovl\t%esi, -24(%rbp)\n\tcmpl\t$1, -20(%rbp)\n\tjle\t.L2\n\tcmpl\t$1, -24(%rbp)\n... | null | #include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <limits.h>
#include <assert.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"76",
"68"
... | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_45cw4dgww8.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json ... | master | null | {"livein": ["a", "b"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "magic", "funargs": ["a", "b"], "typemap": {"a": "int32", "b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45cw4dgww8.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3