在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ahumenberger/Z3.jl开源软件地址:https://github.com/ahumenberger/Z3.jl开源编程语言:Julia 100.0%开源软件介绍:Z3.jlThis package provides an interface to the Z3 Theorem Prover by wrapping the C++ API of Z3 using CxxWrap.jl. ctx = Context()
x = real_const(ctx, "x")
y = real_const(ctx, "y")
s = Solver(ctx, "QF_NRA")
add(s, x == y^2)
add(s, x > 1)
res = check(s)
@assert res == Z3.sat
m = get_model(s)
for (k, v) in consts(m)
println("$k = $v")
end C++ API vs. Julia APIThis package wraps the C++ API of Z3. As such Z3's types are available in Julia by using its camel case name variant, e.g. See z3jl.cpp for an exact list of exposed types and methods. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论