Mondego / SourcererCC

Sourcerer's Code Clone project
GNU General Public License v3.0
206 stars 69 forks source link

Is it possible that a type-1 clone won't be reported as a clone by SourcererCC? #58

Closed Coppelian closed 1 year ago

Coppelian commented 1 year ago

Hi,

I recently faced a problem. Two functions with identical token content could be manually recognized as a type-1 clone. It was not reported by SourcererCC. I tried to do troubleshooting but I couldn't find the reason. I can show you the token content. Can you shed some light on this? Thanks.

11,100003000000,20,12,407aab7539aad9635a5258199248d490@#@function@@::@@1,target@@::@@3,onlyOwner@@::@@1,uint256@@::@@1,Transfer@@::@@2,balances@@::@@1,0@@::@@1,mintToken@@::@@1,address@@::@@1,owner@@::@@2,mintedAmount@@::@@5,_totalSupply@@::@@1 12,100003000001,5,5,cc777ed82a99633e2ac159baae382dbb@#@function@@::@@1,owner@@::@@1,sender@@::@@1,owned@@::@@1,msg@@::@@1 12,100013000001,7,6,a6a1eefb5b11fbdc3e46acef1f275263@#@function@@::@@1,newOwner@@::@@2,transferOwnership@@::@@1,onlyOwner@@::@@1,address@@::@@1,owner@@::@@1 12,100023000001,8,7,b27f467b7e068c194a64699308168a25@#@function@@::@@1,owner@@::@@2,sender@@::@@1,Fiocoin@@::@@1,msg@@::@@1,_totalSupply@@::@@1,balances@@::@@1 12,100033000001,8,7,d589f4759ef658596d45ebb0327bf62b@#@function@@::@@1,totalSupply@@::@@2,returns@@::@@1,constant@@::@@1,_totalSupply@@::@@1,uint256@@::@@1,return@@::@@1 12,100043000001,11,10,4d402391021f605517f589e36d53e787@#@function@@::@@1,constant@@::@@1,uint256@@::@@1,_owner@@::@@2,balances@@::@@1,returns@@::@@1,address@@::@@1,return@@::@@1,balance@@::@@1,balanceOf@@::@@1 12,100053000001,43,21,c4592b5b8ca4e4888307d25378d9d28f@#@function@@::@@1,return@@::@@2,_amount@@::@@7,Transfer@@::@@1,_to@@::@@5,balances@@::@@5,address@@::@@1,false@@::@@1,else@@::@@1,true@@::@@1,throw@@::@@1,if@@::@@2,sender@@::@@4,success@@::@@1,uint256@@::@@1,transfer@@::@@1,frozenAccount@@::@@1,0@@::@@1,returns@@::@@1,bool@@::@@1,msg@@::@@4 12,100063000001,47,21,881ca3adfc368b2d75808038edf1487e@#@function@@::@@1,return@@::@@2,Transfer@@::@@1,address@@::@@2,_to@@::@@5,balances@@::@@5,allowed@@::@@2,false@@::@@1,_from@@::@@6,else@@::@@1,_amount@@::@@9,if@@::@@1,sender@@::@@2,success@@::@@1,uint256@@::@@1,true@@::@@1,0@@::@@1,returns@@::@@1,bool@@::@@1,transferFrom@@::@@1,msg@@::@@2 12,100073000001,21,15,176a627a59bc4163aec3898e4e53017d@#@function@@::@@1,_spender@@::@@3,return@@::@@1,sender@@::@@2,success@@::@@1,uint256@@::@@1,approve@@::@@1,address@@::@@1,returns@@::@@1,bool@@::@@1,allowed@@::@@1,msg@@::@@2,Approval@@::@@1,_amount@@::@@3,true@@::@@1 12,100083000001,14,11,c3cdf51a44c8d370a574cd29f62f2975@#@function@@::@@1,_spender@@::@@2,constant@@::@@1,uint256@@::@@1,address@@::@@2,_owner@@::@@2,returns@@::@@1,allowed@@::@@1,return@@::@@1,remaining@@::@@1,allowance@@::@@1 12,100093000001,20,12,407aab7539aad9635a5258199248d490@#@function@@::@@1,target@@::@@3,onlyOwner@@::@@1,uint256@@::@@1,Transfer@@::@@2,balances@@::@@1,0@@::@@1,mintToken@@::@@1,address@@::@@1,owner@@::@@2,mintedAmount@@::@@5,_totalSupply@@::@@1

Coppelian commented 1 year ago

The first and the last content are identical, I cannot see the reason why SourcererCC didn't recognize this.

Coppelian commented 1 year ago

Sorry, I made a mistake. Please ignore this comment. Sorry for the trouble.