Skip to content

Memory leak on real formula  #2795

@wintered

Description

@wintered

Hi, on the following formula Z3 leaks memory.

(declare-fun skoY () Real)  
(declare-fun skoX () Real)  
(declare-fun pi () Real)  
(assert (= true (= (- (+ skoY (+ (+ 900000000000000000000000 (* skoX (- 900000000)))  
(- (* skoY (* skoY (* skoY (* skoY (* skoY (- skoY (+ skoY  
(* skoY (* skoY (* skoX (* skoX (/ (- 15625) 4158))))))))))))))))  
(+ 1800060000000000000000000 (* skoX (* skoX 1800060000))))  
(and (<= 100 skoX) (and (not (<= 0 pi)) (not (<= pi 0))))))  
(check-sat)

The original formula came from the SMTLIB benchmark suite and already contained these huge numbers.

unsat
ast_manager LEAKED: 6
Leaked: bv[4:4]
id: 475
Leaked: bv[2:3]
id: 464

OS: Ubuntu 18.04
Revision: ebb7d60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions