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

invalid option: --global-variables #78

Closed
mdrafiqulrabin opened this issue Aug 27, 2019 · 0 comments
Closed

invalid option: --global-variables #78

mdrafiqulrabin opened this issue Aug 27, 2019 · 0 comments

Comments

@mdrafiqulrabin
Copy link
Contributor

Hi,

The "csmith --help" shows the following instruction for controlling global variables:

--global-variables | --no-global-variables: enable | disable global variables (enabled by default).

However, "csmith --global-variables" doesn't work, it shows the following error:

$ ./csmith  --global-variables
invalid option --global-variables at: 1

After checking the source code, I found that there is an extra 's' after "--global-variables" in main method of RandomProgramGenerator.cpp file:

if (strcmp (argv[i], "--global-variabless") == 0) {
	CGOptions::global_variables(true);
	continue;
}

Therefore, changing "--global-variabless" to "--global-variables" could be a possible fix.

Thanks.

jxyang added a commit that referenced this issue Aug 31, 2019
Fix: invalid option: --global-variables Issue #78
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

1 participant