Skip to content

Debug build spurious model validation error on arithmetic formula with rem (release build okay)  #5319

@zhendongsu

Description

@zhendongsu

Commit: 83e2e72
OS: Ubuntu 18.04

Not sure how relevant it is, but shown below is a spurious model validation failure from the debug build
(spurious since the model generated by the debug build is correct):

[571] % z3release model_validate=true small.smt2 
sat
[572] % z3debug model_validate=true small.smt2 
sat
(error "line 9 column 10: an invalid model was generated")
[573] % 
[573] % cat small.smt2 
(declare-fun a () Int)
(declare-fun b () Int)
(declare-fun c () Int)
(declare-fun d () Int)
(declare-fun f () Int)
(declare-fun h () Int)
(assert (= 0 (+ b (* c d))))
(assert (> (rem 0 (+ c (* a d))) f h (+ (* b f) (* c h)) 0))
(check-sat)
[574] % 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions