- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.1"
    uuid: a5053266-5bcb-4e81-8fd6-789fd846e418
    creation_time: 2024-09-27T12:03:29Z
    producer:
      name: Goblint
      version: heads/yaml-witness-ghost-0-g852297b68-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection'' ''--set'' ''ana.autotune.activated[-]''
        ''octagon'' ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
    ghost_variables:
    - name: multithreaded
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    - name: m_locked
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    ghost_updates:
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1063
        column: 3
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1048
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1039
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1048
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1039
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1048
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1039
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1048
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1039
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1048
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1039
        column: 5
        function: t2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1029
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1020
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1029
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1020
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1029
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1020
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1029
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1020
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1029
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1020
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1029
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1020
        column: 5
        function: t1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1017
        column: 3
        function: t1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1008
        column: 3
        function: t1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
- entry_type: invariant_set
  metadata:
    format_version: "2.1"
    uuid: 205eebba-0da5-43ad-a9da-534f23be567c
    creation_time: 2024-09-27T12:03:29Z
    producer:
      name: Goblint
      version: heads/yaml-witness-ghost-0-g852297b68-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection'' ''--set'' ''ana.autotune.activated[-]''
        ''octagon'' ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1064
        column: 3
        function: main
      value: '! multithreaded || (((0 <= queue.head && 0 <= queue.tail) && queue.head
        <= 20) && queue.tail <= 20)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue.i
        file_hash: 4d771c5dc4ab027f123135a7de4324b9be0c6bae288f44d0eaffc15d1836bd60
        line: 1065
        column: 3
        function: main
      value: '! multithreaded || (((0 <= queue.head && 0 <= queue.tail) && queue.head
        <= 20) && queue.tail <= 20)'
      format: c_expression
