spcl / ncc

Neural Code Comprehension: A Learnable Representation of Code Semantics
BSD 3-Clause "New" or "Revised" License
206 stars 51 forks source link

[inst2vec_evaluate.py] IndexError : list index out of range in analogies #42

Closed thismeansclothes closed 2 years ago

thismeansclothes commented 2 years ago

Hi, I'm working on a project that makes Go code into llvm IR using gollvm(https://go.googlesource.com/gollvm) After get IR from Go codes, I made test folder having go IRs to run train_inst2vec.py. But there was an error that analogies list don't have any value.

Can I know what the analogies do? If can, I want to know how to solve the Error attached in this issue.

test

Thanks.

HosoyaKenn commented 1 year ago

Hey! Have you ever resolve this problem?I also encountered it