- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.1"
    uuid: 9223794f-cccd-49c0-910c-bbed42b38d73
    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_longer.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_longer.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_longer.i: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
      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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        line: 1062
        column: 3
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        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: 1325fcf9-58f0-463f-ae1a-4d6ab080ee8a
    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_longer.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_longer.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_longer.i: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
      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_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        line: 1063
        column: 3
        function: main
      value: '! multithreaded || (((0 <= queue.head && 0 <= queue.tail) && queue.head
        <= 400) && queue.tail <= 400)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_longer.i
        file_hash: 9f874a9872f93f025fac23ebed37f94a1f3b80bd0133ea4d7e298577c4fec427
        line: 1064
        column: 3
        function: main
      value: '! multithreaded || (((0 <= queue.head && 0 <= queue.tail) && queue.head
        <= 400) && queue.tail <= 400)'
      format: c_expression
