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

Massive slowdown and weird number of symbols when doing symbolic allocations #424

Open
krtab opened this issue Aug 27, 2024 · 2 comments
Open
Assignees

Comments

@krtab
Copy link
Collaborator

krtab commented Aug 27, 2024

When running code-examples/rust/cross_language_hash from https://github.com/zapashcanon/paper-owi24/tree/issue_symbolic_memory we get the following weird output:

Trap: memory heap buffer overflow
Model:
  (model
    (symbol_0 (i32 1))
    (symbol_23 (i32 1205)))
@zapashcanon
Copy link
Member

What do you mean by a massive slowdown? Is this by comparing two different Owi versions?

What would you expect regarding symbols ? The following:

Trap: memory heap buffer overflow
Model:
  (model
    (symbol_0 (i32 1))
    (symbol_1 (i32 1205)))

?

@filipeom
Copy link
Collaborator

What do you mean by a massive slowdown? Is this by comparing two different Owi versions?

Between:

    let user_name_size = owi_sym::u32_symbol() as usize;
    owi_sym::assume(user_name_size == 1); // Creating a symbol == 1
    // let user_name_size = 1;            // And using a concrete variable

What would you expect regarding symbols ? The following:

Trap: memory heap buffer overflow
Model:
(model
(symbol_0 (i32 1))
(symbol_1 (i32 1205)))

?

Yes, something like this.

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

3 participants