path
stringlengths 13
163
| func_def
stringlengths 17
11.2k
| func_head
stringlengths 7
184
| func_head_types
stringlengths 7
195
| fname
stringlengths 1
43
| signature
sequencelengths 2
12
| asm
dict | synth_deps
stringclasses 26
values | real_deps
stringlengths 5
418
| synth_io_pairs
dict | real_io_pairs
dict | synth_exe_wrapper
stringclasses 44
values | real_exe_wrapper
stringlengths 1.23k
3.24k
| ref
stringclasses 39
values | synth_iospec
stringclasses 1
value | real_iospec
stringlengths 266
748
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
YifanCheng/VIC/external/VIC/src/modify_Ksat.c | double linear_interp(double x,double lx,double ux,double ly,double uy) {
return((x-lx)/(ux-lx)*(uy-ly)+ly);
} | double linear_interp(doublex, doublelx, doubleux, doublely, doubleuy) | double linear_interp(double x,double lx,double ux,double ly,double uy) | linear_interp | [
"double",
"double",
"double",
"double",
"double",
"double"
] | {
"code": [
".globl linear_interp\n.type linear_interp, @function\nlinear_interp:\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%xmm1, -16(%rbp)\n\tmovsd\t%xmm2, -24(%rbp)\n\tmovsd\t%xmm3, -32(%rbp)\n\tmovsd\t%xmm4, -40(%rbp)\n\tmovsd\t-8(%rbp), %xmm0\n\tsubsd\t-16(%rbp), %xmm0\n\tmovsd\t-24(%rbp), %xmm1\n\tsubsd\t-16(%rbp), %xmm1\n\tdivsd\t%xmm1, %xmm0\n\tmovapd\t%xmm0, %xmm1\n\tmovsd\t-40(%rbp), %xmm0\n\tsubsd\t-32(%rbp), %xmm0\n\tmulsd\t%xmm1, %xmm0\n\taddsd\t-32(%rbp), %xmm0\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl linear_interp\n.type linear_interp, @function\nlinear_interp:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tsubsd\t%xmm1, %xmm0\n\tsubsd\t%xmm1, %xmm2\n\tsubsd\t%xmm3, %xmm4\n\tdivsd\t%xmm2, %xmm0\n\tmulsd\t%xmm4, %xmm0\n\taddsd\t%xmm3, %xmm0\n\tret\n\t.cfi_endproc\n\n",
".globl linear_interp\n.type linear_interp, @function\nlinear_interp:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tsubsd\t%xmm1, %xmm0\n\tsubsd\t%xmm1, %xmm2\n\tsubsd\t%xmm3, %xmm4\n\tdivsd\t%xmm2, %xmm0\n\tmulsd\t%xmm4, %xmm0\n\taddsd\t%xmm3, %xmm0\n\tret\n\t.cfi_endproc\n\n",
".global linear_interp\n.type linear_interp, %function\nlinear_interp:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #48\n\t.cfi_def_cfa_offset 48\n\tstr\td0, [sp, 40]\n\tstr\td1, [sp, 32]\n\tstr\td2, [sp, 24]\n\tstr\td3, [sp, 16]\n\tstr\td4, [sp, 8]\n\tldr\td1, [sp, 40]\n\tldr\td0, [sp, 32]\n\tfsub\td1, d1, d0\n\tldr\td2, [sp, 24]\n\tldr\td0, [sp, 32]\n\tfsub\td0, d2, d0\n\tfdiv\td1, d1, d0\n\tldr\td2, [sp, 8]\n\tldr\td0, [sp, 16]\n\tfsub\td0, d2, d0\n\tfmul\td1, d1, d0\n\tldr\td0, [sp, 16]\n\tfadd\td0, d1, d0\n\tadd\tsp, sp, 48\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global linear_interp\n.type linear_interp, %function\nlinear_interp:\n.LFB0:\n\t.cfi_startproc\n\tfsub\td0, d0, d1\n\tfsub\td1, d2, d1\n\tfsub\td4, d4, d3\n\tfdiv\td0, d0, d1\n\tfmadd\td0, d4, d0, d3\n\tret\n\t.cfi_endproc\n\n",
".global linear_interp\n.type linear_interp, %function\nlinear_interp:\n.LFB0:\n\t.cfi_startproc\n\tfsub\td5, d0, d1\n\tfsub\td1, d2, d1\n\tfsub\td4, d4, d3\n\tfdiv\td5, d5, d1\n\tfmadd\td0, d4, d5, d3\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"95.277482052",
"33.213713997",
"7.33061620803",
"39.7722739555",
"8.03821910158"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"5.31732394091",
"38.4423607565",
"34.1751579927",
"32.4862249193",
"43.6940951569"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"28.8566138684",
"25.1434763626",
"1.1105897772",
"99.9803222875",
"5.86987429083"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"41.9822100709",
"31.3663074181",
"74.5969855541",
"58.5791316628",
"3.47793586636"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"26.7256849127",
"42.3575828386",
"32.6367949561",
"58.7057420478",
"96.0743989224"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"58.2019528008",
"61.4790052154",
"92.2333120128",
"25.712354192",
"5.996360119"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"48.9505069905",
"81.140763959",
"17.2033366462",
"98.4059427767",
"25.4167297095"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"24.8987555755",
"1.97018181023",
"58.6636054836",
"22.1837505973",
"75.8961767664"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"62.7352302943",
"2.49594633383",
"84.1302700202",
"13.0899029488",
"31.6091421316"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
},
{
"value": [
"87.0428438096",
"16.5031356078",
"41.132164486",
"90.2904935929",
"52.5916394194"
],
"var": [
"x",
"lx",
"ux",
"ly",
"uy"
]
}
],
"output": [
{
"value": [
"115.86575534464225"
],
"var": [
"returnv"
]
},
{
"value": [
"119.4896167886478"
],
"var": [
"returnv"
]
},
{
"value": [
"114.52060786253217"
],
"var": [
"returnv"
]
},
{
"value": [
"45.048256001130284"
],
"var": [
"returnv"
]
},
{
"value": [
"118.79789064239498"
],
"var": [
"returnv"
]
},
{
"value": [
"27.813209412337013"
],
"var": [
"returnv"
]
},
{
"value": [
"61.65842847545758"
],
"var": [
"returnv"
]
},
{
"value": [
"43.90671678514571"
],
"var": [
"returnv"
]
},
{
"value": [
"26.75554820055107"
],
"var": [
"returnv"
]
},
{
"value": [
"-17.68234553494348"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_59yogos2dy.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(double x, double lx, double ux, double ly, double uy, double returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
double x = input_json["x"];
double lx = input_json["lx"];
double ux = input_json["ux"];
double ly = input_json["ly"];
double uy = input_json["uy"];
clock_t begin = clock();
double returnv = linear_interp(x, lx, ux, ly, uy);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(x, lx, ux, ly, uy, returnv);
} | master | null | {"livein": ["x", "lx", "ux", "ly", "uy"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "linear_interp", "funargs": ["x", "lx", "ux", "ly", "uy"], "typemap": {"x": "float64", "lx": "float64", "ux": "float64", "ly": "float64", "uy": "float64", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_59yogos2dy.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
CAAP/Lua/src/lcdf/dcdflib.c | double gam1(double *a)
{
static double s1 = .273076135303957e+00;
static double s2 = .559398236957378e-01;
static double p[7] = {
.577215664901533e+00,-.409078193005776e+00,-.230975380857675e+00,
.597275330452234e-01,.766968181649490e-02,-.514889771323592e-02,
.589597428611429e-03
};
static double q[5] = {
.100000000000000e+01,.427569613095214e+00,.158451672430138e+00,
.261132021441447e-01,.423244297896961e-02
};
static double r[9] = {
-.422784335098468e+00,-.771330383816272e+00,-.244757765222226e+00,
.118378989872749e+00,.930357293360349e-03,-.118290993445146e-01,
.223047661158249e-02,.266505979058923e-03,-.132674909766242e-03
};
static double gam1,bot,d,t,top,w,T1;
t = *a;
d = *a-0.5e0;
if(d > 0.0e0) t = d-0.5e0;
T1 = t;
if(T1 < 0) goto S40;
else if(T1 == 0) goto S10;
else goto S20;
S10:
gam1 = 0.0e0;
return gam1;
S20:
top = (((((p[6]*t+p[5])*t+p[4])*t+p[3])*t+p[2])*t+p[1])*t+p[0];
bot = (((q[4]*t+q[3])*t+q[2])*t+q[1])*t+1.0e0;
w = top/bot;
if(d > 0.0e0) goto S30;
gam1 = *a*w;
return gam1;
S30:
gam1 = t/ *a*(w-0.5e0-0.5e0);
return gam1;
S40:
top = (((((((r[8]*t+r[7])*t+r[6])*t+r[5])*t+r[4])*t+r[3])*t+r[2])*t+r[1])*t+
r[0];
bot = (s2*t+s1)*t+1.0e0;
w = top/bot;
if(d > 0.0e0) goto S50;
gam1 = *a*(w+0.5e0+0.5e0);
return gam1;
S50:
gam1 = t*w/ *a;
return gam1;
} | double gam1(double *a) | double gam1(double *a) | gam1 | [
"double",
"double *"
] | {
"code": [
".globl gam1\n.type gam1, @function\ngam1:\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-8(%rbp), %rax\n\tmovsd\t(%rax), %xmm0\n\tmovsd\t%xmm0, t.3894(%rip)\n\tmovq\t-8(%rbp), %rax\n\tmovsd\t(%rax), %xmm0\n\tmovsd\t.LC0(%rip), %xmm1\n\tsubsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, d.3893(%rip)\n\tmovsd\td.3893(%rip), %xmm0\n\tpxor\t%xmm1, %xmm1\n\tcomisd\t%xmm1, %xmm0\n\tjbe\t.L2\n\tmovsd\td.3893(%rip), %xmm0\n\tmovsd\t.LC0(%rip), %xmm1\n\tsubsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, t.3894(%rip)\n.L2:\n\tmovsd\tt.3894(%rip), %xmm0\n\tmovsd\t%xmm0, T1.3897(%rip)\n\tmovsd\tT1.3897(%rip), %xmm1\n\tpxor\t%xmm0, %xmm0\n\tcomisd\t%xmm1, %xmm0\n\tja\t.L19\n\tmovsd\tT1.3897(%rip), %xmm0\n\tpxor\t%xmm1, %xmm1\n\tucomisd\t%xmm1, %xmm0\n\tjp\t.L20\n\tpxor\t%xmm1, %xmm1\n\tucomisd\t%xmm1, %xmm0\n\tje\t.L21\n\tjmp\t.L20\n.L21:\n\tnop\n.L9:\n\tendbr64\n\tpxor\t%xmm0, %xmm0\n\tmovsd\t%xmm0, gam1.3891(%rip)\n\tmovsd\tgam1.3891(%rip), %xmm0\n\tjmp\t.L11\n.L20:\n\tnop\n.L10:\n\tendbr64\n\tmovsd\t48+p.3888(%rip), %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t40+p.3888(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t32+p.3888(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t24+p.3888(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t16+p.3888(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t8+p.3888(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\tp.3888(%rip), %xmm0\n\taddsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, top.3895(%rip)\n\tmovsd\t32+q.3889(%rip), %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t24+q.3889(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t16+q.3889(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t8+q.3889(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t.LC2(%rip), %xmm0\n\taddsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, bot.3892(%rip)\n\tmovsd\ttop.3895(%rip), %xmm0\n\tmovsd\tbot.3892(%rip), %xmm1\n\tdivsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, w.3896(%rip)\n\tmovsd\td.3893(%rip), %xmm0\n\tpxor\t%xmm1, %xmm1\n\tcomisd\t%xmm1, %xmm0\n\tja\t.L22\n\tmovq\t-8(%rbp), %rax\n\tmovsd\t(%rax), %xmm1\n\tmovsd\tw.3896(%rip), %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, gam1.3891(%rip)\n\tmovsd\tgam1.3891(%rip), %xmm0\n\tjmp\t.L11\n.L22:\n\tnop\n.L14:\n\tendbr64\n\tmovsd\tt.3894(%rip), %xmm0\n\tmovq\t-8(%rbp), %rax\n\tmovsd\t(%rax), %xmm1\n\tdivsd\t%xmm1, %xmm0\n\tmovapd\t%xmm0, %xmm1\n\tmovsd\tw.3896(%rip), %xmm0\n\tmovsd\t.LC0(%rip), %xmm2\n\tsubsd\t%xmm2, %xmm0\n\tmovsd\t.LC0(%rip), %xmm2\n\tsubsd\t%xmm2, %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, gam1.3891(%rip)\n\tmovsd\tgam1.3891(%rip), %xmm0\n\tjmp\t.L11\n.L19:\n\tnop\n.L6:\n\tendbr64\n\tmovsd\t64+r.3890(%rip), %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t56+r.3890(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t48+r.3890(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t40+r.3890(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t32+r.3890(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t24+r.3890(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t16+r.3890(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t8+r.3890(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\tr.3890(%rip), %xmm0\n\taddsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, top.3895(%rip)\n\tmovsd\ts2.3887(%rip), %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\ts1.3886(%rip), %xmm0\n\taddsd\t%xmm0, %xmm1\n\tmovsd\tt.3894(%rip), %xmm0\n\tmulsd\t%xmm0, %xmm1\n\tmovsd\t.LC2(%rip), %xmm0\n\taddsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, bot.3892(%rip)\n\tmovsd\ttop.3895(%rip), %xmm0\n\tmovsd\tbot.3892(%rip), %xmm1\n\tdivsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, w.3896(%rip)\n\tmovsd\td.3893(%rip), %xmm0\n\tpxor\t%xmm1, %xmm1\n\tcomisd\t%xmm1, %xmm0\n\tja\t.L23\n\tmovq\t-8(%rbp), %rax\n\tmovsd\t(%rax), %xmm1\n\tmovsd\tw.3896(%rip), %xmm2\n\tmovsd\t.LC0(%rip), %xmm0\n\taddsd\t%xmm0, %xmm2\n\tmovsd\t.LC0(%rip), %xmm0\n\taddsd\t%xmm2, %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, gam1.3891(%rip)\n\tmovsd\tgam1.3891(%rip), %xmm0\n\tjmp\t.L11\n.L23:\n\tnop\n.L17:\n\tendbr64\n\tmovsd\tt.3894(%rip), %xmm1\n\tmovsd\tw.3896(%rip), %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tmovq\t-8(%rbp), %rax\n\tmovsd\t(%rax), %xmm1\n\tdivsd\t%xmm1, %xmm0\n\tmovsd\t%xmm0, gam1.3891(%rip)\n\tmovsd\tgam1.3891(%rip), %xmm0\n.L11:\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n.LC0: \t.long\t0\n.LC2: \t.long\t0\n",
".globl gam1\n.type gam1, @function\ngam1:\n.LFB24:\n\t.cfi_startproc\n\tendbr64\n\tmovsd\t(%rdi), %xmm2\n\tmovsd\t.LC1(%rip), %xmm4\n\txorps\t%xmm0, %xmm0\n\tmovapd\t%xmm2, %xmm5\n\tsubsd\t%xmm4, %xmm5\n\tcomisd\t%xmm0, %xmm5\n\tja\t.L2\n\tmovsd\t%xmm2, t.4140(%rip)\n\tjmp\t.L3\n.L2:\n\tmovapd\t%xmm5, %xmm0\n\tsubsd\t%xmm4, %xmm0\n\tmovsd\t%xmm0, t.4140(%rip)\n.L3:\n\tmovsd\tt.4140(%rip), %xmm3\n\txorps\t%xmm0, %xmm0\n\tcomisd\t%xmm3, %xmm0\n\tjbe\t.L16\n\tmovsd\t.LC2(%rip), %xmm1\n\tmovsd\t.LC11(%rip), %xmm6\n\tcomisd\t%xmm0, %xmm5\n\tmulsd\t%xmm3, %xmm1\n\taddsd\t.LC3(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm6\n\taddsd\t.LC12(%rip), %xmm6\n\tmulsd\t%xmm3, %xmm1\n\taddsd\t.LC4(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm6\n\taddsd\t.LC13(%rip), %xmm6\n\tmulsd\t%xmm3, %xmm1\n\tsubsd\t.LC5(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm1\n\taddsd\t.LC6(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm1\n\taddsd\t.LC7(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm1\n\tsubsd\t.LC8(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm1\n\tsubsd\t.LC9(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm1\n\tsubsd\t.LC10(%rip), %xmm1\n\tdivsd\t%xmm6, %xmm1\n\tjbe\t.L17\n\tmulsd\t%xmm1, %xmm3\n\tmovapd\t%xmm3, %xmm0\n\tdivsd\t%xmm2, %xmm0\n\tret\n.L16:\n\tucomisd\t%xmm0, %xmm3\n\tjp\t.L14\n\txorps\t%xmm0, %xmm0\n\tje\t.L1\n.L14:\n\tmovsd\t.LC14(%rip), %xmm0\n\tmovsd\t.LC21(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm0\n\tsubsd\t.LC15(%rip), %xmm0\n\tmulsd\t%xmm3, %xmm1\n\taddsd\t.LC22(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm0\n\taddsd\t.LC16(%rip), %xmm0\n\tmulsd\t%xmm3, %xmm1\n\taddsd\t.LC23(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm0\n\taddsd\t.LC17(%rip), %xmm0\n\tmulsd\t%xmm3, %xmm1\n\taddsd\t.LC24(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm0\n\tsubsd\t.LC18(%rip), %xmm0\n\tmulsd\t%xmm3, %xmm1\n\taddsd\t.LC13(%rip), %xmm1\n\tmulsd\t%xmm3, %xmm0\n\tsubsd\t.LC19(%rip), %xmm0\n\tmulsd\t%xmm3, %xmm0\n\taddsd\t.LC20(%rip), %xmm0\n\tdivsd\t%xmm1, %xmm0\n\txorps\t%xmm1, %xmm1\n\tcomisd\t%xmm1, %xmm5\n\tjbe\t.L19\n\tsubsd\t%xmm4, %xmm0\n\tsubsd\t%xmm4, %xmm0\n\tdivsd\t%xmm2, %xmm3\n\tmulsd\t%xmm3, %xmm0\n\tret\n.L17:\n\tmovapd\t%xmm1, %xmm0\n\taddsd\t%xmm4, %xmm0\n\taddsd\t%xmm4, %xmm0\n.L19:\n\tmulsd\t%xmm2, %xmm0\n.L1:\n\tret\n\t.cfi_endproc\n.LC4: \t.long\t54352644\n.LC14: \t.long\t3594225734\n.LC12: \t.long\t1402778960\n.LC6: \t.long\t319068346\n.LC22: \t.long\t1422905121\n.LC10: \t.long\t119575518\n.LC24: \t.long\t4030756836\n.LC2: \t.long\t3422623020\n.LC1: \t.long\t0\n.LC13: \t.long\t0\n.LC21: \t.long\t3268700776\n.LC3: \t.long\t1993923686\n.LC16: \t.long\t2301182131\n.LC19: \t.long\t1293802627\n.LC9: \t.long\t245161296\n.LC18: \t.long\t3984294012\n.LC5: \t.long\t3600501316\n.LC23: \t.long\t4153065163\n.LC20: \t.long\t4235179546\n.LC7: \t.long\t3792271106\n.LC17: \t.long\t1915957859\n.LC15: \t.long\t3030313495\n.LC11: \t.long\t44197888\n.LC8: \t.long\t4069074723\n",
".globl gam1\n.type gam1, @function\ngam1:\n.LFB39:\n\t.cfi_startproc\n\tendbr64\n\tmovsd\t(%rdi), %xmm3\n\tmovsd\t.LC1(%rip), %xmm5\n\tpxor\t%xmm0, %xmm0\n\tmovapd\t%xmm3, %xmm4\n\tsubsd\t%xmm5, %xmm4\n\tcomisd\t%xmm0, %xmm4\n\tjbe\t.L20\n\tmovapd\t%xmm4, %xmm2\n\tsubsd\t%xmm5, %xmm2\n\tcomisd\t%xmm2, %xmm0\n\tmovsd\t%xmm2, t.4205(%rip)\n\tja\t.L21\n.L16:\n\tucomisd\t%xmm0, %xmm2\n\tjp\t.L14\n\tjne\t.L14\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L14:\n\tmovsd\t.LC14(%rip), %xmm1\n\tmovsd\t.LC21(%rip), %xmm6\n\tcomisd\t%xmm0, %xmm4\n\tmulsd\t%xmm2, %xmm1\n\tsubsd\t.LC15(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm6\n\taddsd\t.LC22(%rip), %xmm6\n\tmulsd\t%xmm2, %xmm1\n\taddsd\t.LC16(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm6\n\taddsd\t.LC23(%rip), %xmm6\n\tmulsd\t%xmm2, %xmm1\n\taddsd\t.LC17(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm6\n\taddsd\t.LC24(%rip), %xmm6\n\tmulsd\t%xmm2, %xmm1\n\tsubsd\t.LC18(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm6\n\taddsd\t.LC13(%rip), %xmm6\n\tmulsd\t%xmm2, %xmm1\n\tsubsd\t.LC19(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm1\n\taddsd\t.LC20(%rip), %xmm1\n\tdivsd\t%xmm6, %xmm1\n\tja\t.L22\n\tmulsd\t%xmm1, %xmm3\n\tmovapd\t%xmm3, %xmm0\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L20:\n\tmovapd\t%xmm3, %xmm2\n\tmovsd\t%xmm3, t.4205(%rip)\n\tcomisd\t%xmm2, %xmm0\n\tjbe\t.L16\n.L21:\n\tmovsd\t.LC2(%rip), %xmm1\n\tmovsd\t.LC11(%rip), %xmm6\n\tcomisd\t%xmm0, %xmm4\n\tmulsd\t%xmm2, %xmm1\n\taddsd\t.LC3(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm6\n\taddsd\t.LC12(%rip), %xmm6\n\tmulsd\t%xmm2, %xmm1\n\taddsd\t.LC4(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm6\n\taddsd\t.LC13(%rip), %xmm6\n\tmulsd\t%xmm2, %xmm1\n\tsubsd\t.LC5(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm1\n\taddsd\t.LC6(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm1\n\taddsd\t.LC7(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm1\n\tsubsd\t.LC8(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm1\n\tsubsd\t.LC9(%rip), %xmm1\n\tmulsd\t%xmm2, %xmm1\n\tsubsd\t.LC10(%rip), %xmm1\n\tdivsd\t%xmm6, %xmm1\n\tja\t.L23\n\taddsd\t%xmm5, %xmm1\n\taddsd\t%xmm5, %xmm1\n\tmovapd\t%xmm1, %xmm0\n\tmulsd\t%xmm3, %xmm0\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L23:\n\tmulsd\t%xmm2, %xmm1\n\tmovapd\t%xmm1, %xmm0\n\tdivsd\t%xmm3, %xmm0\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L22:\n\tmovapd\t%xmm2, %xmm0\n\tsubsd\t%xmm5, %xmm1\n\tdivsd\t%xmm3, %xmm0\n\tsubsd\t%xmm5, %xmm1\n\tmulsd\t%xmm1, %xmm0\n\tret\n\t.cfi_endproc\n.LC4: \t.long\t54352644\n.LC14: \t.long\t3594225734\n.LC12: \t.long\t1402778960\n.LC6: \t.long\t319068346\n.LC22: \t.long\t1422905121\n.LC10: \t.long\t119575518\n.LC24: \t.long\t4030756836\n.LC2: \t.long\t3422623020\n.LC1: \t.long\t0\n.LC13: \t.long\t0\n.LC21: \t.long\t3268700776\n.LC3: \t.long\t1993923686\n.LC16: \t.long\t2301182131\n.LC19: \t.long\t1293802627\n.LC9: \t.long\t245161296\n.LC5: \t.long\t3600501316\n.LC23: \t.long\t4153065163\n.LC20: \t.long\t4235179546\n.LC7: \t.long\t3792271106\n.LC8: \t.long\t4069074723\n.LC17: \t.long\t1915957859\n.LC15: \t.long\t3030313495\n.LC11: \t.long\t44197888\n.LC18: \t.long\t3984294012\n",
".global gam1\n.type gam1, %function\ngam1:\n.LFB6:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tx0, [sp, 8]\n\tldr\tx0, [sp, 8]\n\tldr\td0, [x0]\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tstr\td0, [x0]\n\tldr\tx0, [sp, 8]\n\tldr\td1, [x0]\n\tfmov\td0, 5.0e-1\n\tfsub\td0, d1, d0\n\tadrp\tx0, d.5421\n\tadd\tx0, x0, :lo12:d.5421\n\tstr\td0, [x0]\n\tadrp\tx0, d.5421\n\tadd\tx0, x0, :lo12:d.5421\n\tldr\td0, [x0]\n\tfcmpe\td0, #0.0\n\tble\t.L2\n\tadrp\tx0, d.5421\n\tadd\tx0, x0, :lo12:d.5421\n\tldr\td1, [x0]\n\tfmov\td0, 5.0e-1\n\tfsub\td0, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tstr\td0, [x0]\n.L2:\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tadrp\tx0, T1.5425\n\tadd\tx0, x0, :lo12:T1.5425\n\tstr\td0, [x0]\n\tadrp\tx0, T1.5425\n\tadd\tx0, x0, :lo12:T1.5425\n\tldr\td0, [x0]\n\tfcmpe\td0, #0.0\n\tbmi\t.L18\n\tadrp\tx0, T1.5425\n\tadd\tx0, x0, :lo12:T1.5425\n\tldr\td0, [x0]\n\tfcmp\td0, #0.0\n\tbne\t.L19\n\tnop\n.L8:\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tstr\txzr, [x0]\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tldr\td0, [x0]\n\tb\t.L10\n.L19:\n\tnop\n.L9:\n\tadrp\tx0, p.5416\n\tadd\tx0, x0, :lo12:p.5416\n\tldr\td1, [x0, 48]\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, p.5416\n\tadd\tx0, x0, :lo12:p.5416\n\tldr\td0, [x0, 40]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, p.5416\n\tadd\tx0, x0, :lo12:p.5416\n\tldr\td0, [x0, 32]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, p.5416\n\tadd\tx0, x0, :lo12:p.5416\n\tldr\td0, [x0, 24]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, p.5416\n\tadd\tx0, x0, :lo12:p.5416\n\tldr\td0, [x0, 16]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, p.5416\n\tadd\tx0, x0, :lo12:p.5416\n\tldr\td0, [x0, 8]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, p.5416\n\tadd\tx0, x0, :lo12:p.5416\n\tldr\td0, [x0]\n\tfadd\td0, d1, d0\n\tadrp\tx0, top.5423\n\tadd\tx0, x0, :lo12:top.5423\n\tstr\td0, [x0]\n\tadrp\tx0, q.5417\n\tadd\tx0, x0, :lo12:q.5417\n\tldr\td1, [x0, 32]\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, q.5417\n\tadd\tx0, x0, :lo12:q.5417\n\tldr\td0, [x0, 24]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, q.5417\n\tadd\tx0, x0, :lo12:q.5417\n\tldr\td0, [x0, 16]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, q.5417\n\tadd\tx0, x0, :lo12:q.5417\n\tldr\td0, [x0, 8]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tfmov\td0, 1.0e+0\n\tfadd\td0, d1, d0\n\tadrp\tx0, bot.5420\n\tadd\tx0, x0, :lo12:bot.5420\n\tstr\td0, [x0]\n\tadrp\tx0, top.5423\n\tadd\tx0, x0, :lo12:top.5423\n\tldr\td1, [x0]\n\tadrp\tx0, bot.5420\n\tadd\tx0, x0, :lo12:bot.5420\n\tldr\td0, [x0]\n\tfdiv\td0, d1, d0\n\tadrp\tx0, w.5424\n\tadd\tx0, x0, :lo12:w.5424\n\tstr\td0, [x0]\n\tadrp\tx0, d.5421\n\tadd\tx0, x0, :lo12:d.5421\n\tldr\td0, [x0]\n\tfcmpe\td0, #0.0\n\tbgt\t.L20\n\tldr\tx0, [sp, 8]\n\tldr\td1, [x0]\n\tadrp\tx0, w.5424\n\tadd\tx0, x0, :lo12:w.5424\n\tldr\td0, [x0]\n\tfmul\td0, d1, d0\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tstr\td0, [x0]\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tldr\td0, [x0]\n\tb\t.L10\n.L20:\n\tnop\n.L13:\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td1, [x0]\n\tldr\tx0, [sp, 8]\n\tldr\td0, [x0]\n\tfdiv\td1, d1, d0\n\tadrp\tx0, w.5424\n\tadd\tx0, x0, :lo12:w.5424\n\tldr\td2, [x0]\n\tfmov\td0, 5.0e-1\n\tfsub\td2, d2, d0\n\tfmov\td0, 5.0e-1\n\tfsub\td0, d2, d0\n\tfmul\td0, d1, d0\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tstr\td0, [x0]\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tldr\td0, [x0]\n\tb\t.L10\n.L18:\n\tnop\n.L6:\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td1, [x0, 64]\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td0, [x0, 56]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td0, [x0, 48]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td0, [x0, 40]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td0, [x0, 32]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td0, [x0, 24]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td0, [x0, 16]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td0, [x0, 8]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, r.5418\n\tadd\tx0, x0, :lo12:r.5418\n\tldr\td0, [x0]\n\tfadd\td0, d1, d0\n\tadrp\tx0, top.5423\n\tadd\tx0, x0, :lo12:top.5423\n\tstr\td0, [x0]\n\tadrp\tx0, s2.5415\n\tadd\tx0, x0, :lo12:s2.5415\n\tldr\td1, [x0]\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tadrp\tx0, s1.5414\n\tadd\tx0, x0, :lo12:s1.5414\n\tldr\td0, [x0]\n\tfadd\td1, d1, d0\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tfmov\td0, 1.0e+0\n\tfadd\td0, d1, d0\n\tadrp\tx0, bot.5420\n\tadd\tx0, x0, :lo12:bot.5420\n\tstr\td0, [x0]\n\tadrp\tx0, top.5423\n\tadd\tx0, x0, :lo12:top.5423\n\tldr\td1, [x0]\n\tadrp\tx0, bot.5420\n\tadd\tx0, x0, :lo12:bot.5420\n\tldr\td0, [x0]\n\tfdiv\td0, d1, d0\n\tadrp\tx0, w.5424\n\tadd\tx0, x0, :lo12:w.5424\n\tstr\td0, [x0]\n\tadrp\tx0, d.5421\n\tadd\tx0, x0, :lo12:d.5421\n\tldr\td0, [x0]\n\tfcmpe\td0, #0.0\n\tbgt\t.L21\n\tldr\tx0, [sp, 8]\n\tldr\td1, [x0]\n\tadrp\tx0, w.5424\n\tadd\tx0, x0, :lo12:w.5424\n\tldr\td2, [x0]\n\tfmov\td0, 5.0e-1\n\tfadd\td2, d2, d0\n\tfmov\td0, 5.0e-1\n\tfadd\td0, d2, d0\n\tfmul\td0, d1, d0\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tstr\td0, [x0]\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tldr\td0, [x0]\n\tb\t.L10\n.L21:\n\tnop\n.L16:\n\tadrp\tx0, t.5422\n\tadd\tx0, x0, :lo12:t.5422\n\tldr\td1, [x0]\n\tadrp\tx0, w.5424\n\tadd\tx0, x0, :lo12:w.5424\n\tldr\td0, [x0]\n\tfmul\td1, d1, d0\n\tldr\tx0, [sp, 8]\n\tldr\td0, [x0]\n\tfdiv\td0, d1, d0\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tstr\td0, [x0]\n\tadrp\tx0, gam1.5419\n\tadd\tx0, x0, :lo12:gam1.5419\n\tldr\td0, [x0]\n.L10:\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global gam1\n.type gam1, %function\ngam1:\n.LFB24:\n\t.cfi_startproc\n\tldr\td0, [x0]\n\tfmov\td1, 5.0e-1\n\tadrp\tx0, .LANCHOR0\n\tfmov\td5, d1\n\tfsub\td6, d0, d1\n\tfcmpe\td6, #0.0\n\tbgt\t.L2\n\tstr\td0, [x0, #:lo12:.LANCHOR0]\n.L3:\n\tldr\td1, [x0, #:lo12:.LANCHOR0]\n\tfcmpe\td1, #0.0\n\tbpl\t.L14\n\tadrp\tx0, .LC0\n\tfcmpe\td6, #0.0\n\tldr\td2, [x0, #:lo12:.LC0]\n\tadrp\tx0, .LC1\n\tldr\td3, [x0, #:lo12:.LC1]\n\tadrp\tx0, .LC2\n\tfmadd\td2, d1, d2, d3\n\tldr\td3, [x0, #:lo12:.LC2]\n\tadrp\tx0, .LC3\n\tfmadd\td3, d1, d2, d3\n\tldr\td2, [x0, #:lo12:.LC3]\n\tadrp\tx0, .LC4\n\tfmadd\td3, d1, d3, d2\n\tldr\td2, [x0, #:lo12:.LC4]\n\tadrp\tx0, .LC5\n\tfmadd\td2, d1, d3, d2\n\tldr\td3, [x0, #:lo12:.LC5]\n\tadrp\tx0, .LC6\n\tfmadd\td2, d1, d2, d3\n\tldr\td3, [x0, #:lo12:.LC6]\n\tadrp\tx0, .LC7\n\tfmadd\td3, d1, d2, d3\n\tldr\td2, [x0, #:lo12:.LC7]\n\tadrp\tx0, .LC8\n\tfmadd\td3, d1, d3, d2\n\tldr\td2, [x0, #:lo12:.LC8]\n\tadrp\tx0, .LC9\n\tldr\td4, [x0, #:lo12:.LC9]\n\tadrp\tx0, .LC10\n\tfmadd\td2, d1, d3, d2\n\tldr\td3, [x0, #:lo12:.LC10]\n\tfmadd\td4, d1, d4, d3\n\tfmov\td3, 1.0e+0\n\tfmadd\td3, d1, d4, d3\n\tfdiv\td2, d2, d3\n\tble\t.L15\n\tfmul\td1, d1, d2\n\tfdiv\td0, d1, d0\n\tb\t.L1\n.L2:\n\tfsub\td1, d6, d1\n\tstr\td1, [x0, #:lo12:.LANCHOR0]\n\tb\t.L3\n.L14:\n\tfcmp\td1, #0.0\n\tbeq\t.L11\n\tadrp\tx0, .LC11\n\tfcmpe\td6, #0.0\n\tldr\td4, [x0, #:lo12:.LC11]\n\tadrp\tx0, .LC12\n\tldr\td3, [x0, #:lo12:.LC12]\n\tadrp\tx0, .LC13\n\tfmadd\td3, d1, d4, d3\n\tldr\td4, [x0, #:lo12:.LC13]\n\tadrp\tx0, .LC14\n\tfmadd\td4, d1, d3, d4\n\tldr\td3, [x0, #:lo12:.LC14]\n\tadrp\tx0, .LC15\n\tfmadd\td3, d1, d4, d3\n\tldr\td4, [x0, #:lo12:.LC15]\n\tadrp\tx0, .LC16\n\tfmadd\td4, d1, d3, d4\n\tldr\td3, [x0, #:lo12:.LC16]\n\tadrp\tx0, .LC17\n\tfmadd\td3, d1, d4, d3\n\tldr\td4, [x0, #:lo12:.LC17]\n\tadrp\tx0, .LC18\n\tfmadd\td4, d1, d3, d4\n\tldr\td3, [x0, #:lo12:.LC18]\n\tadrp\tx0, .LC19\n\tldr\td2, [x0, #:lo12:.LC19]\n\tadrp\tx0, .LC20\n\tfmadd\td3, d1, d3, d2\n\tldr\td2, [x0, #:lo12:.LC20]\n\tadrp\tx0, .LC21\n\tfmadd\td2, d1, d3, d2\n\tldr\td3, [x0, #:lo12:.LC21]\n\tfmadd\td2, d1, d2, d3\n\tfmov\td3, 1.0e+0\n\tfmadd\td3, d1, d2, d3\n\tfdiv\td3, d4, d3\n\tble\t.L16\n\tfdiv\td0, d1, d0\n\tfsub\td3, d3, d5\n\tfsub\td3, d3, d5\n.L16:\n\tfmul\td0, d0, d3\n.L1:\n\tret\n.L15:\n\tfadd\td1, d2, d5\n\tfadd\td1, d1, d5\n\tfmul\td0, d1, d0\n\tb\t.L1\n.L11:\n\tmovi\td0, #0\n\tb\t.L1\n\t.cfi_endproc\n.LC4: \t.word\t319068346\n.LC14: \t.word\t1915957859\n.LC12: \t.word\t3030313495\n.LC6: \t.word\t4069074723\n.LC0: \t.word\t3422623020\n.LC10: \t.word\t1402778960\n.LC2: \t.word\t54352644\n.LC1: \t.word\t1993923686\n.LC13: \t.word\t2301182131\n.LC21: \t.word\t4030756836\n.LC3: \t.word\t3600501316\n.LC16: \t.word\t1293802627\n.LC19: \t.word\t1422905121\n.LC9: \t.word\t44197888\n.LC5: \t.word\t3792271106\n.LC20: \t.word\t4153065163\n.LC7: \t.word\t245161296\n.LC8: \t.word\t119575518\n.LC17: \t.word\t4235179546\n.LC15: \t.word\t3984294012\n.LC11: \t.word\t3594225734\n.LC18: \t.word\t3268700776\n",
".global gam1\n.type gam1, %function\ngam1:\n.LFB39:\n\t.cfi_startproc\n\tldr\td3, [x0]\n\tfmov\td1, 5.0e-1\n\tfsub\td2, d3, d1\n\tfcmpe\td2, #0.0\n\tble\t.L19\n\tfsub\td1, d2, d1\n\tadrp\tx0, .LANCHOR0\n\tfcmpe\td1, #0.0\n\tstr\td1, [x0, #:lo12:.LANCHOR0]\n\tbmi\t.L20\n.L14:\n\tfcmp\td1, #0.0\n\tmovi\td0, #0\n\tbne\t.L21\n\tret\n\t.p2align 2,,3\n.L21:\n\tadrp\tx0, .LC11\n\tfcmpe\td2, #0.0\n\tfmov\td4, 1.0e+0\n\tldr\td16, [x0, #:lo12:.LC11]\n\tadrp\tx0, .LC12\n\tldr\td20, [x0, #:lo12:.LC12]\n\tadrp\tx0, .LC13\n\tfmadd\td20, d1, d16, d20\n\tldr\td18, [x0, #:lo12:.LC13]\n\tadrp\tx0, .LC14\n\tldr\td0, [x0, #:lo12:.LC14]\n\tadrp\tx0, .LC15\n\tldr\td16, [x0, #:lo12:.LC15]\n\tadrp\tx0, .LC16\n\tldr\td19, [x0, #:lo12:.LC16]\n\tadrp\tx0, .LC17\n\tfmadd\td19, d1, d0, d19\n\tfmadd\td18, d20, d1, d18\n\tldr\td6, [x0, #:lo12:.LC17]\n\tadrp\tx0, .LC18\n\tldr\td17, [x0, #:lo12:.LC18]\n\tadrp\tx0, .LC19\n\tldr\td5, [x0, #:lo12:.LC19]\n\tadrp\tx0, .LC20\n\tldr\td7, [x0, #:lo12:.LC20]\n\tadrp\tx0, .LC21\n\tfmadd\td2, d19, d1, d17\n\tfmadd\td16, d18, d1, d16\n\tldr\td0, [x0, #:lo12:.LC21]\n\tfmadd\td2, d2, d1, d7\n\tfmadd\td6, d16, d1, d6\n\tfmadd\td2, d2, d1, d4\n\tfmadd\td4, d6, d1, d5\n\tfmadd\td0, d4, d1, d0\n\tfdiv\td0, d0, d2\n\tbgt\t.L22\n\tfmul\td0, d0, d3\n.L24:\n\tret\n\t.p2align 2,,3\n.L19:\n\tfmov\td1, d3\n\tadrp\tx0, .LANCHOR0\n\tstr\td3, [x0, #:lo12:.LANCHOR0]\n\tfcmpe\td1, #0.0\n\tbpl\t.L14\n.L20:\n\tadrp\tx0, .LC0\n\tfcmpe\td2, #0.0\n\tldr\td4, [x0, #:lo12:.LC0]\n\tadrp\tx0, .LC1\n\tldr\td20, [x0, #:lo12:.LC1]\n\tadrp\tx0, .LC2\n\tfmadd\td20, d1, d4, d20\n\tldr\td18, [x0, #:lo12:.LC2]\n\tadrp\tx0, .LC3\n\tldr\td17, [x0, #:lo12:.LC3]\n\tadrp\tx0, .LC4\n\tldr\td16, [x0, #:lo12:.LC4]\n\tadrp\tx0, .LC5\n\tldr\td7, [x0, #:lo12:.LC5]\n\tadrp\tx0, .LC6\n\tfmadd\td18, d20, d1, d18\n\tldr\td6, [x0, #:lo12:.LC6]\n\tadrp\tx0, .LC7\n\tldr\td4, [x0, #:lo12:.LC7]\n\tadrp\tx0, .LC8\n\tldr\td5, [x0, #:lo12:.LC8]\n\tadrp\tx0, .LC9\n\tldr\td19, [x0, #:lo12:.LC9]\n\tadrp\tx0, .LC10\n\tfmadd\td19, d1, d4, d19\n\tfmov\td4, 1.0e+0\n\tldr\td0, [x0, #:lo12:.LC10]\n\tfmadd\td2, d19, d1, d4\n\tfmadd\td4, d18, d1, d17\n\tfmadd\td4, d4, d1, d16\n\tfmadd\td4, d4, d1, d7\n\tfmadd\td4, d4, d1, d6\n\tfmadd\td4, d4, d1, d5\n\tfmadd\td0, d4, d1, d0\n\tfdiv\td0, d0, d2\n\tbgt\t.L23\n\tfmov\td1, 5.0e-1\n\tfadd\td0, d0, d1\n\tfadd\td0, d0, d1\n\tfmul\td0, d0, d3\n\tb\t.L24\n\t.p2align 2,,3\n.L22:\n\tfdiv\td1, d1, d3\n\tfmov\td2, 5.0e-1\n\tfsub\td0, d0, d2\n\tfsub\td0, d0, d2\n\tfmul\td0, d0, d1\n\tret\n\t.p2align 2,,3\n.L23:\n\tfmul\td0, d0, d1\n\tfdiv\td0, d0, d3\n\tret\n\t.cfi_endproc\n.LC4: \t.word\t319068346\n.LC14: \t.word\t3268700776\n.LC12: \t.word\t3030313495\n.LC6: \t.word\t4069074723\n.LC0: \t.word\t3422623020\n.LC10: \t.word\t119575518\n.LC2: \t.word\t54352644\n.LC1: \t.word\t1993923686\n.LC13: \t.word\t2301182131\n.LC21: \t.word\t4235179546\n.LC3: \t.word\t3600501316\n.LC16: \t.word\t1422905121\n.LC19: \t.word\t1293802627\n.LC9: \t.word\t1402778960\n.LC5: \t.word\t3792271106\n.LC20: \t.word\t4030756836\n.LC7: \t.word\t44197888\n.LC8: \t.word\t245161296\n.LC17: \t.word\t3984294012\n.LC15: \t.word\t1915957859\n.LC11: \t.word\t3594225734\n.LC18: \t.word\t4153065163\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | null | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"[51.7233135909, 45.0878654279, 13.8868488002, 78.0354734752, 43.7151406014, 14.5723487285, 84.1686368738, 16.3899840842, 30.0554991269, 82.9277873016, 79.0266403356, 31.8299079376, 19.8367575099, 46.2343864153, 31.3247803285, 14.7740288883, 38.0478005658, 78.1235530252, 89.7363618536, 89.6765602188, 72.4532396938, 23.4767088426, 90.3382326193, 50.1130596087, 49.1330603832, 61.3968347725, 84.4288447753, 69.4229226313, 65.8968541506, 26.6295222485, 52.3385601539, 84.4075698339]"
],
"var": [
"a"
]
},
{
"value": [
"[17.3238469178, 54.0965236429, 75.2511439769, 64.1867841193, 27.57436577, 39.0251424453, 29.7323529854, 70.1208093079, 96.6454502462, 76.8287152094, 45.674847207, 46.3318070584, 46.3871395879, 80.3853091718, 8.30467665321, 8.47915683993, 92.2561031862, 95.09586786, 49.6272234983, 77.7316358728, 61.5576642334, 82.2402586708, 13.4068718359, 27.9835251223, 48.4304523097, 0.75024184538, 77.0674363046, 59.483776025, 61.3341615197, 49.1721952655, 88.1986755725, 7.79954928222]"
],
"var": [
"a"
]
},
{
"value": [
"[42.4152328461, 13.8119696483, 69.8118391759, 85.1733838334, 31.9373267761, 37.1249089796, 2.24420160218, 41.2794268321, 78.7591600248, 26.090801014, 38.5393165022, 44.5242426548, 53.9641514723, 37.8685650055, 53.0880193598, 92.6096929187, 46.514274958, 27.6502951683, 58.1099413553, 84.6886526361, 26.9625496458, 77.5945164946, 41.9356699267, 61.3861785864, 99.7695269845, 59.5839638903, 85.4089531517, 14.0360719379, 44.457046498, 73.4713577215, 8.16544100912, 41.6818265596]"
],
"var": [
"a"
]
},
{
"value": [
"[82.3451801759, 95.0321272666, 81.5032957796, 67.0970965619, 54.3615088007, 64.5590111779, 98.0816314358, 58.8713531212, 13.196011143, 29.2228345467, 68.2306501484, 91.9768275299, 37.3279493887, 34.2948570246, 81.2777326165, 97.9115034053, 27.2394331404, 18.6104565157, 35.4636591627, 54.6952599549, 93.0352899348, 54.3442541392, 53.5226864685, 68.3683173214, 4.38509916743, 36.1476877177, 15.5252079068, 22.4888548084, 5.19569545954, 42.677121823, 4.4624066565, 39.903568537]"
],
"var": [
"a"
]
},
{
"value": [
"[76.6862999335, 65.9858581864, 46.131251846, 85.7954374432, 62.1060406713, 48.6409228116, 89.7884093727, 80.1785136182, 72.5465211355, 88.1730242604, 45.1401856899, 60.750093693, 17.5173883505, 69.8067232388, 46.996529413, 72.0288963955, 97.5607393289, 21.1910728379, 82.6390938285, 67.3351011457, 42.5059332869, 29.6050412184, 93.5842439031, 20.9823249727, 56.6472421769, 98.7857951552, 96.0233740654, 85.6719755305, 65.2613384595, 14.1726258544, 87.6105291705, 89.6136954034]"
],
"var": [
"a"
]
},
{
"value": [
"[39.4162592507, 71.5056111629, 18.4282304483, 83.5317317032, 14.3111582309, 76.4679728252, 57.4462418226, 5.76994790232, 70.7537116299, 45.2602981514, 58.8292302825, 20.3919335253, 52.7136908888, 88.1875578415, 61.9815103825, 2.36005271748, 52.1322692452, 50.8545836041, 43.1233727274, 85.4002000402, 21.0868400574, 35.5495113602, 95.0358214049, 37.6579616139, 76.1386840376, 8.76651402721, 56.3945471083, 7.77153282942, 67.0962813237, 87.0842029897, 70.4796374593, 11.0401773694]"
],
"var": [
"a"
]
},
{
"value": [
"[68.5123344165, 86.1731877888, 15.9027996754, 45.4546173737, 3.14443237353, 61.831319212, 79.1288846769, 66.4103835025, 13.2161496992, 32.5434721247, 5.62012484322, 7.45349673107, 88.935661095, 98.0976428543, 64.8442491761, 12.6204661548, 99.9431338747, 94.4145677317, 95.5222839559, 94.4634189866, 29.2038834647, 86.3186073451, 70.9687524254, 77.5730105883, 91.2743109679, 93.7702126822, 63.175215627, 85.6989990082, 4.7408353141, 16.435829256, 16.910756082, 15.1424174738]"
],
"var": [
"a"
]
},
{
"value": [
"[5.18258101465, 88.4798307668, 90.3156300628, 28.6210526751, 89.8834591624, 37.3642233689, 97.1770077772, 21.8267416945, 57.7668771667, 88.7037166761, 72.5273954659, 56.0699954179, 88.1311875062, 84.3697090214, 3.19002634873, 59.3574857797, 33.025759658, 98.8476606236, 32.9591595611, 46.2640988425, 94.4316043423, 82.2696763684, 91.537710246, 58.4518075245, 96.1280568896, 34.0550656041, 97.0745315051, 15.8391869221, 29.7640182016, 69.6812893942, 53.3405067339, 2.55581754072]"
],
"var": [
"a"
]
},
{
"value": [
"[46.7928414621, 43.6687253124, 6.0506313867, 99.2843565808, 52.046358536, 89.3194677995, 98.82746324, 55.3711005789, 79.4589409241, 24.8199178201, 67.3048452455, 90.7924278345, 55.9155927636, 13.0461501104, 30.4515187517, 46.0927367397, 39.6473854346, 85.4588886084, 60.5638618095, 48.7962261381, 8.95714766128, 27.6062928683, 14.276357125, 48.2446595363, 99.827781746, 26.3670291212, 67.1013955033, 5.6047018175, 84.4980597521, 69.5267727195, 49.7261086819, 0.376951084823]"
],
"var": [
"a"
]
},
{
"value": [
"[41.9474181904, 5.4836056513, 71.1801348993, 3.75177641199, 56.0363118148, 70.1605688399, 26.8799200273, 71.3807515561, 40.4466738876, 86.0186834644, 98.7953446669, 73.9741142541, 45.3399300143, 62.7081216725, 57.2790115493, 94.9644421093, 85.5896591242, 98.5760064681, 54.6316140188, 58.3185841625, 6.56871786757, 87.7475872365, 41.8169277757, 58.5285790552, 15.6173834594, 68.9279330291, 40.6288743829, 73.4207325445, 78.3890723132, 17.1854756476, 33.3836294044, 61.7081915016]"
],
"var": [
"a"
]
}
],
"output": [
{
"value": [
"[51.7233135909, 45.0878654279, 13.8868488002, 78.0354734752, 43.7151406014, 14.5723487285, 84.1686368738, 16.3899840842, 30.0554991269, 82.9277873016, 79.0266403356, 31.8299079376, 19.8367575099, 46.2343864153, 31.3247803285, 14.7740288883, 38.0478005658, 78.1235530252, 89.7363618536, 89.6765602188, 72.4532396938, 23.4767088426, 90.3382326193, 50.1130596087, 49.1330603832, 61.3968347725, 84.4288447753, 69.4229226313, 65.8968541506, 26.6295222485, 52.3385601539, 84.4075698339]",
"256.71162208681085"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[17.3238469178, 54.0965236429, 75.2511439769, 64.1867841193, 27.57436577, 39.0251424453, 29.7323529854, 70.1208093079, 96.6454502462, 76.8287152094, 45.674847207, 46.3318070584, 46.3871395879, 80.3853091718, 8.30467665321, 8.47915683993, 92.2561031862, 95.09586786, 49.6272234983, 77.7316358728, 61.5576642334, 82.2402586708, 13.4068718359, 27.9835251223, 48.4304523097, 0.75024184538, 77.0674363046, 59.483776025, 61.3341615197, 49.1721952655, 88.1986755725, 7.79954928222]",
"11.08048284560031"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[42.4152328461, 13.8119696483, 69.8118391759, 85.1733838334, 31.9373267761, 37.1249089796, 2.24420160218, 41.2794268321, 78.7591600248, 26.090801014, 38.5393165022, 44.5242426548, 53.9641514723, 37.8685650055, 53.0880193598, 92.6096929187, 46.514274958, 27.6502951683, 58.1099413553, 84.6886526361, 26.9625496458, 77.5945164946, 41.9356699267, 61.3861785864, 99.7695269845, 59.5839638903, 85.4089531517, 14.0360719379, 44.457046498, 73.4713577215, 8.16544100912, 41.6818265596]",
"157.83847022595918"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[82.3451801759, 95.0321272666, 81.5032957796, 67.0970965619, 54.3615088007, 64.5590111779, 98.0816314358, 58.8713531212, 13.196011143, 29.2228345467, 68.2306501484, 91.9768275299, 37.3279493887, 34.2948570246, 81.2777326165, 97.9115034053, 27.2394331404, 18.6104565157, 35.4636591627, 54.6952599549, 93.0352899348, 54.3442541392, 53.5226864685, 68.3683173214, 4.38509916743, 36.1476877177, 15.5252079068, 22.4888548084, 5.19569545954, 42.677121823, 4.4624066565, 39.903568537]",
"752.2574623251222"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[76.6862999335, 65.9858581864, 46.131251846, 85.7954374432, 62.1060406713, 48.6409228116, 89.7884093727, 80.1785136182, 72.5465211355, 88.1730242604, 45.1401856899, 60.750093693, 17.5173883505, 69.8067232388, 46.996529413, 72.0288963955, 97.5607393289, 21.1910728379, 82.6390938285, 67.3351011457, 42.5059332869, 29.6050412184, 93.5842439031, 20.9823249727, 56.6472421769, 98.7857951552, 96.0233740654, 85.6719755305, 65.2613384595, 14.1726258544, 87.6105291705, 89.6136954034]",
"641.0052292976081"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[39.4162592507, 71.5056111629, 18.4282304483, 83.5317317032, 14.3111582309, 76.4679728252, 57.4462418226, 5.76994790232, 70.7537116299, 45.2602981514, 58.8292302825, 20.3919335253, 52.7136908888, 88.1875578415, 61.9815103825, 2.36005271748, 52.1322692452, 50.8545836041, 43.1233727274, 85.4002000402, 21.0868400574, 35.5495113602, 95.0358214049, 37.6579616139, 76.1386840376, 8.76651402721, 56.3945471083, 7.77153282942, 67.0962813237, 87.0842029897, 70.4796374593, 11.0401773694]",
"131.11858521139237"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[68.5123344165, 86.1731877888, 15.9027996754, 45.4546173737, 3.14443237353, 61.831319212, 79.1288846769, 66.4103835025, 13.2161496992, 32.5434721247, 5.62012484322, 7.45349673107, 88.935661095, 98.0976428543, 64.8442491761, 12.6204661548, 99.9431338747, 94.4145677317, 95.5222839559, 94.4634189866, 29.2038834647, 86.3186073451, 70.9687524254, 77.5730105883, 91.2743109679, 93.7702126822, 63.175215627, 85.6989990082, 4.7408353141, 16.435829256, 16.910756082, 15.1424174738]",
"496.05694437777913"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[5.18258101465, 88.4798307668, 90.3156300628, 28.6210526751, 89.8834591624, 37.3642233689, 97.1770077772, 21.8267416945, 57.7668771667, 88.7037166761, 72.5273954659, 56.0699954179, 88.1311875062, 84.3697090214, 3.19002634873, 59.3574857797, 33.025759658, 98.8476606236, 32.9591595611, 46.2640988425, 94.4316043423, 82.2696763684, 91.537710246, 58.4518075245, 96.1280568896, 34.0550656041, 97.0745315051, 15.8391869221, 29.7640182016, 69.6812893942, 53.3405067339, 2.55581754072]",
"-0.981147912689488"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[46.7928414621, 43.6687253124, 6.0506313867, 99.2843565808, 52.046358536, 89.3194677995, 98.82746324, 55.3711005789, 79.4589409241, 24.8199178201, 67.3048452455, 90.7924278345, 55.9155927636, 13.0461501104, 30.4515187517, 46.0927367397, 39.6473854346, 85.4588886084, 60.5638618095, 48.7962261381, 8.95714766128, 27.6062928683, 14.276357125, 48.2446595363, 99.827781746, 26.3670291212, 67.1013955033, 5.6047018175, 84.4980597521, 69.5267727195, 49.7261086819, 0.376951084823]",
"201.33444522749107"
],
"var": [
"a",
"returnv"
]
},
{
"value": [
"[41.9474181904, 5.4836056513, 71.1801348993, 3.75177641199, 56.0363118148, 70.1605688399, 26.8799200273, 71.3807515561, 40.4466738876, 86.0186834644, 98.7953446669, 73.9741142541, 45.3399300143, 62.7081216725, 57.2790115493, 94.9644421093, 85.5896591242, 98.5760064681, 54.6316140188, 58.3185841625, 6.56871786757, 87.7475872365, 41.8169277757, 58.5285790552, 15.6173834594, 68.9279330291, 40.6288743829, 73.4207325445, 78.3890723132, 17.1854756476, 33.3836294044, 61.7081915016]",
"153.50567688314902"
],
"var": [
"a",
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_43zama530i.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(double* a, double returnv) {
json output_json;
std::vector<json> output_temp_2;
for (unsigned int i3 = 0; i3 < 32; i3++) {
double output_temp_4 = a[i3];
output_temp_2.push_back(output_temp_4);
}
output_json["a"] = output_temp_2;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
std::vector<double> input_temp_1_vec;
for (auto& elem : input_json["a"]) {
double input_temp_1_inner = elem;
input_temp_1_vec.push_back(input_temp_1_inner);
}
double* a = &input_temp_1_vec[0];
clock_t begin = clock();
double returnv = gam1(a);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(a, returnv);
} | master | null | {"livein": ["a"], "liveout": ["a"], "returnvarname": ["returnv"], "execcmd": "", "funname": "gam1", "funargs": ["a"], "typemap": {"a": "array(float64#32)", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_43zama530i.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
LTMana/code/LZWeather/LZWeather/Classes/Public/YXEasing/Easing.c | double QuinticEaseIn(double p)
{
return p * p * p * p * p;
} | double QuinticEaseIn(doublep) | double QuinticEaseIn(double p) | QuinticEaseIn | [
"double",
"double"
] | {
"code": [
".globl QuinticEaseIn\n.type QuinticEaseIn, @function\nQuinticEaseIn:\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\tmulsd\t%xmm0, %xmm0\n\tmulsd\t-8(%rbp), %xmm0\n\tmulsd\t-8(%rbp), %xmm0\n\tmulsd\t-8(%rbp), %xmm0\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl QuinticEaseIn\n.type QuinticEaseIn, @function\nQuinticEaseIn:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovapd\t%xmm0, %xmm1\n\tmulsd\t%xmm0, %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tret\n\t.cfi_endproc\n\n",
".globl QuinticEaseIn\n.type QuinticEaseIn, @function\nQuinticEaseIn:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovapd\t%xmm0, %xmm1\n\tmulsd\t%xmm0, %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tmulsd\t%xmm1, %xmm0\n\tret\n\t.cfi_endproc\n\n",
".global QuinticEaseIn\n.type QuinticEaseIn, %function\nQuinticEaseIn:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\td0, [sp, 8]\n\tldr\td0, [sp, 8]\n\tfmul\td1, d0, d0\n\tldr\td0, [sp, 8]\n\tfmul\td1, d1, d0\n\tldr\td0, [sp, 8]\n\tfmul\td1, d1, d0\n\tldr\td0, [sp, 8]\n\tfmul\td0, d1, d0\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global QuinticEaseIn\n.type QuinticEaseIn, %function\nQuinticEaseIn:\n.LFB0:\n\t.cfi_startproc\n\tfmul\td1, d0, d0\n\tfmul\td1, d1, d0\n\tfmul\td1, d1, d0\n\tfmul\td0, d1, d0\n\tret\n\t.cfi_endproc\n\n",
".global QuinticEaseIn\n.type QuinticEaseIn, %function\nQuinticEaseIn:\n.LFB0:\n\t.cfi_startproc\n\tfmul\td1, d0, d0\n\tfmul\td1, d1, d0\n\tfmul\td1, d1, d0\n\tfmul\td0, d1, d0\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"80.3278461514"
],
"var": [
"p"
]
},
{
"value": [
"17.639486865"
],
"var": [
"p"
]
},
{
"value": [
"53.4896858588"
],
"var": [
"p"
]
},
{
"value": [
"27.1950800407"
],
"var": [
"p"
]
},
{
"value": [
"97.7983564217"
],
"var": [
"p"
]
},
{
"value": [
"0.42657061448"
],
"var": [
"p"
]
},
{
"value": [
"60.8674966375"
],
"var": [
"p"
]
},
{
"value": [
"80.885597799"
],
"var": [
"p"
]
},
{
"value": [
"11.6375909146"
],
"var": [
"p"
]
},
{
"value": [
"16.3311550309"
],
"var": [
"p"
]
}
],
"output": [
{
"value": [
"3344495465.1252723"
],
"var": [
"returnv"
]
},
{
"value": [
"1707771.4012387856"
],
"var": [
"returnv"
]
},
{
"value": [
"437875086.99189013"
],
"var": [
"returnv"
]
},
{
"value": [
"14874819.582607776"
],
"var": [
"returnv"
]
},
{
"value": [
"8946595063.161444"
],
"var": [
"returnv"
]
},
{
"value": [
"0.014123901258775011"
],
"var": [
"returnv"
]
},
{
"value": [
"835462963.4580468"
],
"var": [
"returnv"
]
},
{
"value": [
"3462230658.9647818"
],
"var": [
"returnv"
]
},
{
"value": [
"213459.47349046526"
],
"var": [
"returnv"
]
},
{
"value": [
"1161674.6380025982"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_559ffqkrlu.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(double p, double returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
double p = input_json["p"];
clock_t begin = clock();
double returnv = QuinticEaseIn(p);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(p, returnv);
} | master | null | {"livein": ["p"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "QuinticEaseIn", "funargs": ["p"], "typemap": {"p": "float64", "returnv": "float64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_559ffqkrlu.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
gentooinit/solution_for_c_book/Chapter1/e1-24/check.c | int dec_lv(char x, char c, int lv)
{
if (x == c)
--lv;
return lv;
} | int dec_lv(charx, charc, intlv) | int dec_lv(char x, char c, int lv) | dec_lv | [
"int",
"char",
"char",
"int"
] | {
"code": [
".globl dec_lv\n.type dec_lv, @function\ndec_lv:\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, %ecx\n\tmovl\t%esi, %eax\n\tmovl\t%edx, -12(%rbp)\n\tmovl\t%ecx, %edx\n\tmovb\t%dl, -4(%rbp)\n\tmovb\t%al, -8(%rbp)\n\tmovzbl\t-4(%rbp), %eax\n\tcmpb\t-8(%rbp), %al\n\tjne\t.L2\n\tsubl\t$1, -12(%rbp)\n.L2:\n\tmovl\t-12(%rbp), %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl dec_lv\n.type dec_lv, @function\ndec_lv:\n.LFB13:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t%edx, %eax\n\tcmpb\t%sil, %dil\n\tjne\t.L2\n\tdecl\t%eax\n.L2:\n\tret\n\t.cfi_endproc\n\n",
".globl dec_lv\n.type dec_lv, @function\ndec_lv:\n.LFB23:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tcmpb\t%sil, %dil\n\tsete\t%al\n\tsubl\t%eax, %edx\n\tmovl\t%edx, %eax\n\tret\n\t.cfi_endproc\n\n",
".global dec_lv\n.type dec_lv, %function\ndec_lv:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstrb\tw0, [sp, 15]\n\tstrb\tw1, [sp, 14]\n\tstr\tw2, [sp, 8]\n\tldrb\tw1, [sp, 15]\n\tldrb\tw0, [sp, 14]\n\tcmp\tw1, w0\n\tbne\t.L2\n\tldr\tw0, [sp, 8]\n\tsub\tw0, w0, #1\n\tstr\tw0, [sp, 8]\n.L2:\n\tldr\tw0, [sp, 8]\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global dec_lv\n.type dec_lv, %function\ndec_lv:\n.LFB13:\n\t.cfi_startproc\n\tand\tw1, w1, 255\n\tcmp\tw1, w0, uxtb\n\tcset\tw0, eq\n\tsub\tw0, w2, w0\n\tret\n\t.cfi_endproc\n\n",
".global dec_lv\n.type dec_lv, %function\ndec_lv:\n.LFB23:\n\t.cfi_startproc\n\tand\tw1, w1, 255\n\tcmp\tw1, w0, uxtb\n\tcset\tw0, eq\n\tsub\tw0, w2, w0\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"123",
"77",
"120"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"76",
"36",
"103"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"31",
"29",
"44"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"71",
"66",
"29"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"27",
"15",
"16"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"2",
"87",
"7"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"99",
"50",
"76"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"123",
"1",
"76"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"97",
"112",
"22"
],
"var": [
"x",
"c",
"lv"
]
},
{
"value": [
"87",
"3",
"103"
],
"var": [
"x",
"c",
"lv"
]
}
],
"output": [
{
"value": [
"120"
],
"var": [
"returnv"
]
},
{
"value": [
"103"
],
"var": [
"returnv"
]
},
{
"value": [
"44"
],
"var": [
"returnv"
]
},
{
"value": [
"29"
],
"var": [
"returnv"
]
},
{
"value": [
"16"
],
"var": [
"returnv"
]
},
{
"value": [
"7"
],
"var": [
"returnv"
]
},
{
"value": [
"76"
],
"var": [
"returnv"
]
},
{
"value": [
"76"
],
"var": [
"returnv"
]
},
{
"value": [
"22"
],
"var": [
"returnv"
]
},
{
"value": [
"103"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_52ycmuk6_f.c"
}
#include <vector>
#include <nlohmann/json.hpp>
#include <fstream>
#include <iomanip>
#include <clib/synthesizer.h>
#include <time.h>
#include <math.h>
#include <iostream>
char* output_file;
char* pre_accel_dump_file; // optional dump file.
using json = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(char x, char c, int lv, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
char x = input_json["x"].get<char>();
char c = input_json["c"].get<char>();
int lv = input_json["lv"];
clock_t begin = clock();
int returnv = dec_lv(x, c, lv);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(x, c, lv, returnv);
} | master | null | {"livein": ["x", "c", "lv"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "dec_lv", "funargs": ["x", "c", "lv"], "typemap": {"x": "int8", "c": "int8", "lv": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_52ycmuk6_f.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
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\tmovzbl\t(%rax), %ecx\n\tmovq\t-16(%rbp), %rax\n\tleaq\t1(%rax), %rdx\n\tmovq\t%rdx, -16(%rbp)\n\tmovzbl\t(%rax), %eax\n\tcmpb\t%al, %cl\n\tje\t.L3\n\tmovl\t$0, %eax\n\tjmp\t.L4\n.L3:\n\taddq\t$1, -8(%rbp)\n.L2:\n\tmovq\t-8(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\ttestb\t%al, %al\n\tjne\t.L5\n\tmovq\t-16(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\tcmpb\t$61, %al\n\tje\t.L6\n\tmovq\t-16(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\ttestb\t%al, %al\n\tjne\t.L7\n.L6:\n\tmovl\t$1, %eax\n\tjmp\t.L4\n.L7:\n\tmovl\t$0, %eax\n.L4:\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl prefix_of\n.type prefix_of, @function\nprefix_of:\n.LFB48:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n.L2:\n\tmovb\t(%rdi,%rax), %cl\n\tmovb\t(%rsi,%rax), %dl\n\ttestb\t%cl, %cl\n\tje\t.L7\n\tincq\t%rax\n\tcmpb\t%dl, %cl\n\tje\t.L2\n\txorl\t%eax, %eax\n\tret\n.L7:\n\tcmpb\t$61, %dl\n\tsete\t%al\n\ttestb\t%dl, %dl\n\tsete\t%dl\n\torl\t%edx, %eax\n\tmovzbl\t%al, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl prefix_of\n.type prefix_of, @function\nprefix_of:\n.LFB69:\n\t.cfi_startproc\n\tendbr64\n\tjmp\t.L10\n\t.p2align 4,,10\n\t.p2align 3\n.L4:\n\taddq\t$1, %rsi\n\tcmpb\t%al, -1(%rsi)\n\tjne\t.L5\n\taddq\t$1, %rdi\n.L10:\n\tmovzbl\t(%rdi), %eax\n\ttestb\t%al, %al\n\tjne\t.L4\n\tmovzbl\t(%rsi), %edx\n\tcmpb\t$61, %dl\n\tsete\t%al\n\ttestb\t%dl, %dl\n\tsete\t%dl\n\torl\t%edx, %eax\n\tmovzbl\t%al, %eax\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L5:\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".global prefix_of\n.type prefix_of, %function\nprefix_of:\n.LFB6:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tx0, [sp, 8]\n\tstr\tx1, [sp]\n\tb\t.L2\n.L5:\n\tldr\tx0, [sp, 8]\n\tldrb\tw1, [x0]\n\tldr\tx0, [sp]\n\tadd\tx2, x0, 1\n\tstr\tx2, [sp]\n\tldrb\tw0, [x0]\n\tcmp\tw1, w0\n\tbeq\t.L3\n\tmov\tw0, 0\n\tb\t.L4\n.L3:\n\tldr\tx0, [sp, 8]\n\tadd\tx0, x0, 1\n\tstr\tx0, [sp, 8]\n.L2:\n\tldr\tx0, [sp, 8]\n\tldrb\tw0, [x0]\n\tcmp\tw0, 0\n\tbne\t.L5\n\tldr\tx0, [sp]\n\tldrb\tw0, [x0]\n\tcmp\tw0, 61\n\tbeq\t.L6\n\tldr\tx0, [sp]\n\tldrb\tw0, [x0]\n\tcmp\tw0, 0\n\tbne\t.L7\n.L6:\n\tmov\tw0, 1\n\tb\t.L4\n.L7:\n\tmov\tw0, 0\n.L4:\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global prefix_of\n.type prefix_of, %function\nprefix_of:\n.LFB48:\n\t.cfi_startproc\n\tmov\tx2, 0\n.L2:\n\tldrb\tw4, [x0, x2]\n\tldrb\tw3, [x1, x2]\n\tcbnz\tw4, .L4\n\tcmp\tw3, 61\n\tccmp\tw3, 0, 4, ne\n\tcset\tw0, eq\n.L1:\n\tret\n.L4:\n\tadd\tx2, x2, 1\n\tcmp\tw4, w3\n\tbeq\t.L2\n\tmov\tw0, 0\n\tb\t.L1\n\t.cfi_endproc\n\n",
".global prefix_of\n.type prefix_of, %function\nprefix_of:\n.LFB69:\n\t.cfi_startproc\n\tldrb\tw2, [x0]\n\tcbnz\tw2, .L4\n\tb\t.L2\n\t.p2align 2,,3\n.L11:\n\tldrb\tw2, [x0, 1]!\n\tcbz\tw2, .L2\n.L4:\n\tldrb\tw3, [x1], 1\n\tcmp\tw3, w2\n\tbeq\t.L11\n\tmov\tw0, 0\n\tret\n\t.p2align 2,,3\n.L2:\n\tldrb\tw0, [x1]\n\tcmp\tw0, 61\n\tccmp\tw0, 0, 4, ne\n\tcset\tw0, eq\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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\"",
"\"boqikefo\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"hrzujb\"",
"\"jsye\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"s\"",
"\"qebuznjsnfjwcooytzzayyuqtvwnie\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"onpaaufwombosmiaebe\"",
"\"inbt\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"wgpnoktjkoztnckrtnngmrlu\"",
"\"jevbqzocksnnbgzrdhf\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"\"",
"\"cnehtdc\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"tttsyeb\"",
"\"rqivozmtvwgeipfiqhrzhvb\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"jmieyqroxzw\"",
"\"ijko\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"b\"",
"\"obftg\""
],
"var": [
"special",
"s"
]
},
{
"value": [
"\"rzlcozcssuczhssoatglr\"",
"\"agmfteqdlkwclczrjzerwupiyilzdn\""
],
"var": [
"special",
"s"
]
}
],
"output": [
{
"value": [
"0",
"\"boqikefo\"",
"\"rkpdpvgyshuebbedxz\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"jsye\"",
"\"hrzujb\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"qebuznjsnfjwcooytzzayyuqtvwnie\"",
"\"s\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"inbt\"",
"\"onpaaufwombosmiaebe\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"jevbqzocksnnbgzrdhf\"",
"\"wgpnoktjkoztnckrtnngmrlu\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"cnehtdc\"",
"\"\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"rqivozmtvwgeipfiqhrzhvb\"",
"\"tttsyeb\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"ijko\"",
"\"jmieyqroxzw\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"obftg\"",
"\"b\""
],
"var": [
"returnv",
"s",
"special"
]
},
{
"value": [
"0",
"\"agmfteqdlkwclczrjzerwupiyilzdn\"",
"\"rzlcozcssuczhssoatglr\""
],
"var": [
"returnv",
"s",
"special"
]
}
]
} | 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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(char* special, char* s, int returnv) {
json output_json;
output_json["special"] = special;
output_json["s"] = s;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
char* special = strdup(input_json["special"].get<std::string>().c_str());
char* s = strdup(input_json["s"].get<std::string>().c_str());
clock_t begin = clock();
int returnv = prefix_of(special, s);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(special, s, returnv);
} | 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": {}, "needs_cast": {}, "globals": []} |
nolink/algorithm/training/012fan_metting.c | int* sub(int* a, int sizeA, int* b, int sizeB, int* resultSize){
} | int * sub(int *a, intsizeA, int *b, intsizeB, int *resultSize) | int* sub(int* a, int sizeA, int* b, int sizeB, int* resultSize) | sub | [
"int *",
"int *",
"int",
"int *",
"int",
"int *"
] | {
"code": [
".globl sub\n.type sub, @function\nsub:\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\tmovl\t%esi, -12(%rbp)\n\tmovq\t%rdx, -24(%rbp)\n\tmovl\t%ecx, -16(%rbp)\n\tmovq\t%r8, -32(%rbp)\n\tnop\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl sub\n.type sub, @function\nsub:\n.LFB35:\n\t.cfi_startproc\n\tendbr64\n\tret\n\t.cfi_endproc\n\n",
".globl sub\n.type sub, @function\nsub:\n.LFB50:\n\t.cfi_startproc\n\tendbr64\n\tret\n\t.cfi_endproc\n\n",
".global sub\n.type sub, %function\nsub:\n.LFB6:\n\t.cfi_startproc\n\tsub\tsp, sp, #32\n\t.cfi_def_cfa_offset 32\n\tstr\tx0, [sp, 24]\n\tstr\tw1, [sp, 20]\n\tstr\tx2, [sp, 8]\n\tstr\tw3, [sp, 16]\n\tstr\tx4, [sp]\n\tnop\n\tadd\tsp, sp, 32\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global sub\n.type sub, %function\nsub:\n.LFB35:\n\t.cfi_startproc\n\tret\n\t.cfi_endproc\n\n",
".global sub\n.type sub, %function\nsub:\n.LFB50:\n\t.cfi_startproc\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | null | #include <stdio.h>
#include <stdlib.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": [
"[51, 2, 6, 32, 76, 97, 116, 94, 107, 83, 25, 73, 106, 7, 82, 114, 63, 63, 61, 0, 35, 4, 17, 21, 125, 37, 46, 35, 37, 30, 72, 87]",
"90",
"[84, 110, 3, 107, 59, 111, 50, 120, 93, 65, 115, 19, 12, 10, 122, 99, 79, 13, 21, 67, 99, 12, 17, 61, 49, 86, 97, 18, 49, 65, 70, 55]",
"2",
"[62, 91, 47, 55, 38, 74, 37, 6, 98, 47, 20, 37, 26, 102, 117, 48, 52, 102, 0, 96, 111, 1, 18, 65, 94, 118, 105, 54, 19, 30, 108, 6]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[4, 76, 113, 7, 17, 30, 16, 93, 26, 110, 69, 85, 75, 106, 118, 92, 59, 120, 110, 68, 59, 42, 65, 74, 22, 102, 10, 16, 6, 3, 79, 44]",
"101",
"[40, 66, 58, 77, 69, 21, 62, 32, 100, 109, 79, 83, 18, 89, 39, 103, 100, 45, 18, 2, 8, 80, 25, 48, 110, 9, 26, 19, 66, 110, 20, 34]",
"0",
"[0, 34, 54, 122, 31, 92, 99, 116, 31, 21, 73, 29, 115, 111, 93, 59, 52, 13, 2, 19, 67, 25, 50, 66, 106, 74, 2, 122, 95, 43, 81, 124]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[72, 59, 87, 103, 88, 55, 126, 118, 126, 30, 12, 2, 71, 66, 125, 92, 3, 28, 2, 63, 125, 89, 126, 68, 18, 14, 81, 80, 49, 43, 64, 40]",
"41",
"[43, 114, 73, 35, 75, 31, 94, 102, 47, 67, 64, 95, 108, 110, 97, 11, 51, 72, 32, 0, 43, 46, 85, 91, 52, 39, 0, 116, 72, 2, 27, 80]",
"13",
"[76, 90, 8, 30, 40, 107, 78, 58, 22, 82, 71, 96, 39, 27, 66, 33, 96, 55, 71, 111, 11, 9, 62, 14, 72, 31, 9, 25, 122, 47, 69, 5]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[24, 82, 45, 19, 47, 79, 90, 43, 47, 115, 69, 111, 34, 19, 53, 41, 110, 45, 79, 16, 3, 111, 79, 75, 77, 54, 37, 107, 16, 32, 57, 31]",
"27",
"[14, 9, 4, 8, 121, 51, 47, 23, 96, 122, 68, 90, 116, 54, 56, 48, 38, 33, 13, 63, 18, 20, 96, 116, 84, 11, 73, 120, 39, 88, 91, 16]",
"86",
"[98, 21, 116, 81, 66, 8, 19, 76, 84, 103, 93, 11, 101, 120, 86, 41, 107, 55, 53, 83, 115, 29, 104, 21, 85, 112, 38, 18, 20, 54, 45, 97]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[20, 98, 57, 41, 13, 64, 61, 0, 74, 104, 50, 114, 92, 70, 81, 38, 121, 43, 69, 79, 75, 115, 82, 56, 88, 39, 105, 107, 61, 79, 9, 93]",
"109",
"[56, 53, 22, 100, 14, 59, 71, 59, 79, 49, 89, 124, 20, 55, 15, 106, 89, 21, 122, 0, 63, 20, 111, 116, 36, 45, 52, 14, 69, 77, 40, 44]",
"107",
"[24, 69, 85, 10, 110, 44, 95, 102, 24, 72, 2, 20, 78, 62, 21, 8, 106, 59, 28, 10, 66, 92, 78, 122, 75, 0, 80, 10, 121, 101, 67, 81]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[120, 104, 51, 108, 28, 109, 39, 118, 57, 30, 16, 106, 59, 110, 14, 15, 69, 24, 72, 74, 30, 71, 35, 46, 105, 37, 11, 70, 123, 19, 76, 76]",
"7",
"[12, 90, 23, 84, 28, 2, 88, 78, 105, 92, 28, 97, 33, 76, 97, 39, 18, 41, 75, 101, 22, 90, 100, 125, 51, 61, 29, 1, 126, 62, 50, 49]",
"108",
"[3, 3, 3, 13, 100, 35, 19, 36, 74, 18, 114, 8, 27, 20, 73, 53, 0, 97, 46, 63, 17, 30, 67, 1, 41, 78, 25, 76, 27, 8, 83, 96]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[36, 59, 37, 117, 46, 2, 77, 115, 25, 119, 37, 15, 8, 58, 123, 6, 118, 48, 78, 69, 98, 86, 9, 36, 44, 24, 101, 122, 110, 58, 8, 125]",
"28",
"[39, 53, 115, 109, 17, 30, 12, 102, 7, 3, 124, 45, 6, 93, 84, 56, 117, 42, 54, 59, 34, 103, 79, 89, 115, 1, 27, 47, 76, 122, 39, 38]",
"86",
"[28, 115, 77, 29, 31, 85, 52, 55, 85, 26, 82, 118, 125, 99, 7, 19, 37, 41, 90, 112, 97, 115, 9, 57, 23, 11, 81, 118, 53, 20, 97, 29]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[49, 93, 20, 69, 124, 86, 72, 98, 66, 124, 48, 93, 17, 51, 72, 0, 99, 122, 61, 103, 106, 63, 97, 73, 118, 43, 62, 65, 10, 1, 29, 101]",
"123",
"[63, 104, 80, 58, 54, 29, 33, 68, 27, 124, 5, 85, 54, 67, 126, 2, 20, 6, 94, 121, 1, 65, 23, 8, 95, 125, 8, 74, 109, 79, 80, 54]",
"29",
"[61, 54, 110, 114, 32, 26, 23, 65, 104, 80, 0, 45, 70, 105, 73, 42, 4, 106, 106, 103, 118, 4, 9, 87, 88, 110, 39, 99, 85, 90, 33, 71]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[68, 125, 108, 114, 71, 47, 19, 0, 19, 36, 57, 6, 72, 11, 15, 55, 124, 20, 47, 102, 0, 60, 68, 23, 109, 79, 17, 39, 96, 100, 19, 53]",
"88",
"[17, 11, 3, 23, 52, 22, 41, 33, 91, 112, 91, 11, 107, 91, 76, 122, 59, 54, 69, 99, 5, 21, 42, 62, 8, 32, 42, 121, 23, 24, 84, 67]",
"59",
"[20, 100, 71, 38, 85, 37, 98, 25, 68, 20, 37, 51, 72, 111, 120, 72, 95, 81, 120, 31, 92, 22, 2, 55, 46, 18, 94, 31, 120, 85, 14, 17]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
},
{
"value": [
"[113, 20, 1, 10, 121, 57, 92, 79, 55, 49, 17, 78, 8, 32, 42, 46, 27, 22, 70, 40, 55, 81, 54, 92, 120, 57, 119, 14, 12, 36, 2, 28]",
"38",
"[80, 18, 92, 21, 45, 3, 98, 61, 26, 91, 57, 38, 67, 1, 122, 120, 92, 24, 32, 112, 126, 99, 102, 89, 14, 16, 3, 94, 65, 92, 103, 114]",
"27",
"[43, 5, 88, 48, 124, 68, 47, 42, 113, 99, 32, 58, 53, 105, 43, 8, 34, 121, 44, 106, 9, 21, 83, 30, 82, 99, 4, 97, 73, 35, 52, 2]"
],
"var": [
"a",
"sizeA",
"b",
"sizeB",
"resultSize"
]
}
],
"output": [
{
"value": [
"[51, 2, 6, 32, 76, 97, 116, 94, 107, 83, 25, 73, 106, 7, 82, 114, 63, 63, 61, 0, 35, 4, 17, 21, 125, 37, 46, 35, 37, 30, 72, 87]",
"[84, 110, 3, 107, 59, 111, 50, 120, 93, 65, 115, 19, 12, 10, 122, 99, 79, 13, 21, 67, 99, 12, 17, 61, 49, 86, 97, 18, 49, 65, 70, 55]",
"[62, 91, 47, 55, 38, 74, 37, 6, 98, 47, 20, 37, 26, 102, 117, 48, 52, 102, 0, 96, 111, 1, 18, 65, 94, 118, 105, 54, 19, 30, 108, 6]",
"[51, 2, 6, 32, 76, 97, 116, 94, 107, 83, 25, 73, 106, 7, 82, 114, 63, 63, 61, 0, 35, 4, 17, 21, 125, 37, 46, 35, 37, 30, 72, 87]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[4, 76, 113, 7, 17, 30, 16, 93, 26, 110, 69, 85, 75, 106, 118, 92, 59, 120, 110, 68, 59, 42, 65, 74, 22, 102, 10, 16, 6, 3, 79, 44]",
"[40, 66, 58, 77, 69, 21, 62, 32, 100, 109, 79, 83, 18, 89, 39, 103, 100, 45, 18, 2, 8, 80, 25, 48, 110, 9, 26, 19, 66, 110, 20, 34]",
"[0, 34, 54, 122, 31, 92, 99, 116, 31, 21, 73, 29, 115, 111, 93, 59, 52, 13, 2, 19, 67, 25, 50, 66, 106, 74, 2, 122, 95, 43, 81, 124]",
"[4, 76, 113, 7, 17, 30, 16, 93, 26, 110, 69, 85, 75, 106, 118, 92, 59, 120, 110, 68, 59, 42, 65, 74, 22, 102, 10, 16, 6, 3, 79, 44]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[72, 59, 87, 103, 88, 55, 126, 118, 126, 30, 12, 2, 71, 66, 125, 92, 3, 28, 2, 63, 125, 89, 126, 68, 18, 14, 81, 80, 49, 43, 64, 40]",
"[43, 114, 73, 35, 75, 31, 94, 102, 47, 67, 64, 95, 108, 110, 97, 11, 51, 72, 32, 0, 43, 46, 85, 91, 52, 39, 0, 116, 72, 2, 27, 80]",
"[76, 90, 8, 30, 40, 107, 78, 58, 22, 82, 71, 96, 39, 27, 66, 33, 96, 55, 71, 111, 11, 9, 62, 14, 72, 31, 9, 25, 122, 47, 69, 5]",
"[72, 59, 87, 103, 88, 55, 126, 118, 126, 30, 12, 2, 71, 66, 125, 92, 3, 28, 2, 63, 125, 89, 126, 68, 18, 14, 81, 80, 49, 43, 64, 40]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[24, 82, 45, 19, 47, 79, 90, 43, 47, 115, 69, 111, 34, 19, 53, 41, 110, 45, 79, 16, 3, 111, 79, 75, 77, 54, 37, 107, 16, 32, 57, 31]",
"[14, 9, 4, 8, 121, 51, 47, 23, 96, 122, 68, 90, 116, 54, 56, 48, 38, 33, 13, 63, 18, 20, 96, 116, 84, 11, 73, 120, 39, 88, 91, 16]",
"[98, 21, 116, 81, 66, 8, 19, 76, 84, 103, 93, 11, 101, 120, 86, 41, 107, 55, 53, 83, 115, 29, 104, 21, 85, 112, 38, 18, 20, 54, 45, 97]",
"[24, 82, 45, 19, 47, 79, 90, 43, 47, 115, 69, 111, 34, 19, 53, 41, 110, 45, 79, 16, 3, 111, 79, 75, 77, 54, 37, 107, 16, 32, 57, 31]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[20, 98, 57, 41, 13, 64, 61, 0, 74, 104, 50, 114, 92, 70, 81, 38, 121, 43, 69, 79, 75, 115, 82, 56, 88, 39, 105, 107, 61, 79, 9, 93]",
"[56, 53, 22, 100, 14, 59, 71, 59, 79, 49, 89, 124, 20, 55, 15, 106, 89, 21, 122, 0, 63, 20, 111, 116, 36, 45, 52, 14, 69, 77, 40, 44]",
"[24, 69, 85, 10, 110, 44, 95, 102, 24, 72, 2, 20, 78, 62, 21, 8, 106, 59, 28, 10, 66, 92, 78, 122, 75, 0, 80, 10, 121, 101, 67, 81]",
"[20, 98, 57, 41, 13, 64, 61, 0, 74, 104, 50, 114, 92, 70, 81, 38, 121, 43, 69, 79, 75, 115, 82, 56, 88, 39, 105, 107, 61, 79, 9, 93]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[120, 104, 51, 108, 28, 109, 39, 118, 57, 30, 16, 106, 59, 110, 14, 15, 69, 24, 72, 74, 30, 71, 35, 46, 105, 37, 11, 70, 123, 19, 76, 76]",
"[12, 90, 23, 84, 28, 2, 88, 78, 105, 92, 28, 97, 33, 76, 97, 39, 18, 41, 75, 101, 22, 90, 100, 125, 51, 61, 29, 1, 126, 62, 50, 49]",
"[3, 3, 3, 13, 100, 35, 19, 36, 74, 18, 114, 8, 27, 20, 73, 53, 0, 97, 46, 63, 17, 30, 67, 1, 41, 78, 25, 76, 27, 8, 83, 96]",
"[120, 104, 51, 108, 28, 109, 39, 118, 57, 30, 16, 106, 59, 110, 14, 15, 69, 24, 72, 74, 30, 71, 35, 46, 105, 37, 11, 70, 123, 19, 76, 76]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[36, 59, 37, 117, 46, 2, 77, 115, 25, 119, 37, 15, 8, 58, 123, 6, 118, 48, 78, 69, 98, 86, 9, 36, 44, 24, 101, 122, 110, 58, 8, 125]",
"[39, 53, 115, 109, 17, 30, 12, 102, 7, 3, 124, 45, 6, 93, 84, 56, 117, 42, 54, 59, 34, 103, 79, 89, 115, 1, 27, 47, 76, 122, 39, 38]",
"[28, 115, 77, 29, 31, 85, 52, 55, 85, 26, 82, 118, 125, 99, 7, 19, 37, 41, 90, 112, 97, 115, 9, 57, 23, 11, 81, 118, 53, 20, 97, 29]",
"[36, 59, 37, 117, 46, 2, 77, 115, 25, 119, 37, 15, 8, 58, 123, 6, 118, 48, 78, 69, 98, 86, 9, 36, 44, 24, 101, 122, 110, 58, 8, 125]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[49, 93, 20, 69, 124, 86, 72, 98, 66, 124, 48, 93, 17, 51, 72, 0, 99, 122, 61, 103, 106, 63, 97, 73, 118, 43, 62, 65, 10, 1, 29, 101]",
"[63, 104, 80, 58, 54, 29, 33, 68, 27, 124, 5, 85, 54, 67, 126, 2, 20, 6, 94, 121, 1, 65, 23, 8, 95, 125, 8, 74, 109, 79, 80, 54]",
"[61, 54, 110, 114, 32, 26, 23, 65, 104, 80, 0, 45, 70, 105, 73, 42, 4, 106, 106, 103, 118, 4, 9, 87, 88, 110, 39, 99, 85, 90, 33, 71]",
"[49, 93, 20, 69, 124, 86, 72, 98, 66, 124, 48, 93, 17, 51, 72, 0, 99, 122, 61, 103, 106, 63, 97, 73, 118, 43, 62, 65, 10, 1, 29, 101]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[68, 125, 108, 114, 71, 47, 19, 0, 19, 36, 57, 6, 72, 11, 15, 55, 124, 20, 47, 102, 0, 60, 68, 23, 109, 79, 17, 39, 96, 100, 19, 53]",
"[17, 11, 3, 23, 52, 22, 41, 33, 91, 112, 91, 11, 107, 91, 76, 122, 59, 54, 69, 99, 5, 21, 42, 62, 8, 32, 42, 121, 23, 24, 84, 67]",
"[20, 100, 71, 38, 85, 37, 98, 25, 68, 20, 37, 51, 72, 111, 120, 72, 95, 81, 120, 31, 92, 22, 2, 55, 46, 18, 94, 31, 120, 85, 14, 17]",
"[68, 125, 108, 114, 71, 47, 19, 0, 19, 36, 57, 6, 72, 11, 15, 55, 124, 20, 47, 102, 0, 60, 68, 23, 109, 79, 17, 39, 96, 100, 19, 53]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
},
{
"value": [
"[113, 20, 1, 10, 121, 57, 92, 79, 55, 49, 17, 78, 8, 32, 42, 46, 27, 22, 70, 40, 55, 81, 54, 92, 120, 57, 119, 14, 12, 36, 2, 28]",
"[80, 18, 92, 21, 45, 3, 98, 61, 26, 91, 57, 38, 67, 1, 122, 120, 92, 24, 32, 112, 126, 99, 102, 89, 14, 16, 3, 94, 65, 92, 103, 114]",
"[43, 5, 88, 48, 124, 68, 47, 42, 113, 99, 32, 58, 53, 105, 43, 8, 34, 121, 44, 106, 9, 21, 83, 30, 82, 99, 4, 97, 73, 35, 52, 2]",
"[113, 20, 1, 10, 121, 57, 92, 79, 55, 49, 17, 78, 8, 32, 42, 46, 27, 22, 70, 40, 55, 81, 54, 92, 120, 57, 119, 14, 12, 36, 2, 28]"
],
"var": [
"a",
"b",
"resultSize",
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_61o37fvp_i.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int* a, int sizeA, int* b, int sizeB, int* resultSize, int* returnv) {
json output_json;
std::vector<json> output_temp_4;
for (unsigned int i5 = 0; i5 < 32; i5++) {
int output_temp_6 = a[i5];
output_temp_4.push_back(output_temp_6);
}
output_json["a"] = output_temp_4;
std::vector<json> output_temp_7;
for (unsigned int i8 = 0; i8 < 32; i8++) {
int output_temp_9 = b[i8];
output_temp_7.push_back(output_temp_9);
}
output_json["b"] = output_temp_7;
std::vector<json> output_temp_10;
for (unsigned int i11 = 0; i11 < 32; i11++) {
int output_temp_12 = resultSize[i11];
output_temp_10.push_back(output_temp_12);
}
output_json["resultSize"] = output_temp_10;
std::vector<json> output_temp_13;
for (unsigned int i14 = 0; i14 < 32; i14++) {
int output_temp_15 = returnv[i14];
output_temp_13.push_back(output_temp_15);
}
output_json["returnv"] = output_temp_13;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
std::vector<int> input_temp_1_vec;
for (auto& elem : input_json["a"]) {
int input_temp_1_inner = elem;
input_temp_1_vec.push_back(input_temp_1_inner);
}
int* a = &input_temp_1_vec[0];
int sizeA = input_json["sizeA"];
std::vector<int> input_temp_2_vec;
for (auto& elem : input_json["b"]) {
int input_temp_2_inner = elem;
input_temp_2_vec.push_back(input_temp_2_inner);
}
int* b = &input_temp_2_vec[0];
int sizeB = input_json["sizeB"];
std::vector<int> input_temp_3_vec;
for (auto& elem : input_json["resultSize"]) {
int input_temp_3_inner = elem;
input_temp_3_vec.push_back(input_temp_3_inner);
}
int* resultSize = &input_temp_3_vec[0];
clock_t begin = clock();
int* returnv = sub(a, sizeA, b, sizeB, resultSize);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(a, sizeA, b, sizeB, resultSize, returnv);
} | master | null | {"livein": ["a", "sizeA", "b", "sizeB", "resultSize"], "liveout": ["a", "b", "resultSize"], "returnvarname": ["returnv"], "execcmd": "", "funname": "sub", "funargs": ["a", "sizeA", "b", "sizeB", "resultSize"], "typemap": {"a": "array(int32#32)", "sizeA": "int32", "b": "array(int32#32)", "sizeB": "int32", "resultSize": "array(int32#32)", "returnv": "array(int32#32)"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_61o37fvp_i.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
Lydux/gcc-4.6.2-human68k/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/testsuite/gcc.target/arm/wmul-2.c | void vec_mpy(int y[], const short x[], short scaler)
{
int i;
for (i = 0; i < 150; i++)
y[i] += ((scaler * x[i]) >> 31);
} | void vec_mpy(int *y, const short *x, shortscaler) | void vec_mpy(int y[], const short x[], short scaler) | vec_mpy | [
"void",
"int *",
"const short *",
"short"
] | {
"code": [
".globl vec_mpy\n.type vec_mpy, @function\nvec_mpy:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -24(%rbp)\n\tmovq\t%rsi, -32(%rbp)\n\tmovl\t%edx, %eax\n\tmovw\t%ax, -36(%rbp)\n\tmovl\t$0, -4(%rbp)\n\tjmp\t.L2\n.L3:\n\tmovl\t-4(%rbp), %eax\n\tcltq\n\tleaq\t0(,%rax,4), %rdx\n\tmovq\t-24(%rbp), %rax\n\taddq\t%rdx, %rax\n\tmovl\t(%rax), %edx\n\tmovswl\t-36(%rbp), %ecx\n\tmovl\t-4(%rbp), %eax\n\tcltq\n\tleaq\t(%rax,%rax), %rsi\n\tmovq\t-32(%rbp), %rax\n\taddq\t%rsi, %rax\n\tmovzwl\t(%rax), %eax\n\tcwtl\n\timull\t%ecx, %eax\n\tsarl\t$31, %eax\n\tmovl\t%eax, %ecx\n\tmovl\t-4(%rbp), %eax\n\tcltq\n\tleaq\t0(,%rax,4), %rsi\n\tmovq\t-24(%rbp), %rax\n\taddq\t%rsi, %rax\n\taddl\t%ecx, %edx\n\tmovl\t%edx, (%rax)\n\taddl\t$1, -4(%rbp)\n.L2:\n\tcmpl\t$149, -4(%rbp)\n\tjle\t.L3\n\tnop\n\tnop\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl vec_mpy\n.type vec_mpy, @function\nvec_mpy:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tmovswl\t%dx, %edx\n.L2:\n\tmovswl\t(%rsi,%rax,2), %ecx\n\timull\t%edx, %ecx\n\tsarl\t$31, %ecx\n\taddl\t%ecx, (%rdi,%rax,4)\n\tincq\t%rax\n\tcmpq\t$150, %rax\n\tjne\t.L2\n\tret\n\t.cfi_endproc\n\n",
".globl vec_mpy\n.type vec_mpy, @function\nvec_mpy:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovd\t%edx, %xmm3\n\tmovswl\t%dx, %ecx\n\txorl\t%eax, %eax\n\tpunpcklwd\t%xmm3, %xmm3\n\tpshufd\t$0, %xmm3, %xmm3\n\t.p2align 4,,10\n\t.p2align 3\n.L2:\n\tmovdqu\t(%rsi,%rax), %xmm0\n\tmovdqu\t(%rsi,%rax), %xmm2\n\tmovdqu\t16(%rdi,%rax,2), %xmm4\n\tmovdqu\t(%rdi,%rax,2), %xmm5\n\tpmullw\t%xmm3, %xmm0\n\tpmulhw\t%xmm3, %xmm2\n\tmovdqa\t%xmm0, %xmm1\n\tpunpcklwd\t%xmm2, %xmm0\n\tpunpckhwd\t%xmm2, %xmm1\n\tpsrad\t$31, %xmm0\n\tpsrad\t$31, %xmm1\n\tpaddd\t%xmm5, %xmm0\n\tpaddd\t%xmm4, %xmm1\n\tmovups\t%xmm0, (%rdi,%rax,2)\n\tmovups\t%xmm1, 16(%rdi,%rax,2)\n\taddq\t$16, %rax\n\tcmpq\t$288, %rax\n\tjne\t.L2\n\tmovswl\t288(%rsi), %eax\n\timull\t%ecx, %eax\n\tsarl\t$31, %eax\n\taddl\t%eax, 576(%rdi)\n\tmovswl\t290(%rsi), %eax\n\timull\t%ecx, %eax\n\tsarl\t$31, %eax\n\taddl\t%eax, 580(%rdi)\n\tmovswl\t292(%rsi), %eax\n\timull\t%ecx, %eax\n\tsarl\t$31, %eax\n\taddl\t%eax, 584(%rdi)\n\tmovswl\t294(%rsi), %eax\n\timull\t%ecx, %eax\n\tsarl\t$31, %eax\n\taddl\t%eax, 588(%rdi)\n\tmovswl\t296(%rsi), %eax\n\timull\t%ecx, %eax\n\tsarl\t$31, %eax\n\taddl\t%eax, 592(%rdi)\n\tmovswl\t298(%rsi), %eax\n\timull\t%eax, %ecx\n\tsarl\t$31, %ecx\n\taddl\t%ecx, 596(%rdi)\n\tret\n\t.cfi_endproc\n\n",
".global vec_mpy\n.type vec_mpy, %function\nvec_mpy:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #48\n\t.cfi_def_cfa_offset 48\n\tstr\tx0, [sp, 24]\n\tstr\tx1, [sp, 16]\n\tstrh\tw2, [sp, 14]\n\tstr\twzr, [sp, 44]\n\tb\t.L2\n.L3:\n\tldrsw\tx0, [sp, 44]\n\tlsl\tx0, x0, 2\n\tldr\tx1, [sp, 24]\n\tadd\tx0, x1, x0\n\tldr\tw2, [x0]\n\tldrsh\tw0, [sp, 14]\n\tldrsw\tx1, [sp, 44]\n\tlsl\tx1, x1, 1\n\tldr\tx3, [sp, 16]\n\tadd\tx1, x3, x1\n\tldrsh\tw1, [x1]\n\tmul\tw0, w0, w1\n\tasr\tw1, w0, 31\n\tldrsw\tx0, [sp, 44]\n\tlsl\tx0, x0, 2\n\tldr\tx3, [sp, 24]\n\tadd\tx0, x3, x0\n\tadd\tw1, w2, w1\n\tstr\tw1, [x0]\n\tldr\tw0, [sp, 44]\n\tadd\tw0, w0, 1\n\tstr\tw0, [sp, 44]\n.L2:\n\tldr\tw0, [sp, 44]\n\tcmp\tw0, 149\n\tble\t.L3\n\tnop\n\tnop\n\tadd\tsp, sp, 48\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global vec_mpy\n.type vec_mpy, %function\nvec_mpy:\n.LFB0:\n\t.cfi_startproc\n\tsxth\tw2, w2\n\tmov\tx3, 0\n.L2:\n\tldrsh\tw4, [x1, x3, lsl 1]\n\tldr\tw5, [x0, x3, lsl 2]\n\tmul\tw4, w4, w2\n\tadd\tw4, w5, w4, asr 31\n\tstr\tw4, [x0, x3, lsl 2]\n\tadd\tx3, x3, 1\n\tcmp\tx3, 150\n\tbne\t.L2\n\tret\n\t.cfi_endproc\n\n",
".global vec_mpy\n.type vec_mpy, %function\nvec_mpy:\n.LFB0:\n\t.cfi_startproc\n\tdup\tv2.8h, w2\n\tmov\tx3, x0\n\tmov\tx4, x1\n\tadd\tx5, x0, 576\n\tsxth\tw2, w2\n\t.p2align 3,,7\n.L2:\n\tldr\tq0, [x4], 16\n\tldp\tq3, q4, [x3]\n\tsmull2\tv1.4s, v0.8h, v2.8h\n\tsmull\tv0.4s, v0.4h, v2.4h\n\tsshr\tv1.4s, v1.4s, 31\n\tsshr\tv0.4s, v0.4s, 31\n\tadd\tv1.4s, v1.4s, v4.4s\n\tadd\tv0.4s, v0.4s, v3.4s\n\tstp\tq0, q1, [x3]\n\tadd\tx3, x3, 32\n\tcmp\tx5, x3\n\tbne\t.L2\n\tldrsh\tw7, [x1, 288]\n\tldrsh\tw6, [x1, 290]\n\tldrsh\tw5, [x1, 292]\n\tldrsh\tw4, [x1, 294]\n\tldrsh\tw3, [x1, 296]\n\tmul\tw7, w7, w2\n\tldrsh\tw1, [x1, 298]\n\tmul\tw6, w6, w2\n\tmul\tw5, w5, w2\n\tldr\tw8, [x0, 592]\n\tmul\tw4, w4, w2\n\tmul\tw3, w3, w2\n\tmul\tw1, w1, w2\n\tadd\tx2, x0, 584\n\tadd\tw3, w8, w3, asr 31\n\tadd\tx8, x0, 584\n\tldp\tw12, w11, [x2, -8]\n\tldp\tw10, w9, [x2]\n\tldr\tw2, [x0, 596]\n\tadd\tw7, w12, w7, asr 31\n\tadd\tw6, w11, w6, asr 31\n\tstp\tw7, w6, [x8, -8]\n\tadd\tw5, w10, w5, asr 31\n\tadd\tw4, w9, w4, asr 31\n\tstp\tw5, w4, [x8]\n\tadd\tw1, w2, w1, asr 31\n\tstr\tw3, [x0, 592]\n\tstr\tw1, [x0, 596]\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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, 72, 88, 91, 123, 65, 31, 88, 87, 36, 81, 24, 20, 17, 64, 83, 88, 33, 33, 122, 86, 11, 115, 14, 12, 96, 114, 11, 96, 54, 102, 6]",
"[118, 70, 94, 52, 74, 53, 66, 85, 23, 23, 124, 16, 90, 37, 20, 74, 124, 87, 51, 11, 105, 42, 115, 51, 27, 80, 92, 66, 106, 1, 84, 50]",
"101"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[101, 70, 40, 114, 32, 44, 112, 51, 75, 87, 115, 80, 70, 56, 56, 49, 75, 27, 61, 21, 39, 4, 19, 126, 28, 78, 101, 27, 83, 58, 57, 10]",
"[119, 115, 118, 53, 122, 5, 18, 36, 76, 16, 65, 80, 32, 120, 13, 1, 98, 106, 26, 13, 99, 40, 69, 11, 16, 2, 27, 97, 91, 35, 61, 74]",
"64"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[22, 0, 99, 21, 114, 40, 77, 69, 34, 91, 83, 119, 65, 119, 77, 63, 40, 1, 24, 56, 95, 71, 121, 121, 101, 51, 17, 66, 64, 125, 124, 28]",
"[40, 22, 82, 69, 52, 77, 31, 6, 112, 90, 51, 120, 126, 55, 32, 34, 109, 19, 106, 94, 97, 122, 90, 102, 68, 0, 71, 40, 50, 70, 89, 56]",
"117"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[10, 122, 21, 123, 0, 73, 59, 65, 84, 99, 38, 60, 117, 125, 83, 41, 95, 71, 123, 30, 25, 20, 122, 113, 102, 116, 117, 113, 112, 103, 93, 105]",
"[21, 123, 125, 70, 108, 42, 41, 125, 1, 117, 50, 66, 71, 115, 45, 14, 100, 92, 45, 13, 57, 69, 18, 113, 111, 7, 94, 126, 52, 2, 44, 121]",
"112"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[88, 118, 102, 17, 79, 84, 13, 64, 87, 96, 53, 98, 64, 24, 62, 59, 125, 122, 31, 6, 49, 118, 72, 125, 104, 20, 58, 7, 15, 76, 97, 99]",
"[115, 72, 102, 18, 81, 111, 60, 15, 55, 76, 52, 103, 124, 70, 39, 119, 92, 39, 22, 77, 107, 79, 85, 49, 6, 45, 14, 87, 27, 122, 40, 72]",
"33"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[103, 73, 64, 14, 60, 33, 10, 31, 33, 104, 83, 103, 51, 33, 63, 30, 31, 40, 118, 94, 93, 75, 109, 34, 42, 31, 68, 92, 74, 87, 39, 96]",
"[108, 9, 121, 20, 36, 102, 26, 48, 107, 19, 109, 121, 81, 51, 106, 100, 3, 40, 76, 23, 69, 39, 123, 18, 104, 119, 106, 122, 5, 50, 6, 29]",
"103"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[68, 67, 17, 1, 99, 102, 38, 2, 39, 33, 41, 109, 113, 6, 83, 118, 69, 16, 2, 26, 108, 10, 62, 70, 59, 33, 56, 110, 91, 16, 52, 105]",
"[38, 75, 56, 82, 73, 4, 94, 32, 59, 120, 43, 94, 103, 86, 115, 98, 124, 5, 0, 47, 22, 71, 41, 112, 95, 73, 102, 76, 116, 75, 106, 70]",
"93"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[99, 111, 31, 18, 54, 78, 82, 25, 95, 70, 5, 30, 84, 85, 55, 106, 104, 117, 78, 104, 13, 4, 11, 36, 13, 17, 40, 90, 83, 30, 116, 26]",
"[66, 7, 75, 42, 84, 42, 44, 121, 85, 20, 86, 66, 35, 4, 103, 95, 92, 114, 39, 77, 36, 125, 96, 111, 125, 58, 108, 5, 115, 49, 40, 34]",
"94"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[6, 65, 59, 32, 1, 51, 19, 93, 126, 33, 97, 5, 35, 120, 43, 89, 115, 48, 5, 77, 87, 40, 83, 120, 55, 95, 81, 97, 34, 17, 86, 80]",
"[8, 14, 21, 117, 126, 25, 29, 21, 78, 84, 91, 119, 55, 118, 10, 84, 12, 29, 13, 15, 53, 101, 65, 60, 6, 10, 121, 47, 54, 92, 34, 3]",
"59"
],
"var": [
"y",
"x",
"scaler"
]
},
{
"value": [
"[103, 125, 56, 58, 84, 101, 40, 35, 7, 82, 66, 3, 36, 4, 104, 55, 6, 27, 52, 78, 124, 22, 119, 125, 4, 43, 69, 50, 62, 112, 19, 91]",
"[42, 126, 89, 74, 5, 27, 6, 103, 121, 76, 94, 85, 95, 120, 69, 6, 58, 28, 49, 10, 82, 78, 64, 95, 49, 114, 106, 22, 68, 65, 15, 22]",
"91"
],
"var": [
"y",
"x",
"scaler"
]
}
],
"output": [
{
"value": [
"[118, 70, 94, 52, 74, 53, 66, 85, 23, 23, 124, 16, 90, 37, 20, 74, 124, 87, 51, 11, 105, 42, 115, 51, 27, 80, 92, 66, 106, 1, 84, 50]",
"[39, 72, 88, 91, 123, 65, 31, 88, 87, 36, 81, 24, 20, 17, 64, 83, 88, 33, 33, 122, 86, 11, 115, 14, 12, 96, 114, 11, 96, 54, 102, 6]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[119, 115, 118, 53, 122, 5, 18, 36, 76, 16, 65, 80, 32, 120, 13, 1, 98, 106, 26, 13, 99, 40, 69, 11, 16, 2, 27, 97, 91, 35, 61, 74]",
"[101, 70, 40, 114, 32, 44, 112, 51, 75, 87, 115, 80, 70, 56, 56, 49, 75, 27, 61, 21, 39, 4, 19, 126, 28, 78, 101, 27, 83, 58, 57, 10]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[40, 22, 82, 69, 52, 77, 31, 6, 112, 90, 51, 120, 126, 55, 32, 34, 109, 19, 106, 94, 97, 122, 90, 102, 68, 0, 71, 40, 50, 70, 89, 56]",
"[22, 0, 99, 21, 114, 40, 77, 69, 34, 91, 83, 119, 65, 119, 77, 63, 40, 1, 24, 56, 95, 71, 121, 121, 101, 51, 17, 66, 64, 125, 124, 28]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[21, 123, 125, 70, 108, 42, 41, 125, 1, 117, 50, 66, 71, 115, 45, 14, 100, 92, 45, 13, 57, 69, 18, 113, 111, 7, 94, 126, 52, 2, 44, 121]",
"[10, 122, 21, 123, 0, 73, 59, 65, 84, 99, 38, 60, 117, 125, 83, 41, 95, 71, 123, 30, 25, 20, 122, 113, 102, 116, 117, 113, 112, 103, 93, 105]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[115, 72, 102, 18, 81, 111, 60, 15, 55, 76, 52, 103, 124, 70, 39, 119, 92, 39, 22, 77, 107, 79, 85, 49, 6, 45, 14, 87, 27, 122, 40, 72]",
"[88, 118, 102, 17, 79, 84, 13, 64, 87, 96, 53, 98, 64, 24, 62, 59, 125, 122, 31, 6, 49, 118, 72, 125, 104, 20, 58, 7, 15, 76, 97, 99]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[108, 9, 121, 20, 36, 102, 26, 48, 107, 19, 109, 121, 81, 51, 106, 100, 3, 40, 76, 23, 69, 39, 123, 18, 104, 119, 106, 122, 5, 50, 6, 29]",
"[103, 73, 64, 14, 60, 33, 10, 31, 33, 104, 83, 103, 51, 33, 63, 30, 31, 40, 118, 94, 93, 75, 109, 34, 42, 31, 68, 92, 74, 87, 39, 96]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[38, 75, 56, 82, 73, 4, 94, 32, 59, 120, 43, 94, 103, 86, 115, 98, 124, 5, 0, 47, 22, 71, 41, 112, 95, 73, 102, 76, 116, 75, 106, 70]",
"[68, 67, 17, 1, 99, 102, 38, 2, 39, 33, 41, 109, 113, 6, 83, 118, 69, 16, 2, 26, 108, 10, 62, 70, 59, 33, 56, 110, 91, 16, 52, 105]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[66, 7, 75, 42, 84, 42, 44, 121, 85, 20, 86, 66, 35, 4, 103, 95, 92, 114, 39, 77, 36, 125, 96, 111, 125, 58, 108, 5, 115, 49, 40, 34]",
"[99, 111, 31, 18, 54, 78, 82, 25, 95, 70, 5, 30, 84, 85, 55, 106, 104, 117, 78, 104, 13, 4, 11, 36, 13, 17, 40, 90, 83, 30, 116, 26]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[8, 14, 21, 117, 126, 25, 29, 21, 78, 84, 91, 119, 55, 118, 10, 84, 12, 29, 13, 15, 53, 101, 65, 60, 6, 10, 121, 47, 54, 92, 34, 3]",
"[6, 65, 59, 32, 1, 51, 19, 93, 126, 33, 97, 5, 35, 120, 43, 89, 115, 48, 5, 77, 87, 40, 83, 120, 55, 95, 81, 97, 34, 17, 86, 80]"
],
"var": [
"x",
"y"
]
},
{
"value": [
"[42, 126, 89, 74, 5, 27, 6, 103, 121, 76, 94, 85, 95, 120, 69, 6, 58, 28, 49, 10, 82, 78, 64, 95, 49, 114, 106, 22, 68, 65, 15, 22]",
"[103, 125, 56, 58, 84, 101, 40, 35, 7, 82, 66, 3, 36, 4, 104, 55, 6, 27, 52, 78, 124, 22, 119, 125, 4, 43, 69, 50, 62, 112, 19, 91]"
],
"var": [
"x",
"y"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_58oaf_3veu.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int* y, short* x, short scaler) {
json output_json;
std::vector<json> output_temp_3;
for (unsigned int i4 = 0; i4 < 32; i4++) {
int output_temp_5 = y[i4];
output_temp_3.push_back(output_temp_5);
}
output_json["y"] = output_temp_3;
std::vector<json> output_temp_6;
for (unsigned int i7 = 0; i7 < 32; i7++) {
short output_temp_8 = x[i7];
output_temp_6.push_back(output_temp_8);
}
output_json["x"] = output_temp_6;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
std::vector<int> input_temp_1_vec;
for (auto& elem : input_json["y"]) {
int input_temp_1_inner = elem;
input_temp_1_vec.push_back(input_temp_1_inner);
}
int* y = &input_temp_1_vec[0];
std::vector<short> input_temp_2_vec;
for (auto& elem : input_json["x"]) {
short input_temp_2_inner = elem;
input_temp_2_vec.push_back(input_temp_2_inner);
}
short* x = &input_temp_2_vec[0];
short scaler = input_json["scaler"];
clock_t begin = clock();
vec_mpy(y, x, scaler);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(y, x, scaler);
} | ar9344 | null | {"livein": ["y", "x", "scaler"], "liveout": ["y", "x"], "returnvarname": [], "execcmd": "", "funname": "vec_mpy", "funargs": ["y", "x", "scaler"], "typemap": {"y": "array(int32#32)", "x": "array(int16#32)", "scaler": "int16"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_58oaf_3veu.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
bairyn/opencurry/src/bits.c | int sign_int(int num)
{
return (( ((((num))) <= (((0)))) ? ( ((((num))) < (((0)))) ? ((-1)) : ((0)) ) : ((1)) ));
} | int sign_int(intnum) | int sign_int(int num) | sign_int | [
"int",
"int"
] | {
"code": [
".globl sign_int\n.type sign_int, @function\nsign_int:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -4(%rbp)\n\tcmpl\t$0, -4(%rbp)\n\tjg\t.L2\n\tcmpl\t$0, -4(%rbp)\n\tjns\t.L3\n\tmovl\t$-1, %eax\n\tjmp\t.L6\n.L3:\n\tmovl\t$0, %eax\n\tjmp\t.L6\n.L2:\n\tmovl\t$1, %eax\n.L6:\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl sign_int\n.type sign_int, @function\nsign_int:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$1, %eax\n\ttestl\t%edi, %edi\n\tjg\t.L1\n\tsetne\t%al\n\tmovzbl\t%al, %eax\n\tnegl\t%eax\n.L1:\n\tret\n\t.cfi_endproc\n\n",
".globl sign_int\n.type sign_int, @function\nsign_int:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\ttestl\t%edi, %edi\n\tmovl\t$1, %edx\n\tsetne\t%al\n\tnegl\t%eax\n\ttestl\t%edi, %edi\n\tcmovg\t%edx, %eax\n\tret\n\t.cfi_endproc\n\n",
".global sign_int\n.type sign_int, %function\nsign_int:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tw0, [sp, 12]\n\tldr\tw0, [sp, 12]\n\tcmp\tw0, 0\n\tbgt\t.L2\n\tldr\tw0, [sp, 12]\n\tcmp\tw0, 0\n\tbge\t.L3\n\tmov\tw0, -1\n\tb\t.L6\n.L3:\n\tmov\tw0, 0\n\tb\t.L6\n.L2:\n\tmov\tw0, 1\n.L6:\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global sign_int\n.type sign_int, %function\nsign_int:\n.LFB0:\n\t.cfi_startproc\n\tcmp\tw0, 0\n\tcsetm\tw1, ne\n\tcsinc\tw0, w1, wzr, le\n\tret\n\t.cfi_endproc\n\n",
".global sign_int\n.type sign_int, %function\nsign_int:\n.LFB0:\n\t.cfi_startproc\n\tcmp\tw0, 0\n\tmov\tw2, 1\n\tcsetm\tw1, ne\n\tcsel\tw0, w1, w2, le\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"40"
],
"var": [
"num"
]
},
{
"value": [
"89"
],
"var": [
"num"
]
},
{
"value": [
"43"
],
"var": [
"num"
]
},
{
"value": [
"44"
],
"var": [
"num"
]
},
{
"value": [
"77"
],
"var": [
"num"
]
},
{
"value": [
"117"
],
"var": [
"num"
]
},
{
"value": [
"30"
],
"var": [
"num"
]
},
{
"value": [
"69"
],
"var": [
"num"
]
},
{
"value": [
"93"
],
"var": [
"num"
]
},
{
"value": [
"81"
],
"var": [
"num"
]
}
],
"output": [
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_50hs9llu_2.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int num, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
int num = input_json["num"];
clock_t begin = clock();
int returnv = sign_int(num);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(num, returnv);
} | master | null | {"livein": ["num"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "sign_int", "funargs": ["num"], "typemap": {"num": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_50hs9llu_2.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
MasayukiNagase/samples/AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/src/bigend.c | int big_endian(
void)
{
union {
long l;
char c[sizeof(long)];
} u;
u.l = 1;
return (u.c[sizeof(long) - 1] == 1);
} | int big_endian() | int big_endian( void) | big_endian | [
"int",
""
] | {
"code": [
".globl big_endian\n.type big_endian, @function\nbig_endian:\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\tmovq\t%fs:40, %rax\n\tmovq\t%rax, -8(%rbp)\n\txorl\t%eax, %eax\n\tmovq\t$1, -16(%rbp)\n\tmovzbl\t-9(%rbp), %eax\n\tcmpb\t$1, %al\n\tsete\t%al\n\tmovzbl\t%al, %eax\n\tmovq\t-8(%rbp), %rdx\n\txorq\t%fs:40, %rdx\n\tje\t.L3\n\tcall\t__stack_chk_fail@PLT\n.L3:\n\tleave\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl big_endian\n.type big_endian, @function\nbig_endian:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl big_endian\n.type big_endian, @function\nbig_endian:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".global big_endian\n.type big_endian, %function\nbig_endian:\n.LFB0:\n\t.cfi_startproc\n\tstp\tx29, x30, [sp, -32]!\n\t.cfi_def_cfa_offset 32\n\t.cfi_offset 29, -32\n\t.cfi_offset 30, -24\n\tmov\tx29, sp\n\tadrp\tx0, :got:__stack_chk_guard\n\tldr\tx0, [x0, #:got_lo12:__stack_chk_guard]\n\tldr\tx1, [x0]\n\tstr\tx1, [sp, 24]\n\tmov\tx1,0\n\tmov\tx0, 1\n\tstr\tx0, [sp, 16]\n\tldrb\tw0, [sp, 23]\n\tcmp\tw0, 1\n\tcset\tw0, eq\n\tand\tw0, w0, 255\n\tmov\tw1, w0\n\tadrp\tx0, :got:__stack_chk_guard\n\tldr\tx0, [x0, #:got_lo12:__stack_chk_guard]\n\tldr\tx2, [sp, 24]\n\tldr\tx3, [x0]\n\tsubs\tx2, x2, x3\n\tmov\tx3, 0\n\tbeq\t.L3\n\tbl\t__stack_chk_fail\n.L3:\n\tmov\tw0, w1\n\tldp\tx29, x30, [sp], 32\n\t.cfi_restore 30\n\t.cfi_restore 29\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global big_endian\n.type big_endian, %function\nbig_endian:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n",
".global big_endian\n.type big_endian, %function\nbig_endian:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
}
],
"output": [
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_45ukzaevw0.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
clock_t begin = clock();
int returnv = big_endian();
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(returnv);
} | develop | null | {"livein": [], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "big_endian", "funargs": [], "typemap": {"returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_45ukzaevw0.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
joshuaspence/ThesisCode/TopN_Outlier_Pruning_Block/FPGA/SDK/standalone_bsp_0/ps7_cortexa9_0/libsrc/standalone_v3_06_a/src/isatty.c | int _isatty(int fd)
{
(void)fd;
return (1);
} | int _isatty(intfd) | int _isatty(int fd) | _isatty | [
"int",
"int"
] | {
"code": [
".globl _isatty\n.type _isatty, @function\n_isatty:\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$1, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl _isatty\n.type _isatty, @function\n_isatty:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$1, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl _isatty\n.type _isatty, @function\n_isatty:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$1, %eax\n\tret\n\t.cfi_endproc\n\n",
".global _isatty\n.type _isatty, %function\n_isatty:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tw0, [sp, 12]\n\tmov\tw0, 1\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global _isatty\n.type _isatty, %function\n_isatty:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 1\n\tret\n\t.cfi_endproc\n\n",
".global _isatty\n.type _isatty, %function\n_isatty:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 1\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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"
],
"var": [
"fd"
]
},
{
"value": [
"6"
],
"var": [
"fd"
]
},
{
"value": [
"26"
],
"var": [
"fd"
]
},
{
"value": [
"54"
],
"var": [
"fd"
]
},
{
"value": [
"17"
],
"var": [
"fd"
]
},
{
"value": [
"49"
],
"var": [
"fd"
]
},
{
"value": [
"15"
],
"var": [
"fd"
]
},
{
"value": [
"110"
],
"var": [
"fd"
]
},
{
"value": [
"22"
],
"var": [
"fd"
]
},
{
"value": [
"20"
],
"var": [
"fd"
]
}
],
"output": [
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_54gqo0ij47.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int fd, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
int fd = input_json["fd"];
clock_t begin = clock();
int returnv = _isatty(fd);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(fd, returnv);
} | master | null | {"livein": ["fd"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "_isatty", "funargs": ["fd"], "typemap": {"fd": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_54gqo0ij47.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
jonathanunderwood/limapack/src/jkmarray.h | extern inline int
JKMarray_idx (const int J, const int K, const int M)
{
return (((4 * J * J + 5) * J) / 3 + 2 * J * J + K * (2 * J + 1) + M);
} | int JKMarray_idx(const intJ, const intK, const intM) | extern int JKMarray_idx (const int J, const int K, const int M) | JKMarray_idx | [
"int",
"const int",
"const int",
"const int"
] | {
"code": [
".globl JKMarray_idx\n.type JKMarray_idx, @function\nJKMarray_idx:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, -4(%rbp)\n\tmovl\t%esi, -8(%rbp)\n\tmovl\t%edx, -12(%rbp)\n\tmovl\t-4(%rbp), %eax\n\timull\t%eax, %eax\n\tsall\t$2, %eax\n\taddl\t$5, %eax\n\timull\t-4(%rbp), %eax\n\tmovslq\t%eax, %rdx\n\timulq\t$1431655766, %rdx, %rdx\n\tshrq\t$32, %rdx\n\tsarl\t$31, %eax\n\tsubl\t%eax, %edx\n\tmovl\t-4(%rbp), %eax\n\timull\t%eax, %eax\n\taddl\t%eax, %eax\n\taddl\t%eax, %edx\n\tmovl\t-4(%rbp), %eax\n\taddl\t%eax, %eax\n\taddl\t$1, %eax\n\timull\t-8(%rbp), %eax\n\taddl\t%eax, %edx\n\tmovl\t-12(%rbp), %eax\n\taddl\t%edx, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl JKMarray_idx\n.type JKMarray_idx, @function\nJKMarray_idx:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t%edi, %ecx\n\tmovl\t%edx, %r9d\n\tmovl\t$3, %r8d\n\tmovl\t%esi, %r10d\n\timull\t%edi, %ecx\n\tleal\t1(%rdi,%rdi), %esi\n\timull\t%r10d, %esi\n\tleal\t5(,%rcx,4), %eax\n\timull\t%edi, %eax\n\tcltd\n\tidivl\t%r8d\n\tleal\t(%rax,%rcx,2), %eax\n\taddl\t%esi, %eax\n\taddl\t%r9d, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl JKMarray_idx\n.type JKMarray_idx, @function\nJKMarray_idx:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t%edi, %r8d\n\tmovl\t%edx, %r9d\n\tmovl\t%esi, %r10d\n\timull\t%edi, %r8d\n\tleal\t1(%rdi,%rdi), %esi\n\timull\t%r10d, %esi\n\tleal\t5(,%r8,4), %ecx\n\timull\t%edi, %ecx\n\tmovslq\t%ecx, %rdx\n\tsarl\t$31, %ecx\n\timulq\t$1431655766, %rdx, %rdx\n\tshrq\t$32, %rdx\n\tsubl\t%ecx, %edx\n\tleal\t(%rdx,%r8,2), %edx\n\taddl\t%esi, %edx\n\tleal\t(%rdx,%r9), %eax\n\tret\n\t.cfi_endproc\n\n",
".global JKMarray_idx\n.type JKMarray_idx, %function\nJKMarray_idx:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tw0, [sp, 12]\n\tstr\tw1, [sp, 8]\n\tstr\tw2, [sp, 4]\n\tldr\tw0, [sp, 12]\n\tmul\tw0, w0, w0\n\tlsl\tw0, w0, 2\n\tadd\tw1, w0, 5\n\tldr\tw0, [sp, 12]\n\tmul\tw0, w1, w0\n\tmov\tw1, 21846\n\tmovk\tw1, 0x5555, lsl 16\n\tsmull\tx1, w0, w1\n\tlsr\tx1, x1, 32\n\tasr\tw0, w0, 31\n\tsub\tw1, w1, w0\n\tldr\tw0, [sp, 12]\n\tmul\tw0, w0, w0\n\tlsl\tw0, w0, 1\n\tadd\tw1, w1, w0\n\tldr\tw0, [sp, 12]\n\tlsl\tw0, w0, 1\n\tadd\tw2, w0, 1\n\tldr\tw0, [sp, 8]\n\tmul\tw0, w2, w0\n\tadd\tw1, w1, w0\n\tldr\tw0, [sp, 4]\n\tadd\tw0, w1, w0\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global JKMarray_idx\n.type JKMarray_idx, %function\nJKMarray_idx:\n.LFB0:\n\t.cfi_startproc\n\tmul\tw4, w0, w0\n\tmov\tw5, 3\n\tlsl\tw3, w4, 2\n\tadd\tw3, w3, 5\n\tmul\tw3, w3, w0\n\tlsl\tw0, w0, 1\n\tmadd\tw0, w0, w1, w1\n\tsdiv\tw3, w3, w5\n\tadd\tw3, w3, w4, lsl 1\n\tadd\tw0, w3, w0\n\tadd\tw0, w0, w2\n\tret\n\t.cfi_endproc\n\n",
".global JKMarray_idx\n.type JKMarray_idx, %function\nJKMarray_idx:\n.LFB0:\n\t.cfi_startproc\n\tmul\tw5, w0, w0\n\tlsl\tw3, w0, 1\n\tmov\tw6, 21846\n\tmovk\tw6, 0x5555, lsl 16\n\tlsl\tw4, w5, 2\n\tmadd\tw1, w3, w1, w1\n\tadd\tw4, w4, 5\n\tmul\tw3, w4, w0\n\tsmull\tx6, w3, w6\n\tlsr\tx6, x6, 32\n\tsub\tw3, w6, w3, asr 31\n\tadd\tw3, w3, w5, lsl 1\n\tadd\tw3, w3, w1\n\tadd\tw0, w3, w2\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | null |
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"92",
"35",
"120"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"117",
"76",
"92"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"72",
"1",
"33"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"111",
"48",
"35"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"1",
"69",
"27"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"103",
"57",
"3"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"14",
"124",
"57"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"53",
"50",
"47"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"0",
"78",
"86"
],
"var": [
"J",
"K",
"M"
]
},
{
"value": [
"107",
"47",
"68"
],
"var": [
"J",
"K",
"M"
]
}
],
"output": [
{
"value": [
"1061927"
],
"var": [
"returnv"
]
},
{
"value": [
"2181009"
],
"var": [
"returnv"
]
},
{
"value": [
"508330"
],
"var": [
"returnv"
]
},
{
"value": [
"1859074"
],
"var": [
"returnv"
]
},
{
"value": [
"239"
],
"var": [
"returnv"
]
},
{
"value": [
"1490161"
],
"var": [
"returnv"
]
},
{
"value": [
"7727"
],
"var": [
"returnv"
]
},
{
"value": [
"209606"
],
"var": [
"returnv"
]
},
{
"value": [
"164"
],
"var": [
"returnv"
]
},
{
"value": [
"1666640"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_475jedd62m.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int J, int K, int M, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
int J = input_json["J"];
int K = input_json["K"];
int M = input_json["M"];
clock_t begin = clock();
int returnv = JKMarray_idx(J, K, M);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(J, K, M, returnv);
} | master | null | {"livein": ["J", "K", "M"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "JKMarray_idx", "funargs": ["J", "K", "M"], "typemap": {"J": "int32", "K": "int32", "M": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_475jedd62m.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
bairyn/opencurry/src/bits.c | long sign_long(long num)
{
return (( ((((num))) <= (((0)))) ? ( ((((num))) < (((0)))) ? ((-1)) : ((0)) ) : ((1)) ));
} | long sign_long(longnum) | long sign_long(long num) | sign_long | [
"long",
"long"
] | {
"code": [
".globl sign_long\n.type sign_long, @function\nsign_long:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovq\t%rdi, -8(%rbp)\n\tcmpq\t$0, -8(%rbp)\n\tjg\t.L2\n\tcmpq\t$0, -8(%rbp)\n\tjns\t.L3\n\tmovq\t$-1, %rax\n\tjmp\t.L6\n.L3:\n\tmovl\t$0, %eax\n\tjmp\t.L6\n.L2:\n\tmovl\t$1, %eax\n.L6:\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl sign_long\n.type sign_long, @function\nsign_long:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$1, %eax\n\ttestq\t%rdi, %rdi\n\tjg\t.L1\n\tsetne\t%al\n\tmovzbl\t%al, %eax\n\tnegq\t%rax\n.L1:\n\tret\n\t.cfi_endproc\n\n",
".globl sign_long\n.type sign_long, @function\nsign_long:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\ttestq\t%rdi, %rdi\n\tmovl\t$1, %edx\n\tsetne\t%al\n\tnegq\t%rax\n\ttestq\t%rdi, %rdi\n\tcmovg\t%rdx, %rax\n\tret\n\t.cfi_endproc\n\n",
".global sign_long\n.type sign_long, %function\nsign_long:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tx0, [sp, 8]\n\tldr\tx0, [sp, 8]\n\tcmp\tx0, 0\n\tbgt\t.L2\n\tldr\tx0, [sp, 8]\n\tcmp\tx0, 0\n\tbge\t.L3\n\tmov\tx0, -1\n\tb\t.L6\n.L3:\n\tmov\tx0, 0\n\tb\t.L6\n.L2:\n\tmov\tx0, 1\n.L6:\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global sign_long\n.type sign_long, %function\nsign_long:\n.LFB0:\n\t.cfi_startproc\n\tcmp\tx0, 0\n\tcsetm\tx1, ne\n\tcsinc\tx0, x1, xzr, le\n\tret\n\t.cfi_endproc\n\n",
".global sign_long\n.type sign_long, %function\nsign_long:\n.LFB0:\n\t.cfi_startproc\n\tcmp\tx0, 0\n\tmov\tx2, 1\n\tcsetm\tx1, ne\n\tcsel\tx0, x1, x2, le\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"40"
],
"var": [
"num"
]
},
{
"value": [
"89"
],
"var": [
"num"
]
},
{
"value": [
"43"
],
"var": [
"num"
]
},
{
"value": [
"44"
],
"var": [
"num"
]
},
{
"value": [
"77"
],
"var": [
"num"
]
},
{
"value": [
"117"
],
"var": [
"num"
]
},
{
"value": [
"30"
],
"var": [
"num"
]
},
{
"value": [
"69"
],
"var": [
"num"
]
},
{
"value": [
"93"
],
"var": [
"num"
]
},
{
"value": [
"81"
],
"var": [
"num"
]
}
],
"output": [
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_508mwdtduf.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(long int num, long int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
long int num = input_json["num"];
clock_t begin = clock();
long int returnv = sign_long(num);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(num, returnv);
} | master | null | {"livein": ["num"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "sign_long", "funargs": ["num"], "typemap": {"num": "int64", "returnv": "int64"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_508mwdtduf.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
christetreault/dmp-photo-booth-legacy-module-templates/dmp_pb_camera_module_template/dmp_camera_module.c | int dmp_cm_edit_config(void)
{
return 0;
} | int dmp_cm_edit_config() | int dmp_cm_edit_config(void) | dmp_cm_edit_config | [
"int",
""
] | {
"code": [
".globl dmp_cm_edit_config\n.type dmp_cm_edit_config, @function\ndmp_cm_edit_config:\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, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl dmp_cm_edit_config\n.type dmp_cm_edit_config, @function\ndmp_cm_edit_config:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl dmp_cm_edit_config\n.type dmp_cm_edit_config, @function\ndmp_cm_edit_config:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".global dmp_cm_edit_config\n.type dmp_cm_edit_config, %function\ndmp_cm_edit_config:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n",
".global dmp_cm_edit_config\n.type dmp_cm_edit_config, %function\ndmp_cm_edit_config:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n",
".global dmp_cm_edit_config\n.type dmp_cm_edit_config, %function\ndmp_cm_edit_config:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
}
],
"output": [
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_61yycphbwn.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
clock_t begin = clock();
int returnv = dmp_cm_edit_config();
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(returnv);
} | master | null | {"livein": [], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "dmp_cm_edit_config", "funargs": [], "typemap": {"returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_61yycphbwn.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
mapleez/libez/unit/math_unit.c | int _cmp (int _a, int _b) {
int a = _a;
int b = _b;
return (a > b ? (-1) : (1));
} | int _cmp(int_a, int_b) | int _cmp (int _a, int _b) | _cmp | [
"int",
"int",
"int"
] | {
"code": [
".globl _cmp\n.type _cmp, @function\n_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\tmovl\t%edi, -20(%rbp)\n\tmovl\t%esi, -24(%rbp)\n\tmovl\t-20(%rbp), %eax\n\tmovl\t%eax, -8(%rbp)\n\tmovl\t-24(%rbp), %eax\n\tmovl\t%eax, -4(%rbp)\n\tmovl\t-8(%rbp), %eax\n\tcmpl\t-4(%rbp), %eax\n\tjle\t.L2\n\tmovl\t$-1, %eax\n\tjmp\t.L4\n.L2:\n\tmovl\t$1, %eax\n.L4:\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl _cmp\n.type _cmp, @function\n_cmp:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tcmpl\t%esi, %edi\n\tsetle\t%al\n\tleal\t-1(%rax,%rax), %eax\n\tret\n\t.cfi_endproc\n\n",
".globl _cmp\n.type _cmp, @function\n_cmp:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tcmpl\t%esi, %edi\n\tsetle\t%al\n\tleal\t-1(%rax,%rax), %eax\n\tret\n\t.cfi_endproc\n\n",
".global _cmp\n.type _cmp, %function\n_cmp:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #32\n\t.cfi_def_cfa_offset 32\n\tstr\tw0, [sp, 12]\n\tstr\tw1, [sp, 8]\n\tldr\tw0, [sp, 12]\n\tstr\tw0, [sp, 24]\n\tldr\tw0, [sp, 8]\n\tstr\tw0, [sp, 28]\n\tldr\tw1, [sp, 24]\n\tldr\tw0, [sp, 28]\n\tcmp\tw1, w0\n\tble\t.L2\n\tmov\tw0, -1\n\tb\t.L4\n.L2:\n\tmov\tw0, 1\n.L4:\n\tadd\tsp, sp, 32\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global _cmp\n.type _cmp, %function\n_cmp:\n.LFB0:\n\t.cfi_startproc\n\tcmp\tw0, w1\n\tmov\tw2, 1\n\tcsneg\tw0, w2, w2, le\n\tret\n\t.cfi_endproc\n\n",
".global _cmp\n.type _cmp, %function\n_cmp:\n.LFB0:\n\t.cfi_startproc\n\tcmp\tw0, w1\n\tmov\tw0, 1\n\tcsneg\tw0, w0, w0, le\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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",
"5"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"20",
"44"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"33",
"25"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"45",
"24"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"113",
"68"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"23",
"45"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"15",
"53"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"57",
"76"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"76",
"115"
],
"var": [
"_a",
"_b"
]
},
{
"value": [
"90",
"88"
],
"var": [
"_a",
"_b"
]
}
],
"output": [
{
"value": [
"-1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"-1"
],
"var": [
"returnv"
]
},
{
"value": [
"-1"
],
"var": [
"returnv"
]
},
{
"value": [
"-1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"1"
],
"var": [
"returnv"
]
},
{
"value": [
"-1"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_31fnryi_v3.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int _a, int _b, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
int _a = input_json["_a"];
int _b = input_json["_b"];
clock_t begin = clock();
int returnv = _cmp(_a, _b);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(_a, _b, returnv);
} | master | null | {"livein": ["_a", "_b"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "_cmp", "funargs": ["_a", "_b"], "typemap": {"_a": "int32", "_b": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_31fnryi_v3.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
bright-tools/ccsm/test/src/simple_include.h | int safe(void) {
extern int q;
int lp;
return 0;
} | int safe() | int safe(void) | safe | [
"int",
""
] | {
"code": [
".globl safe\n.type safe, @function\nsafe:\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, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl safe\n.type safe, @function\nsafe:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl safe\n.type safe, @function\nsafe:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".global safe\n.type safe, %function\nsafe:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n",
".global safe\n.type safe, %function\nsafe:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n",
".global safe\n.type safe, %function\nsafe:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
}
],
"output": [
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_38lpduj1iy.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
clock_t begin = clock();
int returnv = safe();
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(returnv);
} | master | null | {"livein": [], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "safe", "funargs": [], "typemap": {"returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_38lpduj1iy.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
kmatheussen/radium/amiga/instrprop/Amiga_instrprop_temp_help.c | int HelpItem146( void )
{
return 0;
} | int HelpItem146() | int HelpItem146( void ) | HelpItem146 | [
"int",
""
] | {
"code": [
".globl HelpItem146\n.type HelpItem146, @function\nHelpItem146:\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, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl HelpItem146\n.type HelpItem146, @function\nHelpItem146:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl HelpItem146\n.type HelpItem146, @function\nHelpItem146:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".global HelpItem146\n.type HelpItem146, %function\nHelpItem146:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n",
".global HelpItem146\n.type HelpItem146, %function\nHelpItem146:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n",
".global HelpItem146\n.type HelpItem146, %function\nHelpItem146:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
}
],
"output": [
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_57fyx3jq3b.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
clock_t begin = clock();
int returnv = HelpItem146();
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(returnv);
} | master | null | {"livein": [], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "HelpItem146", "funargs": [], "typemap": {"returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_57fyx3jq3b.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
AlphaStaxLLC/nagioscore/NagiosCore/t-tap/stub_statusdata.c | int update_program_status(int aggregated_dump) {} | int update_program_status(intaggregated_dump) | int update_program_status(int aggregated_dump) | update_program_status | [
"int",
"int"
] | {
"code": [
".globl update_program_status\n.type update_program_status, @function\nupdate_program_status:\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\tnop\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl update_program_status\n.type update_program_status, @function\nupdate_program_status:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tret\n\t.cfi_endproc\n\n",
".globl update_program_status\n.type update_program_status, @function\nupdate_program_status:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tret\n\t.cfi_endproc\n\n",
".global update_program_status\n.type update_program_status, %function\nupdate_program_status:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tw0, [sp, 12]\n\tnop\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global update_program_status\n.type update_program_status, %function\nupdate_program_status:\n.LFB0:\n\t.cfi_startproc\n\tret\n\t.cfi_endproc\n\n",
".global update_program_status\n.type update_program_status, %function\nupdate_program_status:\n.LFB0:\n\t.cfi_startproc\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"84"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"30"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"69"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"16"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"9"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"102"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"59"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"28"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"43"
],
"var": [
"aggregated_dump"
]
},
{
"value": [
"30"
],
"var": [
"aggregated_dump"
]
}
],
"output": [
{
"value": [
"84"
],
"var": [
"returnv"
]
},
{
"value": [
"30"
],
"var": [
"returnv"
]
},
{
"value": [
"69"
],
"var": [
"returnv"
]
},
{
"value": [
"16"
],
"var": [
"returnv"
]
},
{
"value": [
"9"
],
"var": [
"returnv"
]
},
{
"value": [
"102"
],
"var": [
"returnv"
]
},
{
"value": [
"59"
],
"var": [
"returnv"
]
},
{
"value": [
"28"
],
"var": [
"returnv"
]
},
{
"value": [
"43"
],
"var": [
"returnv"
]
},
{
"value": [
"30"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_64zd_c3vlq.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int aggregated_dump, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
int aggregated_dump = input_json["aggregated_dump"];
clock_t begin = clock();
int returnv = update_program_status(aggregated_dump);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(aggregated_dump, returnv);
} | master | null | {"livein": ["aggregated_dump"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "update_program_status", "funargs": ["aggregated_dump"], "typemap": {"aggregated_dump": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_64zd_c3vlq.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
shubhmsng/Codes/grietcode/major.c | int printArray(int arr[], int n)
{
int i=1;
while(arr[i]==arr[0])
{
i++;
}
return i;
} | int printArray(int *arr, intn) | int printArray(int arr[], int n) | printArray | [
"int",
"int *",
"int"
] | {
"code": [
".globl printArray\n.type printArray, @function\nprintArray:\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\tmovl\t$1, -4(%rbp)\n\tjmp\t.L2\n.L3:\n\taddl\t$1, -4(%rbp)\n.L2:\n\tmovl\t-4(%rbp), %eax\n\tcltq\n\tleaq\t0(,%rax,4), %rdx\n\tmovq\t-24(%rbp), %rax\n\taddq\t%rdx, %rax\n\tmovl\t(%rax), %edx\n\tmovq\t-24(%rbp), %rax\n\tmovl\t(%rax), %eax\n\tcmpl\t%eax, %edx\n\tje\t.L3\n\tmovl\t-4(%rbp), %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl printArray\n.type printArray, @function\nprintArray:\n.LFB11:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t(%rdi), %edx\n\tmovl\t$1, %eax\n.L2:\n\tmovl\t%eax, %r8d\n\tincq\t%rax\n\tcmpl\t%edx, -4(%rdi,%rax,4)\n\tje\t.L2\n\tmovl\t%r8d, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl printArray\n.type printArray, @function\nprintArray:\n.LFB16:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t(%rdi), %edx\n\tcmpl\t%edx, 4(%rdi)\n\tjne\t.L4\n\tmovl\t$2, %eax\n\t.p2align 4,,10\n\t.p2align 3\n.L3:\n\tmovl\t%eax, %r8d\n\taddq\t$1, %rax\n\tcmpl\t%edx, -4(%rdi,%rax,4)\n\tje\t.L3\n\tmovl\t%r8d, %eax\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L4:\n\tmovl\t$1, %r8d\n\tmovl\t%r8d, %eax\n\tret\n\t.cfi_endproc\n\n",
".global printArray\n.type printArray, %function\nprintArray:\n.LFB6:\n\t.cfi_startproc\n\tsub\tsp, sp, #32\n\t.cfi_def_cfa_offset 32\n\tstr\tx0, [sp, 8]\n\tstr\tw1, [sp, 4]\n\tmov\tw0, 1\n\tstr\tw0, [sp, 28]\n\tb\t.L2\n.L3:\n\tldr\tw0, [sp, 28]\n\tadd\tw0, w0, 1\n\tstr\tw0, [sp, 28]\n.L2:\n\tldrsw\tx0, [sp, 28]\n\tlsl\tx0, x0, 2\n\tldr\tx1, [sp, 8]\n\tadd\tx0, x1, x0\n\tldr\tw1, [x0]\n\tldr\tx0, [sp, 8]\n\tldr\tw0, [x0]\n\tcmp\tw1, w0\n\tbeq\t.L3\n\tldr\tw0, [sp, 28]\n\tadd\tsp, sp, 32\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global printArray\n.type printArray, %function\nprintArray:\n.LFB11:\n\t.cfi_startproc\n\tmov\tx1, x0\n\tmov\tx2, 1\n\tldr\tw3, [x1], -4\n.L2:\n\tmov\tw0, w2\n\tadd\tx2, x2, 1\n\tldr\tw4, [x1, x2, lsl 2]\n\tcmp\tw4, w3\n\tbeq\t.L2\n\tret\n\t.cfi_endproc\n\n",
".global printArray\n.type printArray, %function\nprintArray:\n.LFB16:\n\t.cfi_startproc\n\tldp\tw4, w1, [x0]\n\tcmp\tw1, w4\n\tbne\t.L4\n\tsub\tx3, x0, #4\n\tmov\tx1, 2\n\t.p2align 3,,7\n.L3:\n\tmov\tw0, w1\n\tadd\tx1, x1, 1\n\tldr\tw2, [x3, x1, lsl 2]\n\tcmp\tw2, w4\n\tbeq\t.L3\n\tret\n\t.p2align 2,,3\n.L4:\n\tmov\tw0, 1\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | null | #include <stdlib.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"[109, 36, 72, 49, 100, 49, 15, 21, 21, 46, 42, 78, 32, 57, 63, 15, 118, 22, 94, 24, 4, 26, 40, 17, 106, 80, 62, 105, 118, 61, 35, 37]",
"108"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[51, 15, 73, 42, 8, 32, 89, 3, 5, 17, 49, 39, 12, 65, 64, 123, 51, 125, 65, 73, 55, 77, 125, 69, 122, 92, 42, 93, 2, 39, 71, 96]",
"44"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[22, 60, 91, 89, 120, 94, 6, 97, 124, 59, 66, 71, 0, 56, 12, 97, 35, 8, 88, 32, 0, 10, 45, 16, 17, 92, 124, 118, 46, 10, 104, 108]",
"44"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[80, 93, 15, 94, 123, 46, 67, 38, 91, 68, 108, 53, 68, 84, 73, 86, 78, 9, 87, 83, 110, 33, 25, 15, 66, 34, 3, 14, 113, 96, 122, 88]",
"11"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[18, 85, 78, 97, 115, 8, 78, 126, 112, 28, 66, 111, 109, 101, 47, 56, 61, 52, 26, 14, 5, 1, 3, 48, 119, 54, 97, 71, 42, 4, 27, 97]",
"122"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[102, 48, 92, 5, 86, 5, 96, 25, 15, 69, 45, 122, 125, 24, 99, 71, 56, 106, 21, 37, 108, 1, 103, 10, 24, 17, 31, 54, 3, 73, 83, 84]",
"126"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[53, 1, 94, 126, 11, 105, 2, 12, 91, 110, 90, 55, 112, 121, 102, 26, 6, 64, 51, 60, 37, 71, 75, 36, 38, 2, 57, 29, 16, 65, 21, 45]",
"116"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[53, 79, 26, 104, 0, 46, 32, 48, 75, 119, 113, 19, 74, 89, 42, 71, 110, 123, 53, 37, 26, 60, 6, 30, 4, 75, 119, 21, 43, 104, 116, 33]",
"105"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[108, 31, 92, 96, 106, 122, 24, 87, 83, 102, 39, 14, 45, 99, 101, 106, 58, 47, 24, 0, 104, 18, 75, 68, 52, 107, 32, 87, 14, 16, 120, 9]",
"48"
],
"var": [
"arr",
"n"
]
},
{
"value": [
"[82, 62, 61, 20, 38, 45, 115, 74, 7, 27, 41, 66, 122, 24, 114, 103, 115, 66, 75, 51, 97, 51, 33, 100, 102, 123, 1, 69, 14, 72, 33, 76]",
"114"
],
"var": [
"arr",
"n"
]
}
],
"output": [
{
"value": [
"[109, 36, 72, 49, 100, 49, 15, 21, 21, 46, 42, 78, 32, 57, 63, 15, 118, 22, 94, 24, 4, 26, 40, 17, 106, 80, 62, 105, 118, 61, 35, 37]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[51, 15, 73, 42, 8, 32, 89, 3, 5, 17, 49, 39, 12, 65, 64, 123, 51, 125, 65, 73, 55, 77, 125, 69, 122, 92, 42, 93, 2, 39, 71, 96]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[22, 60, 91, 89, 120, 94, 6, 97, 124, 59, 66, 71, 0, 56, 12, 97, 35, 8, 88, 32, 0, 10, 45, 16, 17, 92, 124, 118, 46, 10, 104, 108]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[80, 93, 15, 94, 123, 46, 67, 38, 91, 68, 108, 53, 68, 84, 73, 86, 78, 9, 87, 83, 110, 33, 25, 15, 66, 34, 3, 14, 113, 96, 122, 88]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[18, 85, 78, 97, 115, 8, 78, 126, 112, 28, 66, 111, 109, 101, 47, 56, 61, 52, 26, 14, 5, 1, 3, 48, 119, 54, 97, 71, 42, 4, 27, 97]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[102, 48, 92, 5, 86, 5, 96, 25, 15, 69, 45, 122, 125, 24, 99, 71, 56, 106, 21, 37, 108, 1, 103, 10, 24, 17, 31, 54, 3, 73, 83, 84]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[53, 1, 94, 126, 11, 105, 2, 12, 91, 110, 90, 55, 112, 121, 102, 26, 6, 64, 51, 60, 37, 71, 75, 36, 38, 2, 57, 29, 16, 65, 21, 45]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[53, 79, 26, 104, 0, 46, 32, 48, 75, 119, 113, 19, 74, 89, 42, 71, 110, 123, 53, 37, 26, 60, 6, 30, 4, 75, 119, 21, 43, 104, 116, 33]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[108, 31, 92, 96, 106, 122, 24, 87, 83, 102, 39, 14, 45, 99, 101, 106, 58, 47, 24, 0, 104, 18, 75, 68, 52, 107, 32, 87, 14, 16, 120, 9]",
"1"
],
"var": [
"arr",
"returnv"
]
},
{
"value": [
"[82, 62, 61, 20, 38, 45, 115, 74, 7, 27, 41, 66, 122, 24, 114, 103, 115, 66, 75, 51, 97, 51, 33, 100, 102, 123, 1, 69, 14, 72, 33, 76]",
"1"
],
"var": [
"arr",
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_60oexnar5g.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int* arr, int n, int returnv) {
json output_json;
std::vector<json> output_temp_2;
for (unsigned int i3 = 0; i3 < 32; i3++) {
int output_temp_4 = arr[i3];
output_temp_2.push_back(output_temp_4);
}
output_json["arr"] = output_temp_2;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
std::vector<int> input_temp_1_vec;
for (auto& elem : input_json["arr"]) {
int input_temp_1_inner = elem;
input_temp_1_vec.push_back(input_temp_1_inner);
}
int* arr = &input_temp_1_vec[0];
int n = input_json["n"];
clock_t begin = clock();
int returnv = printArray(arr, n);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(arr, n, returnv);
} | master | null | {"livein": ["arr", "n"], "liveout": ["arr"], "returnvarname": ["returnv"], "execcmd": "", "funname": "printArray", "funargs": ["arr", "n"], "typemap": {"arr": "array(int32#32)", "n": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_60oexnar5g.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
nyuszika7h/weechat/tests/ncurses-fake.c | int
COLORS()
{
return 256;
} | int COLORS() | int COLORS() | COLORS | [
"int",
""
] | {
"code": [
".globl COLORS\n.type COLORS, @function\nCOLORS:\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$256, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl COLORS\n.type COLORS, @function\nCOLORS:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$256, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl COLORS\n.type COLORS, @function\nCOLORS:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$256, %eax\n\tret\n\t.cfi_endproc\n\n",
".global COLORS\n.type COLORS, %function\nCOLORS:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 256\n\tret\n\t.cfi_endproc\n\n",
".global COLORS\n.type COLORS, %function\nCOLORS:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 256\n\tret\n\t.cfi_endproc\n\n",
".global COLORS\n.type COLORS, %function\nCOLORS:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 256\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
}
],
"output": [
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
},
{
"value": [
"256"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_36l3zupkgf.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
clock_t begin = clock();
int returnv = COLORS();
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(returnv);
} | master | null | {"livein": [], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "COLORS", "funargs": [], "typemap": {"returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_36l3zupkgf.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
GaloisInc/saw-script/heapster-saw/examples/fun_ptr.c | int bar( int x )
{
return x+1;
} | int bar(intx) | int bar( int x ) | bar | [
"int",
"int"
] | {
"code": [
".globl bar\n.type bar, @function\nbar:\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$1, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl bar\n.type bar, @function\nbar:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tleal\t1(%rdi), %eax\n\tret\n\t.cfi_endproc\n\n",
".globl bar\n.type bar, @function\nbar:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tleal\t1(%rdi), %eax\n\tret\n\t.cfi_endproc\n\n",
".global bar\n.type bar, %function\nbar:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tw0, [sp, 12]\n\tldr\tw0, [sp, 12]\n\tadd\tw0, w0, 1\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global bar\n.type bar, %function\nbar:\n.LFB0:\n\t.cfi_startproc\n\tadd\tw0, w0, 1\n\tret\n\t.cfi_endproc\n\n",
".global bar\n.type bar, %function\nbar:\n.LFB0:\n\t.cfi_startproc\n\tadd\tw0, w0, 1\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"72"
],
"var": [
"x"
]
},
{
"value": [
"73"
],
"var": [
"x"
]
},
{
"value": [
"95"
],
"var": [
"x"
]
},
{
"value": [
"17"
],
"var": [
"x"
]
},
{
"value": [
"11"
],
"var": [
"x"
]
},
{
"value": [
"4"
],
"var": [
"x"
]
},
{
"value": [
"16"
],
"var": [
"x"
]
},
{
"value": [
"115"
],
"var": [
"x"
]
},
{
"value": [
"74"
],
"var": [
"x"
]
},
{
"value": [
"62"
],
"var": [
"x"
]
}
],
"output": [
{
"value": [
"73"
],
"var": [
"returnv"
]
},
{
"value": [
"74"
],
"var": [
"returnv"
]
},
{
"value": [
"96"
],
"var": [
"returnv"
]
},
{
"value": [
"18"
],
"var": [
"returnv"
]
},
{
"value": [
"12"
],
"var": [
"returnv"
]
},
{
"value": [
"5"
],
"var": [
"returnv"
]
},
{
"value": [
"17"
],
"var": [
"returnv"
]
},
{
"value": [
"116"
],
"var": [
"returnv"
]
},
{
"value": [
"75"
],
"var": [
"returnv"
]
},
{
"value": [
"63"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_417628kx2n.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int x, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
int x = input_json["x"];
clock_t begin = clock();
int returnv = bar(x);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(x, returnv);
} | master | null | {"livein": ["x"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "bar", "funargs": ["x"], "typemap": {"x": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_417628kx2n.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
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\n\tmovzbl\t(%rax), %eax\n\tcmpb\t$32, %al\n\tje\t.L3\n\tmovq\t-8(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\tcmpb\t$10, %al\n\tje\t.L3\n\tmovq\t-8(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\tcmpb\t$9, %al\n\tje\t.L3\n\tmovq\t-8(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\tcmpb\t$13, %al\n\tjne\t.L4\n.L3:\n\tmovq\t-8(%rbp), %rax\n\tmovzbl\t(%rax), %eax\n\ttestb\t%al, %al\n\tjne\t.L5\n.L4:\n\tmovq\t-8(%rbp), %rax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl skipSpaces\n.type skipSpaces, @function\nskipSpaces:\n.LFB35:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$8388627, %ecx\n\tmovq\t%rdi, %rax\n\tsalq\t$9, %rcx\n.L2:\n\tmovb\t(%rax), %dl\n\tcmpb\t$32, %dl\n\tja\t.L1\n\tbtq\t%rdx, %rcx\n\tjnc\t.L1\n\ttestb\t%dl, %dl\n\tje\t.L1\n\tincq\t%rax\n\tjmp\t.L2\n.L1:\n\tret\n\t.cfi_endproc\n\n",
".globl skipSpaces\n.type skipSpaces, @function\nskipSpaces:\n.LFB50:\n\t.cfi_startproc\n\tendbr64\n\tmovzbl\t(%rdi), %edx\n\tmovq\t%rdi, %rax\n\tcmpb\t$32, %dl\n\tja\t.L2\n\tmovabsq\t$4294977024, %rcx\n\tbtq\t%rdx, %rcx\n\tjnc\t.L2\n\t.p2align 4,,10\n\t.p2align 3\n.L3:\n\ttestb\t%dl, %dl\n\tje\t.L2\n\tmovzbl\t1(%rax), %edx\n\taddq\t$1, %rax\n\tcmpb\t$32, %dl\n\tja\t.L2\n\tbtq\t%rdx, %rcx\n\tjc\t.L3\n.L2:\n\tret\n\t.cfi_endproc\n\n",
".global skipSpaces\n.type skipSpaces, %function\nskipSpaces:\n.LFB6:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tx0, [sp, 8]\n\tb\t.L2\n.L5:\n\tldr\tx0, [sp, 8]\n\tadd\tx0, x0, 1\n\tstr\tx0, [sp, 8]\n.L2:\n\tldr\tx0, [sp, 8]\n\tldrb\tw0, [x0]\n\tcmp\tw0, 32\n\tbeq\t.L3\n\tldr\tx0, [sp, 8]\n\tldrb\tw0, [x0]\n\tcmp\tw0, 10\n\tbeq\t.L3\n\tldr\tx0, [sp, 8]\n\tldrb\tw0, [x0]\n\tcmp\tw0, 9\n\tbeq\t.L3\n\tldr\tx0, [sp, 8]\n\tldrb\tw0, [x0]\n\tcmp\tw0, 13\n\tbne\t.L4\n.L3:\n\tldr\tx0, [sp, 8]\n\tldrb\tw0, [x0]\n\tcmp\tw0, 0\n\tbne\t.L5\n.L4:\n\tldr\tx0, [sp, 8]\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global skipSpaces\n.type skipSpaces, %function\nskipSpaces:\n.LFB35:\n\t.cfi_startproc\n.L2:\n\tldrb\tw1, [x0]\n\tcmp\tw1, 32\n\tccmp\tw1, 10, 4, ne\n\tbeq\t.L3\n\tand\tw1, w1, -5\n\tcmp\tw1, 9\n\tbne\t.L1\n.L4:\n\tadd\tx0, x0, 1\n\tb\t.L2\n.L3:\n\tcbnz\tw1, .L4\n.L1:\n\tret\n\t.cfi_endproc\n\n",
".global skipSpaces\n.type skipSpaces, %function\nskipSpaces:\n.LFB50:\n\t.cfi_startproc\n\tldrb\tw1, [x0]\n\tb\t.L9\n\t.p2align 2,,3\n.L4:\n\tldrb\tw1, [x0, 1]!\n.L9:\n\tcmp\tw1, 32\n\tsub\tw2, w1, #9\n\tccmp\tw1, 13, 4, ne\n\tand\tw2, w2, 255\n\tccmp\tw2, 1, 0, ne\n\tbhi\t.L3\n\tcbnz\tw1, .L4\n.L3:\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"\"\""
],
"var": [
"pc"
]
},
{
"value": [
"\"yxdfnoreqga\""
],
"var": [
"pc"
]
},
{
"value": [
"\"wxavasguxqpzxdyxdbfuxutr\""
],
"var": [
"pc"
]
},
{
"value": [
"\"bkonuumcibecwevrkcn\""
],
"var": [
"pc"
]
},
{
"value": [
"\"vp\""
],
"var": [
"pc"
]
},
{
"value": [
"\"nnlfjhnnurqtdwuzy\""
],
"var": [
"pc"
]
},
{
"value": [
"\"ilxrzumkwteaixcyg\""
],
"var": [
"pc"
]
},
{
"value": [
"\"mhjcznnymljxxsdzpwwytntme\""
],
"var": [
"pc"
]
},
{
"value": [
"\"ydldjkf\""
],
"var": [
"pc"
]
},
{
"value": [
"\"zceqaqcmechtkocgdvpnxafvmxwe\""
],
"var": [
"pc"
]
}
],
"output": [
{
"value": [
"\"\"",
"\"\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"yxdfnoreqga\"",
"\"yxdfnoreqga\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"wxavasguxqpzxdyxdbfuxutr\"",
"\"wxavasguxqpzxdyxdbfuxutr\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"bkonuumcibecwevrkcn\"",
"\"bkonuumcibecwevrkcn\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"vp\"",
"\"vp\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"nnlfjhnnurqtdwuzy\"",
"\"nnlfjhnnurqtdwuzy\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"ilxrzumkwteaixcyg\"",
"\"ilxrzumkwteaixcyg\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"mhjcznnymljxxsdzpwwytntme\"",
"\"mhjcznnymljxxsdzpwwytntme\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"ydldjkf\"",
"\"ydldjkf\""
],
"var": [
"pc",
"returnv"
]
},
{
"value": [
"\"zceqaqcmechtkocgdvpnxafvmxwe\"",
"\"zceqaqcmechtkocgdvpnxafvmxwe\""
],
"var": [
"pc",
"returnv"
]
}
]
} | 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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(char* pc, char* returnv) {
json output_json;
output_json["pc"] = pc;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
char* pc = strdup(input_json["pc"].get<std::string>().c_str());
clock_t begin = clock();
char* returnv = skipSpaces(pc);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(pc, returnv);
} | 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": []} |
Ne02ptzero/msh/srcs/read/termcap.c | char *init_buffer(char *buffer)
{
int i;
i = 0;
while (buffer[i])
buffer[i++] = 0;
return (buffer);
} | char * init_buffer(char *buffer) | char *init_buffer(char *buffer) | init_buffer | [
"char *",
"char *"
] | {
"code": [
".globl init_buffer\n.type init_buffer, @function\ninit_buffer:\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.L3:\n\tmovl\t-4(%rbp), %eax\n\tleal\t1(%rax), %edx\n\tmovl\t%edx, -4(%rbp)\n\tmovslq\t%eax, %rdx\n\tmovq\t-24(%rbp), %rax\n\taddq\t%rdx, %rax\n\tmovb\t$0, (%rax)\n.L2:\n\tmovl\t-4(%rbp), %eax\n\tmovslq\t%eax, %rdx\n\tmovq\t-24(%rbp), %rax\n\taddq\t%rdx, %rax\n\tmovzbl\t(%rax), %eax\n\ttestb\t%al, %al\n\tjne\t.L3\n\tmovq\t-24(%rbp), %rax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl init_buffer\n.type init_buffer, @function\ninit_buffer:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovq\t%rdi, %rax\n\tmovq\t%rdi, %rdx\n.L2:\n\tcmpb\t$0, (%rdx)\n\tje\t.L5\n\tmovb\t$0, (%rdx)\n\tincq\t%rdx\n\tjmp\t.L2\n.L5:\n\tret\n\t.cfi_endproc\n\n",
".globl init_buffer\n.type init_buffer, @function\ninit_buffer:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tcmpb\t$0, (%rdi)\n\tmovq\t%rdi, %rax\n\tje\t.L2\n\tmovq\t%rdi, %rdx\n\t.p2align 4,,10\n\t.p2align 3\n.L3:\n\tmovb\t$0, (%rdx)\n\taddq\t$1, %rdx\n\tcmpb\t$0, (%rdx)\n\tjne\t.L3\n.L2:\n\tret\n\t.cfi_endproc\n\n",
".global init_buffer\n.type init_buffer, %function\ninit_buffer:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #32\n\t.cfi_def_cfa_offset 32\n\tstr\tx0, [sp, 8]\n\tstr\twzr, [sp, 28]\n\tb\t.L2\n.L3:\n\tldr\tw0, [sp, 28]\n\tadd\tw1, w0, 1\n\tstr\tw1, [sp, 28]\n\tsxtw\tx0, w0\n\tldr\tx1, [sp, 8]\n\tadd\tx0, x1, x0\n\tstrb\twzr, [x0]\n.L2:\n\tldrsw\tx0, [sp, 28]\n\tldr\tx1, [sp, 8]\n\tadd\tx0, x1, x0\n\tldrb\tw0, [x0]\n\tcmp\tw0, 0\n\tbne\t.L3\n\tldr\tx0, [sp, 8]\n\tadd\tsp, sp, 32\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global init_buffer\n.type init_buffer, %function\ninit_buffer:\n.LFB0:\n\t.cfi_startproc\n\tmov\tx1, x0\n.L2:\n\tldrb\tw2, [x1]\n\tcbnz\tw2, .L3\n\tret\n.L3:\n\tstrb\twzr, [x1], 1\n\tb\t.L2\n\t.cfi_endproc\n\n",
".global init_buffer\n.type init_buffer, %function\ninit_buffer:\n.LFB0:\n\t.cfi_startproc\n\tldrb\tw1, [x0]\n\tcbz\tw1, .L2\n\tmov\tx1, x0\n\t.p2align 3,,7\n.L3:\n\tstrb\twzr, [x1]\n\tldrb\tw2, [x1, 1]!\n\tcbnz\tw2, .L3\n.L2:\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"\"mqe\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"ppadwsazrzdeg\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"nhfhewcmzwcwp\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"usozipln\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"owsyaquqloryxpdazevuuiyjnsjaoxt\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"fvrdcxzhyuxarvseke\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"elznap\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"agvhdgakshbnij\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"ehalkwlchaspppuhwdxgazroufs\""
],
"var": [
"buffer"
]
},
{
"value": [
"\"zpogpqfojjowbdnfbita\""
],
"var": [
"buffer"
]
}
],
"output": [
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
},
{
"value": [
"\"\"",
"\"\""
],
"var": [
"buffer",
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_31ea_v4q6v.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(char* buffer, char* returnv) {
json output_json;
output_json["buffer"] = buffer;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
char* buffer = strdup(input_json["buffer"].get<std::string>().c_str());
clock_t begin = clock();
char* returnv = init_buffer(buffer);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(buffer, returnv);
} | master | null | {"livein": ["buffer"], "liveout": ["buffer"], "returnvarname": ["returnv"], "execcmd": "", "funname": "init_buffer", "funargs": ["buffer"], "typemap": {"buffer": "string", "returnv": "string"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_31ea_v4q6v.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
thought-machine/please/test/go_rules/cgo/cgo.c | int GetAnswer() {
return 42;
} | int GetAnswer() | int GetAnswer() | GetAnswer | [
"int",
""
] | {
"code": [
".globl GetAnswer\n.type GetAnswer, @function\nGetAnswer:\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$42, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl GetAnswer\n.type GetAnswer, @function\nGetAnswer:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$42, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl GetAnswer\n.type GetAnswer, @function\nGetAnswer:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$42, %eax\n\tret\n\t.cfi_endproc\n\n",
".global GetAnswer\n.type GetAnswer, %function\nGetAnswer:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 42\n\tret\n\t.cfi_endproc\n\n",
".global GetAnswer\n.type GetAnswer, %function\nGetAnswer:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 42\n\tret\n\t.cfi_endproc\n\n",
".global GetAnswer\n.type GetAnswer, %function\nGetAnswer:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 42\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
}
],
"output": [
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
},
{
"value": [
"42"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_582jn9wjde.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
clock_t begin = clock();
int returnv = GetAnswer();
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(returnv);
} | master | null | {"livein": [], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "GetAnswer", "funargs": [], "typemap": {"returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_582jn9wjde.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
jessek/colorize/src/helpers.c | unsigned char padding(void)
{
return 0xff;
} | unsigned char padding() | unsigned char padding(void) | padding | [
"unsigned char",
""
] | {
"code": [
".globl padding\n.type padding, @function\npadding:\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$-1, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl padding\n.type padding, @function\npadding:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovb\t$-1, %al\n\tret\n\t.cfi_endproc\n\n",
".globl padding\n.type padding, @function\npadding:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tmovl\t$-1, %eax\n\tret\n\t.cfi_endproc\n\n",
".global padding\n.type padding, %function\npadding:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 255\n\tret\n\t.cfi_endproc\n\n",
".global padding\n.type padding, %function\npadding:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, -1\n\tret\n\t.cfi_endproc\n\n",
".global padding\n.type padding, %function\npadding:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, -1\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
},
{
"value": [],
"var": []
}
],
"output": [
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
},
{
"value": [
"255"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_35hzqd3z7s.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(unsigned char returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
clock_t begin = clock();
unsigned char returnv = padding();
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(returnv);
} | master | null | {"livein": [], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "padding", "funargs": [], "typemap": {"returnv": "uint8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_35hzqd3z7s.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
amrme/quafios/calc/fix.c | int getPrec(char op) {
switch(op) {
case '+':
case '-':
return 1;
case '*':
case '/':
return 2;
case '(':
case ')':
return 3;
default:
return 0;
}
} | int getPrec(charop) | int getPrec(char op) | getPrec | [
"int",
"char"
] | {
"code": [
".globl getPrec\n.type getPrec, @function\ngetPrec:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 6, -16\n\tmovq\t%rsp, %rbp\n\t.cfi_def_cfa_register 6\n\tmovl\t%edi, %eax\n\tmovb\t%al, -4(%rbp)\n\tmovsbl\t-4(%rbp), %eax\n\tsubl\t$40, %eax\n\tcmpl\t$7, %eax\n\tja\t.L2\n\tmovl\t%eax, %eax\n\tleaq\t0(,%rax,4), %rdx\n\tleaq\t.L4(%rip), %rax\n\tmovl\t(%rdx,%rax), %eax\n\tcltq\n\tleaq\t.L4(%rip), %rdx\n\taddq\t%rdx, %rax\n\tnotrack jmp\t*%rax\n\t.section\t.rodata\n\t.align 4\n\t.align 4\n.L4:\n\t.long\t.L6-.L4\n\t.long\t.L6-.L4\n\t.long\t.L3-.L4\n\t.long\t.L5-.L4\n\t.long\t.L2-.L4\n\t.long\t.L5-.L4\n\t.long\t.L2-.L4\n\t.long\t.L3-.L4\n\t.text\n.L5:\n\tmovl\t$1, %eax\n\tjmp\t.L7\n.L3:\n\tmovl\t$2, %eax\n\tjmp\t.L7\n.L6:\n\tmovl\t$3, %eax\n\tjmp\t.L7\n.L2:\n\tmovl\t$0, %eax\n.L7:\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl getPrec\n.type getPrec, @function\ngetPrec:\n.LFB24:\n\t.cfi_startproc\n\tendbr64\n\tsubl\t$40, %edi\n\tcmpb\t$7, %dil\n\tja\t.L2\n\tleaq\t.L4(%rip), %rdx\n\tmovzbl\t%dil, %edi\n\tmovslq\t(%rdx,%rdi,4), %rax\n\taddq\t%rdx, %rax\n\tnotrack jmp\t*%rax\n\t.section\t.rodata\n\t.align 4\n\t.align 4\n.L4:\n\t.long\t.L6-.L4\n\t.long\t.L6-.L4\n\t.long\t.L3-.L4\n\t.long\t.L7-.L4\n\t.long\t.L2-.L4\n\t.long\t.L7-.L4\n\t.long\t.L2-.L4\n\t.long\t.L3-.L4\n\t.text\n.L3:\n\tmovl\t$2, %eax\n\tret\n.L6:\n\tmovl\t$3, %eax\n\tret\n.L2:\n\txorl\t%eax, %eax\n\tret\n.L7:\n\tmovl\t$1, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl getPrec\n.type getPrec, @function\ngetPrec:\n.LFB39:\n\t.cfi_startproc\n\tendbr64\n\tsubl\t$40, %edi\n\tcmpb\t$7, %dil\n\tja\t.L2\n\tleaq\t.L4(%rip), %rdx\n\tmovzbl\t%dil, %edi\n\tmovslq\t(%rdx,%rdi,4), %rax\n\taddq\t%rdx, %rax\n\tnotrack jmp\t*%rax\n\t.section\t.rodata\n\t.align 4\n\t.align 4\n.L4:\n\t.long\t.L6-.L4\n\t.long\t.L6-.L4\n\t.long\t.L3-.L4\n\t.long\t.L7-.L4\n\t.long\t.L2-.L4\n\t.long\t.L7-.L4\n\t.long\t.L2-.L4\n\t.long\t.L3-.L4\n\t.text\n\t.p2align 4,,10\n\t.p2align 3\n.L7:\n\tmovl\t$1, %eax\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L3:\n\tmovl\t$2, %eax\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L6:\n\tmovl\t$3, %eax\n\tret\n\t.p2align 4,,10\n\t.p2align 3\n.L2:\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".global getPrec\n.type getPrec, %function\ngetPrec:\n.LFB6:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstrb\tw0, [sp, 15]\n\tldrb\tw0, [sp, 15]\n\tcmp\tw0, 47\n\tbeq\t.L2\n\tcmp\tw0, 47\n\tbgt\t.L3\n\tcmp\tw0, 45\n\tbeq\t.L4\n\tcmp\tw0, 45\n\tbgt\t.L3\n\tcmp\tw0, 43\n\tbeq\t.L4\n\tcmp\tw0, 43\n\tbgt\t.L3\n\tcmp\tw0, 41\n\tbgt\t.L5\n\tcmp\tw0, 40\n\tbge\t.L6\n\tb\t.L3\n.L5:\n\tcmp\tw0, 42\n\tbeq\t.L2\n\tb\t.L3\n.L4:\n\tmov\tw0, 1\n\tb\t.L7\n.L2:\n\tmov\tw0, 2\n\tb\t.L7\n.L6:\n\tmov\tw0, 3\n\tb\t.L7\n.L3:\n\tmov\tw0, 0\n.L7:\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global getPrec\n.type getPrec, %function\ngetPrec:\n.LFB24:\n\t.cfi_startproc\n\tand\tw0, w0, 255\n\tsub\tw0, w0, #40\n\tcmp\tw0, 7\n\tbhi\t.L2\n\tadrp\tx1, .L4\n\tadd\tx1, x1, :lo12:.L4\n\tldrb\tw0, [x1,w0,uxtw]\n\tadr\tx1, .Lrtx4\n\tadd\tx0, x1, w0, sxtb #2\n\tbr\tx0\n.Lrtx4:\n\t.section\t.rodata\n\t.align\t0\n\t.align\t2\n.L4:\n\t.byte\t(.L6 - .Lrtx4) / 4\n\t.byte\t(.L6 - .Lrtx4) / 4\n\t.byte\t(.L3 - .Lrtx4) / 4\n\t.byte\t(.L7 - .Lrtx4) / 4\n\t.byte\t(.L2 - .Lrtx4) / 4\n\t.byte\t(.L7 - .Lrtx4) / 4\n\t.byte\t(.L2 - .Lrtx4) / 4\n\t.byte\t(.L3 - .Lrtx4) / 4\n\t.text\n.L3:\n\tmov\tw0, 2\n.L1:\n\tret\n.L6:\n\tmov\tw0, 3\n\tb\t.L1\n.L2:\n\tmov\tw0, 0\n\tb\t.L1\n.L7:\n\tmov\tw0, 1\n\tb\t.L1\n\t.cfi_endproc\n\n",
".global getPrec\n.type getPrec, %function\ngetPrec:\n.LFB39:\n\t.cfi_startproc\n\tand\tw1, w0, 255\n\tcmp\tw1, 43\n\tbeq\t.L4\n\tbhi\t.L3\n\tcmp\tw1, 42\n\tmov\tw0, 2\n\tbeq\t.L1\n\tcmp\tw1, 40\n\tmov\tw0, 3\n\tcsel\tw0, wzr, w0, cc\n.L1:\n\tret\n\t.p2align 2,,3\n.L3:\n\tcmp\tw1, 45\n\tmov\tw0, 1\n\tbeq\t.L1\n\tcmp\tw1, 47\n\tcset\tw0, eq\n\tlsl\tw0, w0, 1\n\tret\n\t.p2align 2,,3\n.L4:\n\tmov\tw0, 1\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | 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": [
"17"
],
"var": [
"op"
]
},
{
"value": [
"91"
],
"var": [
"op"
]
},
{
"value": [
"121"
],
"var": [
"op"
]
},
{
"value": [
"5"
],
"var": [
"op"
]
},
{
"value": [
"80"
],
"var": [
"op"
]
},
{
"value": [
"46"
],
"var": [
"op"
]
},
{
"value": [
"118"
],
"var": [
"op"
]
},
{
"value": [
"18"
],
"var": [
"op"
]
},
{
"value": [
"37"
],
"var": [
"op"
]
},
{
"value": [
"38"
],
"var": [
"op"
]
}
],
"output": [
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_63k5_033ll.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(char op, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
char op = input_json["op"].get<char>();
clock_t begin = clock();
int returnv = getPrec(op);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(op, returnv);
} | master | null | {"livein": ["op"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "getPrec", "funargs": ["op"], "typemap": {"op": "int8", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_63k5_033ll.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
awm/cortex-gnat-rts-code/arduino-due/adainclude/syscalls.c | int _isatty(int file)
{
return 0;
} | int _isatty(intfile) | int _isatty(int file) | _isatty | [
"int",
"int"
] | {
"code": [
".globl _isatty\n.type _isatty, @function\n_isatty:\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$0, %eax\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl _isatty\n.type _isatty, @function\n_isatty:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl _isatty\n.type _isatty, @function\n_isatty:\n.LFB6:\n\t.cfi_startproc\n\tendbr64\n\txorl\t%eax, %eax\n\tret\n\t.cfi_endproc\n\n",
".global _isatty\n.type _isatty, %function\n_isatty:\n.LFB0:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstr\tw0, [sp, 12]\n\tmov\tw0, 0\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global _isatty\n.type _isatty, %function\n_isatty:\n.LFB0:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n",
".global _isatty\n.type _isatty, %function\n_isatty:\n.LFB6:\n\t.cfi_startproc\n\tmov\tw0, 0\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | null | #include <sys/stat.h>
#include <errno.h>
#include <sys/times.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"113"
],
"var": [
"file"
]
},
{
"value": [
"13"
],
"var": [
"file"
]
},
{
"value": [
"70"
],
"var": [
"file"
]
},
{
"value": [
"122"
],
"var": [
"file"
]
},
{
"value": [
"110"
],
"var": [
"file"
]
},
{
"value": [
"119"
],
"var": [
"file"
]
},
{
"value": [
"108"
],
"var": [
"file"
]
},
{
"value": [
"27"
],
"var": [
"file"
]
},
{
"value": [
"28"
],
"var": [
"file"
]
},
{
"value": [
"46"
],
"var": [
"file"
]
}
],
"output": [
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
},
{
"value": [
"0"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_36tf4z2np9.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(int file, int returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
int file = input_json["file"];
clock_t begin = clock();
int returnv = _isatty(file);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(file, returnv);
} | master | null | {"livein": ["file"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "_isatty", "funargs": ["file"], "typemap": {"file": "int32", "returnv": "int32"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_36tf4z2np9.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
jloughry/experiments/optimal_gray_code_banker_sequence/optimal_gray_code_banker_sequence.c | char flip_bit (char bit_character) {
if ('0' == bit_character)
return '1';
else
return '0';
} | char flip_bit(charbit_character) | char flip_bit (char bit_character) | flip_bit | [
"char",
"char"
] | {
"code": [
".globl flip_bit\n.type flip_bit, @function\nflip_bit:\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$48, -4(%rbp)\n\tjne\t.L2\n\tmovl\t$49, %eax\n\tjmp\t.L3\n.L2:\n\tmovl\t$48, %eax\n.L3:\n\tpopq\t%rbp\n\t.cfi_def_cfa 7, 8\n\tret\n\t.cfi_endproc\n\n",
".globl flip_bit\n.type flip_bit, @function\nflip_bit:\n.LFB35:\n\t.cfi_startproc\n\tendbr64\n\tcmpb\t$48, %dil\n\tsete\t%al\n\taddl\t$48, %eax\n\tret\n\t.cfi_endproc\n\n",
".globl flip_bit\n.type flip_bit, @function\nflip_bit:\n.LFB50:\n\t.cfi_startproc\n\tendbr64\n\tcmpb\t$48, %dil\n\tsete\t%al\n\taddl\t$48, %eax\n\tret\n\t.cfi_endproc\n\n",
".global flip_bit\n.type flip_bit, %function\nflip_bit:\n.LFB6:\n\t.cfi_startproc\n\tsub\tsp, sp, #16\n\t.cfi_def_cfa_offset 16\n\tstrb\tw0, [sp, 15]\n\tldrb\tw0, [sp, 15]\n\tcmp\tw0, 48\n\tbne\t.L2\n\tmov\tw0, 49\n\tb\t.L3\n.L2:\n\tmov\tw0, 48\n.L3:\n\tadd\tsp, sp, 16\n\t.cfi_def_cfa_offset 0\n\tret\n\t.cfi_endproc\n\n",
".global flip_bit\n.type flip_bit, %function\nflip_bit:\n.LFB35:\n\t.cfi_startproc\n\tand\tw0, w0, 255\n\tcmp\tw0, 48\n\tcset\tw0, eq\n\tadd\tw0, w0, 48\n\tret\n\t.cfi_endproc\n\n",
".global flip_bit\n.type flip_bit, %function\nflip_bit:\n.LFB50:\n\t.cfi_startproc\n\tand\tw0, w0, 255\n\tcmp\tw0, 48\n\tcset\tw0, eq\n\tadd\tw0, w0, 48\n\tret\n\t.cfi_endproc\n\n"
],
"target": [
"real_gcc_x86_O0",
"real_gcc_x86_Os",
"real_gcc_x86_O3",
"real_gcc_arm_O0",
"real_gcc_arm_Os",
"real_gcc_arm_O3"
]
} | null | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
# 1 | null | {
"dummy_funcs": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"dummy_funcs_seed": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"input": [
{
"value": [
"29"
],
"var": [
"bit_character"
]
},
{
"value": [
"25"
],
"var": [
"bit_character"
]
},
{
"value": [
"42"
],
"var": [
"bit_character"
]
},
{
"value": [
"119"
],
"var": [
"bit_character"
]
},
{
"value": [
"85"
],
"var": [
"bit_character"
]
},
{
"value": [
"115"
],
"var": [
"bit_character"
]
},
{
"value": [
"67"
],
"var": [
"bit_character"
]
},
{
"value": [
"109"
],
"var": [
"bit_character"
]
},
{
"value": [
"117"
],
"var": [
"bit_character"
]
},
{
"value": [
"99"
],
"var": [
"bit_character"
]
}
],
"output": [
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
},
{
"value": [
"48"
],
"var": [
"returnv"
]
}
]
} | null | extern "C" {
#include "/tmp/pytmpfile_2d0c40262005_61nd4p4ftc.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 = nlohmann::json;
const char* __asan_default_options() {
return "detect_leaks=0";
}
clock_t AcceleratorStart;
clock_t AcceleratorTotalNanos = 0;
void StartAcceleratorTimer() {
AcceleratorStart = clock();
}
void StopAcceleratorTimer() {
AcceleratorTotalNanos += (clock()) - AcceleratorStart;
}
void write_output(char bit_character, char returnv) {
json output_json;
output_json["returnv"] = returnv;
std::ofstream out_str(output_file);
out_str << std::setw(4) << output_json << std::endl;
}
int main(int argc, char** argv) {
char* inpname = argv[1];
output_file = argv[2];
std::ifstream ifs(inpname);
json input_json = json::parse(ifs);
char bit_character = input_json["bit_character"].get<char>();
clock_t begin = clock();
char returnv = flip_bit(bit_character);
clock_t end = clock();
std::cout << "Time: " << (double)(end - begin) / CLOCKS_PER_SEC << std::endl;
std::cout << "AccTime: " << (double)AcceleratorTotalNanos / CLOCKS_PER_SEC << std::endl;
write_output(bit_character, returnv);
} | master | null | {"livein": ["bit_character"], "liveout": [], "returnvarname": ["returnv"], "execcmd": "", "funname": "flip_bit", "funargs": ["bit_character"], "typemap": {"bit_character": "int8", "returnv": "int8"}, "required_includes": ["/tmp/pytmpfile_2d0c40262005_61nd4p4ftc.c"], "classmap": {}, "range": {}, "needs_cast": {}, "globals": []} |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 0