Skip to content

Option --os is documented but does not work #5267

Closed
@PhilippWendler

Description

@PhilippWendler

The command line option --os is shown in the help output of CBMC:

 --os                         set operating system (default: linux)

It is also mentioned in the man page.

However, it does not work:

$ ./cbmc --os linux foo.c
Usage error!


* *               CBMC 5.12 (cbmc-5.12) 64-bit              * *

[...]

Unknown option: --os

CBMC version: 5.12
Operating system: Linux

I guess the fix is to add (os): to the end of the string in this line:

"(i386-linux)(i386-macos)(i386-win32)(win32)(winx64)(gcc)" \

However, am I not sure whether this is correct and sufficient, though it did work in my tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions