Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running the tool #1

Open
adharshkamath opened this issue May 13, 2024 · 3 comments
Open

Error while running the tool #1

adharshkamath opened this issue May 13, 2024 · 3 comments

Comments

@adharshkamath
Copy link

adharshkamath commented May 13, 2024

I tried running the run_exp_gpt4.sh script in the code2inv/ directory with the following arguments:

./run_exp_gpt4.sh ./benchmarks/code2inv/c/1

and I got the following exception:

Traceback (most recent call last):
  File "/mnt/c/Users/user/repos/Lemur-program-verification/code2inv/./src/run.py", line 41, in <module>
    v = Verifier(task, VERIFIERS, args)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/c/Users/user/repos/Lemur-program-verification/code2inv/src/verifier.py", line 38, in __init__
    self.program = Program(r.lines_to_verify, r.replacement)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/c/Users/user/repos/Lemur-program-verification/code2inv/src/program.py", line 61, in __init__
    if line.strip().split()[0] in ["for", "do", "while"]:
       ~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Before running the run_exp_gpt4.sh script, I installed the packages in requirements.txt and ran the ./build.sh script.
I tried running the tool with python 3.11 and python 3.8

Is there any additional setup I need to complete for the tool before running it? Or pass any other CLI arguments?

@wu-haoze
Copy link
Owner

Hi @adharshkamath , I think those should be sufficient dependencies. I can't seem to reproduce the issue on my end. I'm running python 3.10. Have you installed clang-format on your machine?

@adharshkamath
Copy link
Author

Thanks for the response! Yes, I have clang-format-15 installed on my machine from running the build.sh script.

@wu-haoze
Copy link
Owner

wu-haoze commented Jun 4, 2024

@adharshkamath perhaps try the package versions here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants