# 7. Solving the x^y = ???? equation

Bài toán tìm x,y khi x^y = 19487171.

```
(set-logic QF_BV)
(declare-fun x () (_ BitVec 32))
(declare-fun y () (_ BitVec 4))
(declare-fun out () (_ BitVec 32))
; like switch() or if() tree:
(assert (= out
        (ite (= y #x2) (bvmul_no_overflow x x)
        (ite (= y #x3) (bvmul_no_overflow x x x)
        (ite (= y #x4) (bvmul_no_overflow x x x x)
        (ite (= y #x5) (bvmul_no_overflow x x x x x)
        (ite (= y #x6) (bvmul_no_overflow x x x x x x)
        (ite (= y #x7) (bvmul_no_overflow x x x x x x x)
        (_ bv0 32)))))))))

(assert (= out (_ bv19487171 32)))

(check -sat)
(get-model)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://viettaliii.gitbook.io/home/education/reverse-engineering/symbolic-analysis/sat-smt-by-example/equations/7.-solving-the-x-y-equation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
