Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8874677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:46:56+00:00 2026-06-14T18:46:56+00:00

I have simple Z3 python code like below. I expect the print line will

  • 0

I have simple Z3 python code like below. I expect the “print” line will return me “y” which was stored in the line above it. Instead, I got back “A[x]” as result.

I = IntSort()
A = Array('A', I, I)
x = Int('x')
y = Int('y')
Store(A, x, y)
print Select(A,x)

Why does not Select() return the value stored by Store()?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:46:57+00:00Added an answer on June 14, 2026 at 6:46 pm

    There are two things to note:

    First:
    When you write

    Store(A, x, y)
    

    You create a term with three arguments , A, x, and y.
    There is no side-effect to A.
    You can create a name for this term by writing

    B = Store(A,x,y)
    

    Second:
    Z3 does not simplify terms unless you want it to.
    The python API exposes a simplification function called simplify.
    You can obtain the reduced term by calling the simplifier.
    The example is:

    I = IntSort()
    A = Array('A', I, I)
    x = Int('x')
    y = Int('y')
    B = Store(A, x, y)
    print Select(B,x)
    print simplify (Select(B,x))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple Python program which uses a read-eval-print loop to read user
I have a simple python curses code that creates a subwindow. However, in the
I have a simple code using ctypes: Python 3.1.1 (r311:74480, Feb 23 2010, 11:06:41)
I'm newbie in Python. I have this simple code a = 0 b =
I have a simple python script (say, simple.py) , like a = 5 b
I have a simple python program that I'd like to daemonize. Since the point
I have a very simple python script that should scan a text file, which
Let's say we have the following mega-simple Python script: print Initializing.... a=10 print Variable
I am writing a simple python code for a very task which some of
I've written a very simple python numpy code. It have a strange behavior... from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.