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

argv argument as Input to the target program #92

Open
olli22221 opened this issue Dec 2, 2021 · 0 comments
Open

argv argument as Input to the target program #92

olli22221 opened this issue Dec 2, 2021 · 0 comments

Comments

@olli22221
Copy link

When compiling the target program with symcc and executing it afterwards like this: ./targetprogram 6
With 6 as Input , it doesnt generate any testcases instead I am getting just this ouput:

This is SymCC running with the simple backend
For anything but debugging SymCC itself, you will want to use the QSYM backend instead (see README.md for build instructions)
WARNING: unknown parameter 'timeout'
Legal parameters are:
auto_config (bool) (default: true)
debug_ref_count (bool) (default: false)
dump_models (bool) (default: false)
model (bool) (default: true)
model_validate (bool) (default: false)
proof (bool) (default: false)
rlimit (unsigned int) (default: 4294967295)
smtlib2_compliant (bool) (default: false)
timeout (unsigned int) (default: 4294967295)
trace (bool) (default: false)
trace_file_name (string) (default: z3.log)
type_check (bool) (default: true)
unsat_core (bool) (default: false)
well_sorted_check (bool) (default: false)

targetprogram:

#include <stdlib.h>
#include <stdio.h>

int main(int argc, char* argv[]) {
int x;
int res;
int y;
y = atoi(argv[1]);

if(y>5){
printf("%d",y);

return 0;
}

x = 1000;
res = x/y;

return 0;
}

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