- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.1"
    uuid: 491f8aa1-2837-4698-ae2c-c04461290bd8
    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_longer.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok_longer.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok_longer.i: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
      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_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        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_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        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_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        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_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        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_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        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: f67564b3-3303-4bb6-8e49-9565044af75f
    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_longer.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok_longer.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/queue_ok_longer.i: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
      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_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        line: 1053
        column: 3
        function: main
      value: '! multithreaded || (m_locked || (((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_ok_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        line: 1054
        column: 3
        function: main
      value: '! multithreaded || (m_locked || (((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_ok_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        line: 1053
        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_ok_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        line: 1054
        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_ok_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        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_longer.i
        file_hash: f58af1aa15d4bec1241042c84c595fb9585ff7c461dd0b44f9fde0638838779a
        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
