resess / ardiff Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi, sir
I noticed that the dataset does not contain code for two-dimensional arrays.
Does ARDiff support code equivalence determination for codes that contain 2-dimensional arrays?
Thanks.
Hello, I used ARDiff to test the following non-equivalence pairs and the results showed equivalence, can you confirm that this is a false positive? And explain why? Thank you.
package demo.benchmarks.Fib.NEq;
public class oldV {
public static double snippet(int x) {
if(x<5){
return lib(x);
}else{
return 0;
}
}
public static double lib(int n) {
int a = 0;
int b = 1;
int i = 0;
if(1 < n){
i += 1;
a = b;
b = a + b;
return lib(n-1) + lib(n-2);
}
return n < 1 ? 0 : 1;
}
}
package demo.benchmarks.Fib.NEq;
public class newV {
public static double snippet(int x) {
if(x<5){
return lib(x);
}else{
return 0;
}
}
public static double lib(int n) {
int a = 0;
int b = 1;
int i = 0;
while(i < n){
i += 1;
a = b;
b = a + b;
}
return a;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.