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

Assertion failure at solvers/simplex/simplex.c:10349 #396

Open
mpreiner opened this issue Jan 20, 2022 · 0 comments
Open

Assertion failure at solvers/simplex/simplex.c:10349 #396

mpreiner opened this issue Jan 20, 2022 · 0 comments
Milestone

Comments

@mpreiner
Copy link

The following yices_push(ctx) call produces the below error with a debug build commit 09f1621.

#include "yices.h"

int
main()
{
  yices_init();
  type_t s1 = yices_real_type();
  term_t t1 = yices_new_uninterpreted_term(s1);
  term_t t2 = yices_new_uninterpreted_term(s1);
  term_t z = yices_parse_rational("0");
  term_t a1 = yices_arith_gt_atom(t2, z);
  term_t a2 = yices_arith_leq_atom(t2, t1);
  term_t a3 = yices_arith_lt_atom(t1, z);

  ctx_config_t* cfg = yices_new_config();
  context_t* ctx = yices_new_context(cfg);

  yices_assert_formula(ctx, a1);
  yices_assert_formula(ctx, a2);
  yices_assert_formula(ctx, a3);
  yices_check_context_with_assumptions(ctx, NULL, 1, &a2);
  yices_push(ctx);

  return 0;
}

error:

solvers/simplex/simplex.c:10349: simplex_push: Assertion `solver->decision_level == solver->base_level && solver->bstack.prop_ptr == solver->bstack.fix_ptr && solver->save_rows && eassertion_queue_is_empty(&solver->egraph_queue)' failed.
@ahmed-irfan ahmed-irfan added this to the Yices 2.7 milestone Sep 28, 2022
@ahmed-irfan ahmed-irfan modified the milestones: Yices 2.7, Yices 2.6.5 Jan 23, 2024
@ahmed-irfan ahmed-irfan modified the milestones: Yices 2.6.5, Yices 2.7 Jun 24, 2024
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

2 participants