- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.1"
    uuid: e9345418-b0e8-4669-865c-f343db2baf58
    creation_time: 2024-09-27T12:22:51Z
    producer:
      name: Goblint
      version: heads/yaml-witness-ghost-0-g852297b68-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''mutex-meet'' ''--set'' ''ana.activated[+]'' ''apron''
        ''--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_ok.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
      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_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1052
        column: 3
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1039
        column: 3
        function: t2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1026
        column: 3
        function: t2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1020
        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_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        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: e9494225-1c77-4788-9b71-0e527cf519aa
    creation_time: 2024-09-27T12:22:51Z
    producer:
      name: Goblint
      version: heads/yaml-witness-ghost-0-g852297b68-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''mutex-meet'' ''--set'' ''ana.activated[+]'' ''apron''
        ''--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_ok.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
      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_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1053
        column: 3
        function: main
      value: '! multithreaded || (m_locked || (((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_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1054
        column: 3
        function: main
      value: '! multithreaded || (m_locked || (((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_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1053
        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_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1054
        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_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1053
        column: 3
        function: main
      value: '! multithreaded || (m_locked || ((-1LL + (long long )dequeue_flag) +
        (long long )enqueue_flag >= 0LL && (1LL - (long long )dequeue_flag) - (long
        long )enqueue_flag >= 0LL))'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok.i
        file_hash: 7cc273f13a619f37768d5108c297b75ab7c37145fe391daced9c134730721251
        line: 1054
        column: 3
        function: main
      value: '! multithreaded || (m_locked || ((-1LL + (long long )dequeue_flag) +
        (long long )enqueue_flag >= 0LL && (1LL - (long long )dequeue_flag) - (long
        long )enqueue_flag >= 0LL))'
      format: c_expression
