Home • Docs • Contacts • FM Tools

Frequently Asked Question

Illegal Instruction on MacOS X

Description

You've downloaded the binary distribution of Yices for MacOS X. When you try to use yices, it breaks with the following error: Illegal Instruction: 4

Explanation

We build the binary distribution on a Mac that supports Intel's AVX2 instructions. Some older Intel CPUs do not support these instructions, and our pre-compiled binaries will not work on these CPUs.

You can check whether you CPU and OS support AVX2 by opening a terminal and typing

sysctl -a | grep hw

If AVX2 is supported, you'll see:

hw.optional.avx2_0: 1

Otherwise, you'll see:

hw.optional.avx2_0: 0

Fix

If your CPU does not support AVX2, you have to install Yices from the source. The simplest method is to use brew:

brew install SRI-CSL/sri-csl/yices2

You can also download the generated source distribution yices-2.8.0-src.tar.gz (not GitHub's automatic tag archive) or clone our GitHub repository, then follow these instructions. Read and retain the installation erratum with the release source and manual. The source asset's checksum is shown on the download page.

Home • Docs • Contacts • FM Tools